]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: vf610-zii-dev: Add voltage monitor DT node
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 14 Jan 2020 15:19:05 +0000 (07:19 -0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 12 Feb 2020 14:01:06 +0000 (22:01 +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-dev.dtsi

index a1b4ccee2a10fbf5923cf86d1e52f9e7daf516d0..95d0060fb56c7a585fc8260e54f6cd78de099d22 100644 (file)
                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 {