Commit 289be44b authored by Eugen Hristev's avatar Eugen Hristev Committed by Nicolas Ferre
Browse files

ARM: dts: at91: sama5d27_som1_ek: enable ADC node



Enable the ADC for AN pins on Mikrobus1 and Mikrobus2 on the board.
These correspond to channels AD6 and AD7 in the controller.

 # cat /sys/bus/iio/devices/iio\:device0/in_voltage6_raw
 240
 # cat /sys/bus/iio/devices/iio\:device0/in_voltage7_raw
 16380

Signed-off-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210622101742.14535-1-eugen.hristev@microchip.com
parent 80891e4f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -224,8 +224,10 @@
			adc: adc@fc030000 {
				vddana-supply = <&vddana>;
				vref-supply = <&advref>;
				pinctrl-names = "default";
				pinctrl-0 = <&pinctrl_mikrobus1_an &pinctrl_mikrobus2_an>;

				status = "disabled";
				status = "okay";
			};

			pinctrl@fc038000 {