]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: vf610-zii-dev: enable vf610 builtin temp sensor
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Wed, 16 May 2018 06:39:21 +0000 (09:39 +0300)
committerShawn Guo <shawnguo@kernel.org>
Sun, 20 May 2018 12:55:54 +0000 (20:55 +0800)
Vybrid has single internal temperature sensor connected to both internal
ADC modules.

vf610-zii-dev already has ADC0 enabled. Now, to get temperature sensor
captured by iio_hwmon driver, need to configure iio_hwmon node to use
that ADC.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vf610-zii-dev.dtsi
arch/arm/boot/dts/vfxxx.dtsi

index 4890b8a5aa4457437aa2adcccb9f33cf56dd8e3e..5ae5abfe1d55e50ffa066b26697e85416555bde6 100644 (file)
@@ -222,6 +222,10 @@ &usbphy1 {
        status = "okay";
 };
 
+&tempsensor {
+       io-channels = <&adc0 16>;
+};
+
 &iomuxc {
        pinctrl_adc0_ad5: adc0ad5grp {
                fsl,pins = <
index c3f09b7379240b1823e0fcc573597f29c0026284..d392794d9c139f139fecfa6938c3ac5cdb69bed5 100644 (file)
@@ -84,7 +84,7 @@ reboot: syscon-reboot {
                mask = <0x1000>;
        };
 
-       iio-hwmon {
+       tempsensor: iio-hwmon {
                compatible = "iio-hwmon";
                io-channels = <&adc0 16>, <&adc1 16>;
        };