Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: meson: move iio-hwmon for the SoC temperature to meson.dtsi

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

authored by

Martin Blumenstingl and committed by
Kevin Hilman
e9ced25e 5c8fe583

+5 -20
+5
arch/arm/boot/dts/meson.dtsi
··· 11 11 #size-cells = <1>; 12 12 interrupt-parent = <&gic>; 13 13 14 + iio-hwmon { 15 + compatible = "iio-hwmon"; 16 + io-channels = <&saradc 8>; 17 + }; 18 + 14 19 soc { 15 20 compatible = "simple-bus"; 16 21 #address-cells = <1>;
-5
arch/arm/boot/dts/meson8b-ec100.dts
··· 70 70 timeout-ms = <20000>; 71 71 }; 72 72 73 - iio-hwmon { 74 - compatible = "iio-hwmon"; 75 - io-channels = <&saradc 8>; 76 - }; 77 - 78 73 leds { 79 74 compatible = "gpio-leds"; 80 75
-5
arch/arm/boot/dts/meson8b-mxq.dts
··· 27 27 reg = <0x40000000 0x40000000>; 28 28 }; 29 29 30 - iio-hwmon { 31 - compatible = "iio-hwmon"; 32 - io-channels = <&saradc 8>; 33 - }; 34 - 35 30 vcck: regulator-vcck { 36 31 compatible = "pwm-regulator"; 37 32
-5
arch/arm/boot/dts/meson8b-odroidc1.dts
··· 85 85 1800000 1>; 86 86 }; 87 87 88 - iio-hwmon { 89 - compatible = "iio-hwmon"; 90 - io-channels = <&saradc 8>; 91 - }; 92 - 93 88 rtc32k_xtal: rtc32k-xtal-clk { 94 89 /* X3 in the schematics */ 95 90 compatible = "fixed-clock";
-5
arch/arm/boot/dts/meson8m2-mxiii-plus.dts
··· 45 45 }; 46 46 }; 47 47 48 - iio-hwmon { 49 - compatible = "iio-hwmon"; 50 - io-channels = <&saradc 8>; 51 - }; 52 - 53 48 vcc_3v3: regulator-vcc3v3 { 54 49 compatible = "regulator-fixed"; 55 50 regulator-name = "VCC3V3";