blob: 5b151e425530e83bef4fd8263df389bf862e9c6b [file] [log] [blame]
Mike Rapoport7dac24b2014-10-01 19:09:11 +03001#include "qcom-apq8064-v2.0.dtsi"
Srinivas Kandagatlaf0b6d952015-09-18 13:32:05 +01002#include <dt-bindings/gpio/gpio.h>
3#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
Mike Rapoport7dac24b2014-10-01 19:09:11 +03004
5/ {
6 model = "CompuLab CM-QS600";
7 compatible = "qcom,apq8064-cm-qs600", "qcom,apq8064";
8
Stephen Boyd4e19db12015-06-16 14:31:45 -07009 aliases {
10 serial0 = &gsbi7_serial;
11 };
12
13 chosen {
14 stdout-path = "serial0:115200n8";
15 };
16
Srinivas Kandagatlaf0b6d952015-09-18 13:32:05 +010017 pwrseq {
18 #address-cells = <1>;
19 #size-cells = <1>;
20 ranges;
21 compatible = "simple-bus";
22
23 sdcc4_pwrseq: sdcc4_pwrseq {
24 pinctrl-names = "default";
25 pinctrl-0 = <&wlan_default_gpios>;
26 compatible = "mmc-pwrseq-simple";
27 reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>;
28 };
29 };
30
Mike Rapoport7dac24b2014-10-01 19:09:11 +030031 soc {
Srinivas Kandagatla8eb84482015-09-18 13:32:18 +010032 pinctrl@800000 {
33 card_detect: card_detect {
34 mux {
35 pins = "gpio26";
36 function = "gpio";
37 bias-disable;
38 };
39 };
Srinivas Kandagatla9d0801a2016-02-23 14:14:14 +000040
41 pcie_pins: pcie_pinmux {
42 mux {
43 pins = "gpio27";
44 function = "gpio";
45 };
46 conf {
47 pins = "gpio27";
48 drive-strength = <12>;
49 bias-disable;
50 };
51 };
Srinivas Kandagatla8eb84482015-09-18 13:32:18 +010052 };
53
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010054 rpm@108000 {
55 regulators {
56 vin_lvs1_3_6-supply = <&pm8921_s4>;
57 vin_lvs2-supply = <&pm8921_s1>;
58 vin_lvs4_5_7-supply = <&pm8921_s4>;
59
60 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
61 vdd_l24-supply = <&pm8921_s1>;
62 vdd_l25-supply = <&pm8921_s1>;
63 vdd_l26-supply = <&pm8921_s7>;
64 vdd_l27-supply = <&pm8921_s7>;
65 vdd_l28-supply = <&pm8921_s7>;
66
67
68 /* Buck SMPS */
Bjorn Andersson2bce6e22015-10-22 11:13:49 -070069 s1 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010070 regulator-always-on;
71 regulator-min-microvolt = <1225000>;
72 regulator-max-microvolt = <1225000>;
73 qcom,switch-mode-frequency = <3200000>;
74 bias-pull-down;
75 };
76
Bjorn Andersson2bce6e22015-10-22 11:13:49 -070077 s3 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010078 regulator-min-microvolt = <1000000>;
79 regulator-max-microvolt = <1400000>;
80 qcom,switch-mode-frequency = <4800000>;
81 };
82
Bjorn Andersson2bce6e22015-10-22 11:13:49 -070083 s4 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010084 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
86 qcom,switch-mode-frequency = <3200000>;
87 };
88
Bjorn Andersson2bce6e22015-10-22 11:13:49 -070089 s7 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010090 regulator-min-microvolt = <1300000>;
91 regulator-max-microvolt = <1300000>;
92 qcom,switch-mode-frequency = <3200000>;
93 };
94
Bjorn Andersson2bce6e22015-10-22 11:13:49 -070095 l3 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010096 regulator-min-microvolt = <3050000>;
97 regulator-max-microvolt = <3300000>;
98 bias-pull-down;
99 };
100
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700101 l4 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +0100102 regulator-min-microvolt = <1000000>;
103 regulator-max-microvolt = <1800000>;
104 bias-pull-down;
105 };
106
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700107 l5 {
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100108 regulator-min-microvolt = <2750000>;
109 regulator-max-microvolt = <3000000>;
110 bias-pull-down;
111 };
112
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700113 l23 {
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +0100114 regulator-min-microvolt = <1700000>;
115 regulator-max-microvolt = <1900000>;
116 bias-pull-down;
117 };
Srinivas Kandagatla9d0801a2016-02-23 14:14:14 +0000118
119 pm8921_lvs6: lvs6 {
120 bias-pull-down;
121 };
122
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +0100123 };
124 };
125
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300126 gsbi@12440000 {
127 status = "okay";
128 qcom,mode = <GSBI_PROT_I2C>;
129
130 i2c@12460000 {
131 status = "okay";
132 clock-frequency = <200000>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300133
Srinivas Kandagatla2c9c2e52015-09-18 13:30:59 +0100134 eeprom@50 {
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300135 compatible = "24c02";
136 reg = <0x50>;
137 pagesize = <32>;
138 };
139 };
140 };
141
142 gsbi@16600000 {
143 status = "ok";
144 qcom,mode = <GSBI_PROT_I2C_UART>;
145 serial@16640000 {
146 status = "ok";
Srinivas Kandagatlabe87cd02015-09-18 13:31:53 +0100147 pinctrl-names = "default";
148 pinctrl-0 = <&gsbi7_uart_2pins>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300149 };
150 };
151
Nicolas Dechesne08372ce2015-04-10 21:44:23 +0100152 /* OTG */
Stephen Boydb9932922017-01-26 16:47:27 -0800153 usb@12500000 {
Nicolas Dechesne08372ce2015-04-10 21:44:23 +0100154 status = "ok";
Stephen Boydb9932922017-01-26 16:47:27 -0800155 dr_mode = "otg";
156 ulpi {
157 phy {
158 v3p3-supply = <&pm8921_l3>;
159 v1p8-supply = <&pm8921_l4>;
160 };
161 };
Nicolas Dechesne08372ce2015-04-10 21:44:23 +0100162 };
163
Stephen Boydb9932922017-01-26 16:47:27 -0800164 usb@12520000 {
Nicolas Dechesne84db78b2015-04-10 21:44:15 +0100165 status = "okay";
Stephen Boydb9932922017-01-26 16:47:27 -0800166 dr_mode = "host";
167 ulpi {
168 phy {
169 v3p3-supply = <&pm8921_l3>;
170 v1p8-supply = <&pm8921_l23>;
171 };
172 };
Nicolas Dechesne84db78b2015-04-10 21:44:15 +0100173 };
174
Stephen Boydb9932922017-01-26 16:47:27 -0800175 usb@12530000 {
Nicolas Dechesne84db78b2015-04-10 21:44:15 +0100176 status = "okay";
Stephen Boydb9932922017-01-26 16:47:27 -0800177 dr_mode = "host";
178 ulpi {
179 phy {
180 v3p3-supply = <&pm8921_l3>;
181 v1p8-supply = <&pm8921_l23>;
182 };
183 };
Nicolas Dechesne84db78b2015-04-10 21:44:15 +0100184 };
185
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100186 /* on board fixed 3.3v supply */
187 v3p3_fixed: v3p3 {
188 compatible = "regulator-fixed";
189 regulator-name = "PCIE V3P3";
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
192 regulator-always-on;
193 };
194
Srinivas Kandagatlaf0b6d952015-09-18 13:32:05 +0100195 qcom,ssbi@500000 {
196 pmic@0 {
197 gpio@150 {
198 wlan_default_gpios: wlan-gpios {
199 pios {
200 pins = "gpio43";
201 function = "normal";
202 bias-disable;
203 power-source = <PM8921_GPIO_S4>;
204 };
205 };
206 };
207 };
208 };
209
Srinivas Kandagatla9d0801a2016-02-23 14:14:14 +0000210 pci@1b500000 {
211 status = "ok";
212 vdda-supply = <&pm8921_s3>;
213 vdda_phy-supply = <&pm8921_lvs6>;
214 vdda_refclk-supply = <&v3p3_fixed>;
215 pinctrl-0 = <&pcie_pins>;
216 pinctrl-names = "default";
217 perst-gpio = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>;
218 };
219
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300220 amba {
221 /* eMMC */
222 sdcc1: sdcc@12400000 {
223 status = "okay";
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100224 vmmc-supply = <&pm8921_l5>;
225 vqmmc-supply = <&pm8921_s4>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300226 };
227
228 /* External micro SD card */
229 sdcc3: sdcc@12180000 {
230 status = "okay";
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100231 vmmc-supply = <&v3p3_fixed>;
Srinivas Kandagatla8eb84482015-09-18 13:32:18 +0100232 pinctrl-names = "default";
233 pinctrl-0 = <&card_detect>;
234 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300235 };
236 /* WLAN */
237 sdcc4: sdcc@121c0000 {
238 status = "okay";
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100239 vmmc-supply = <&v3p3_fixed>;
240 vqmmc-supply = <&v3p3_fixed>;
Srinivas Kandagatlaf0b6d952015-09-18 13:32:05 +0100241 mmc-pwrseq = <&sdcc4_pwrseq>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300242 };
243 };
244 };
245};