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