Skip to content

Commit bb5adca

Browse files
committed
Merge branch 'linux-5.15-trunk/at91/dt' into linux-5.15-mchp
2 parents 025977d + 5499f59 commit bb5adca

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

arch/arm/boot/dts/sama7g5.dtsi

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
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>
1516
#include <dt-bindings/clock/at91.h>
1617
#include <dt-bindings/dma/at91.h>
1718
#include <dt-bindings/gpio/gpio.h>
19+
#include <dt-bindings/nvmem/microchip,otpc.h>
20+
#include <dt-bindings/thermal/thermal.h>
1821

1922
/ {
2023
model = "Microchip SAMA7G5 family SoC";
@@ -34,6 +37,7 @@
3437
clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
3538
clock-names = "cpu";
3639
operating-points-v2 = <&cpu_opp_table>;
40+
#cooling-cells = <2>; /* min followed by max */
3741
};
3842
};
3943

@@ -72,6 +76,47 @@
7276
};
7377
};
7478

79+
thermal-zones {
80+
cpu_thermal: cpu-thermal {
81+
polling-delay-passive = <1000>;
82+
polling-delay = <5000>;
83+
sustainable-power = <2500>;
84+
thermal-sensors = <&thermal_sensor>;
85+
86+
trips {
87+
cpu_normal: cpu-alert0 {
88+
temperature = <50000>;
89+
hysteresis = <0>;
90+
type = "passive";
91+
};
92+
93+
cpu_hot: cpu-alert1 {
94+
temperature = <65000>;
95+
hysteresis = <0>;
96+
type = "passive";
97+
};
98+
99+
cpu_critical: cpu-critical {
100+
temperature = <85000>;
101+
hysteresis = <0>;
102+
type = "critical";
103+
};
104+
};
105+
106+
cooling-maps {
107+
map0 {
108+
trip = <&cpu_normal>;
109+
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
110+
};
111+
112+
map1 {
113+
trip = <&cpu_hot>;
114+
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
115+
};
116+
};
117+
};
118+
};
119+
75120
clocks {
76121
slow_xtal: slow_xtal {
77122
compatible = "fixed-clock";
@@ -148,6 +193,13 @@
148193
status = "disabled";
149194
};
150195

196+
thermal_sensor: thermal-sensor {
197+
compatible = "generic-adc-thermal";
198+
#thermal-sensor-cells = <0>;
199+
io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>;
200+
io-channel-names = "sensor-channel";
201+
};
202+
151203
ns_sram: sram@100000 {
152204
compatible = "mmio-sram";
153205
#address-cells = <1>;
@@ -510,6 +562,9 @@
510562
atmel,min-sample-rate-hz = <200000>;
511563
atmel,max-sample-rate-hz = <20000000>;
512564
atmel,startup-time-ms = <4>;
565+
#io-channel-cells = <1>;
566+
nvmem-cells = <&temperature_calib>;
567+
nvmem-cell-names = "temperature_calib";
513568
status = "disabled";
514569
};
515570

@@ -1131,6 +1186,17 @@
11311186
reg = <0xe3804000 0x1000>;
11321187
};
11331188

1189+
otpc: otpc@e8c00000 {
1190+
compatible = "microchip,sama7g5-otpc", "syscon";
1191+
reg = <0xe8c00000 0x100>;
1192+
#address-cells = <1>;
1193+
#size-cells = <1>;
1194+
1195+
temperature_calib: calib@1 {
1196+
reg = <OTP_PKT(1) OTP_PKT_SAMA7G5_TEMP_CALIB_LEN>;
1197+
};
1198+
};
1199+
11341200
gic: interrupt-controller@e8c11000 {
11351201
compatible = "arm,cortex-a7-gic";
11361202
#interrupt-cells = <3>;

0 commit comments

Comments
 (0)