mtd: nand: omap: Fix comment in platform data using wrong Kconfig symbol
[linux/fpc-iii.git] / arch / arm / boot / dts / qcom-msm8974-lge-nexus5-hammerhead.dts
blobb3b04736a15991a12952fdee98c71123cc8c2198
1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974.dtsi"
3 #include "qcom-pm8841.dtsi"
4 #include "qcom-pm8941.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
9 / {
10         model = "LGE MSM 8974 HAMMERHEAD";
11         compatible = "lge,hammerhead", "qcom,msm8974";
13         aliases {
14                 serial0 = &blsp1_uart1;
15         };
17         chosen {
18                 stdout-path = "serial0:115200n8";
19         };
21         smd {
22                 rpm {
23                         rpm_requests {
24                                 pm8841-regulators {
25                                         s1 {
26                                                 regulator-min-microvolt = <675000>;
27                                                 regulator-max-microvolt = <1050000>;
28                                         };
30                                         s2 {
31                                                 regulator-min-microvolt = <500000>;
32                                                 regulator-max-microvolt = <1050000>;
33                                         };
35                                         s3 {
36                                                 regulator-min-microvolt = <1050000>;
37                                                 regulator-max-microvolt = <1050000>;
38                                         };
40                                         s4 {
41                                                 regulator-min-microvolt = <815000>;
42                                                 regulator-max-microvolt = <900000>;
43                                         };
44                                 };
46                                 pm8941-regulators {
47                                         vdd_l1_l3-supply = <&pm8941_s1>;
48                                         vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
49                                         vdd_l4_l11-supply = <&pm8941_s1>;
50                                         vdd_l5_l7-supply = <&pm8941_s2>;
51                                         vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
52                                         vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
53                                         vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
54                                         vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
55                                         vdd_l21-supply = <&vreg_boost>;
57                                         s1 {
58                                                 regulator-min-microvolt = <1300000>;
59                                                 regulator-max-microvolt = <1300000>;
61                                                 regulator-always-on;
62                                                 regulator-boot-on;
63                                         };
65                                         s2 {
66                                                 regulator-min-microvolt = <2150000>;
67                                                 regulator-max-microvolt = <2150000>;
69                                                 regulator-boot-on;
70                                         };
72                                         s3 {
73                                                 regulator-min-microvolt = <1800000>;
74                                                 regulator-max-microvolt = <1800000>;
76                                                 regulator-always-on;
77                                                 regulator-boot-on;
78                                         };
80                                         l1 {
81                                                 regulator-min-microvolt = <1225000>;
82                                                 regulator-max-microvolt = <1225000>;
84                                                 regulator-always-on;
85                                                 regulator-boot-on;
86                                         };
88                                         l2 {
89                                                 regulator-min-microvolt = <1200000>;
90                                                 regulator-max-microvolt = <1200000>;
91                                         };
93                                         l3 {
94                                                 regulator-min-microvolt = <1225000>;
95                                                 regulator-max-microvolt = <1225000>;
96                                         };
98                                         l4 {
99                                                 regulator-min-microvolt = <1225000>;
100                                                 regulator-max-microvolt = <1225000>;
101                                         };
103                                         l5 {
104                                                 regulator-min-microvolt = <1800000>;
105                                                 regulator-max-microvolt = <1800000>;
106                                         };
108                                         l6 {
109                                                 regulator-min-microvolt = <1800000>;
110                                                 regulator-max-microvolt = <1800000>;
112                                                 regulator-boot-on;
113                                         };
115                                         l7 {
116                                                 regulator-min-microvolt = <1800000>;
117                                                 regulator-max-microvolt = <1800000>;
119                                                 regulator-boot-on;
120                                         };
122                                         l8 {
123                                                 regulator-min-microvolt = <1800000>;
124                                                 regulator-max-microvolt = <1800000>;
125                                         };
127                                         l9 {
128                                                 regulator-min-microvolt = <1800000>;
129                                                 regulator-max-microvolt = <2950000>;
130                                         };
132                                         l10 {
133                                                 regulator-min-microvolt = <1800000>;
134                                                 regulator-max-microvolt = <2950000>;
135                                         };
137                                         l11 {
138                                                 regulator-min-microvolt = <1300000>;
139                                                 regulator-max-microvolt = <1300000>;
140                                         };
142                                         l12 {
143                                                 regulator-min-microvolt = <1800000>;
144                                                 regulator-max-microvolt = <1800000>;
146                                                 regulator-always-on;
147                                                 regulator-boot-on;
148                                         };
150                                         l13 {
151                                                 regulator-min-microvolt = <1800000>;
152                                                 regulator-max-microvolt = <2950000>;
154                                                 regulator-boot-on;
155                                         };
157                                         l14 {
158                                                 regulator-min-microvolt = <1800000>;
159                                                 regulator-max-microvolt = <1800000>;
160                                         };
162                                         l15 {
163                                                 regulator-min-microvolt = <2050000>;
164                                                 regulator-max-microvolt = <2050000>;
165                                         };
167                                         l16 {
168                                                 regulator-min-microvolt = <2700000>;
169                                                 regulator-max-microvolt = <2700000>;
170                                         };
172                                         l17 {
173                                                 regulator-min-microvolt = <2850000>;
174                                                 regulator-max-microvolt = <2850000>;
175                                         };
177                                         l18 {
178                                                 regulator-min-microvolt = <2850000>;
179                                                 regulator-max-microvolt = <2850000>;
180                                         };
182                                         l19 {
183                                                 regulator-min-microvolt = <3000000>;
184                                                 regulator-max-microvolt = <3300000>;
185                                         };
187                                         l20 {
188                                                 regulator-min-microvolt = <2950000>;
189                                                 regulator-max-microvolt = <2950000>;
191                                                 regulator-boot-on;
192                                                 regulator-system-load = <200000>;
193                                                 regulator-allow-set-load;
194                                         };
196                                         l21 {
197                                                 regulator-min-microvolt = <2950000>;
198                                                 regulator-max-microvolt = <2950000>;
200                                                 regulator-boot-on;
201                                         };
203                                         l22 {
204                                                 regulator-min-microvolt = <3000000>;
205                                                 regulator-max-microvolt = <3300000>;
206                                         };
208                                         l23 {
209                                                 regulator-min-microvolt = <3000000>;
210                                                 regulator-max-microvolt = <3000000>;
211                                         };
213                                         l24 {
214                                                 regulator-min-microvolt = <3075000>;
215                                                 regulator-max-microvolt = <3075000>;
217                                                 regulator-boot-on;
218                                         };
219                                 };
220                         };
221                 };
222         };
224         vreg_wlan: wlan-regulator {
225                 compatible = "regulator-fixed";
227                 regulator-name = "wl-reg";
228                 regulator-min-microvolt = <3300000>;
229                 regulator-max-microvolt = <3300000>;
231                 gpio = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
232                 enable-active-high;
234                 pinctrl-names = "default";
235                 pinctrl-0 = <&wlan_regulator_pin>;
236         };
239 &soc {
240         serial@f991d000 {
241                 status = "ok";
242         };
244         pinctrl@fd510000 {
245                 sdhc1_pin_a: sdhc1-pin-active {
246                         clk {
247                                 pins = "sdc1_clk";
248                                 drive-strength = <16>;
249                                 bias-disable;
250                         };
252                         cmd-data {
253                                 pins = "sdc1_cmd", "sdc1_data";
254                                 drive-strength = <10>;
255                                 bias-pull-up;
256                         };
257                 };
259                 sdhc2_pin_a: sdhc2-pin-active {
260                         clk {
261                                 pins = "sdc2_clk";
262                                 drive-strength = <6>;
263                                 bias-disable;
264                         };
266                         cmd-data {
267                                 pins = "sdc2_cmd", "sdc2_data";
268                                 drive-strength = <6>;
269                                 bias-pull-up;
270                         };
271                 };
273                 i2c1_pins: i2c1 {
274                         mux {
275                                 pins = "gpio2", "gpio3";
276                                 function = "blsp_i2c1";
278                                 drive-strength = <2>;
279                                 bias-disable;
280                         };
281                 };
283                 i2c3_pins: i2c3 {
284                         mux {
285                                 pins = "gpio10", "gpio11";
286                                 function = "blsp_i2c3";
287                                 drive-strength = <2>;
288                                 bias-disable;
289                         };
290                 };
292                 i2c12_pins: i2c12 {
293                         mux {
294                                 pins = "gpio87", "gpio88";
295                                 function = "blsp_i2c12";
296                                 drive-strength = <2>;
297                                 bias-disable;
298                         };
299                 };
301                 mpu6515_pin: mpu6515 {
302                         irq {
303                                 pins = "gpio73";
304                                 function = "gpio";
305                                 bias-disable;
306                                 input-enable;
307                         };
308                 };
309         };
311         sdhci@f9824900 {
312                 status = "ok";
314                 vmmc-supply = <&pm8941_l20>;
315                 vqmmc-supply = <&pm8941_s3>;
317                 bus-width = <8>;
318                 non-removable;
320                 pinctrl-names = "default";
321                 pinctrl-0 = <&sdhc1_pin_a>;
322         };
324         sdhci@f98a4900 {
325                 status = "ok";
327                 max-frequency = <100000000>;
328                 bus-width = <4>;
329                 non-removable;
330                 vmmc-supply = <&vreg_wlan>;
331                 vqmmc-supply = <&pm8941_s3>;
333                 pinctrl-names = "default";
334                 pinctrl-0 = <&sdhc2_pin_a>;
336                 #address-cells = <1>;
337                 #size-cells = <0>;
339                 bcrmf@1 {
340                         compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
341                         reg = <1>;
343                         brcm,drive-strength = <10>;
345                         pinctrl-names = "default";
346                         pinctrl-0 = <&wlan_sleep_clk_pin>;
347                 };
348         };
350         gpio-keys {
351                 compatible = "gpio-keys";
352                 input-name = "gpio-keys";
354                 pinctrl-names = "default";
355                 pinctrl-0 = <&gpio_keys_pin_a>;
357                 volume-up {
358                         label = "volume_up";
359                         gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
360                         linux,input-type = <1>;
361                         linux,code = <KEY_VOLUMEUP>;
362                 };
364                 volume-down {
365                         label = "volume_down";
366                         gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
367                         linux,input-type = <1>;
368                         linux,code = <KEY_VOLUMEDOWN>;
369                 };
370         };
372         i2c@f9968000 {
373                 status = "ok";
374                 pinctrl-names = "default";
375                 pinctrl-0 = <&i2c12_pins>;
376                 clock-frequency = <100000>;
377                 qcom,src-freq = <50000000>;
379                 mpu6515@68 {
380                         compatible = "invensense,mpu6515";
381                         reg = <0x68>;
382                         interrupts-extended = <&msmgpio 73 IRQ_TYPE_EDGE_FALLING>;
383                         vddio-supply = <&pm8941_lvs1>;
385                         pinctrl-names = "default";
386                         pinctrl-0 = <&mpu6515_pin>;
388                         i2c-gate {
389                                 #address-cells = <1>;
390                                 #size-cells = <0>;
391                                 ak8963@f {
392                                         compatible = "asahi-kasei,ak8963";
393                                         reg = <0x0f>;
394                                         gpios = <&msmgpio 67 0>;
395                                         vid-supply = <&pm8941_lvs1>;
396                                         vdd-supply = <&pm8941_l17>;
397                                 };
399                                 bmp280@76 {
400                                         compatible = "bosch,bmp280";
401                                         reg = <0x76>;
402                                         vdda-supply = <&pm8941_lvs1>;
403                                         vddd-supply = <&pm8941_l17>;
404                                 };
405                         };
406                 };
407         };
409         i2c@f9923000 {
410                 status = "ok";
411                 pinctrl-names = "default";
412                 pinctrl-0 = <&i2c1_pins>;
413                 clock-frequency = <100000>;
414                 qcom,src-freq = <50000000>;
416                 charger: bq24192@6b {
417                         compatible = "ti,bq24192";
418                         reg = <0x6b>;
419                         interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
421                         omit-battery-class;
423                         usb_otg_vbus: usb-otg-vbus { };
424                 };
425         };
427         i2c@f9925000 {
428                 status = "ok";
429                 pinctrl-names = "default";
430                 pinctrl-0 = <&i2c3_pins>;
431                 clock-frequency = <100000>;
432                 qcom,src-freq = <50000000>;
434                 avago_apds993@39 {
435                         compatible = "avago,apds9930";
436                         reg = <0x39>;
437                         interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
438                         vdd-supply = <&pm8941_l17>;
439                         vddio-supply = <&pm8941_lvs1>;
440                         led-max-microamp = <100000>;
441                         amstaos,proximity-diodes = <0>;
442                 };
443         };
445         usb@f9a55000 {
446                 status = "ok";
448                 phys = <&usb_hs1_phy>;
449                 phy-select = <&tcsr 0xb000 0>;
451                 extcon = <&charger>, <&usb_id>;
452                 vbus-supply = <&usb_otg_vbus>;
454                 hnp-disable;
455                 srp-disable;
456                 adp-disable;
458                 ulpi {
459                         phy@a {
460                                 status = "ok";
462                                 v1p8-supply = <&pm8941_l6>;
463                                 v3p3-supply = <&pm8941_l24>;
465                                 qcom,init-seq = /bits/ 8 <0x1 0x64>;
466                         };
467                 };
468         };
471 &spmi_bus {
472         pm8941@0 {
473                 gpios@c000 {
474                         gpio_keys_pin_a: gpio-keys-active {
475                                 pins = "gpio2", "gpio3";
476                                 function = "normal";
478                                 bias-pull-up;
479                                 power-source = <PM8941_GPIO_S3>;
480                         };
482                         wlan_sleep_clk_pin: wl-sleep-clk {
483                                 pins = "gpio16";
484                                 function = "func2";
486                                 output-high;
487                                 power-source = <PM8941_GPIO_S3>;
488                         };
490                         wlan_regulator_pin: wl-reg-active {
491                                 pins = "gpio17";
492                                 function = "normal";
494                                 bias-disable;
495                                 power-source = <PM8941_GPIO_S3>;
496                         };
498                         otg {
499                                 gpio-hog;
500                                 gpios = <35 GPIO_ACTIVE_HIGH>;
501                                 output-high;
502                                 line-name = "otg-gpio";
503                         };
504                 };
505         };