Skip to content

Commit 41eb3b4

Browse files
gauravkohli1shashim-quic
authored andcommitted
FROMLIST: arm64: dts: qcom: shikra: Enable TSENS and thermal zones
The shikra includes one TSENS instance, with a total of 14 thermal sensors distributed across various locations on the SoC. The TSENS max/reset threshold is configured to 120°C in the hardware. Enable all TSENS instances, and define the thermal zones with a hot trip at 110°C and critical trip at 115°C. Signed-off-by: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com> Signed-off-by: Komal Bajaj <komal.bajaj@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260525-shikra-dt-m1-v1-13-f51a9838dbaa@oss.qualcomm.com
1 parent 6727f6a commit 41eb3b4

1 file changed

Lines changed: 267 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/shikra.dtsi

Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <dt-bindings/interconnect/qcom,shikra.h>
1313
#include <dt-bindings/interrupt-controller/arm-gic.h>
1414
#include <dt-bindings/power/qcom-rpmpd.h>
15+
#include <dt-bindings/thermal/thermal.h>
1516

1617
/ {
1718
interrupt-parent = <&intc>;
@@ -1022,6 +1023,18 @@
10221023
reg = <0x0 0x04454000 0x0 0x1000>;
10231024
};
10241025

1026+
tsens0: thermal-sensor@4411000 {
1027+
compatible = "qcom,shikra-tsens", "qcom,tsens-v2";
1028+
reg = <0x0 0x04411000 0x0 0x1000>,
1029+
<0x0 0x04410000 0x0 0x1000>;
1030+
interrupts = <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH 0>,
1031+
<GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH 0>;
1032+
interrupt-names = "uplow",
1033+
"critical";
1034+
#qcom,sensors = <14>;
1035+
#thermal-sensor-cells = <1>;
1036+
};
1037+
10251038
rpm_msg_ram: sram@45f0000 {
10261039
compatible = "qcom,rpm-msg-ram", "mmio-sram";
10271040
reg = <0x0 0x045f0000 0x0 0x7000>;
@@ -2231,6 +2244,260 @@
22312244
};
22322245
};
22332246

2247+
thermal_zones: thermal-zones {
2248+
aoss0-thermal {
2249+
thermal-sensors = <&tsens0 0>;
2250+
2251+
trips {
2252+
trip-point0 {
2253+
temperature = <110000>;
2254+
hysteresis = <5000>;
2255+
type = "hot";
2256+
};
2257+
2258+
aoss0-critical {
2259+
temperature = <115000>;
2260+
hysteresis = <0>;
2261+
type = "critical";
2262+
};
2263+
};
2264+
};
2265+
2266+
cpu-0-0-thermal {
2267+
thermal-sensors = <&tsens0 1>;
2268+
2269+
trips {
2270+
trip-point0 {
2271+
temperature = <110000>;
2272+
hysteresis = <5000>;
2273+
type = "hot";
2274+
};
2275+
2276+
cpu00-critical {
2277+
temperature = <115000>;
2278+
hysteresis = <0>;
2279+
type = "critical";
2280+
};
2281+
};
2282+
};
2283+
2284+
cpu-0-1-thermal {
2285+
thermal-sensors = <&tsens0 2>;
2286+
2287+
trips {
2288+
trip-point0 {
2289+
temperature = <110000>;
2290+
hysteresis = <5000>;
2291+
type = "hot";
2292+
};
2293+
2294+
cpu01-critical {
2295+
temperature = <115000>;
2296+
hysteresis = <0>;
2297+
type = "critical";
2298+
};
2299+
};
2300+
};
2301+
2302+
cpu-1-0-thermal {
2303+
thermal-sensors = <&tsens0 3>;
2304+
2305+
trips {
2306+
trip-point0 {
2307+
temperature = <110000>;
2308+
hysteresis = <5000>;
2309+
type = "hot";
2310+
};
2311+
2312+
cpu10-critical {
2313+
temperature = <115000>;
2314+
hysteresis = <0>;
2315+
type = "critical";
2316+
};
2317+
};
2318+
};
2319+
2320+
cpu-1-1-thermal {
2321+
thermal-sensors = <&tsens0 4>;
2322+
2323+
trips {
2324+
trip-point0 {
2325+
temperature = <110000>;
2326+
hysteresis = <5000>;
2327+
type = "hot";
2328+
};
2329+
2330+
cpu11-critical {
2331+
temperature = <115000>;
2332+
hysteresis = <0>;
2333+
type = "critical";
2334+
};
2335+
};
2336+
};
2337+
2338+
cpuss0-thermal {
2339+
thermal-sensors = <&tsens0 5>;
2340+
2341+
trips {
2342+
trip-point0 {
2343+
temperature = <110000>;
2344+
hysteresis = <5000>;
2345+
type = "hot";
2346+
};
2347+
2348+
cpuss0-critical {
2349+
temperature = <115000>;
2350+
hysteresis = <0>;
2351+
type = "critical";
2352+
};
2353+
};
2354+
};
2355+
2356+
gpuss-thermal {
2357+
thermal-sensors = <&tsens0 6>;
2358+
2359+
trips {
2360+
trip-point0 {
2361+
temperature = <110000>;
2362+
hysteresis = <5000>;
2363+
type = "hot";
2364+
};
2365+
2366+
gpuss-critical {
2367+
temperature = <115000>;
2368+
hysteresis = <0>;
2369+
type = "critical";
2370+
};
2371+
};
2372+
};
2373+
2374+
nsp-thermal {
2375+
thermal-sensors = <&tsens0 7>;
2376+
2377+
trips {
2378+
trip-point0 {
2379+
temperature = <110000>;
2380+
hysteresis = <5000>;
2381+
type = "hot";
2382+
};
2383+
2384+
nsp-critical {
2385+
temperature = <115000>;
2386+
hysteresis = <0>;
2387+
type = "critical";
2388+
};
2389+
};
2390+
};
2391+
2392+
mdmss0-thermal {
2393+
thermal-sensors = <&tsens0 8>;
2394+
2395+
trips {
2396+
trip-point0 {
2397+
temperature = <110000>;
2398+
hysteresis = <5000>;
2399+
type = "hot";
2400+
};
2401+
2402+
mdmss0-critical {
2403+
temperature = <115000>;
2404+
hysteresis = <0>;
2405+
type = "critical";
2406+
};
2407+
};
2408+
};
2409+
2410+
mdmss1-thermal {
2411+
thermal-sensors = <&tsens0 9>;
2412+
2413+
trips {
2414+
trip-point0 {
2415+
temperature = <110000>;
2416+
hysteresis = <5000>;
2417+
type = "hot";
2418+
};
2419+
2420+
mdmss1-critical {
2421+
temperature = <115000>;
2422+
hysteresis = <0>;
2423+
type = "critical";
2424+
};
2425+
};
2426+
};
2427+
2428+
camera-thermal {
2429+
thermal-sensors = <&tsens0 10>;
2430+
2431+
trips {
2432+
trip-point0 {
2433+
temperature = <110000>;
2434+
hysteresis = <5000>;
2435+
type = "hot";
2436+
};
2437+
2438+
camera-critical {
2439+
temperature = <115000>;
2440+
hysteresis = <0>;
2441+
type = "critical";
2442+
};
2443+
};
2444+
};
2445+
2446+
video-thermal {
2447+
thermal-sensors = <&tsens0 11>;
2448+
2449+
trips {
2450+
trip-point0 {
2451+
temperature = <110000>;
2452+
hysteresis = <5000>;
2453+
type = "hot";
2454+
};
2455+
2456+
video-critical {
2457+
temperature = <115000>;
2458+
hysteresis = <0>;
2459+
type = "critical";
2460+
};
2461+
};
2462+
};
2463+
2464+
cpu-0-2-thermal {
2465+
thermal-sensors = <&tsens0 12>;
2466+
2467+
trips {
2468+
trip-point0 {
2469+
temperature = <110000>;
2470+
hysteresis = <5000>;
2471+
type = "hot";
2472+
};
2473+
2474+
cpu02-critical {
2475+
temperature = <115000>;
2476+
hysteresis = <0>;
2477+
type = "critical";
2478+
};
2479+
};
2480+
};
2481+
2482+
cpuss1-thermal {
2483+
thermal-sensors = <&tsens0 13>;
2484+
2485+
trips {
2486+
trip-point0 {
2487+
temperature = <110000>;
2488+
hysteresis = <5000>;
2489+
type = "hot";
2490+
};
2491+
2492+
cpuss1-critical {
2493+
temperature = <115000>;
2494+
hysteresis = <0>;
2495+
type = "critical";
2496+
};
2497+
};
2498+
};
2499+
};
2500+
22342501
timer {
22352502
compatible = "arm,armv8-timer";
22362503

0 commit comments

Comments
 (0)