xref: /linux/arch/arm64/boot/dts/qcom/pm7550ba.dtsi (revision 8e07e0e3964ca4e23ce7b68e2096fe660a888942)
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		pm7550ba-thermal {
12			polling-delay-passive = <100>;
13			polling-delay = <0>;
14
15			thermal-sensors = <&pm7550ba_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	pm7550ba: pmic@7 {
42		compatible = "qcom,pm7550ba", "qcom,spmi-pmic";
43		reg = <7 SPMI_USID>;
44		#address-cells = <1>;
45		#size-cells = <0>;
46
47		pm7550ba_temp_alarm: temp-alarm@a00 {
48			compatible = "qcom,spmi-temp-alarm";
49			reg = <0xa00>;
50			interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
51			#thermal-sensor-cells = <0>;
52		};
53
54		pm7550ba_gpios: gpio@8800 {
55			compatible = "qcom,pm7550ba-gpio", "qcom,spmi-gpio";
56			reg = <0x8800>;
57			gpio-controller;
58			gpio-ranges = <&pm7550ba_gpios 0 0 8>;
59			#gpio-cells = <2>;
60			interrupt-controller;
61			#interrupt-cells = <2>;
62		};
63
64		pm7550ba_eusb2_repeater: phy@fd00 {
65			compatible = "qcom,pm7550ba-eusb2-repeater", "qcom,pm8550b-eusb2-repeater";
66			reg = <0xfd00>;
67			#phy-cells = <0>;
68		};
69	};
70};
71