blob: f3100da082b2a3cbe1a1229a1f6be0a21ab4ca5a [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";
122 pinctrl-0 = <&i2c3_pins>;
123 pinctrl-names = "default";
124 };
125 };
126
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530127 gsbi@12440000 {
128 status = "okay";
129 qcom,mode = <GSBI_PROT_I2C>;
130
131 i2c@12460000 {
132 status = "okay";
133 clock-frequency = <200000>;
134 pinctrl-0 = <&i2c1_pins>;
135 pinctrl-names = "default";
136
137 eeprom: eeprom@52 {
138 compatible = "atmel,24c128";
139 reg = <0x52>;
140 pagesize = <32>;
141 };
142 };
143 };
144
Pramod Gurav86e252a2015-07-27 14:52:10 +0100145 gsbi@16500000 {
146 status = "ok";
147 qcom,mode = <GSBI_PROT_I2C_UART>;
148
149 serial@16540000 {
150 status = "ok";
151
152 pinctrl-names = "default";
153 pinctrl-0 = <&uart_pins>;
154 };
155 };
156
Kumar Galaf335b8a2014-04-03 14:48:22 -0500157 gsbi@16600000 {
158 status = "ok";
159 qcom,mode = <GSBI_PROT_I2C_UART>;
160 serial@16640000 {
161 status = "ok";
162 };
163 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100164
Srinivas Kandagatlae6293352015-04-10 21:43:56 +0100165 sata_phy0: phy@1b400000 {
166 status = "okay";
167 };
168
169 sata0: sata@29000000 {
170 status = "okay";
171 target-supply = <&pm8921_s4>;
172 };
173
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100174 /* OTG */
175 usb1_phy: phy@12500000 {
176 status = "okay";
177 vddcx-supply = <&pm8921_s3>;
178 v3p3-supply = <&pm8921_l3>;
179 v1p8-supply = <&pm8921_l4>;
180 };
181
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100182 usb3_phy: phy@12520000 {
183 status = "okay";
184 vddcx-supply = <&pm8921_s3>;
185 v3p3-supply = <&pm8921_l3>;
186 v1p8-supply = <&pm8921_l23>;
187 };
188
189 usb4_phy: phy@12530000 {
190 status = "okay";
191 vddcx-supply = <&pm8921_s3>;
192 v3p3-supply = <&pm8921_l3>;
193 v1p8-supply = <&pm8921_l23>;
194 };
195
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100196 gadget1: gadget@12500000 {
197 status = "okay";
198 };
199
200 /* OTG */
201 usb1: usb@12500000 {
202 status = "okay";
203 };
204
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100205 usb3: usb@12520000 {
206 status = "okay";
207 };
208
209 usb4: usb@12530000 {
210 status = "okay";
211 };
212
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100213 amba {
214 /* eMMC */
215 sdcc1: sdcc@12400000 {
216 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100217 vmmc-supply = <&pm8921_l5>;
218 vqmmc-supply = <&pm8921_s4>;
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100219 };
220
221 /* External micro SD card */
222 sdcc3: sdcc@12180000 {
223 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100224 vmmc-supply = <&pm8921_l6>;
Pramod Guravb4e10dd2014-10-21 11:23:19 +0530225 pinctrl-names = "default";
226 pinctrl-0 = <&card_detect>;
227 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100228 };
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100229 /* WLAN */
230 sdcc4: sdcc@121c0000 {
231 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100232 vmmc-supply = <&ext_3p3v>;
233 vqmmc-supply = <&pm8921_lvs1>;
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100234 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100235 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500236 };
237};