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
This commit is contained in:
Martin Blumenstingl
2020-12-21 19:13:02 +01:00
committed by Kevin Hilman
parent 5c8fe583cc
commit e9ced25e41
5 changed files with 5 additions and 20 deletions

View File

@@ -11,6 +11,11 @@
#size-cells = <1>;
interrupt-parent = <&gic>;
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&saradc 8>;
};
soc {
compatible = "simple-bus";
#address-cells = <1>;

View File

@@ -70,11 +70,6 @@
timeout-ms = <20000>;
};
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&saradc 8>;
};
leds {
compatible = "gpio-leds";

View File

@@ -27,11 +27,6 @@
reg = <0x40000000 0x40000000>;
};
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&saradc 8>;
};
vcck: regulator-vcck {
compatible = "pwm-regulator";

View File

@@ -85,11 +85,6 @@
1800000 1>;
};
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&saradc 8>;
};
rtc32k_xtal: rtc32k-xtal-clk {
/* X3 in the schematics */
compatible = "fixed-clock";

View File

@@ -45,11 +45,6 @@
};
};
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&saradc 8>;
};
vcc_3v3: regulator-vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "VCC3V3";