diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2020-12-21 19:13:02 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2021-01-25 09:46:43 -0800 |
commit | e9ced25e41588a2ff95280b4d3dabf3a0865513b (patch) | |
tree | 77ec781969c13424d8d83c59576100b6aaae05ec /arch/arm/boot/dts/meson.dtsi | |
parent | 5c8fe583cce542aa0b84adc939ce85293de36e5e (diff) |
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
Diffstat (limited to 'arch/arm/boot/dts/meson.dtsi')
-rw-r--r-- | arch/arm/boot/dts/meson.dtsi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index 7649dd1e0b9e..5f074f7aa1a2 100644 --- a/arch/arm/boot/dts/meson.dtsi +++ b/arch/arm/boot/dts/meson.dtsi @@ -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>; |