blob: 88d6655ddaf6dfae95301dfb97d85f46063b05ca [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
Kumar Galaf335b8a2014-04-03 14:48:22 -050013 soc {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +053014 pinctrl@800000 {
Pramod Guravb4e10dd2014-10-21 11:23:19 +053015 card_detect: card_detect {
16 mux {
17 pins = "gpio26";
18 function = "gpio";
19 bias-disable;
20 };
21 };
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +053022 };
23
Srinivas Kandagatlaad560452015-04-10 21:43:14 +010024 rpm@108000 {
25 regulators {
26 vin_lvs1_3_6-supply = <&pm8921_s4>;
27 vin_lvs2-supply = <&pm8921_s1>;
28 vin_lvs4_5_7-supply = <&pm8921_s4>;
29
30 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
31 vdd_l24-supply = <&pm8921_s1>;
32 vdd_l25-supply = <&pm8921_s1>;
33 vdd_l26-supply = <&pm8921_s7>;
34 vdd_l27-supply = <&pm8921_s7>;
35 vdd_l28-supply = <&pm8921_s7>;
36
37
38 /* Buck SMPS */
39 pm8921_s1: s1 {
40 regulator-always-on;
41 regulator-min-microvolt = <1225000>;
42 regulator-max-microvolt = <1225000>;
43 qcom,switch-mode-frequency = <3200000>;
44 bias-pull-down;
45 };
46
47 pm8921_s3: s3 {
48 regulator-min-microvolt = <1000000>;
49 regulator-max-microvolt = <1400000>;
50 qcom,switch-mode-frequency = <4800000>;
51 };
52
53 pm8921_s4: s4 {
54 regulator-min-microvolt = <1800000>;
55 regulator-max-microvolt = <1800000>;
56 qcom,switch-mode-frequency = <3200000>;
57 };
58
59 pm8921_s7: s7 {
60 regulator-min-microvolt = <1300000>;
61 regulator-max-microvolt = <1300000>;
62 qcom,switch-mode-frequency = <3200000>;
63 };
64
65 pm8921_l3: l3 {
66 regulator-min-microvolt = <3050000>;
67 regulator-max-microvolt = <3300000>;
68 bias-pull-down;
69 };
70
71 pm8921_l4: l4 {
72 regulator-min-microvolt = <1000000>;
73 regulator-max-microvolt = <1800000>;
74 bias-pull-down;
75 };
76
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +010077 pm8921_l5: l5 {
78 regulator-min-microvolt = <2750000>;
79 regulator-max-microvolt = <3000000>;
80 bias-pull-down;
81 };
82
Srinivas Kandagatlaad560452015-04-10 21:43:14 +010083 pm8921_l6: l6 {
84 regulator-min-microvolt = <2950000>;
85 regulator-max-microvolt = <2950000>;
86 bias-pull-down;
87 };
88
89 pm8921_l23: l23 {
90 regulator-min-microvolt = <1700000>;
91 regulator-max-microvolt = <1900000>;
92 bias-pull-down;
93 };
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +010094
95 pm8921_lvs1: lvs1 {
96 bias-pull-down;
97 };
Srinivas Kandagatlaad560452015-04-10 21:43:14 +010098 };
99 };
100
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100101 ext_3p3v: regulator-fixed@1 {
102 compatible = "regulator-fixed";
103 regulator-min-microvolt = <3300000>;
104 regulator-max-microvolt = <3300000>;
105 regulator-name = "ext_3p3v";
106 regulator-type = "voltage";
107 startup-delay-us = <0>;
108 gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
109 enable-active-high;
110 regulator-boot-on;
111 };
112
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100113 gsbi3: gsbi@16200000 {
114 status = "okay";
115 qcom,mode = <GSBI_PROT_I2C>;
116 i2c3: i2c@16280000 {
117 status = "okay";
118 pinctrl-0 = <&i2c3_pins>;
119 pinctrl-names = "default";
120 };
121 };
122
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530123 gsbi@12440000 {
124 status = "okay";
125 qcom,mode = <GSBI_PROT_I2C>;
126
127 i2c@12460000 {
128 status = "okay";
129 clock-frequency = <200000>;
130 pinctrl-0 = <&i2c1_pins>;
131 pinctrl-names = "default";
132
133 eeprom: eeprom@52 {
134 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";
147
148 pinctrl-names = "default";
149 pinctrl-0 = <&uart_pins>;
150 };
151 };
152
Kumar Galaf335b8a2014-04-03 14:48:22 -0500153 gsbi@16600000 {
154 status = "ok";
155 qcom,mode = <GSBI_PROT_I2C_UART>;
156 serial@16640000 {
157 status = "ok";
158 };
159 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100160
Srinivas Kandagatlae6293352015-04-10 21:43:56 +0100161 sata_phy0: phy@1b400000 {
162 status = "okay";
163 };
164
165 sata0: sata@29000000 {
166 status = "okay";
167 target-supply = <&pm8921_s4>;
168 };
169
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100170 /* OTG */
171 usb1_phy: phy@12500000 {
172 status = "okay";
173 vddcx-supply = <&pm8921_s3>;
174 v3p3-supply = <&pm8921_l3>;
175 v1p8-supply = <&pm8921_l4>;
176 };
177
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100178 usb3_phy: phy@12520000 {
179 status = "okay";
180 vddcx-supply = <&pm8921_s3>;
181 v3p3-supply = <&pm8921_l3>;
182 v1p8-supply = <&pm8921_l23>;
183 };
184
185 usb4_phy: phy@12530000 {
186 status = "okay";
187 vddcx-supply = <&pm8921_s3>;
188 v3p3-supply = <&pm8921_l3>;
189 v1p8-supply = <&pm8921_l23>;
190 };
191
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100192 gadget1: gadget@12500000 {
193 status = "okay";
194 };
195
196 /* OTG */
197 usb1: usb@12500000 {
198 status = "okay";
199 };
200
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100201 usb3: usb@12520000 {
202 status = "okay";
203 };
204
205 usb4: usb@12530000 {
206 status = "okay";
207 };
208
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100209 amba {
210 /* eMMC */
211 sdcc1: sdcc@12400000 {
212 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100213 vmmc-supply = <&pm8921_l5>;
214 vqmmc-supply = <&pm8921_s4>;
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100215 };
216
217 /* External micro SD card */
218 sdcc3: sdcc@12180000 {
219 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100220 vmmc-supply = <&pm8921_l6>;
Pramod Guravb4e10dd2014-10-21 11:23:19 +0530221 pinctrl-names = "default";
222 pinctrl-0 = <&card_detect>;
223 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100224 };
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100225 /* WLAN */
226 sdcc4: sdcc@121c0000 {
227 status = "okay";
Srinivas Kandagatla2736bba2015-07-28 09:12:58 +0100228 vmmc-supply = <&ext_3p3v>;
229 vqmmc-supply = <&pm8921_lvs1>;
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100230 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100231 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500232 };
233};