]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
91e497adb5bb3fd83441571d2e72aff23ed5269c
[karo-tx-linux.git] / arch / arm / boot / dts / qcom-apq8064-ifc6410.dts
1 #include "qcom-apq8064-v2.0.dtsi"
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
4
5 / {
6         model = "Qualcomm APQ8064/IFC6410";
7         compatible = "qcom,apq8064-ifc6410", "qcom,apq8064";
8
9         aliases {
10                 serial0 = &gsbi7_serial;
11                 serial1 = &gsbi6_serial;
12         };
13
14         chosen {
15                 stdout-path = "serial0:115200n8";
16         };
17
18         pwrseq {
19                 compatible = "simple-bus";
20
21                 sdcc4_pwrseq: sdcc4_pwrseq {
22                         pinctrl-names = "default";
23                         pinctrl-0 = <&wlan_default_gpios &bt_gpios>;
24                         compatible = "mmc-pwrseq-simple";
25                         reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>,
26                                       <&pm8921_gpio 44 GPIO_ACTIVE_LOW>;
27                 };
28         };
29
30         leds {
31                 compatible = "gpio-leds";
32                 pinctrl-names = "default";
33                 pinctrl-0 = <&notify_led>;
34
35                 led@1 {
36                         label = "apq8064:green:user1";
37                         gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>;
38                         default-state = "on";
39                 };
40         };
41
42         soc {
43                 pinctrl@800000 {
44                         card_detect: card_detect {
45                                 mux {
46                                         pins = "gpio26";
47                                         function = "gpio";
48                                         bias-disable;
49                                 };
50                         };
51
52                         pcie_pins: pcie_pinmux {
53                                 mux {
54                                         pins = "gpio27";
55                                         function = "gpio";
56                                 };
57                                 conf {
58                                         pins = "gpio27";
59                                         drive-strength = <12>;
60                                         bias-disable;
61                                 };
62                         };
63                 };
64
65                 rpm@108000 {
66                         regulators {
67                                 vin_lvs1_3_6-supply = <&pm8921_s4>;
68                                 vin_lvs2-supply = <&pm8921_s1>;
69                                 vin_lvs4_5_7-supply = <&pm8921_s4>;
70
71                                 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
72                                 vdd_l24-supply = <&pm8921_s1>;
73                                 vdd_l25-supply = <&pm8921_s1>;
74                                 vdd_l26-supply = <&pm8921_s7>;
75                                 vdd_l27-supply = <&pm8921_s7>;
76                                 vdd_l28-supply = <&pm8921_s7>;
77
78
79                                 /* Buck SMPS */
80                                 s1 {
81                                         regulator-always-on;
82                                         regulator-min-microvolt = <1225000>;
83                                         regulator-max-microvolt = <1225000>;
84                                         qcom,switch-mode-frequency = <3200000>;
85                                         bias-pull-down;
86                                 };
87
88                                 s3 {
89                                         regulator-min-microvolt = <1000000>;
90                                         regulator-max-microvolt = <1400000>;
91                                         qcom,switch-mode-frequency = <4800000>;
92                                 };
93
94                                 s4 {
95                                         regulator-min-microvolt = <1800000>;
96                                         regulator-max-microvolt = <1800000>;
97                                         qcom,switch-mode-frequency = <3200000>;
98                                 };
99
100                                 s7 {
101                                         regulator-min-microvolt = <1300000>;
102                                         regulator-max-microvolt = <1300000>;
103                                         qcom,switch-mode-frequency = <3200000>;
104                                 };
105
106                                 l2 {
107                                         regulator-min-microvolt = <1200000>;
108                                         regulator-max-microvolt = <1200000>;
109                                         bias-pull-down;
110                                 };
111
112                                 l3 {
113                                         regulator-min-microvolt = <3050000>;
114                                         regulator-max-microvolt = <3300000>;
115                                         bias-pull-down;
116                                 };
117
118                                 l4 {
119                                         regulator-min-microvolt = <1000000>;
120                                         regulator-max-microvolt = <1800000>;
121                                         bias-pull-down;
122                                 };
123
124                                 l5 {
125                                         regulator-min-microvolt = <2750000>;
126                                         regulator-max-microvolt = <3000000>;
127                                         bias-pull-down;
128                                 };
129
130                                 l6 {
131                                         regulator-min-microvolt = <2950000>;
132                                         regulator-max-microvolt = <2950000>;
133                                         bias-pull-down;
134                                 };
135
136                                 l23 {
137                                         regulator-min-microvolt = <1700000>;
138                                         regulator-max-microvolt = <1900000>;
139                                         bias-pull-down;
140                                 };
141
142                                 l26 {
143                                         regulator-min-microvolt = < 375000>;
144                                         regulator-max-microvolt = <1050000>;
145                                         bias-pull-down;
146                                 };
147
148                                 lvs1 {
149                                         bias-pull-down;
150                                 };
151
152                                 lvs6 {
153                                         bias-pull-down;
154                                 };
155
156                                 lvs7 {
157                                         bias-pull-down;
158                                 };
159                         };
160                 };
161
162                 ext_3p3v: regulator-fixed@1 {
163                         compatible = "regulator-fixed";
164                         regulator-min-microvolt = <3300000>;
165                         regulator-max-microvolt = <3300000>;
166                         regulator-name = "ext_3p3v";
167                         regulator-type = "voltage";
168                         startup-delay-us = <0>;
169                         gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
170                         enable-active-high;
171                         regulator-boot-on;
172                 };
173
174                 pil_q6v4: pil@28800000 {
175                         qcom,pll-supply = <&pm8921_l26>;
176                         qcom,pll-uV = <1050000>;
177                 };
178
179                 hdmi: qcom,hdmi-tx@4a00000 {
180                         status = "okay";
181                         core-vdda-supply = <&pm8921_hdmi_switch>;
182                         hdmi-mux-supply = <&ext_3p3v>;
183                 };
184
185                 mdp: qcom,mdp@5100000 {
186                         status = "okay";
187                         lvds-vccs-3p3v-supply = <&ext_3p3v>;
188                         lvds-pll-vdda-supply = <&pm8921_l2>;
189                         lvds-vdda-supply = <&pm8921_lvs7>;
190                         
191                         port {
192                                 lvds_out: endpoint {
193                                         remote-endpoint = <&auo_in>;
194                                 };
195                         }; 
196                 };
197
198                 panel_3p3v: panel_3p3v {
199                         compatible = "regulator-fixed";
200                         pinctrl-0 = <&disp_en_gpios>;
201                         pinctrl-names = "default";
202                         regulator-min-microvolt = <3300000>;
203                         regulator-max-microvolt = <3300000>;
204                         regulator-name = "panel_en_3p3v";
205                         regulator-type = "voltage";
206                         startup-delay-us = <0>;
207                         gpio = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
208                         enable-active-high;
209                         regulator-boot-on;
210                 };
211
212                 backlight: backlight{
213                         pinctrl-0 = <&pwm_bl_gpios>;
214                         pinctrl-names = "default";
215                         compatible = "gpio-backlight";
216                         gpios = <&pm8921_gpio 26 GPIO_ACTIVE_HIGH>;
217                         default-on;
218                 };
219
220                 panel: auo,b101xtn01 {
221                         status = "okay";
222                         compatible = "auo,b101xtn01";
223
224                         ddc-i2c-bus = <&gsbi3_i2c>;
225                         backlight = <&backlight>;
226                         power-supply = <&panel_3p3v>;
227                         port {
228                                 auo_in: endpoint {
229                                         remote-endpoint = <&lvds_out>;
230                                 };
231                         };
232                 };
233
234                 gsbi3: gsbi@16200000 {
235                         status = "okay";
236                         qcom,mode = <GSBI_PROT_I2C>;
237                         i2c@16280000 {
238                                 status = "okay";
239                         };
240                 };
241
242                 gsbi@12440000 {
243                         status = "okay";
244                         qcom,mode = <GSBI_PROT_I2C>;
245
246                         i2c@12460000 {
247                                 status = "okay";
248                                 clock-frequency = <200000>;
249
250                                 eeprom@52 {
251                                         compatible = "atmel,24c128";
252                                         reg = <0x52>;
253                                         pagesize = <32>;
254                                 };
255                         };
256                 };
257
258                 gsbi@16500000 {
259                         status = "ok";
260                         qcom,mode = <GSBI_PROT_UART_W_FC>;
261
262                         serial@16540000 {
263                                 status = "ok";
264                                 pinctrl-names = "default";
265                                 pinctrl-0 = <&gsbi6_uart_4pins>;
266                         };
267                 };
268
269                 gsbi@16600000 {
270                         status = "ok";
271                         qcom,mode = <GSBI_PROT_I2C_UART>;
272                         serial@16640000 {
273                                 status = "ok";
274                                 pinctrl-names = "default";
275                                 pinctrl-0 = <&gsbi7_uart_2pins>;
276                         };
277                 };
278
279                 adm: dma@18320000 {
280                         status = "okay";
281                 };
282
283                 sata_phy0: phy@1b400000 {
284                         status = "okay";
285                 };
286
287                 sata0: sata@29000000 {
288                         status          = "okay";
289                         target-supply   = <&pm8921_s4>;
290                 };
291
292                 /* OTG */
293                 usb1_phy: phy@12500000 {
294                         status          = "okay";
295                         vddcx-supply    = <&pm8921_s3>;
296                         v3p3-supply     = <&pm8921_l3>;
297                         v1p8-supply     = <&pm8921_l4>;
298                 };
299
300                 usb3_phy: phy@12520000 {
301                         status          = "okay";
302                         vddcx-supply    = <&pm8921_s3>;
303                         v3p3-supply     = <&pm8921_l3>;
304                         v1p8-supply     = <&pm8921_l23>;
305                 };
306
307                 usb4_phy: phy@12530000 {
308                         status          = "okay";
309                         vddcx-supply    = <&pm8921_s3>;
310                         v3p3-supply     = <&pm8921_l3>;
311                         v1p8-supply     = <&pm8921_l23>;
312                 };
313
314                 gadget1: gadget@12500000 {
315                         status = "okay";
316                 };
317
318                 /* OTG */
319                 usb1: usb@12500000 {
320                         status = "okay";
321                 };
322
323                 usb3: usb@12520000 {
324                         status = "okay";
325                 };
326
327                 usb4: usb@12530000 {
328                         status = "okay";
329                 };
330
331                 pci@1b500000 {
332                         status = "ok";
333                         vdda-supply = <&pm8921_s3>;
334                         vdda_phy-supply = <&pm8921_lvs6>;
335                         vdda_refclk-supply = <&ext_3p3v>;
336                         pinctrl-0 = <&pcie_pins>;
337                         pinctrl-names = "default";
338                         perst-gpio = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>;
339                 };
340
341                 qcom,ssbi@500000 {
342                         pmic@0 {
343                                 gpio@150 {
344
345                                         pwm_bl_gpios: pwm-bl-gpios {
346                                                 pios {
347                                                         pins = "gpio26";
348                                                         bias-disable;
349                                                         function = "normal";
350                                                         qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
351                                                         power-source = <PM8921_GPIO_S4>;
352                                                 };
353                                         };
354
355                                         disp_en_gpios: disp-en-gpios {
356                                                 pios {
357                                                         pins = "gpio36";
358                                                         bias-disable;
359                                                         function = "normal";
360                                                         qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
361                                                         power-source = <PM8921_GPIO_S4>;
362                                                 };
363                                         };
364
365                                         wlan_default_gpios: wlan-gpios {
366                                                 pios {
367                                                         pins = "gpio43";
368                                                         function = "normal";
369                                                         bias-disable;
370                                                         power-source = <PM8921_GPIO_S4>;
371                                                 };
372                                         };
373
374                                         bt_gpios: bt-gpio {
375                                                 pios {
376                                                         pins = "gpio44";
377                                                         function = "normal";
378                                                         bias-disable;
379                                                         power-source = <PM8921_GPIO_S4>;
380                                                 };
381                                         };
382
383                                         notify_led: nled {
384                                                 pios {
385                                                         pins = "gpio18";
386                                                         function = "normal";
387                                                         bias-disable;
388                                                         power-source = <PM8921_GPIO_S4>;
389                                                 };
390                                         };
391                                 };
392                         };
393                 };
394
395                 amba {
396                         /* eMMC */
397                         sdcc1: sdcc@12400000 {
398                                 status = "okay";
399                                 vmmc-supply = <&pm8921_l5>;
400                                 vqmmc-supply = <&pm8921_s4>;
401                         };
402
403                         /* External micro SD card */
404                         sdcc3: sdcc@12180000 {
405                                 status = "okay";
406                                 vmmc-supply = <&pm8921_l6>;
407                                 pinctrl-names   = "default";
408                                 pinctrl-0       = <&card_detect>;
409                                 cd-gpios        = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
410                         };
411                         /* WLAN */
412                         sdcc4: sdcc@121c0000 {
413                                 status = "okay";
414                                 vmmc-supply = <&ext_3p3v>;
415                                 vqmmc-supply = <&pm8921_lvs1>;
416                                 mmc-pwrseq = <&sdcc4_pwrseq>;
417                         };
418                 };
419         };
420 };
421
422 &CPU0 {
423         cpu-supply = <&saw0>;
424 };
425
426 &CPU1 {
427         cpu-supply = <&saw1>;
428 };
429
430 &CPU2 {
431         cpu-supply = <&saw2>;
432 };
433
434 &CPU3 {
435         cpu-supply = <&saw3>;
436 };