e3018656ffd2998e8bd4bd7782dfee78a6a1663d
[deliverable/linux.git] / arch / arm / boot / dts / omap5-cm-t54.dts
1 /*
2 * Support for CompuLab CM-T54
3 */
4 /dts-v1/;
5
6 #include "omap5.dtsi"
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9
10 / {
11 model = "CompuLab CM-T54";
12 compatible = "compulab,omap5-cm-t54", "ti,omap5";
13
14 memory {
15 device_type = "memory";
16 reg = <0x80000000 0x7F000000>; /* 2048 MB */
17 };
18
19 vmmcsd_fixed: fixed-regulator-mmcsd {
20 compatible = "regulator-fixed";
21 regulator-name = "vmmcsd_fixed";
22 regulator-min-microvolt = <3300000>;
23 regulator-max-microvolt = <3300000>;
24 };
25
26 /* HS USB Host PHY on PORT 2 */
27 hsusb2_phy: hsusb2_phy {
28 compatible = "usb-nop-xceiv";
29 reset-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; /* gpio3_76 HUB_RESET */
30 };
31
32 /* HS USB Host PHY on PORT 3 */
33 hsusb3_phy: hsusb3_phy {
34 compatible = "usb-nop-xceiv";
35 reset-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; /* gpio3_83 ETH_RESET */
36 };
37
38 leds {
39 compatible = "gpio-leds";
40 led@1 {
41 label = "Heartbeat";
42 gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; /* gpio3_80 ACT_LED */
43 linux,default-trigger = "heartbeat";
44 default-state = "off";
45 };
46 };
47 };
48
49 &omap5_pmx_core {
50 pinctrl-names = "default";
51 pinctrl-0 = <
52 &led_gpio_pins
53 &usbhost_pins
54 >;
55
56 led_gpio_pins: pinmux_led_gpio_pins {
57 pinctrl-single,pins = <
58 OMAP5_CORE_IOPAD(0x28b0, PIN_OUTPUT | MUX_MODE6) /* hsi2_caflag.gpio3_80 */
59 >;
60 };
61
62 i2c1_pins: pinmux_i2c1_pins {
63 pinctrl-single,pins = <
64 OMAP5_CORE_IOPAD(0x29f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_pmic_scl */
65 OMAP5_CORE_IOPAD(0x29f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_pmic_sda */
66 >;
67 };
68
69 mmc1_pins: pinmux_mmc1_pins {
70 pinctrl-single,pins = <
71 OMAP5_CORE_IOPAD(0x29e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */
72 OMAP5_CORE_IOPAD(0x29e4, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_cmd */
73 OMAP5_CORE_IOPAD(0x29e6, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data2 */
74 OMAP5_CORE_IOPAD(0x29e8, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data3 */
75 OMAP5_CORE_IOPAD(0x29ea, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data0 */
76 OMAP5_CORE_IOPAD(0x29ec, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data1 */
77 >;
78 };
79
80 mmc2_pins: pinmux_mmc2_pins {
81 pinctrl-single,pins = <
82 OMAP5_CORE_IOPAD(0x2840, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_clk */
83 OMAP5_CORE_IOPAD(0x2842, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_cmd */
84 OMAP5_CORE_IOPAD(0x2844, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data0 */
85 OMAP5_CORE_IOPAD(0x2846, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data1 */
86 OMAP5_CORE_IOPAD(0x2848, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data2 */
87 OMAP5_CORE_IOPAD(0x284a, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data3 */
88 OMAP5_CORE_IOPAD(0x284c, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data4 */
89 OMAP5_CORE_IOPAD(0x284e, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data5 */
90 OMAP5_CORE_IOPAD(0x2850, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data6 */
91 OMAP5_CORE_IOPAD(0x2852, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data7 */
92 >;
93 };
94
95 usbhost_pins: pinmux_usbhost_pins {
96 pinctrl-single,pins = <
97 OMAP5_CORE_IOPAD(0x28c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
98 OMAP5_CORE_IOPAD(0x28c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
99
100 OMAP5_CORE_IOPAD(0x29dc, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
101 OMAP5_CORE_IOPAD(0x29de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
102
103 OMAP5_CORE_IOPAD(0x28a8, PIN_OUTPUT | MUX_MODE6) /* hsi2_caready.gpio3_76 */
104 OMAP5_CORE_IOPAD(0x28b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */
105 >;
106 };
107 };
108
109 &mmc1 {
110 pinctrl-names = "default";
111 pinctrl-0 = <&mmc1_pins>;
112 vmmc-supply = <&ldo9_reg>;
113 bus-width = <4>;
114 };
115
116 &mmc2 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&mmc2_pins>;
119 vmmc-supply = <&vmmcsd_fixed>;
120 bus-width = <8>;
121 ti,non-removable;
122 };
123
124 &mmc4 {
125 status = "disabled";
126 };
127
128 &mmc5 {
129 status = "disabled";
130 };
131
132 &i2c1 {
133 pinctrl-names = "default";
134 pinctrl-0 = <&i2c1_pins>;
135
136 clock-frequency = <400000>;
137
138 at24@50 {
139 compatible = "at24,24c02";
140 pagesize = <16>;
141 reg = <0x50>;
142 };
143
144 palmas: palmas@48 {
145 compatible = "ti,palmas";
146 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
147 interrupt-parent = <&gic>;
148 reg = <0x48>;
149 interrupt-controller;
150 #interrupt-cells = <2>;
151 ti,system-power-controller;
152
153 extcon_usb3: palmas_usb {
154 compatible = "ti,palmas-usb-vid";
155 ti,enable-vbus-detection;
156 ti,enable-id-detection;
157 ti,wakeup;
158 };
159
160 rtc {
161 compatible = "ti,palmas-rtc";
162 interrupt-parent = <&palmas>;
163 interrupts = <8 IRQ_TYPE_NONE>;
164 };
165
166 palmas_pmic {
167 compatible = "ti,palmas-pmic";
168 interrupt-parent = <&palmas>;
169 interrupts = <14 IRQ_TYPE_NONE>;
170 interrupt-name = "short-irq";
171
172 ti,ldo6-vibrator;
173
174 regulators {
175 smps123_reg: smps123 {
176 /* VDD_OPP_MPU */
177 regulator-name = "smps123";
178 regulator-min-microvolt = < 600000>;
179 regulator-max-microvolt = <1500000>;
180 regulator-always-on;
181 regulator-boot-on;
182 };
183
184 smps45_reg: smps45 {
185 /* VDD_OPP_MM */
186 regulator-name = "smps45";
187 regulator-min-microvolt = < 600000>;
188 regulator-max-microvolt = <1310000>;
189 regulator-always-on;
190 regulator-boot-on;
191 };
192
193 smps6_reg: smps6 {
194 /* VDD_DDR3 - over VDD_SMPS6 */
195 regulator-name = "smps6";
196 regulator-min-microvolt = <1500000>;
197 regulator-max-microvolt = <1500000>;
198 regulator-always-on;
199 regulator-boot-on;
200 };
201
202 smps7_reg: smps7 {
203 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
204 regulator-name = "smps7";
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <1800000>;
207 regulator-always-on;
208 regulator-boot-on;
209 };
210
211 smps8_reg: smps8 {
212 /* VDD_OPP_CORE */
213 regulator-name = "smps8";
214 regulator-min-microvolt = < 600000>;
215 regulator-max-microvolt = <1310000>;
216 regulator-always-on;
217 regulator-boot-on;
218 };
219
220 smps9_reg: smps9 {
221 /* VDDA_2v1_AUD over VDD_2v1 */
222 regulator-name = "smps9";
223 regulator-min-microvolt = <3300000>;
224 regulator-max-microvolt = <3300000>;
225 ti,smps-range = <0x80>;
226 regulator-always-on;
227 regulator-boot-on;
228 };
229
230 smps10_out2_reg: smps10_out2 {
231 /* VBUS_5V_OTG */
232 regulator-name = "smps10_out2";
233 regulator-min-microvolt = <5000000>;
234 regulator-max-microvolt = <5000000>;
235 regulator-always-on;
236 regulator-boot-on;
237 };
238
239 smps10_out1_reg: smps10_out1 {
240 /* VBUS_5V_OTG */
241 regulator-name = "smps10_out1";
242 regulator-min-microvolt = <5000000>;
243 regulator-max-microvolt = <5000000>;
244 };
245
246 ldo1_reg: ldo1 {
247 /* VDDAPHY_CAM: vdda_csiport */
248 regulator-name = "ldo1";
249 regulator-min-microvolt = <1500000>;
250 regulator-max-microvolt = <1800000>;
251 };
252
253 ldo2_reg: ldo2 {
254 /* VDD_3V3_WLAN */
255 regulator-name = "ldo2";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-boot-on;
259 };
260
261 ldo3_reg: ldo3 {
262 /* VCC_1V5_AUD */
263 regulator-name = "ldo3";
264 regulator-min-microvolt = <1500000>;
265 regulator-max-microvolt = <1500000>;
266 regulator-always-on;
267 regulator-boot-on;
268 };
269
270 ldo4_reg: ldo4 {
271 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
272 regulator-name = "ldo4";
273 regulator-min-microvolt = <1500000>;
274 regulator-max-microvolt = <1800000>;
275 };
276
277 ldo5_reg: ldo5 {
278 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
279 regulator-name = "ldo5";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
282 regulator-always-on;
283 regulator-boot-on;
284 };
285
286 ldo6_reg: ldo6 {
287 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
288 regulator-name = "ldo6";
289 regulator-min-microvolt = <1200000>;
290 regulator-max-microvolt = <1200000>;
291 regulator-always-on;
292 regulator-boot-on;
293 };
294
295 ldo7_reg: ldo7 {
296 /* VDD_VPP: vpp1 */
297 regulator-name = "ldo7";
298 regulator-min-microvolt = <2000000>;
299 regulator-max-microvolt = <2000000>;
300 /* Only for efuse reprograming! */
301 status = "disabled";
302 };
303
304 ldo8_reg: ldo8 {
305 /* VDD_3v0: Does not go anywhere */
306 regulator-name = "ldo8";
307 regulator-min-microvolt = <3000000>;
308 regulator-max-microvolt = <3000000>;
309 regulator-boot-on;
310 /* Unused */
311 status = "disabled";
312 };
313
314 ldo9_reg: ldo9 {
315 /* VCC_DV_SDIO: vdds_sdcard */
316 regulator-name = "ldo9";
317 regulator-min-microvolt = <1800000>;
318 regulator-max-microvolt = <3000000>;
319 regulator-boot-on;
320 };
321
322 ldoln_reg: ldoln {
323 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
324 regulator-name = "ldoln";
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <1800000>;
327 regulator-always-on;
328 regulator-boot-on;
329 };
330
331 ldousb_reg: ldousb {
332 /* VDDA_3V_USB: VDDA_USBHS33 */
333 regulator-name = "ldousb";
334 regulator-min-microvolt = <3250000>;
335 regulator-max-microvolt = <3250000>;
336 regulator-always-on;
337 regulator-boot-on;
338 };
339
340 regen3_reg: regen3 {
341 /* REGEN3 controls LDO9 supply to card */
342 regulator-name = "regen3";
343 regulator-always-on;
344 regulator-boot-on;
345 };
346 };
347 };
348 };
349 };
350
351 &usbhshost {
352 port2-mode = "ehci-hsic";
353 port3-mode = "ehci-hsic";
354 };
355
356 &usbhsehci {
357 phys = <0 &hsusb2_phy &hsusb3_phy>;
358 };
359
360 &cpu0 {
361 cpu0-supply = <&smps123_reg>;
362 };
This page took 0.056525 seconds and 5 git commands to generate.