]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: dts: at91: sama7g5ek: enable ADC on the board
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 1 Sep 2021 12:30:13 +0000 (15:30 +0300)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 15 Sep 2021 08:35:29 +0000 (10:35 +0200)
The ADC controller on the board is fed by a 2.5V reference voltage.
By default the channels #14 and #15 are dedicated to analog input
(marked AN on the board), on the connectors mikrobus1 and mikrobus2.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210901123013.329792-11-eugen.hristev@microchip.com
arch/arm/boot/dts/at91-sama7g5ek.dts

index 4cbed98cc2f43ce91065f626db64c1654ff4ebda..c46be165f2ba8959370ef73e6e2e7b231b9d8252 100644 (file)
        };
 };
 
+&adc {
+       vddana-supply = <&vddout25>;
+       vref-supply = <&vddout25>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>;
+       status = "okay";
+};
+
 &cpu0 {
        cpu-supply = <&vddcpu>;
 };