Skip to content

Commit 6b5e42b

Browse files
committed
ARM: dts: at91: sama7g5: add temperature sensor
Add temperature sensor node. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent b1c59d1 commit 6b5e42b

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/reset/sama7g5-reset.h>
@@ -149,6 +150,13 @@
149150
status = "disabled";
150151
};
151152

153+
thermal_sensor: thermal-sensor {
154+
compatible = "generic-adc-thermal";
155+
#thermal-sensor-cells = <0>;
156+
io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>;
157+
io-channel-names = "sensor-channel";
158+
};
159+
152160
ns_sram: sram@100000 {
153161
compatible = "mmio-sram";
154162
#address-cells = <1>;

0 commit comments

Comments
 (0)