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