Skip to content

Commit 5b48b3b

Browse files
committed
ARM: dts: at91: sama7g5: add temperature sensor
Add temperature sensor node. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20221026124114.985876-6-claudiu.beznea@microchip.com
1 parent 71cdef8 commit 5b48b3b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

arch/arm/boot/dts/sama7g5.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
*/
1111

12+
#include <dt-bindings/iio/adc/at91-sama5d2_adc.h>
1213
#include <dt-bindings/interrupt-controller/irq.h>
1314
#include <dt-bindings/interrupt-controller/arm-gic.h>
1415
#include <dt-bindings/clock/at91.h>
@@ -109,6 +110,13 @@
109110
ranges;
110111
};
111112

113+
thermal_sensor: thermal-sensor {
114+
compatible = "generic-adc-thermal";
115+
#thermal-sensor-cells = <0>;
116+
io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>;
117+
io-channel-names = "sensor-channel";
118+
};
119+
112120
soc {
113121
compatible = "simple-bus";
114122
#address-cells = <1>;

0 commit comments

Comments
 (0)