xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm8450.dtsi (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1*d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2*d5b0e70fSEmmanuel Vadot/*
3*d5b0e70fSEmmanuel Vadot * Copyright (c) 2022, Linaro Limited
4*d5b0e70fSEmmanuel Vadot */
5*d5b0e70fSEmmanuel Vadot
6*d5b0e70fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
7*d5b0e70fSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
8*d5b0e70fSEmmanuel Vadot
9*d5b0e70fSEmmanuel Vadot/ {
10*d5b0e70fSEmmanuel Vadot	thermal-zones {
11*d5b0e70fSEmmanuel Vadot		pm8450-thermal {
12*d5b0e70fSEmmanuel Vadot			polling-delay-passive = <100>;
13*d5b0e70fSEmmanuel Vadot			polling-delay = <0>;
14*d5b0e70fSEmmanuel Vadot
15*d5b0e70fSEmmanuel Vadot			thermal-sensors = <&pm8450_temp_alarm>;
16*d5b0e70fSEmmanuel Vadot
17*d5b0e70fSEmmanuel Vadot			trips {
18*d5b0e70fSEmmanuel Vadot				trip0 {
19*d5b0e70fSEmmanuel Vadot					temperature = <95000>;
20*d5b0e70fSEmmanuel Vadot					hysteresis = <0>;
21*d5b0e70fSEmmanuel Vadot					type = "passive";
22*d5b0e70fSEmmanuel Vadot				};
23*d5b0e70fSEmmanuel Vadot
24*d5b0e70fSEmmanuel Vadot				trip1 {
25*d5b0e70fSEmmanuel Vadot					temperature = <115000>;
26*d5b0e70fSEmmanuel Vadot					hysteresis = <0>;
27*d5b0e70fSEmmanuel Vadot					type = "hot";
28*d5b0e70fSEmmanuel Vadot				};
29*d5b0e70fSEmmanuel Vadot			};
30*d5b0e70fSEmmanuel Vadot		};
31*d5b0e70fSEmmanuel Vadot	};
32*d5b0e70fSEmmanuel Vadot};
33*d5b0e70fSEmmanuel Vadot
34*d5b0e70fSEmmanuel Vadot
35*d5b0e70fSEmmanuel Vadot&spmi_bus {
36*d5b0e70fSEmmanuel Vadot	pm8450: pmic@7 {
37*d5b0e70fSEmmanuel Vadot		compatible = "qcom,pm8450", "qcom,spmi-pmic";
38*d5b0e70fSEmmanuel Vadot		reg = <0x7 SPMI_USID>;
39*d5b0e70fSEmmanuel Vadot		#address-cells = <1>;
40*d5b0e70fSEmmanuel Vadot		#size-cells = <0>;
41*d5b0e70fSEmmanuel Vadot
42*d5b0e70fSEmmanuel Vadot		pm8450_temp_alarm: temp-alarm@a00 {
43*d5b0e70fSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
44*d5b0e70fSEmmanuel Vadot			reg = <0xa00>;
45*d5b0e70fSEmmanuel Vadot			interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
46*d5b0e70fSEmmanuel Vadot			#thermal-sensor-cells = <0>;
47*d5b0e70fSEmmanuel Vadot		};
48*d5b0e70fSEmmanuel Vadot
49*d5b0e70fSEmmanuel Vadot		pm8450_gpios: gpio@8800 {
50*d5b0e70fSEmmanuel Vadot			compatible = "qcom,pm8450-gpio", "qcom,spmi-gpio";
51*d5b0e70fSEmmanuel Vadot			reg = <0x8800>;
52*d5b0e70fSEmmanuel Vadot			gpio-controller;
53*d5b0e70fSEmmanuel Vadot			gpio-ranges = <&pm8450_gpios 0 0 4>;
54*d5b0e70fSEmmanuel Vadot			#gpio-cells = <2>;
55*d5b0e70fSEmmanuel Vadot			interrupt-controller;
56*d5b0e70fSEmmanuel Vadot			#interrupt-cells = <2>;
57*d5b0e70fSEmmanuel Vadot		};
58*d5b0e70fSEmmanuel Vadot	};
59*d5b0e70fSEmmanuel Vadot};
60