]>
Commit | Line | Data |
---|---|---|
46fb5280 JS |
1 | #include "qcom-apq8064-v2.0.dtsi" |
2 | #include <dt-bindings/gpio/gpio.h> | |
3 | #include <dt-bindings/input/input.h> | |
4 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> | |
5 | / { | |
6 | model = "Asus Nexus7(flo)"; | |
7 | compatible = "asus,nexus7-flo", "qcom,apq8064"; | |
8 | ||
9 | aliases { | |
10 | serial0 = &gsbi7_serial; | |
11 | serial1 = &gsbi6_serial; | |
12 | }; | |
13 | ||
14 | chosen { | |
15 | stdout-path = "serial0:115200n8"; | |
16 | }; | |
17 | ||
663286e7 JS |
18 | reserved-memory { |
19 | #address-cells = <1>; | |
20 | #size-cells = <1>; | |
21 | ranges; | |
22 | ||
23 | ramoops@88d00000{ | |
24 | compatible = "ramoops"; | |
25 | reg = <0x88d00000 0x100000>; | |
26 | record-size = <0x00020000>; | |
27 | console-size = <0x00020000>; | |
28 | ftrace-size = <0x00020000>; | |
29 | }; | |
30 | }; | |
31 | ||
46fb5280 JS |
32 | ext_3p3v: regulator-fixed@1 { |
33 | compatible = "regulator-fixed"; | |
34 | regulator-min-microvolt = <3300000>; | |
35 | regulator-max-microvolt = <3300000>; | |
36 | regulator-name = "ext_3p3v"; | |
37 | regulator-type = "voltage"; | |
38 | startup-delay-us = <0>; | |
39 | gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>; | |
40 | enable-active-high; | |
41 | regulator-boot-on; | |
42 | }; | |
43 | ||
44 | gpio-keys { | |
45 | compatible = "gpio-keys"; | |
46fb5280 JS |
46 | volume_up { |
47 | label = "Volume Up"; | |
48 | gpios = <&pm8921_gpio 4 GPIO_ACTIVE_HIGH>; | |
49 | linux,code = <KEY_VOLUMEUP>; | |
50 | }; | |
51 | volume_down { | |
52 | label = "Volume Down"; | |
53 | gpios = <&pm8921_gpio 38 GPIO_ACTIVE_HIGH>; | |
54 | linux,code = <KEY_VOLUMEDOWN>; | |
55 | }; | |
56 | }; | |
57 | ||
58 | soc { | |
59 | rpm@108000 { | |
60 | regulators { | |
61 | vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; | |
62 | vin_lvs1_3_6-supply = <&pm8921_s4>; | |
63 | vin_lvs4_5_7-supply = <&pm8921_s4>; | |
64 | ||
65 | ||
66 | vdd_l24-supply = <&pm8921_s1>; | |
67 | vdd_l25-supply = <&pm8921_s1>; | |
68 | vin_lvs2-supply = <&pm8921_s1>; | |
69 | ||
70 | vdd_l26-supply = <&pm8921_s7>; | |
71 | vdd_l27-supply = <&pm8921_s7>; | |
72 | vdd_l28-supply = <&pm8921_s7>; | |
73 | ||
74 | vdd_ncp-supply = <&pm8921_l6>; | |
75 | ||
76 | /* Buck SMPS */ | |
77 | s1 { | |
78 | regulator-always-on; | |
79 | regulator-min-microvolt = <1225000>; | |
80 | regulator-max-microvolt = <1225000>; | |
81 | qcom,switch-mode-frequency = <3200000>; | |
82 | bias-pull-down; | |
83 | }; | |
84 | ||
85 | /* msm otg HSUSB_VDDCX */ | |
86 | s3 { | |
87 | regulator-min-microvolt = <500000>; | |
88 | regulator-max-microvolt = <1150000>; | |
89 | qcom,switch-mode-frequency = <4800000>; | |
90 | }; | |
91 | ||
92 | /* | |
93 | * msm_sdcc.1-sdc-vdd_io | |
94 | * tabla2x-slim-CDC_VDDA_RX | |
95 | * tabla2x-slim-CDC_VDDA_TX | |
96 | * tabla2x-slim-CDC_VDD_CP | |
97 | * tabla2x-slim-VDDIO_CDC | |
98 | */ | |
99 | s4 { | |
100 | regulator-min-microvolt = <1800000>; | |
101 | regulator-max-microvolt = <1800000>; | |
102 | qcom,switch-mode-frequency = <3200000>; | |
103 | regulator-always-on; | |
104 | }; | |
105 | ||
106 | s7 { | |
107 | regulator-min-microvolt = <1300000>; | |
108 | regulator-max-microvolt = <1300000>; | |
109 | qcom,switch-mode-frequency = <3200000>; | |
110 | }; | |
111 | ||
112 | /* mipi_dsi.1-dsi1_pll_vdda */ | |
113 | l2 { | |
114 | regulator-min-microvolt = <1200000>; | |
115 | regulator-max-microvolt = <1200000>; | |
a3e6e13a | 116 | regulator-always-on; |
46fb5280 JS |
117 | }; |
118 | ||
119 | /* msm_otg-HSUSB_3p3 */ | |
120 | l3 { | |
121 | regulator-min-microvolt = <3075000>; | |
122 | regulator-max-microvolt = <3075000>; | |
123 | bias-pull-down; | |
124 | }; | |
125 | ||
126 | /* msm_otg-HSUSB_1p8 */ | |
127 | l4 { | |
128 | regulator-min-microvolt = <1800000>; | |
129 | regulator-max-microvolt = <1800000>; | |
130 | bias-pull-down; | |
131 | }; | |
132 | ||
133 | /* msm_sdcc.1-sdc_vdd */ | |
134 | l5 { | |
135 | regulator-min-microvolt = <2950000>; | |
136 | regulator-max-microvolt = <2950000>; | |
137 | regulator-always-on; | |
138 | bias-pull-down; | |
139 | }; | |
140 | ||
141 | l6 { | |
142 | regulator-min-microvolt = <2950000>; | |
143 | regulator-max-microvolt = <2950000>; | |
144 | }; | |
145 | ||
146 | /* mipi_dsi.1-dsi1_avdd */ | |
147 | l11 { | |
148 | regulator-min-microvolt = <3000000>; | |
149 | regulator-max-microvolt = <3000000>; | |
150 | bias-pull-down; | |
a3e6e13a | 151 | regulator-always-on; |
46fb5280 JS |
152 | }; |
153 | ||
154 | /* pwm_power for backlight */ | |
155 | l17 { | |
156 | regulator-min-microvolt = <3000000>; | |
a3e6e13a JS |
157 | regulator-max-microvolt = <3000000>; |
158 | regulator-always-on; | |
46fb5280 JS |
159 | }; |
160 | ||
161 | /* camera, qdsp6 */ | |
162 | l23 { | |
163 | regulator-min-microvolt = <1800000>; | |
164 | regulator-max-microvolt = <1800000>; | |
165 | bias-pull-down; | |
166 | }; | |
167 | ||
168 | /* | |
169 | * tabla2x-slim-CDC_VDDA_A_1P2V | |
170 | * tabla2x-slim-VDDD_CDC_D | |
171 | */ | |
172 | l25 { | |
173 | regulator-min-microvolt = <1250000>; | |
174 | regulator-max-microvolt = <1250000>; | |
175 | bias-pull-down; | |
176 | }; | |
177 | ||
178 | lvs1 { | |
179 | bias-pull-down; | |
180 | }; | |
181 | ||
182 | lvs4 { | |
183 | bias-pull-down; | |
184 | }; | |
185 | ||
186 | lvs5 { | |
187 | bias-pull-down; | |
188 | }; | |
189 | ||
190 | lvs6 { | |
191 | bias-pull-down; | |
192 | }; | |
193 | /* | |
194 | * mipi_dsi.1-dsi1_vddio | |
195 | * pil_riva-pll_vdd | |
196 | */ | |
197 | lvs7 { | |
198 | bias-pull-down; | |
199 | }; | |
200 | }; | |
201 | }; | |
202 | ||
a3e6e13a JS |
203 | mdp@5100000 { |
204 | status = "okay"; | |
205 | ports { | |
206 | port@1 { | |
207 | mdp_dsi1_out: endpoint { | |
208 | remote-endpoint = <&dsi0_in>; | |
209 | }; | |
210 | }; | |
211 | }; | |
212 | }; | |
213 | ||
214 | dsi0: mdss_dsi@4700000 { | |
215 | status = "okay"; | |
216 | vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 to 4*/ | |
217 | vdd-supply = <&pm8921_l8>; | |
218 | vddio-supply = <&pm8921_lvs7>; | |
219 | avdd-supply = <&pm8921_l11>; | |
220 | vcss-supply = <&ext_3p3v>; | |
221 | ||
222 | panel@0 { | |
223 | reg = <0>; | |
224 | compatible = "jdi,lt070me05000"; | |
225 | ||
226 | vddp-supply = <&pm8921_l17>; | |
227 | iovcc-supply = <&pm8921_lvs7>; | |
228 | ||
229 | enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; | |
230 | reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; | |
231 | dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>; | |
232 | ||
233 | port { | |
234 | panel_in: endpoint { | |
235 | remote-endpoint = <&dsi0_out>; | |
236 | }; | |
237 | }; | |
238 | }; | |
239 | ports { | |
240 | port@0 { | |
241 | dsi0_in: endpoint { | |
242 | remote-endpoint = <&mdp_dsi1_out>; | |
243 | }; | |
244 | }; | |
245 | ||
246 | port@1 { | |
247 | dsi0_out: endpoint { | |
248 | remote-endpoint = <&panel_in>; | |
249 | data-lanes = <0 1 2 3>; | |
250 | }; | |
251 | }; | |
252 | }; | |
253 | }; | |
254 | ||
255 | dsi-phy@4700200 { | |
256 | status = "okay"; | |
257 | vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/ | |
258 | }; | |
259 | ||
46fb5280 JS |
260 | gsbi@16200000 { |
261 | status = "okay"; | |
262 | qcom,mode = <GSBI_PROT_I2C>; | |
263 | i2c@16280000 { | |
264 | status = "okay"; | |
265 | clock-frequency = <200000>; | |
266 | pinctrl-0 = <&i2c3_pins>; | |
267 | pinctrl-names = "default"; | |
268 | ||
269 | trackpad@10 { | |
270 | compatible = "elan,ekth3500"; | |
271 | reg = <0x10>; | |
272 | interrupt-parent = <&tlmm_pinmux>; | |
273 | interrupts = <6 IRQ_TYPE_EDGE_FALLING>; | |
274 | }; | |
275 | }; | |
276 | }; | |
277 | ||
278 | ||
279 | gsbi@12440000 { | |
280 | status = "okay"; | |
281 | qcom,mode = <GSBI_PROT_I2C>; | |
282 | ||
283 | i2c@12460000 { | |
284 | status = "okay"; | |
285 | clock-frequency = <200000>; | |
286 | pinctrl-0 = <&i2c1_pins>; | |
287 | pinctrl-names = "default"; | |
288 | ||
289 | eeprom@52 { | |
290 | compatible = "atmel,24c128"; | |
291 | reg = <0x52>; | |
292 | pagesize = <32>; | |
293 | }; | |
3db63602 JS |
294 | |
295 | bq27541@55 { | |
296 | compatible = "ti,bq27541"; | |
297 | reg = <0x55>; | |
298 | }; | |
299 | ||
46fb5280 JS |
300 | }; |
301 | }; | |
302 | ||
303 | gsbi@16500000 { | |
304 | status = "ok"; | |
305 | qcom,mode = <GSBI_PROT_I2C_UART>; | |
306 | ||
307 | serial@16540000 { | |
308 | status = "ok"; | |
309 | ||
310 | pinctrl-names = "default"; | |
311 | pinctrl-0 = <&gsbi6_uart_4pins>; | |
312 | }; | |
313 | }; | |
314 | ||
315 | gsbi@16600000 { | |
316 | status = "ok"; | |
317 | qcom,mode = <GSBI_PROT_I2C_UART>; | |
318 | serial@16640000 { | |
319 | status = "ok"; | |
320 | }; | |
321 | }; | |
322 | ||
323 | /* OTG */ | |
324 | phy@12500000 { | |
325 | status = "okay"; | |
326 | vddcx-supply = <&pm8921_s3>; | |
327 | v3p3-supply = <&pm8921_l3>; | |
328 | v1p8-supply = <&pm8921_l4>; | |
ec5200bb | 329 | dr_mode = "otg"; |
46fb5280 JS |
330 | }; |
331 | ||
332 | gadget@12500000 { | |
333 | status = "okay"; | |
334 | }; | |
335 | ||
336 | /* OTG */ | |
337 | usb@12500000 { | |
338 | status = "okay"; | |
339 | }; | |
340 | ||
341 | amba { | |
342 | /* eMMC */ | |
343 | sdcc@12400000 { | |
344 | status = "okay"; | |
345 | vmmc-supply = <&pm8921_l5>; | |
346 | vqmmc-supply = <&pm8921_s4>; | |
347 | }; | |
348 | }; | |
c03a4b24 JS |
349 | |
350 | imem@2a03f000 { | |
351 | compatible = "syscon", "simple-mfd"; | |
352 | reg = <0x2a03f000 0x1000>; | |
353 | ||
354 | reboot-mode { | |
355 | compatible = "syscon-reboot-mode"; | |
356 | offset = <0x65c>; | |
357 | ||
358 | mode-normal = <0x77665501>; | |
359 | mode-bootloader = <0x77665500>; | |
360 | mode-recovery = <0x77665502>; | |
361 | }; | |
362 | }; | |
46fb5280 JS |
363 | }; |
364 | }; |