blob: 03784f1366e593ef2b317568962d1ab17ae03363 [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 };
40 };
41
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +010042 rpm@108000 {
43 regulators {
44 vin_lvs1_3_6-supply = <&pm8921_s4>;
45 vin_lvs2-supply = <&pm8921_s1>;
46 vin_lvs4_5_7-supply = <&pm8921_s4>;
47
48 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
49 vdd_l24-supply = <&pm8921_s1>;
50 vdd_l25-supply = <&pm8921_s1>;
51 vdd_l26-supply = <&pm8921_s7>;
52 vdd_l27-supply = <&pm8921_s7>;
53 vdd_l28-supply = <&pm8921_s7>;
54
55
56 /* Buck SMPS */
57 pm8921_s1: s1 {
58 regulator-always-on;
59 regulator-min-microvolt = <1225000>;
60 regulator-max-microvolt = <1225000>;
61 qcom,switch-mode-frequency = <3200000>;
62 bias-pull-down;
63 };
64
65 pm8921_s3: s3 {
66 regulator-min-microvolt = <1000000>;
67 regulator-max-microvolt = <1400000>;
68 qcom,switch-mode-frequency = <4800000>;
69 };
70
71 pm8921_s4: s4 {
72 regulator-min-microvolt = <1800000>;
73 regulator-max-microvolt = <1800000>;
74 qcom,switch-mode-frequency = <3200000>;
75 };
76
77 pm8921_s7: s7 {
78 regulator-min-microvolt = <1300000>;
79 regulator-max-microvolt = <1300000>;
80 qcom,switch-mode-frequency = <3200000>;
81 };
82
83 pm8921_l3: l3 {
84 regulator-min-microvolt = <3050000>;
85 regulator-max-microvolt = <3300000>;
86 bias-pull-down;
87 };
88
89 pm8921_l4: l4 {
90 regulator-min-microvolt = <1000000>;
91 regulator-max-microvolt = <1800000>;
92 bias-pull-down;
93 };
94
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +010095 pm8921_l5: l5 {
96 regulator-min-microvolt = <2750000>;
97 regulator-max-microvolt = <3000000>;
98 bias-pull-down;
99 };
100
Srinivas Kandagatla1a621d32015-04-10 21:44:05 +0100101 pm8921_l23: l23 {
102 regulator-min-microvolt = <1700000>;
103 regulator-max-microvolt = <1900000>;
104 bias-pull-down;
105 };
106 };
107 };
108
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300109 gsbi@12440000 {
110 status = "okay";
111 qcom,mode = <GSBI_PROT_I2C>;
112
113 i2c@12460000 {
114 status = "okay";
115 clock-frequency = <200000>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300116
Srinivas Kandagatla2c9c2e52015-09-18 13:30:59 +0100117 eeprom@50 {
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300118 compatible = "24c02";
119 reg = <0x50>;
120 pagesize = <32>;
121 };
122 };
123 };
124
125 gsbi@16600000 {
126 status = "ok";
127 qcom,mode = <GSBI_PROT_I2C_UART>;
128 serial@16640000 {
129 status = "ok";
Srinivas Kandagatlabe87cd02015-09-18 13:31:53 +0100130 pinctrl-names = "default";
131 pinctrl-0 = <&gsbi7_uart_2pins>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300132 };
133 };
134
Nicolas Dechesne08372ce2015-04-10 21:44:23 +0100135 /* OTG */
136 usb1_phy: phy@12500000 {
137 status = "okay";
138 vddcx-supply = <&pm8921_s3>;
139 v3p3-supply = <&pm8921_l3>;
140 v1p8-supply = <&pm8921_l4>;
141 };
142
Nicolas Dechesne84db78b2015-04-10 21:44:15 +0100143 usb3_phy: phy@12520000 {
144 status = "okay";
145 vddcx-supply = <&pm8921_s3>;
146 v3p3-supply = <&pm8921_l3>;
147 v1p8-supply = <&pm8921_l23>;
148 };
149
150 usb4_phy: phy@12530000 {
151 status = "okay";
152 vddcx-supply = <&pm8921_s3>;
153 v3p3-supply = <&pm8921_l3>;
154 v1p8-supply = <&pm8921_l23>;
155 };
156
Nicolas Dechesne08372ce2015-04-10 21:44:23 +0100157 gadget1: gadget@12500000 {
158 status = "ok";
159 };
160
161 /* OTG */
162 usb1: usb@12500000 {
163 status = "ok";
164 };
165
Nicolas Dechesne84db78b2015-04-10 21:44:15 +0100166 usb3: usb@12520000 {
167 status = "okay";
168 };
169
170 usb4: usb@12530000 {
171 status = "okay";
172 };
173
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100174 /* on board fixed 3.3v supply */
175 v3p3_fixed: v3p3 {
176 compatible = "regulator-fixed";
177 regulator-name = "PCIE V3P3";
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
180 regulator-always-on;
181 };
182
Srinivas Kandagatlaf0b6d952015-09-18 13:32:05 +0100183 qcom,ssbi@500000 {
184 pmic@0 {
185 gpio@150 {
186 wlan_default_gpios: wlan-gpios {
187 pios {
188 pins = "gpio43";
189 function = "normal";
190 bias-disable;
191 power-source = <PM8921_GPIO_S4>;
192 };
193 };
194 };
195 };
196 };
197
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300198 amba {
199 /* eMMC */
200 sdcc1: sdcc@12400000 {
201 status = "okay";
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100202 vmmc-supply = <&pm8921_l5>;
203 vqmmc-supply = <&pm8921_s4>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300204 };
205
206 /* External micro SD card */
207 sdcc3: sdcc@12180000 {
208 status = "okay";
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100209 vmmc-supply = <&v3p3_fixed>;
Srinivas Kandagatla8eb84482015-09-18 13:32:18 +0100210 pinctrl-names = "default";
211 pinctrl-0 = <&card_detect>;
212 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300213 };
214 /* WLAN */
215 sdcc4: sdcc@121c0000 {
216 status = "okay";
Srinivas Kandagatlabaff39e2015-07-28 09:13:05 +0100217 vmmc-supply = <&v3p3_fixed>;
218 vqmmc-supply = <&v3p3_fixed>;
Srinivas Kandagatlaf0b6d952015-09-18 13:32:05 +0100219 mmc-pwrseq = <&sdcc4_pwrseq>;
Mike Rapoport7dac24b2014-10-01 19:09:11 +0300220 };
221 };
222 };
223};