xref: /freebsd-src/sys/contrib/device-tree/src/arm/qcom/qcom-pm8841.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
3*f126890aSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	thermal-zones {
8*f126890aSEmmanuel Vadot		pm8841-thermal {
9*f126890aSEmmanuel Vadot			polling-delay-passive = <100>;
10*f126890aSEmmanuel Vadot			polling-delay = <0>;
11*f126890aSEmmanuel Vadot			thermal-sensors = <&pm8841_temp>;
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot			trips {
14*f126890aSEmmanuel Vadot				trip0 {
15*f126890aSEmmanuel Vadot					temperature = <105000>;
16*f126890aSEmmanuel Vadot					hysteresis = <2000>;
17*f126890aSEmmanuel Vadot					type = "passive";
18*f126890aSEmmanuel Vadot				};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot				trip1 {
21*f126890aSEmmanuel Vadot					temperature = <125000>;
22*f126890aSEmmanuel Vadot					hysteresis = <2000>;
23*f126890aSEmmanuel Vadot					type = "hot";
24*f126890aSEmmanuel Vadot				};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot				crit {
27*f126890aSEmmanuel Vadot					temperature = <140000>;
28*f126890aSEmmanuel Vadot					hysteresis = <2000>;
29*f126890aSEmmanuel Vadot					type = "critical";
30*f126890aSEmmanuel Vadot				};
31*f126890aSEmmanuel Vadot			};
32*f126890aSEmmanuel Vadot		};
33*f126890aSEmmanuel Vadot	};
34*f126890aSEmmanuel Vadot};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot&spmi_bus {
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot	pm8841_0: pm8841@4 {
39*f126890aSEmmanuel Vadot		compatible = "qcom,pm8841", "qcom,spmi-pmic";
40*f126890aSEmmanuel Vadot		reg = <0x4 SPMI_USID>;
41*f126890aSEmmanuel Vadot		#address-cells = <1>;
42*f126890aSEmmanuel Vadot		#size-cells = <0>;
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot		pm8841_mpps: mpps@a000 {
45*f126890aSEmmanuel Vadot			compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
46*f126890aSEmmanuel Vadot			reg = <0xa000>;
47*f126890aSEmmanuel Vadot			gpio-controller;
48*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
49*f126890aSEmmanuel Vadot			gpio-ranges = <&pm8841_mpps 0 0 4>;
50*f126890aSEmmanuel Vadot			interrupt-controller;
51*f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
52*f126890aSEmmanuel Vadot		};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot		pm8841_temp: temp-alarm@2400 {
55*f126890aSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
56*f126890aSEmmanuel Vadot			reg = <0x2400>;
57*f126890aSEmmanuel Vadot			interrupts = <4 0x24 0 IRQ_TYPE_EDGE_RISING>;
58*f126890aSEmmanuel Vadot			#thermal-sensor-cells = <0>;
59*f126890aSEmmanuel Vadot		};
60*f126890aSEmmanuel Vadot	};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot	pm8841_1: pm8841@5 {
63*f126890aSEmmanuel Vadot		compatible = "qcom,pm8841", "qcom,spmi-pmic";
64*f126890aSEmmanuel Vadot		reg = <0x5 SPMI_USID>;
65*f126890aSEmmanuel Vadot		#address-cells = <1>;
66*f126890aSEmmanuel Vadot		#size-cells = <0>;
67*f126890aSEmmanuel Vadot	};
68*f126890aSEmmanuel Vadot};
69