Skip to content

Commit 5f78e80

Browse files
RohitAgarwalQUICandersson
authored andcommitted
arm64: dts: qcom: Add pm7550ba PMIC dtsi
Add dtsi for pm7550ba PMIC found in Qualcomm platforms. Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com> Link: https://lore.kernel.org/r/1691415534-31820-5-git-send-email-quic_rohiagar@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent e99a7a0 commit 5f78e80

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
};

0 commit comments

Comments
 (0)