ARM: dts: meson: move iio-hwmon for the SoC temperature to meson.dtsi
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 21 Dec 2020 18:13:02 +0000 (19:13 +0100)
committerKevin Hilman <khilman@baylibre.com>
Mon, 25 Jan 2021 17:46:43 +0000 (09:46 -0800)
The SoC temperature can be retrieved from ADC channel 8 on all 32-bit
SoCs (Meson6, Meson8, Meson8b and Meson8m2). Move the iio-hwmon instance
to meson.dtsi instead of duplicating it in all board.dts.
If the temperature sensor calibration data is missing for a board then
iio-hwmon will simply not probe.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20201221181306.904272-2-martin.blumenstingl@googlemail.com
arch/arm/boot/dts/meson.dtsi
arch/arm/boot/dts/meson8b-ec100.dts
arch/arm/boot/dts/meson8b-mxq.dts
arch/arm/boot/dts/meson8b-odroidc1.dts
arch/arm/boot/dts/meson8m2-mxiii-plus.dts

index 7649dd1..5f074f7 100644 (file)
        #size-cells = <1>;
        interrupt-parent = <&gic>;
 
+       iio-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&saradc 8>;
+       };
+
        soc {
                compatible = "simple-bus";
                #address-cells = <1>;
index ed06102..8e48ccc 100644 (file)
                timeout-ms = <20000>;
        };
 
-       iio-hwmon {
-               compatible = "iio-hwmon";
-               io-channels = <&saradc 8>;
-       };
-
        leds {
                compatible = "gpio-leds";
 
index 33037ef..f3937d5 100644 (file)
                reg = <0x40000000 0x40000000>;
        };
 
-       iio-hwmon {
-               compatible = "iio-hwmon";
-               io-channels = <&saradc 8>;
-       };
-
        vcck: regulator-vcck {
                compatible = "pwm-regulator";
 
index 5963566..c440ef9 100644 (file)
                          1800000 1>;
        };
 
-       iio-hwmon {
-               compatible = "iio-hwmon";
-               io-channels = <&saradc 8>;
-       };
-
        rtc32k_xtal: rtc32k-xtal-clk {
                /* X3 in the schematics */
                compatible = "fixed-clock";
index 8f4eb1e..fa6d55f 100644 (file)
                };
        };
 
-       iio-hwmon {
-               compatible = "iio-hwmon";
-               io-channels = <&saradc 8>;
-       };
-
        vcc_3v3: regulator-vcc3v3 {
                compatible = "regulator-fixed";
                regulator-name = "VCC3V3";