]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: dts: vf610-zii-ssmb-dtu: Add voltage monitor DT node
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 14 Jan 2020 15:19:03 +0000 (07:19 -0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 12 Feb 2020 13:59:54 +0000 (21:59 +0800)
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>
arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts

index 847c5858fea12a6eab5a3739a80b5db51685c3ff..a6c22a79779e534b2b2c51e8ff1e266b1c088edf 100644 (file)
                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 {