blob: 2ad2ab87ead56e1df36fda341b627322e5d30d65 [file] [log] [blame]
Kumar Galaf335b8a2014-04-03 14:48:22 -05001#include "qcom-apq8064-v2.0.dtsi"
Pramod Guravb4e10dd2014-10-21 11:23:19 +05302#include <dt-bindings/gpio/gpio.h>
Kumar Galaf335b8a2014-04-03 14:48:22 -05003
4/ {
5 model = "Qualcomm APQ8064/IFC6410";
6 compatible = "qcom,apq8064-ifc6410", "qcom,apq8064";
7
Pramod Guravd5d46542015-04-10 21:44:31 +01008 aliases {
9 serial0 = &gsbi7_serial;
Pramod Gurav86e252a2015-07-27 14:52:10 +010010 serial1 = &gsbi6_serial;
Pramod Guravd5d46542015-04-10 21:44:31 +010011 };
12
Stephen Boyd7f9e28b2015-06-16 14:31:46 -070013 chosen {
14 stdout-path = "serial0:115200n8";
15 };
16
Kumar Galaf335b8a2014-04-03 14:48:22 -050017 soc {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +053018 pinctrl@800000 {
Pramod Guravb4e10dd2014-10-21 11:23:19 +053019 card_detect: card_detect {
20 mux {
21 pins = "gpio26";
22 function = "gpio";
23 bias-disable;
24 };
25 };
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +053026 };
27
Srinivas Kandagatlaad560452015-04-10 21:43:14 +010028 rpm@108000 {
29 regulators {
30 vin_lvs1_3_6-supply = <&pm8921_s4>;
31 vin_lvs2-supply = <&pm8921_s1>;
32 vin_lvs4_5_7-supply = <&pm8921_s4>;
33
34 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
35 vdd_l24-supply = <&pm8921_s1>;
36 vdd_l25-supply = <&pm8921_s1>;
37 vdd_l26-supply = <&pm8921_s7>;
38 vdd_l27-supply = <&pm8921_s7>;
39 vdd_l28-supply = <&pm8921_s7>;
40
41
42 /* Buck SMPS */
43 pm8921_s1: s1 {
44 regulator-always-on;
45 regulator-min-microvolt = <1225000>;
46 regulator-max-microvolt = <1225000>;
47 qcom,switch-mode-frequency = <3200000>;
48 bias-pull-down;
49 };
50
51 pm8921_s3: s3 {
52 regulator-min-microvolt = <1000000>;
53 regulator-max-microvolt = <1400000>;
54 qcom,switch-mode-frequency = <4800000>;
55 };
56
57 pm8921_s4: s4 {
58 regulator-min-microvolt = <1800000>;
59 regulator-max-microvolt = <1800000>;
60 qcom,switch-mode-frequency = <3200000>;
61 };
62
63 pm8921_s7: s7 {
64 regulator-min-microvolt = <1300000>;
65 regulator-max-microvolt = <1300000>;
66 qcom,switch-mode-frequency = <3200000>;
67 };
68
69 pm8921_l3: l3 {
70 regulator-min-microvolt = <3050000>;
71 regulator-max-microvolt = <3300000>;
72 bias-pull-down;
73 };
74
75 pm8921_l4: l4 {
76 regulator-min-microvolt = <1000000>;
77 regulator-max-microvolt = <1800000>;
78 bias-pull-down;
79 };
80
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +010081 pm8921_l5: l5 {
82 regulator-min-microvolt = <2750000>;
83 regulator-max-microvolt = <3000000>;
84 bias-pull-down;
85 };
86
Srinivas Kandagatlaad560452015-04-10 21:43:14 +010087 pm8921_l6: l6 {
88 regulator-min-microvolt = <2950000>;
89 regulator-max-microvolt = <2950000>;
90 bias-pull-down;
91 };
92
93 pm8921_l23: l23 {
94 regulator-min-microvolt = <1700000>;
95 regulator-max-microvolt = <1900000>;
96 bias-pull-down;
97 };
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +010098
99 pm8921_lvs1: lvs1 {
100 bias-pull-down;
101 };
Srinivas Kandagatlaad560452015-04-10 21:43:14 +0100102 };
103 };
104
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100105 ext_3p3v: regulator-fixed@1 {
106 compatible = "regulator-fixed";
107 regulator-min-microvolt = <3300000>;
108 regulator-max-microvolt = <3300000>;
109 regulator-name = "ext_3p3v";
110 regulator-type = "voltage";
111 startup-delay-us = <0>;
112 gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
113 enable-active-high;
114 regulator-boot-on;
115 };
116
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100117 gsbi3: gsbi@16200000 {
118 status = "okay";
119 qcom,mode = <GSBI_PROT_I2C>;
120 i2c3: i2c@16280000 {
121 status = "okay";
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100122 };
123 };
124
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530125 gsbi@12440000 {
126 status = "okay";
127 qcom,mode = <GSBI_PROT_I2C>;
128
129 i2c@12460000 {
130 status = "okay";
131 clock-frequency = <200000>;
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530132
Srinivas Kandagatlae28ce3cc2015-09-18 13:30:38 +0100133 eeprom@52 {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530134 compatible = "atmel,24c128";
135 reg = <0x52>;
136 pagesize = <32>;
137 };
138 };
139 };
140
Pramod Gurav86e252a2015-07-27 14:52:10 +0100141 gsbi@16500000 {
142 status = "ok";
143 qcom,mode = <GSBI_PROT_I2C_UART>;
144
145 serial@16540000 {
146 status = "ok";
Pramod Gurav86e252a2015-07-27 14:52:10 +0100147 pinctrl-names = "default";
148 pinctrl-0 = <&uart_pins>;
149 };
150 };
151
Kumar Galaf335b8a2014-04-03 14:48:22 -0500152 gsbi@16600000 {
153 status = "ok";
154 qcom,mode = <GSBI_PROT_I2C_UART>;
155 serial@16640000 {
156 status = "ok";
157 };
158 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100159
Srinivas Kandagatlae6293352015-04-10 21:43:56 +0100160 sata_phy0: phy@1b400000 {
161 status = "okay";
162 };
163
164 sata0: sata@29000000 {
165 status = "okay";
166 target-supply = <&pm8921_s4>;
167 };
168
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100169 /* OTG */
170 usb1_phy: phy@12500000 {
171 status = "okay";
172 vddcx-supply = <&pm8921_s3>;
173 v3p3-supply = <&pm8921_l3>;
174 v1p8-supply = <&pm8921_l4>;
175 };
176
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100177 usb3_phy: phy@12520000 {
178 status = "okay";
179 vddcx-supply = <&pm8921_s3>;
180 v3p3-supply = <&pm8921_l3>;
181 v1p8-supply = <&pm8921_l23>;
182 };
183
184 usb4_phy: phy@12530000 {
185 status = "okay";
186 vddcx-supply = <&pm8921_s3>;
187 v3p3-supply = <&pm8921_l3>;
188 v1p8-supply = <&pm8921_l23>;
189 };
190
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100191 gadget1: gadget@12500000 {
192 status = "okay";
193 };
194
195 /* OTG */
196 usb1: usb@12500000 {
197 status = "okay";
198 };
199
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100200 usb3: usb@12520000 {
201 status = "okay";
202 };
203
204 usb4: usb@12530000 {
205 status = "okay";
206 };
207
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100208 amba {
209 /* eMMC */
210 sdcc1: sdcc@12400000 {
211 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100212 vmmc-supply = <&pm8921_l5>;
213 vqmmc-supply = <&pm8921_s4>;
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100214 };
215
216 /* External micro SD card */
217 sdcc3: sdcc@12180000 {
218 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100219 vmmc-supply = <&pm8921_l6>;
Pramod Guravb4e10dd2014-10-21 11:23:19 +0530220 pinctrl-names = "default";
221 pinctrl-0 = <&card_detect>;
222 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100223 };
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100224 /* WLAN */
225 sdcc4: sdcc@121c0000 {
226 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100227 vmmc-supply = <&ext_3p3v>;
228 vqmmc-supply = <&pm8921_lvs1>;
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100229 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100230 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500231 };
232};