Skip to content

Commit 7384932

Browse files
committed
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: Eugen Hristev <eugen.hristev@microchip.com>
1 parent 4bcfb77 commit 7384932

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

arch/arm/boot/dts/at91-sama5d27_som1_ek.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@
224224
adc: adc@fc030000 {
225225
vddana-supply = <&vddana>;
226226
vref-supply = <&advref>;
227+
pinctrl-names = "default";
228+
pinctrl-0 = <&pinctrl_mikrobus1_an &pinctrl_mikrobus2_an>;
227229

228-
status = "disabled";
230+
status = "okay";
229231
};
230232

231233
pinctrl@fc038000 {

0 commit comments

Comments
 (0)