diff mbox series

[v3,10/10] ARM: dts: at91: sama7g5ek: enable ADC on the board

Message ID 20210901123013.329792-11-eugen.hristev@microchip.com
State Accepted
Commit 6b97032b9c8ff8fb1b71fdc488086c95f11b3cd6
Headers show
Series [v3,01/10] dt-bindings: iio: adc: at91-sama5d2: add compatible for sama7g5-adc | expand

Commit Message

Eugen Hristev Sept. 1, 2021, 12:30 p.m. UTC
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>
---
 arch/arm/boot/dts/at91-sama7g5ek.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Nicolas Ferre Sept. 15, 2021, 9:17 a.m. UTC | #1
On 01/09/2021 at 14:30, Eugen Hristev wrote:
> 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>


Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>


> ---

>   arch/arm/boot/dts/at91-sama7g5ek.dts | 8 ++++++++

>   1 file changed, 8 insertions(+)

> 

> diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts

> index 4cbed98cc2f4..c46be165f2ba 100644

> --- a/arch/arm/boot/dts/at91-sama7g5ek.dts

> +++ b/arch/arm/boot/dts/at91-sama7g5ek.dts

> @@ -122,6 +122,14 @@ spdif_out: spdif-out {

>   	};

>   };

>   

> +&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>;

>   };

> 



-- 
Nicolas Ferre
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts
index 4cbed98cc2f4..c46be165f2ba 100644
--- a/arch/arm/boot/dts/at91-sama7g5ek.dts
+++ b/arch/arm/boot/dts/at91-sama7g5ek.dts
@@ -122,6 +122,14 @@  spdif_out: spdif-out {
 	};
 };
 
+&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>;
 };