* [PATCH 0/5] Voltage monitor on ZII's VF610 boards
@ 2020-01-14 15:19 Andrey Smirnov
2020-01-14 15:19 ` [PATCH 1/5] ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node Andrey Smirnov
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Andrey Smirnov @ 2020-01-14 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Andrey Smirnov, Fabio Estevam, linux-kernel,
Shawn Guo, Chris Healy
Everyone:
This series configures voltage supply rail monitoring on all
applicable ZII VF610 boards. Should be pretty straightforward, but let
me know if any changes are necessary.
Thanks,
Andrey Smirnov
Andrey Smirnov (5):
ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node
ARM: dts: vf610-zii-ssmb-dtu: Add voltage monitor DT node
ARM: dts: vf610-zii-spb4: Add voltage monitor DT node
ARM: dts: vf610-zii-dev: Add voltage monitor DT node
ARM: dts: vf610-zii-cfu1: Add voltage monitor DT node
arch/arm/boot/dts/vf610-zii-cfu1.dts | 8 ++++++++
arch/arm/boot/dts/vf610-zii-dev.dtsi | 8 ++++++++
arch/arm/boot/dts/vf610-zii-spb4.dts | 8 ++++++++
arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts | 8 ++++++++
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts | 8 ++++++++
5 files changed, 40 insertions(+)
--
2.21.0
_______________________________________________
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] 7+ messages in thread
* [PATCH 1/5] ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
@ 2020-01-14 15:19 ` Andrey Smirnov
2020-01-14 15:19 ` [PATCH 2/5] ARM: dts: vf610-zii-ssmb-dtu: " Andrey Smirnov
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Andrey Smirnov @ 2020-01-14 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Andrey Smirnov, Fabio Estevam, linux-kernel,
Shawn Guo, Chris Healy
Add a DT node for various voltage supply rails connected to SoC's ADC
for voltage monitoring purposes.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts b/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts
index 453fce80f858..3d05c894bdc0 100644
--- a/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts
+++ b/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts
@@ -46,6 +46,14 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
+
+ supply-voltage-monitor {
+ compatible = "iio-hwmon";
+ io-channels = <&adc0 8>, /* 12V_MAIN */
+ <&adc0 9>, /* +3.3V */
+ <&adc1 8>, /* VCC_1V5 */
+ <&adc1 9>; /* VCC_1V2 */
+ };
};
&adc0 {
--
2.21.0
_______________________________________________
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] 7+ messages in thread
* [PATCH 2/5] ARM: dts: vf610-zii-ssmb-dtu: Add voltage monitor DT node
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
2020-01-14 15:19 ` [PATCH 1/5] ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node Andrey Smirnov
@ 2020-01-14 15:19 ` Andrey Smirnov
2020-01-14 15:19 ` [PATCH 3/5] ARM: dts: vf610-zii-spb4: " Andrey Smirnov
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Andrey Smirnov @ 2020-01-14 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Andrey Smirnov, Fabio Estevam, linux-kernel,
Shawn Guo, Chris Healy
Add a DT node for various voltage supply rails connected to SoC's ADC
for voltage monitoring purposes.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts b/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts
index 847c5858fea1..a6c22a79779e 100644
--- a/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts
+++ b/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts
@@ -46,6 +46,14 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
+
+ supply-voltage-monitor {
+ compatible = "iio-hwmon";
+ io-channels = <&adc0 8>, /* 12V_MAIN */
+ <&adc0 9>, /* +3.3V */
+ <&adc1 8>, /* VCC_1V5 */
+ <&adc1 9>; /* VCC_1V2 */
+ };
};
&adc0 {
--
2.21.0
_______________________________________________
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] 7+ messages in thread
* [PATCH 3/5] ARM: dts: vf610-zii-spb4: Add voltage monitor DT node
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
2020-01-14 15:19 ` [PATCH 1/5] ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node Andrey Smirnov
2020-01-14 15:19 ` [PATCH 2/5] ARM: dts: vf610-zii-ssmb-dtu: " Andrey Smirnov
@ 2020-01-14 15:19 ` Andrey Smirnov
2020-01-14 15:19 ` [PATCH 4/5] ARM: dts: vf610-zii-dev: " Andrey Smirnov
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Andrey Smirnov @ 2020-01-14 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Andrey Smirnov, Fabio Estevam, linux-kernel,
Shawn Guo, Chris Healy
Add a DT node for various voltage supply rails connected to SoC's ADC
for voltage monitoring purposes.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/boot/dts/vf610-zii-spb4.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/vf610-zii-spb4.dts b/arch/arm/boot/dts/vf610-zii-spb4.dts
index 77e1484211e4..55b4201e27f6 100644
--- a/arch/arm/boot/dts/vf610-zii-spb4.dts
+++ b/arch/arm/boot/dts/vf610-zii-spb4.dts
@@ -42,6 +42,14 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
+
+ supply-voltage-monitor {
+ compatible = "iio-hwmon";
+ io-channels = <&adc0 8>, /* 28V_SW */
+ <&adc0 9>, /* +3.3V */
+ <&adc1 8>, /* VCC_1V5 */
+ <&adc1 9>; /* VCC_1V2 */
+ };
};
&adc0 {
--
2.21.0
_______________________________________________
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] 7+ messages in thread
* [PATCH 4/5] ARM: dts: vf610-zii-dev: Add voltage monitor DT node
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
` (2 preceding siblings ...)
2020-01-14 15:19 ` [PATCH 3/5] ARM: dts: vf610-zii-spb4: " Andrey Smirnov
@ 2020-01-14 15:19 ` Andrey Smirnov
2020-01-14 15:19 ` [PATCH 5/5] ARM: dts: vf610-zii-cfu1: " Andrey Smirnov
2020-02-12 14:01 ` [PATCH 0/5] Voltage monitor on ZII's VF610 boards Shawn Guo
5 siblings, 0 replies; 7+ messages in thread
From: Andrey Smirnov @ 2020-01-14 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Andrey Smirnov, Fabio Estevam, linux-kernel,
Shawn Guo, Chris Healy
Add a DT node for various voltage supply rails connected to SoC's ADC
for voltage monitoring purposes.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/boot/dts/vf610-zii-dev.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/vf610-zii-dev.dtsi b/arch/arm/boot/dts/vf610-zii-dev.dtsi
index a1b4ccee2a10..95d0060fb56c 100644
--- a/arch/arm/boot/dts/vf610-zii-dev.dtsi
+++ b/arch/arm/boot/dts/vf610-zii-dev.dtsi
@@ -84,6 +84,14 @@
regulator-boot-on;
gpio = <&gpio0 6 0>;
};
+
+ supply-voltage-monitor {
+ compatible = "iio-hwmon";
+ io-channels = <&adc0 8>, /* VCC_1V5 */
+ <&adc0 9>, /* VCC_1V8 */
+ <&adc1 8>, /* VCC_1V0 */
+ <&adc1 9>; /* VCC_1V2 */
+ };
};
&adc0 {
--
2.21.0
_______________________________________________
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] 7+ messages in thread
* [PATCH 5/5] ARM: dts: vf610-zii-cfu1: Add voltage monitor DT node
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
` (3 preceding siblings ...)
2020-01-14 15:19 ` [PATCH 4/5] ARM: dts: vf610-zii-dev: " Andrey Smirnov
@ 2020-01-14 15:19 ` Andrey Smirnov
2020-02-12 14:01 ` [PATCH 0/5] Voltage monitor on ZII's VF610 boards Shawn Guo
5 siblings, 0 replies; 7+ messages in thread
From: Andrey Smirnov @ 2020-01-14 15:19 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Andrey Smirnov, Fabio Estevam, linux-kernel,
Shawn Guo, Chris Healy
Add a DT node for various voltage supply rails connected to SoC's ADC
for voltage monitoring purposes.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/boot/dts/vf610-zii-cfu1.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/vf610-zii-cfu1.dts b/arch/arm/boot/dts/vf610-zii-cfu1.dts
index 28732249cfc0..ce1920c052fc 100644
--- a/arch/arm/boot/dts/vf610-zii-cfu1.dts
+++ b/arch/arm/boot/dts/vf610-zii-cfu1.dts
@@ -71,6 +71,14 @@
los-gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>;
tx-disable-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
};
+
+ supply-voltage-monitor {
+ compatible = "iio-hwmon";
+ io-channels = <&adc0 8>, /* 28VDC_IN */
+ <&adc0 9>, /* +3.3V */
+ <&adc1 8>, /* VCC_1V5 */
+ <&adc1 9>; /* VCC_1V2 */
+ };
};
&adc0 {
--
2.21.0
_______________________________________________
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] 7+ messages in thread
* Re: [PATCH 0/5] Voltage monitor on ZII's VF610 boards
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
` (4 preceding siblings ...)
2020-01-14 15:19 ` [PATCH 5/5] ARM: dts: vf610-zii-cfu1: " Andrey Smirnov
@ 2020-02-12 14:01 ` Shawn Guo
5 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2020-02-12 14:01 UTC (permalink / raw)
To: Andrey Smirnov
Cc: devicetree, Fabio Estevam, Chris Healy, linux-arm-kernel, linux-kernel
On Tue, Jan 14, 2020 at 07:19:01AM -0800, Andrey Smirnov wrote:
> Everyone:
>
> This series configures voltage supply rail monitoring on all
> applicable ZII VF610 boards. Should be pretty straightforward, but let
> me know if any changes are necessary.
>
> Thanks,
> Andrey Smirnov
>
> Andrey Smirnov (5):
> ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node
> ARM: dts: vf610-zii-ssmb-dtu: Add voltage monitor DT node
> ARM: dts: vf610-zii-spb4: Add voltage monitor DT node
> ARM: dts: vf610-zii-dev: Add voltage monitor DT node
> ARM: dts: vf610-zii-cfu1: Add voltage monitor DT node
Applied all, thanks.
_______________________________________________
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] 7+ messages in thread
end of thread, other threads:[~2020-02-12 14:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 15:19 [PATCH 0/5] Voltage monitor on ZII's VF610 boards Andrey Smirnov
2020-01-14 15:19 ` [PATCH 1/5] ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node Andrey Smirnov
2020-01-14 15:19 ` [PATCH 2/5] ARM: dts: vf610-zii-ssmb-dtu: " Andrey Smirnov
2020-01-14 15:19 ` [PATCH 3/5] ARM: dts: vf610-zii-spb4: " Andrey Smirnov
2020-01-14 15:19 ` [PATCH 4/5] ARM: dts: vf610-zii-dev: " Andrey Smirnov
2020-01-14 15:19 ` [PATCH 5/5] ARM: dts: vf610-zii-cfu1: " Andrey Smirnov
2020-02-12 14:01 ` [PATCH 0/5] Voltage monitor on ZII's VF610 boards Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).