Commit | Line | Data |
---|---|---|
71b5235a | 1 | #include "qcom-msm8974.dtsi" |
c9127893 II |
2 | #include "qcom-pm8841.dtsi" |
3 | #include "qcom-pm8941.dtsi" | |
0c808ab5 BA |
4 | #include <dt-bindings/gpio/gpio.h> |
5 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> | |
71b5235a TB |
6 | |
7 | / { | |
8 | model = "Sony Xperia Z1"; | |
9 | compatible = "sony,xperia-honami", "qcom,msm8974"; | |
10 | ||
8f1dc3cf SB |
11 | aliases { |
12 | serial0 = &blsp1_uart2; | |
13 | }; | |
14 | ||
15 | chosen { | |
16 | stdout-path = "serial0:115200n8"; | |
17 | }; | |
18 | ||
71b5235a TB |
19 | memory@0 { |
20 | reg = <0 0x40000000>, <0x40000000 0x40000000>; | |
21 | device_type = "memory"; | |
22 | }; | |
0c808ab5 BA |
23 | |
24 | smd { | |
25 | rpm { | |
26 | rpm_requests { | |
27 | pm8841-regulators { | |
28 | s1 { | |
29 | regulator-min-microvolt = <675000>; | |
30 | regulator-max-microvolt = <1050000>; | |
31 | }; | |
32 | ||
33 | s2 { | |
34 | regulator-min-microvolt = <500000>; | |
35 | regulator-max-microvolt = <1050000>; | |
36 | }; | |
37 | ||
38 | s3 { | |
39 | regulator-min-microvolt = <500000>; | |
40 | regulator-max-microvolt = <1050000>; | |
41 | }; | |
42 | ||
43 | s4 { | |
44 | regulator-min-microvolt = <500000>; | |
45 | regulator-max-microvolt = <1050000>; | |
46 | }; | |
47 | }; | |
48 | ||
49 | pm8941-regulators { | |
50 | vdd_l1_l3-supply = <&pm8941_s1>; | |
51 | vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; | |
52 | vdd_l4_l11-supply = <&pm8941_s1>; | |
53 | vdd_l5_l7-supply = <&pm8941_s2>; | |
54 | vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; | |
55 | vdd_l9_l10_l17_l22-supply = <&vreg_boost>; | |
56 | vdd_l13_l20_l23_l24-supply = <&vreg_boost>; | |
57 | vdd_l21-supply = <&vreg_boost>; | |
58 | vin_5vs-supply = <&pm8941_5v>; | |
59 | ||
60 | s1 { | |
61 | regulator-min-microvolt = <1300000>; | |
62 | regulator-max-microvolt = <1300000>; | |
63 | regulator-always-on; | |
64 | regulator-boot-on; | |
65 | }; | |
66 | ||
67 | s2 { | |
68 | regulator-min-microvolt = <2150000>; | |
69 | regulator-max-microvolt = <2150000>; | |
70 | regulator-boot-on; | |
71 | }; | |
72 | ||
73 | s3 { | |
74 | regulator-min-microvolt = <1800000>; | |
75 | regulator-max-microvolt = <1800000>; | |
76 | regulator-always-on; | |
77 | regulator-boot-on; | |
78 | }; | |
79 | ||
80 | s4 { | |
81 | regulator-min-microvolt = <5000000>; | |
82 | regulator-max-microvolt = <5000000>; | |
83 | }; | |
84 | ||
85 | l1 { | |
86 | regulator-min-microvolt = <1225000>; | |
87 | regulator-max-microvolt = <1225000>; | |
88 | ||
89 | regulator-always-on; | |
90 | regulator-boot-on; | |
91 | }; | |
92 | ||
93 | l2 { | |
94 | regulator-min-microvolt = <1200000>; | |
95 | regulator-max-microvolt = <1200000>; | |
96 | }; | |
97 | ||
98 | l3 { | |
99 | regulator-min-microvolt = <1200000>; | |
100 | regulator-max-microvolt = <1200000>; | |
101 | }; | |
102 | ||
103 | l4 { | |
104 | regulator-min-microvolt = <1225000>; | |
105 | regulator-max-microvolt = <1225000>; | |
106 | }; | |
107 | ||
108 | l5 { | |
109 | regulator-min-microvolt = <1800000>; | |
110 | regulator-max-microvolt = <1800000>; | |
111 | }; | |
112 | ||
113 | l6 { | |
114 | regulator-min-microvolt = <1800000>; | |
115 | regulator-max-microvolt = <1800000>; | |
116 | ||
117 | regulator-boot-on; | |
118 | }; | |
119 | ||
120 | l7 { | |
121 | regulator-min-microvolt = <1800000>; | |
122 | regulator-max-microvolt = <1800000>; | |
123 | ||
124 | regulator-boot-on; | |
125 | }; | |
126 | ||
127 | l8 { | |
128 | regulator-min-microvolt = <1800000>; | |
129 | regulator-max-microvolt = <1800000>; | |
130 | }; | |
131 | ||
132 | l9 { | |
133 | regulator-min-microvolt = <1800000>; | |
134 | regulator-max-microvolt = <2950000>; | |
135 | }; | |
136 | ||
137 | l11 { | |
138 | regulator-min-microvolt = <1300000>; | |
139 | regulator-max-microvolt = <1350000>; | |
140 | }; | |
141 | ||
142 | l12 { | |
143 | regulator-min-microvolt = <1800000>; | |
144 | regulator-max-microvolt = <1800000>; | |
145 | ||
146 | regulator-always-on; | |
147 | regulator-boot-on; | |
148 | }; | |
149 | ||
150 | l13 { | |
151 | regulator-min-microvolt = <1800000>; | |
152 | regulator-max-microvolt = <2950000>; | |
153 | ||
154 | regulator-boot-on; | |
155 | }; | |
156 | ||
157 | l14 { | |
158 | regulator-min-microvolt = <1800000>; | |
159 | regulator-max-microvolt = <1800000>; | |
160 | }; | |
161 | ||
162 | l15 { | |
163 | regulator-min-microvolt = <2050000>; | |
164 | regulator-max-microvolt = <2050000>; | |
165 | }; | |
166 | ||
167 | l16 { | |
168 | regulator-min-microvolt = <2700000>; | |
169 | regulator-max-microvolt = <2700000>; | |
170 | }; | |
171 | ||
172 | l17 { | |
173 | regulator-min-microvolt = <2700000>; | |
174 | regulator-max-microvolt = <2700000>; | |
175 | }; | |
176 | ||
177 | l18 { | |
178 | regulator-min-microvolt = <2850000>; | |
179 | regulator-max-microvolt = <2850000>; | |
180 | }; | |
181 | ||
182 | l19 { | |
183 | regulator-min-microvolt = <3300000>; | |
184 | regulator-max-microvolt = <3300000>; | |
185 | }; | |
186 | ||
187 | l20 { | |
188 | regulator-min-microvolt = <2950000>; | |
189 | regulator-max-microvolt = <2950000>; | |
190 | ||
191 | regulator-allow-set-load; | |
192 | regulator-boot-on; | |
193 | regulator-system-load = <200000>; | |
194 | }; | |
195 | ||
196 | l21 { | |
197 | regulator-min-microvolt = <2950000>; | |
198 | regulator-max-microvolt = <2950000>; | |
199 | ||
200 | regulator-boot-on; | |
201 | }; | |
202 | ||
203 | l22 { | |
204 | regulator-min-microvolt = <3000000>; | |
205 | regulator-max-microvolt = <3000000>; | |
206 | }; | |
207 | ||
208 | l23 { | |
209 | regulator-min-microvolt = <2800000>; | |
210 | regulator-max-microvolt = <2800000>; | |
211 | }; | |
212 | ||
213 | l24 { | |
214 | regulator-min-microvolt = <3075000>; | |
215 | regulator-max-microvolt = <3075000>; | |
216 | ||
217 | regulator-boot-on; | |
218 | }; | |
219 | }; | |
220 | }; | |
221 | }; | |
222 | }; | |
223 | ||
224 | vreg_boost: vreg-boost { | |
225 | compatible = "regulator-fixed"; | |
226 | ||
227 | regulator-name = "vreg-boost"; | |
228 | regulator-min-microvolt = <3150000>; | |
229 | regulator-max-microvolt = <3150000>; | |
230 | ||
231 | regulator-always-on; | |
232 | regulator-boot-on; | |
233 | ||
234 | gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; | |
235 | enable-active-high; | |
236 | ||
237 | pinctrl-names = "default"; | |
238 | pinctrl-0 = <&boost_bypass_n_pin>; | |
239 | }; | |
71b5235a TB |
240 | }; |
241 | ||
242 | &soc { | |
243 | serial@f991e000 { | |
244 | status = "ok"; | |
c2e1445c BA |
245 | |
246 | pinctrl-names = "default"; | |
247 | pinctrl-0 = <&blsp1_uart2_pin_a>; | |
248 | }; | |
249 | ||
250 | pinctrl@fd510000 { | |
251 | blsp1_uart2_pin_a: blsp1-uart2-pin-active { | |
252 | rx { | |
253 | pins = "gpio5"; | |
254 | function = "blsp_uart2"; | |
255 | ||
256 | drive-strength = <2>; | |
257 | bias-pull-up; | |
258 | }; | |
259 | ||
260 | tx { | |
261 | pins = "gpio4"; | |
262 | function = "blsp_uart2"; | |
263 | ||
264 | drive-strength = <4>; | |
265 | bias-disable; | |
266 | }; | |
267 | }; | |
71b5235a TB |
268 | }; |
269 | }; | |
ccf97fe3 TB |
270 | |
271 | &spmi_bus { | |
272 | pm8941@0 { | |
0c808ab5 BA |
273 | gpios@c000 { |
274 | boost_bypass_n_pin: boost-bypass { | |
275 | pins = "gpio21"; | |
276 | function = "normal"; | |
277 | }; | |
278 | }; | |
279 | ||
ccf97fe3 TB |
280 | coincell@2800 { |
281 | status = "ok"; | |
282 | qcom,rset-ohms = <2100>; | |
283 | qcom,vset-millivolts = <3000>; | |
284 | }; | |
285 | }; | |
286 | }; |