-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpm8005.dtsi
100 lines (89 loc) · 2.05 KB
/
pm8005.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*/
#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/interrupt-controller/irq.h>
&spmi_bus {
qcom,pm8005@4 {
compatible = "qcom,spmi-pmic";
reg = <0x4 SPMI_USID>;
#address-cells = <2>;
#size-cells = <0>;
pm8005_revid: qcom,revid@100 {
compatible = "qcom,qpnp-revid";
reg = <0x100 0x100>;
};
pm8005_tz: qcom,temp-alarm@2400 {
compatible = "qcom,qpnp-temp-alarm";
reg = <0x2400 0x100>;
interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
label = "pm8005_tz";
#thermal-sensor-cells = <0>;
};
pm8005_gpios: pinctrl@c000 {
compatible = "qcom,spmi-gpio";
reg = <0xc000 0x400>;
interrupts = <0x4 0xc0 0 IRQ_TYPE_NONE>,
<0x4 0xc1 0 IRQ_TYPE_NONE>;
interrupt-names = "pm8005_gpio1", "pm8005_gpio2";
gpio-controller;
#gpio-cells = <2>;
qcom,gpios-disallowed = <3 4>;
};
};
qcom,pm8005@5 {
compatible ="qcom,spmi-pmic";
reg = <0x5 SPMI_USID>;
#address-cells = <2>;
#size-cells = <0>;
regulator@1400 {
compatible = "qcom,qpnp-regulator";
reg = <0x1400 0x100>;
regulator-name = "pm8005_s1";
status = "disabled";
};
regulator@1700 {
compatible = "qcom,qpnp-regulator";
reg = <0x1700 0x100>;
regulator-name = "pm8005_s2";
status = "disabled";
};
regulator@1a00 {
compatible = "qcom,qpnp-regulator";
reg = <0x1a00 0x100>;
regulator-name = "pm8005_s3";
status = "disabled";
};
regulator@1d00 {
compatible = "qcom,qpnp-regulator";
reg = <0x1d00 0x100>;
regulator-name = "pm8005_s4";
status = "disabled";
};
};
};
&thermal_zones {
pm8005_tz {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm8005_tz>;
trips {
pm8005-trip0 {
temperature = <105000>;
hysteresis = <0>;
type = "passive";
};
pm8005-trip1 {
temperature = <125000>;
hysteresis = <0>;
type = "passive";
};
pm8005-trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "passive";
};
};
};
};