diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2020-12-21 19:13:03 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2021-01-25 09:46:44 -0800 |
commit | c8559511107120403f7810428f50fc68fd77ed5a (patch) | |
tree | be968682fb789186db99c4f96101ad74ac27fb35 /arch/arm/boot/dts/meson.dtsi | |
parent | e9ced25e41588a2ff95280b4d3dabf3a0865513b (diff) | |
download | linux-next-c8559511107120403f7810428f50fc68fd77ed5a.tar.gz |
ARM: dts: meson: add the ADC thermal sensor to meson.dtsi
The SoC temperature can be retrieved from ADC channel 8 on all 32-bit
SoCs (Meson6, Meson8, Meson8b and Meson8m2). Add a "generic-adc-thermal"
instance to meson.dtsi so the thermal sensor is available for all SoCs.
If the temperature sensor calibration data is missing for a board then
the "generic-adc-thermal" will not probe and not register a thermal
sensor.
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-3-martin.blumenstingl@googlemail.com
Diffstat (limited to 'arch/arm/boot/dts/meson.dtsi')
-rw-r--r-- | arch/arm/boot/dts/meson.dtsi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index 5f074f7aa1a2..e0ca5f08d07d 100644 --- a/arch/arm/boot/dts/meson.dtsi +++ b/arch/arm/boot/dts/meson.dtsi @@ -298,6 +298,13 @@ }; }; + thermal_sensor: thermal-sensor { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&saradc 8>; + io-channel-names = "sensor-channel"; + }; + xtal: xtal-clk { compatible = "fixed-clock"; clock-frequency = <24000000>; |