summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/vf610-zii-cfu1.dts
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2020-01-14 16:19:06 +0100
committerShawn Guo <shawnguo@kernel.org>2020-02-12 15:01:10 +0100
commit2439545b8c363953feaabf9b7124b8066154daaf (patch)
treed7260459b4841cc38c73e24b423d88145a70d3a6 /arch/arm/boot/dts/vf610-zii-cfu1.dts
parentARM: dts: vf610-zii-dev: Add voltage monitor DT node (diff)
downloadlinux-2439545b8c363953feaabf9b7124b8066154daaf.tar.xz
linux-2439545b8c363953feaabf9b7124b8066154daaf.zip
ARM: dts: vf610-zii-cfu1: Add voltage monitor DT node
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 Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to '')
-rw-r--r--arch/arm/boot/dts/vf610-zii-cfu1.dts8
1 files changed, 8 insertions, 0 deletions
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 {