* [PATCH] ARM: dts: at91: sama5d27_som1_ek: enable ADC node
@ 2021-06-22 10:17 ` Eugen Hristev
0 siblings, 0 replies; 4+ messages in thread
From: Eugen Hristev @ 2021-06-22 10:17 UTC (permalink / raw)
To: robh+dt, nicolas.ferre
Cc: alexandre.belloni, devicetree, linux-arm-kernel, linux-kernel,
ludovic.desroches, Eugen Hristev
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>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index a9e6fee55a2a..261a7dbcfdee 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -224,8 +224,10 @@ i2c1: i2c@fc028000 {
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 {
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: at91: sama5d27_som1_ek: enable ADC node
@ 2021-06-22 10:17 ` Eugen Hristev
0 siblings, 0 replies; 4+ messages in thread
From: Eugen Hristev @ 2021-06-22 10:17 UTC (permalink / raw)
To: robh+dt, nicolas.ferre
Cc: alexandre.belloni, devicetree, linux-arm-kernel, linux-kernel,
ludovic.desroches, Eugen Hristev
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>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index a9e6fee55a2a..261a7dbcfdee 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -224,8 +224,10 @@ i2c1: i2c@fc028000 {
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 {
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: at91: sama5d27_som1_ek: enable ADC node
2021-06-22 10:17 ` Eugen Hristev
@ 2021-07-27 8:48 ` Nicolas Ferre
-1 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2021-07-27 8:48 UTC (permalink / raw)
To: Eugen Hristev, robh+dt
Cc: alexandre.belloni, devicetree, linux-arm-kernel, linux-kernel,
ludovic.desroches
On 22/06/2021 at 12:17, Eugen Hristev wrote:
> 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>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Queued on at91-dt for 5.15. Best regards,
Nicolas
> ---
> arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
> index a9e6fee55a2a..261a7dbcfdee 100644
> --- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
> +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
> @@ -224,8 +224,10 @@ i2c1: i2c@fc028000 {
> 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 {
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: at91: sama5d27_som1_ek: enable ADC node
@ 2021-07-27 8:48 ` Nicolas Ferre
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2021-07-27 8:48 UTC (permalink / raw)
To: Eugen Hristev, robh+dt
Cc: alexandre.belloni, devicetree, linux-arm-kernel, linux-kernel,
ludovic.desroches
On 22/06/2021 at 12:17, Eugen Hristev wrote:
> 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>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Queued on at91-dt for 5.15. Best regards,
Nicolas
> ---
> arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
> index a9e6fee55a2a..261a7dbcfdee 100644
> --- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
> +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
> @@ -224,8 +224,10 @@ i2c1: i2c@fc028000 {
> 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 {
>
--
Nicolas Ferre
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-27 8:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 10:17 [PATCH] ARM: dts: at91: sama5d27_som1_ek: enable ADC node Eugen Hristev
2021-06-22 10:17 ` Eugen Hristev
2021-07-27 8:48 ` Nicolas Ferre
2021-07-27 8:48 ` Nicolas Ferre
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.