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