iio: adc: at91_adc: rework resolution selection
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 28 Nov 2020 22:28:10 +0000 (23:28 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Dec 2020 19:40:22 +0000 (19:40 +0000)
commit5eb39ef81ab9c8376df27dab20ca63c6e4c76870
tree0c5ca25560984a66da86f9cf0b4b39e4b64017e9
parent197cefcdc81d6a253487e5dfbaffb01f0a2f9172
iio: adc: at91_adc: rework resolution selection

Move the possible resolution values back to the driver. This removes the
atmel,adc-res and atmel,adc-res-names properties, leaving only
atmel,adc-use-res. As atmel,adc-res-names had to contain "lowres" and
"highres", those where already the only allowed values for
atmel,adc-use-res.

Also introduce a new compatible string for the sama5d3 as this is the only
one with a different resolution. Also it doesn't even have the LOWRES
bit.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link: https://lore.kernel.org/r/20201128222818.1910764-3-alexandre.belloni@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91_adc.c