]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
Merge tag 'renesas-fixes4-for-v4.13' of https://git.kernel.org/pub/scm/linux/kernel...
[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                 i2c0 = &gsbi1_i2c;
13                 i2c1 = &gsbi2_i2c;
14                 i2c2 = &gsbi3_i2c;
15                 i2c3 = &gsbi4_i2c;
16                 spi0 = &gsbi5_spi;
17         };
18
19         chosen {
20                 stdout-path = "serial0:115200n8";
21         };
22
23         pwrseq {
24                 compatible = "simple-bus";
25
26                 sdcc4_pwrseq: sdcc4_pwrseq {
27                         pinctrl-names = "default";
28                         pinctrl-0 = <&wlan_default_gpios>;
29                         compatible = "mmc-pwrseq-simple";
30                         reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>;
31                 };
32         };
33
34         leds {
35                 compatible = "gpio-leds";
36                 pinctrl-names = "default";
37                 pinctrl-0 = <&notify_led>;
38
39                 led@1 {
40                         label = "apq8064:green:user1";
41                         gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>;
42                         default-state = "on";
43                 };
44         };
45
46         hdmi-out {
47                 compatible = "hdmi-connector";
48                 type = "d";
49
50                 port {
51                         hdmi_con: endpoint {
52                                 remote-endpoint = <&hdmi_out>;
53                         };
54                 };
55         };
56
57         soc {
58                 pinctrl@800000 {
59                         card_detect: card_detect {
60                                 mux {
61                                         pins = "gpio26";
62                                         function = "gpio";
63                                         bias-disable;
64                                 };
65                         };
66
67                         pcie_pins: pcie_pinmux {
68                                 mux {
69                                         pins = "gpio27";
70                                         function = "gpio";
71                                 };
72                                 conf {
73                                         pins = "gpio27";
74                                         drive-strength = <12>;
75                                         bias-disable;
76                                 };
77                         };
78                 };
79
80                 rpm@108000 {
81                         regulators {
82                                 vin_lvs1_3_6-supply = <&pm8921_s4>;
83                                 vin_lvs2-supply = <&pm8921_s1>;
84                                 vin_lvs4_5_7-supply = <&pm8921_s4>;
85
86                                 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
87                                 vdd_l24-supply = <&pm8921_s1>;
88                                 vdd_l25-supply = <&pm8921_s1>;
89                                 vdd_l26-supply = <&pm8921_s7>;
90                                 vdd_l27-supply = <&pm8921_s7>;
91                                 vdd_l28-supply = <&pm8921_s7>;
92
93
94                                 /* Buck SMPS */
95                                 s1 {
96                                         regulator-always-on;
97                                         regulator-min-microvolt = <1225000>;
98                                         regulator-max-microvolt = <1225000>;
99                                         qcom,switch-mode-frequency = <3200000>;
100                                         bias-pull-down;
101                                 };
102
103                                 s3 {
104                                         regulator-min-microvolt = <1000000>;
105                                         regulator-max-microvolt = <1400000>;
106                                         qcom,switch-mode-frequency = <4800000>;
107                                 };
108
109                                 s4 {
110                                         regulator-min-microvolt = <1800000>;
111                                         regulator-max-microvolt = <1800000>;
112                                         qcom,switch-mode-frequency = <3200000>;
113                                 };
114
115                                 s7 {
116                                         regulator-min-microvolt = <1300000>;
117                                         regulator-max-microvolt = <1300000>;
118                                         qcom,switch-mode-frequency = <3200000>;
119                                 };
120
121                                 l3 {
122                                         regulator-min-microvolt = <3050000>;
123                                         regulator-max-microvolt = <3300000>;
124                                         bias-pull-down;
125                                 };
126
127                                 l4 {
128                                         regulator-min-microvolt = <1000000>;
129                                         regulator-max-microvolt = <1800000>;
130                                         bias-pull-down;
131                                 };
132
133                                 l5 {
134                                         regulator-min-microvolt = <2750000>;
135                                         regulator-max-microvolt = <3000000>;
136                                         bias-pull-down;
137                                 };
138
139                                 l6 {
140                                         regulator-min-microvolt = <2950000>;
141                                         regulator-max-microvolt = <2950000>;
142                                         bias-pull-down;
143                                 };
144
145                                 l23 {
146                                         regulator-min-microvolt = <1700000>;
147                                         regulator-max-microvolt = <1900000>;
148                                         bias-pull-down;
149                                 };
150
151                                 lvs1 {
152                                         bias-pull-down;
153                                 };
154
155                                 lvs6 {
156                                         bias-pull-down;
157                                 };
158                         };
159                 };
160
161                 ext_3p3v: regulator-fixed@1 {
162                         compatible = "regulator-fixed";
163                         regulator-min-microvolt = <3300000>;
164                         regulator-max-microvolt = <3300000>;
165                         regulator-name = "ext_3p3v";
166                         regulator-type = "voltage";
167                         startup-delay-us = <0>;
168                         gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
169                         enable-active-high;
170                         regulator-boot-on;
171                 };
172
173                 gsbi3: gsbi@16200000 {
174                         status = "okay";
175                         qcom,mode = <GSBI_PROT_I2C>;
176                         i2c@16280000 {
177                                 status = "okay";
178                         };
179                 };
180
181                 gsbi@16300000 {
182                         status = "okay";
183                         qcom,mode = <GSBI_PROT_I2C>;
184                         /* CAM I2C MIPI-CSI connector */
185                         i2c@16380000 {
186                                 status = "okay";
187                         };
188                 };
189
190                 gsbi@12440000 {
191                         status = "okay";
192                         qcom,mode = <GSBI_PROT_I2C>;
193
194                         i2c@12460000 {
195                                 status = "okay";
196                                 clock-frequency = <200000>;
197
198                                 eeprom@52 {
199                                         compatible = "atmel,24c128";
200                                         reg = <0x52>;
201                                         pagesize = <32>;
202                                 };
203                         };
204                 };
205
206                 gsbi@1a200000 {
207                         qcom,mode = <GSBI_PROT_SPI>;
208                         status = "okay";
209                         spi4: spi@1a280000 {
210                                 status = "okay";
211                                 num-cs = <1>;
212                                 cs-gpios = <&tlmm_pinmux 53 0>;
213                         };
214                 };
215
216                 gsbi@16500000 {
217                         status = "ok";
218                         qcom,mode = <GSBI_PROT_UART_W_FC>;
219
220                         serial@16540000 {
221                                 status = "ok";
222                                 pinctrl-names = "default";
223                                 pinctrl-0 = <&gsbi6_uart_4pins>;
224                         };
225                 };
226
227                 gsbi@16600000 {
228                         status = "ok";
229                         qcom,mode = <GSBI_PROT_I2C_UART>;
230                         serial@16640000 {
231                                 status = "ok";
232                                 pinctrl-names = "default";
233                                 pinctrl-0 = <&gsbi7_uart_2pins>;
234                         };
235                 };
236
237                 sata_phy0: phy@1b400000 {
238                         status = "okay";
239                 };
240
241                 sata0: sata@29000000 {
242                         status          = "okay";
243                         target-supply   = <&pm8921_s4>;
244                 };
245
246                 /* OTG */
247                 usb@12500000 {
248                         status = "okay";
249                         dr_mode = "otg";
250                         ulpi {
251                                 phy {
252                                         v3p3-supply = <&pm8921_l3>;
253                                         v1p8-supply = <&pm8921_l4>;
254                                 };
255                         };
256                 };
257
258                 usb@12520000 {
259                         status = "okay";
260                         dr_mode = "host";
261                         ulpi {
262                                 phy {
263                                         v3p3-supply = <&pm8921_l3>;
264                                         v1p8-supply = <&pm8921_l23>;
265                                 };
266                         };
267                 };
268
269                 usb@12530000 {
270                         status = "okay";
271                         dr_mode = "host";
272                         ulpi {
273                                 phy {
274                                         v3p3-supply = <&pm8921_l3>;
275                                         v1p8-supply = <&pm8921_l23>;
276                                 };
277                         };
278                 };
279
280                 pci@1b500000 {
281                         status = "ok";
282                         vdda-supply = <&pm8921_s3>;
283                         vdda_phy-supply = <&pm8921_lvs6>;
284                         vdda_refclk-supply = <&ext_3p3v>;
285                         pinctrl-0 = <&pcie_pins>;
286                         pinctrl-names = "default";
287                         perst-gpio = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>;
288                 };
289
290                 qcom,ssbi@500000 {
291                         pmic@0 {
292                                 gpio@150 {
293                                         wlan_default_gpios: wlan-gpios {
294                                                 pios {
295                                                         pins = "gpio43";
296                                                         function = "normal";
297                                                         bias-disable;
298                                                         power-source = <PM8921_GPIO_S4>;
299                                                 };
300                                         };
301
302                                         notify_led: nled {
303                                                 pios {
304                                                         pins = "gpio18";
305                                                         function = "normal";
306                                                         bias-disable;
307                                                         power-source = <PM8921_GPIO_S4>;
308                                                 };
309                                         };
310                                 };
311                         };
312                 };
313
314                 amba {
315                         /* eMMC */
316                         sdcc1: sdcc@12400000 {
317                                 status = "okay";
318                                 vmmc-supply = <&pm8921_l5>;
319                                 vqmmc-supply = <&pm8921_s4>;
320                         };
321
322                         /* External micro SD card */
323                         sdcc3: sdcc@12180000 {
324                                 status = "okay";
325                                 vmmc-supply = <&pm8921_l6>;
326                                 pinctrl-names   = "default";
327                                 pinctrl-0       = <&card_detect>;
328                                 cd-gpios        = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
329                         };
330                         /* WLAN */
331                         sdcc4: sdcc@121c0000 {
332                                 status = "okay";
333                                 vmmc-supply = <&ext_3p3v>;
334                                 vqmmc-supply = <&pm8921_lvs1>;
335                                 mmc-pwrseq = <&sdcc4_pwrseq>;
336                         };
337                 };
338
339                 hdmi-tx@4a00000 {
340                         status = "okay";
341
342                         core-vdda-supply = <&pm8921_hdmi_switch>;
343                         hdmi-mux-supply = <&ext_3p3v>;
344
345                         hpd-gpios = <&tlmm_pinmux 72 GPIO_ACTIVE_HIGH>;
346
347                         ports {
348                                 port@0 {
349                                         endpoint {
350                                                 remote-endpoint = <&mdp_dtv_out>;
351                                         };
352                                 };
353
354                                 port@1 {
355                                         endpoint {
356                                                 remote-endpoint = <&hdmi_con>;
357                                         };
358                                 };
359                         };
360                 };
361
362                 hdmi-phy@4a00400 {
363                         status = "okay";
364
365                         core-vdda-supply = <&pm8921_hdmi_switch>;
366                 };
367
368                 mdp@5100000 {
369                         status = "okay";
370
371                         ports {
372                                 port@3 {
373                                         endpoint {
374                                                 remote-endpoint = <&hdmi_in>;
375                                         };
376                                 };
377                         };
378                 };
379         };
380 };