ARM: dts: qcom: apq8064-ifc6410: fix user1 LED node name
[sfrench/cifs-2.6.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-user1 {
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         ext_3p3v: regulator-ext-3p3v {
61                 compatible = "regulator-fixed";
62                 regulator-min-microvolt = <3300000>;
63                 regulator-max-microvolt = <3300000>;
64                 regulator-name = "ext_3p3v";
65                 regulator-type = "voltage";
66                 startup-delay-us = <0>;
67                 gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
68                 enable-active-high;
69                 regulator-boot-on;
70         };
71 };
72
73 &gsbi1 {
74         qcom,mode = <GSBI_PROT_I2C>;
75         status = "okay";
76 };
77
78 &gsbi1_i2c {
79         clock-frequency = <200000>;
80         status = "okay";
81
82         eeprom@52 {
83                 compatible = "atmel,24c128";
84                 reg = <0x52>;
85                 pagesize = <32>;
86         };
87 };
88
89 &gsbi3 {
90         qcom,mode = <GSBI_PROT_I2C>;
91         status = "okay";
92 };
93
94 &gsbi3_i2c {
95         status = "okay";
96 };
97
98 &gsbi4 {
99         qcom,mode = <GSBI_PROT_I2C>;
100         status = "okay";
101 };
102
103 /* CAM I2C MIPI-CSI connector */
104 &gsbi4_i2c {
105         status = "okay";
106 };
107
108 &gsbi5 {
109         qcom,mode = <GSBI_PROT_SPI>;
110         status = "okay";
111 };
112
113 &gsbi5_spi {
114         num-cs = <1>;
115         cs-gpios = <&tlmm_pinmux 53 0>;
116         status = "okay";
117 };
118
119 &gsbi6 {
120         qcom,mode = <GSBI_PROT_UART_W_FC>;
121         status = "okay";
122 };
123
124 &gsbi6_serial {
125         pinctrl-names = "default";
126         pinctrl-0 = <&gsbi6_uart_4pins>;
127         status = "okay";
128 };
129
130 &gsbi7 {
131         qcom,mode = <GSBI_PROT_I2C_UART>;
132         status = "okay";
133 };
134
135 &gsbi7_serial {
136         pinctrl-names = "default";
137         pinctrl-0 = <&gsbi7_uart_2pins>;
138         status = "okay";
139 };
140
141 &hdmi {
142         core-vdda-supply = <&pm8921_hdmi_switch>;
143         hpd-gpios = <&tlmm_pinmux 72 GPIO_ACTIVE_HIGH>;
144         status = "okay";
145 };
146
147 &hdmi_in {
148         remote-endpoint = <&mdp_dtv_out>;
149 };
150
151 &hdmi_out {
152         remote-endpoint = <&hdmi_con>;
153 };
154
155 &hdmi_phy {
156         status = "okay";
157         core-vdda-supply = <&pm8921_hdmi_switch>;
158 };
159
160 &mdp {
161         status = "okay";
162 };
163
164 &mdp_dtv_out {
165         remote-endpoint = <&hdmi_in>;
166 };
167
168 &pcie {
169         status = "okay";
170         vdda-supply = <&pm8921_s3>;
171         vdda_phy-supply = <&pm8921_lvs6>;
172         vdda_refclk-supply = <&ext_3p3v>;
173         pinctrl-0 = <&pcie_pins>;
174         pinctrl-names = "default";
175         perst-gpios = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>;
176 };
177
178 &pm8921_gpio {
179         wlan_default_gpios: wlan-gpios-state {
180                 pinconf {
181                         pins = "gpio43";
182                         function = "normal";
183                         bias-disable;
184                         power-source = <PM8921_GPIO_S4>;
185                 };
186         };
187
188         notify_led: nled-state {
189                 pinconf {
190                         pins = "gpio18";
191                         function = "normal";
192                         bias-disable;
193                         power-source = <PM8921_GPIO_S4>;
194                 };
195         };
196 };
197
198 &rpm {
199         regulators {
200                 vin_lvs1_3_6-supply = <&pm8921_s4>;
201                 vin_lvs2-supply = <&pm8921_s1>;
202                 vin_lvs4_5_7-supply = <&pm8921_s4>;
203
204                 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
205                 vdd_l24-supply = <&pm8921_s1>;
206                 vdd_l25-supply = <&pm8921_s1>;
207                 vdd_l26-supply = <&pm8921_s7>;
208                 vdd_l27-supply = <&pm8921_s7>;
209                 vdd_l28-supply = <&pm8921_s7>;
210
211
212                 /* Buck SMPS */
213                 s1 {
214                         regulator-always-on;
215                         regulator-min-microvolt = <1225000>;
216                         regulator-max-microvolt = <1225000>;
217                         qcom,switch-mode-frequency = <3200000>;
218                         bias-pull-down;
219                 };
220
221                 s3 {
222                         regulator-min-microvolt = <1000000>;
223                         regulator-max-microvolt = <1400000>;
224                         qcom,switch-mode-frequency = <4800000>;
225                 };
226
227                 s4 {
228                         regulator-min-microvolt = <1800000>;
229                         regulator-max-microvolt = <1800000>;
230                         qcom,switch-mode-frequency = <3200000>;
231                 };
232
233                 s7 {
234                         regulator-min-microvolt = <1300000>;
235                         regulator-max-microvolt = <1300000>;
236                         qcom,switch-mode-frequency = <3200000>;
237                 };
238
239                 l3 {
240                         regulator-min-microvolt = <3050000>;
241                         regulator-max-microvolt = <3300000>;
242                         bias-pull-down;
243                 };
244
245                 l4 {
246                         regulator-min-microvolt = <1000000>;
247                         regulator-max-microvolt = <1800000>;
248                         bias-pull-down;
249                 };
250
251                 l5 {
252                         regulator-min-microvolt = <2750000>;
253                         regulator-max-microvolt = <3000000>;
254                         bias-pull-down;
255                 };
256
257                 l6 {
258                         regulator-min-microvolt = <2950000>;
259                         regulator-max-microvolt = <2950000>;
260                         bias-pull-down;
261                 };
262
263                 l23 {
264                         regulator-min-microvolt = <1700000>;
265                         regulator-max-microvolt = <1900000>;
266                         bias-pull-down;
267                 };
268
269                 lvs1 {
270                         bias-pull-down;
271                 };
272
273                 lvs6 {
274                         bias-pull-down;
275                 };
276         };
277 };
278
279 &sata_phy0 {
280         status = "okay";
281 };
282
283 &sata0 {
284         target-supply = <&pm8921_s4>;
285         status = "okay";
286 };
287
288 /* eMMC */
289 &sdcc1 {
290         vmmc-supply = <&pm8921_l5>;
291         vqmmc-supply = <&pm8921_s4>;
292         status = "okay";
293 };
294
295 /* External micro SD card */
296 &sdcc3 {
297         vmmc-supply = <&pm8921_l6>;
298         pinctrl-names = "default";
299         pinctrl-0 = <&card_detect>;
300         cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
301         status = "okay";
302 };
303
304 /* WLAN */
305 &sdcc4 {
306         vmmc-supply = <&ext_3p3v>;
307         vqmmc-supply = <&pm8921_lvs1>;
308         mmc-pwrseq = <&sdcc4_pwrseq>;
309         status = "okay";
310 };
311
312 &tlmm_pinmux {
313         card_detect: card_detect {
314                 mux {
315                         pins = "gpio26";
316                         function = "gpio";
317                         bias-disable;
318                 };
319         };
320
321         pcie_pins: pcie_pinmux {
322                 mux {
323                         pins = "gpio27";
324                         function = "gpio";
325                 };
326                 conf {
327                         pins = "gpio27";
328                         drive-strength = <12>;
329                         bias-disable;
330                 };
331         };
332 };
333
334 &usb_hs1_phy {
335         v3p3-supply = <&pm8921_l3>;
336         v1p8-supply = <&pm8921_l4>;
337 };
338
339 &usb_hs3_phy {
340         v3p3-supply = <&pm8921_l3>;
341         v1p8-supply = <&pm8921_l23>;
342 };
343
344 &usb_hs4_phy {
345         v3p3-supply = <&pm8921_l3>;
346         v1p8-supply = <&pm8921_l23>;
347 };
348
349 /* OTG */
350 &usb1 {
351         dr_mode = "otg";
352         status = "okay";
353 };
354
355 &usb3 {
356         dr_mode = "host";
357         status = "okay";
358 };
359
360 &usb4 {
361         dr_mode = "host";
362         status = "okay";
363 };