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