From: Claudiu Beznea Date: Wed, 26 Oct 2022 12:41:08 +0000 (+0300) Subject: ARM: dts: at91: sama7g5: add temperature sensor X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=65d8815281d03b304af60b0ff2289eac5d1e0370;p=linux.git ARM: dts: at91: sama7g5: add temperature sensor Add temperature sensor node. Signed-off-by: Claudiu Beznea Link: https://lore.kernel.org/r/20221026124114.985876-6-claudiu.beznea@microchip.com --- diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index 30fde2ae4e9d8..db5909403792b 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -9,6 +9,7 @@ * */ +#include #include #include #include @@ -109,6 +110,13 @@ ranges; }; + thermal_sensor: thermal-sensor { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>; + io-channel-names = "sensor-channel"; + }; + soc { compatible = "simple-bus"; #address-cells = <1>;