xref: /linux/arch/arm64/boot/dts/qcom/pmx75.dtsi (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4 */
5
6#include <dt-bindings/interrupt-controller/irq.h>
7#include <dt-bindings/spmi/spmi.h>
8
9/ {
10	thermal-zones {
11		pmx75-thermal {
12			polling-delay-passive = <100>;
13			polling-delay = <0>;
14
15			thermal-sensors = <&pmx75_temp_alarm>;
16
17			trips {
18				trip0 {
19					temperature = <95000>;
20					hysteresis = <0>;
21					type = "passive";
22				};
23
24				trip1 {
25					temperature = <115000>;
26					hysteresis = <0>;
27					type = "hot";
28				};
29
30				trip2 {
31					temperature = <145000>;
32					hysteresis = <0>;
33					type = "critical";
34				};
35			};
36		};
37	};
38};
39
40&spmi_bus {
41	pmx75: pmic@1 {
42		compatible = "qcom,pmx75", "qcom,spmi-pmic";
43		reg = <1 SPMI_USID>;
44		#address-cells = <1>;
45		#size-cells = <0>;
46
47		pmx75_temp_alarm: temp-alarm@a00 {
48			compatible = "qcom,spmi-temp-alarm";
49			reg = <0xa00>;
50			interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
51			#thermal-sensor-cells = <0>;
52		};
53
54		pmx75_gpios: gpio@8800 {
55			compatible = "qcom,pmx75-gpio", "qcom,spmi-gpio";
56			reg = <0x8800>;
57			gpio-controller;
58			gpio-ranges = <&pmx75_gpios 0 0 16>;
59			#gpio-cells = <2>;
60			interrupt-controller;
61			#interrupt-cells = <2>;
62		};
63	};
64};
65