Loading...
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
4 */
5/dts-v1/;
6
7#include "omap5-board-common.dtsi"
8
9/ {
10 model = "TI OMAP5 uEVM board";
11 compatible = "ti,omap5-uevm", "ti,omap5";
12
13 memory@80000000 {
14 device_type = "memory";
15 reg = <0 0x80000000 0 0x7f000000>; /* 2032 MB */
16 };
17
18 aliases {
19 ethernet = ðernet;
20 };
21
22 leds {
23 compatible = "gpio-leds";
24 led1 {
25 label = "omap5:blue:usr1";
26 gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
27 linux,default-trigger = "heartbeat";
28 default-state = "off";
29 };
30 };
31
32 evm_keys {
33 compatible = "gpio-keys";
34
35 pinctrl-names = "default";
36 pinctrl-0 = <&evm_keys_pins>;
37
38 #address-cells = <7>;
39 #size-cells = <0>;
40
41 btn1 {
42 label = "BTN1";
43 linux,code = <169>;
44 gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; /* gpio3_83 */
45 wakeup-source;
46 autorepeat;
47 debounce-interval = <50>;
48 };
49 };
50
51 evm_leds {
52 compatible = "gpio-leds";
53
54 led1 {
55 label = "omap5:red:led";
56 gpios = <&gpio9 17 GPIO_ACTIVE_HIGH>;
57 linux,default-trigger = "mmc0";
58 default-state = "off";
59 };
60
61 led2 {
62 label = "omap5:green:led";
63 gpios = <&gpio9 18 GPIO_ACTIVE_HIGH>;
64 linux,default-trigger = "mmc1";
65 default-state = "off";
66 };
67
68 led3 {
69 label = "omap5:blue:led";
70 gpios = <&gpio9 19 GPIO_ACTIVE_HIGH>;
71 linux,default-trigger = "mmc2";
72 default-state = "off";
73 };
74
75 led4 {
76 label = "omap5:green:led1";
77 gpios = <&gpio9 2 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "heartbeat";
79 default-state = "off";
80 };
81
82 led5 {
83 label = "omap5:green:led2";
84 gpios = <&gpio9 3 GPIO_ACTIVE_HIGH>;
85 linux,default-trigger = "default-on";
86 default-state = "off";
87 };
88
89 led6 {
90 label = "omap5:green:led3";
91 gpios = <&gpio9 4 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger = "heartbeat";
93 default-state = "off";
94 };
95
96 led7 {
97 label = "omap5:green:led4";
98 gpios = <&gpio9 5 GPIO_ACTIVE_HIGH>;
99 linux,default-trigger = "default-on";
100 default-state = "off";
101 };
102
103 led8 {
104 label = "omap5:green:led5";
105 gpios = <&gpio9 6 GPIO_ACTIVE_HIGH>;
106 linux,default-trigger = "heartbeat";
107 default-state = "off";
108 };
109 };
110};
111
112&hdmi {
113 vdda-supply = <&ldo4_reg>;
114};
115
116&i2c1 {
117 eeprom@50 {
118 compatible = "atmel,24c02";
119 reg = <0x50>;
120 };
121};
122
123&i2c5 {
124 pinctrl-names = "default";
125 pinctrl-0 = <&i2c5_pins>;
126
127 clock-frequency = <400000>;
128
129 gpio9: gpio@22 {
130 compatible = "ti,tca6424";
131 reg = <0x22>;
132 gpio-controller;
133 #gpio-cells = <2>;
134 };
135};
136
137&mmc1 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&mmc1_pins>;
140
141 cd-gpios = <&gpio5 24 GPIO_ACTIVE_LOW>; /* gpio5_152 */
142};
143
144&omap5_pmx_core {
145 evm_keys_pins: pinmux_evm_keys_gpio_pins {
146 pinctrl-single,pins = <
147 OMAP5_IOPAD(0x0b6, PIN_INPUT | MUX_MODE6) /* gpio3_83 */
148 >;
149 };
150
151 i2c5_pins: pinmux_i2c5_pins {
152 pinctrl-single,pins = <
153 OMAP5_IOPAD(0x1c6, PIN_INPUT | MUX_MODE0) /* i2c5_scl */
154 OMAP5_IOPAD(0x1c8, PIN_INPUT | MUX_MODE0) /* i2c5_sda */
155 >;
156 };
157
158 mmc1_pins: pinmux_mmc1_pins {
159 pinctrl-single,pins = <
160 OMAP5_IOPAD(0x1d4, PIN_INPUT_PULLUP | MUX_MODE6) /* gpio5_152 */
161 >;
162 };
163};
164
165&tpd12s015 {
166 gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>, /* TCA6424A P01, CT CP HPD */
167 <&gpio9 1 GPIO_ACTIVE_HIGH>, /* TCA6424A P00, LS OE */
168 <&gpio7 1 GPIO_ACTIVE_HIGH>; /* GPIO 193, HPD */
169};
170
171&twl6040 {
172 ti,audpwron-gpio = <&gpio5 13 GPIO_ACTIVE_HIGH>; /* gpio line 141 */
173};
174
175&twl6040_pins {
176 pinctrl-single,pins = <
177 OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
178 >;
179};
180
181&usbhsehci {
182 #address-cells = <1>;
183 #size-cells = <0>;
184
185 hub@2 {
186 compatible = "usb424,3503";
187 reg = <2>;
188 #address-cells = <1>;
189 #size-cells = <0>;
190 };
191
192 ethernet: usbether@3 {
193 compatible = "usb424,9730";
194 reg = <3>;
195 };
196};
197
198&wlcore {
199 compatible = "ti,wl1837";
200};
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8/dts-v1/;
9
10#include "omap5.dtsi"
11#include <dt-bindings/interrupt-controller/irq.h>
12#include <dt-bindings/interrupt-controller/arm-gic.h>
13
14/ {
15 model = "TI OMAP5 uEVM board";
16 compatible = "ti,omap5-uevm", "ti,omap5";
17
18 memory {
19 device_type = "memory";
20 reg = <0x80000000 0x7F000000>; /* 2032 MB */
21 };
22
23 vmmcsd_fixed: fixedregulator-mmcsd {
24 compatible = "regulator-fixed";
25 regulator-name = "vmmcsd_fixed";
26 regulator-min-microvolt = <3000000>;
27 regulator-max-microvolt = <3000000>;
28 };
29
30 /* HS USB Host PHY on PORT 2 */
31 hsusb2_phy: hsusb2_phy {
32 compatible = "usb-nop-xceiv";
33 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
34 clocks = <&auxclk1_ck>;
35 clock-names = "main_clk";
36 clock-frequency = <19200000>;
37 };
38
39 /* HS USB Host PHY on PORT 3 */
40 hsusb3_phy: hsusb3_phy {
41 compatible = "usb-nop-xceiv";
42 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
43 };
44
45 leds {
46 compatible = "gpio-leds";
47 led@1 {
48 label = "omap5:blue:usr1";
49 gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
50 linux,default-trigger = "heartbeat";
51 default-state = "off";
52 };
53 };
54};
55
56&omap5_pmx_core {
57 pinctrl-names = "default";
58 pinctrl-0 = <
59 &twl6040_pins
60 &mcpdm_pins
61 &mcbsp1_pins
62 &mcbsp2_pins
63 &usbhost_pins
64 &led_gpio_pins
65 >;
66
67 twl6040_pins: pinmux_twl6040_pins {
68 pinctrl-single,pins = <
69 0x17e (PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
70 >;
71 };
72
73 mcpdm_pins: pinmux_mcpdm_pins {
74 pinctrl-single,pins = <
75 0x142 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
76 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
77 0x15e (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
78 0x160 (PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
79 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
80 >;
81 };
82
83 mcbsp1_pins: pinmux_mcbsp1_pins {
84 pinctrl-single,pins = <
85 0x14c (PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
86 0x14e (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
87 0x150 (PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
88 0x152 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
89 >;
90 };
91
92 mcbsp2_pins: pinmux_mcbsp2_pins {
93 pinctrl-single,pins = <
94 0x154 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
95 0x156 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
96 0x158 (PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
97 0x15a (PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
98 >;
99 };
100
101 i2c1_pins: pinmux_i2c1_pins {
102 pinctrl-single,pins = <
103 0x1b2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
104 0x1b4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
105 >;
106 };
107
108 i2c5_pins: pinmux_i2c5_pins {
109 pinctrl-single,pins = <
110 0x184 (PIN_INPUT | MUX_MODE0) /* i2c5_scl */
111 0x186 (PIN_INPUT | MUX_MODE0) /* i2c5_sda */
112 >;
113 };
114
115 mcspi2_pins: pinmux_mcspi2_pins {
116 pinctrl-single,pins = <
117 0xbc (PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
118 0xbe (PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
119 0xc0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
120 0xc2 (PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
121 >;
122 };
123
124 mcspi3_pins: pinmux_mcspi3_pins {
125 pinctrl-single,pins = <
126 0x78 (PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
127 0x7a (PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
128 0x7c (PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
129 0x7e (PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
130 >;
131 };
132
133 mcspi4_pins: pinmux_mcspi4_pins {
134 pinctrl-single,pins = <
135 0x164 (PIN_INPUT | MUX_MODE1) /* mcspi4_clk */
136 0x168 (PIN_INPUT | MUX_MODE1) /* mcspi4_simo */
137 0x16a (PIN_INPUT | MUX_MODE1) /* mcspi4_somi */
138 0x16c (PIN_INPUT | MUX_MODE1) /* mcspi4_cs0 */
139 >;
140 };
141
142 usbhost_pins: pinmux_usbhost_pins {
143 pinctrl-single,pins = <
144 0x84 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
145 0x86 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
146
147 0x19e (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
148 0x1a0 (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
149
150 0x70 (PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
151 0x6e (PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
152 >;
153 };
154
155 led_gpio_pins: pinmux_led_gpio_pins {
156 pinctrl-single,pins = <
157 0x196 (PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
158 >;
159 };
160
161 uart1_pins: pinmux_uart1_pins {
162 pinctrl-single,pins = <
163 0x60 (PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
164 0x62 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
165 0x64 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
166 0x66 (PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
167 >;
168 };
169
170 uart3_pins: pinmux_uart3_pins {
171 pinctrl-single,pins = <
172 0x19a (PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
173 0x19c (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
174 >;
175 };
176
177 uart5_pins: pinmux_uart5_pins {
178 pinctrl-single,pins = <
179 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
180 0x172 (PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
181 0x174 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
182 0x176 (PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
183 >;
184 };
185
186};
187
188&omap5_pmx_wkup {
189 pinctrl-names = "default";
190 pinctrl-0 = <
191 &usbhost_wkup_pins
192 >;
193
194 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
195 pinctrl-single,pins = <
196 0x1A (PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
197 >;
198 };
199};
200
201&mmc1 {
202 vmmc-supply = <&ldo9_reg>;
203 bus-width = <4>;
204};
205
206&mmc2 {
207 vmmc-supply = <&vmmcsd_fixed>;
208 bus-width = <8>;
209 ti,non-removable;
210};
211
212&mmc3 {
213 bus-width = <4>;
214 ti,non-removable;
215};
216
217&mmc4 {
218 status = "disabled";
219};
220
221&mmc5 {
222 status = "disabled";
223};
224
225&i2c1 {
226 pinctrl-names = "default";
227 pinctrl-0 = <&i2c1_pins>;
228
229 clock-frequency = <400000>;
230
231 palmas: palmas@48 {
232 compatible = "ti,palmas";
233 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
234 interrupt-parent = <&gic>;
235 reg = <0x48>;
236 interrupt-controller;
237 #interrupt-cells = <2>;
238 ti,system-power-controller;
239
240 extcon_usb3: palmas_usb {
241 compatible = "ti,palmas-usb-vid";
242 ti,enable-vbus-detection;
243 ti,enable-id-detection;
244 ti,wakeup;
245 };
246
247 palmas_pmic {
248 compatible = "ti,palmas-pmic";
249 interrupt-parent = <&palmas>;
250 interrupts = <14 IRQ_TYPE_NONE>;
251 interrupt-name = "short-irq";
252
253 ti,ldo6-vibrator;
254
255 regulators {
256 smps123_reg: smps123 {
257 /* VDD_OPP_MPU */
258 regulator-name = "smps123";
259 regulator-min-microvolt = < 600000>;
260 regulator-max-microvolt = <1500000>;
261 regulator-always-on;
262 regulator-boot-on;
263 };
264
265 smps45_reg: smps45 {
266 /* VDD_OPP_MM */
267 regulator-name = "smps45";
268 regulator-min-microvolt = < 600000>;
269 regulator-max-microvolt = <1310000>;
270 regulator-always-on;
271 regulator-boot-on;
272 };
273
274 smps6_reg: smps6 {
275 /* VDD_DDR3 - over VDD_SMPS6 */
276 regulator-name = "smps6";
277 regulator-min-microvolt = <1200000>;
278 regulator-max-microvolt = <1200000>;
279 regulator-always-on;
280 regulator-boot-on;
281 };
282
283 smps7_reg: smps7 {
284 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
285 regulator-name = "smps7";
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <1800000>;
288 regulator-always-on;
289 regulator-boot-on;
290 };
291
292 smps8_reg: smps8 {
293 /* VDD_OPP_CORE */
294 regulator-name = "smps8";
295 regulator-min-microvolt = < 600000>;
296 regulator-max-microvolt = <1310000>;
297 regulator-always-on;
298 regulator-boot-on;
299 };
300
301 smps9_reg: smps9 {
302 /* VDDA_2v1_AUD over VDD_2v1 */
303 regulator-name = "smps9";
304 regulator-min-microvolt = <2100000>;
305 regulator-max-microvolt = <2100000>;
306 ti,smps-range = <0x80>;
307 };
308
309 smps10_out2_reg: smps10_out2 {
310 /* VBUS_5V_OTG */
311 regulator-name = "smps10_out2";
312 regulator-min-microvolt = <5000000>;
313 regulator-max-microvolt = <5000000>;
314 regulator-always-on;
315 regulator-boot-on;
316 };
317
318 smps10_out1_reg: smps10_out1 {
319 /* VBUS_5V_OTG */
320 regulator-name = "smps10_out1";
321 regulator-min-microvolt = <5000000>;
322 regulator-max-microvolt = <5000000>;
323 };
324
325 ldo1_reg: ldo1 {
326 /* VDDAPHY_CAM: vdda_csiport */
327 regulator-name = "ldo1";
328 regulator-min-microvolt = <1500000>;
329 regulator-max-microvolt = <1800000>;
330 };
331
332 ldo2_reg: ldo2 {
333 /* VCC_2V8_DISP: Does not go anywhere */
334 regulator-name = "ldo2";
335 regulator-min-microvolt = <2800000>;
336 regulator-max-microvolt = <2800000>;
337 /* Unused */
338 status = "disabled";
339 };
340
341 ldo3_reg: ldo3 {
342 /* VDDAPHY_MDM: vdda_lli */
343 regulator-name = "ldo3";
344 regulator-min-microvolt = <1500000>;
345 regulator-max-microvolt = <1500000>;
346 regulator-boot-on;
347 /* Only if Modem is used */
348 status = "disabled";
349 };
350
351 ldo4_reg: ldo4 {
352 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
353 regulator-name = "ldo4";
354 regulator-min-microvolt = <1500000>;
355 regulator-max-microvolt = <1800000>;
356 };
357
358 ldo5_reg: ldo5 {
359 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
360 regulator-name = "ldo5";
361 regulator-min-microvolt = <1800000>;
362 regulator-max-microvolt = <1800000>;
363 regulator-always-on;
364 regulator-boot-on;
365 };
366
367 ldo6_reg: ldo6 {
368 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
369 regulator-name = "ldo6";
370 regulator-min-microvolt = <1200000>;
371 regulator-max-microvolt = <1200000>;
372 regulator-always-on;
373 regulator-boot-on;
374 };
375
376 ldo7_reg: ldo7 {
377 /* VDD_VPP: vpp1 */
378 regulator-name = "ldo7";
379 regulator-min-microvolt = <2000000>;
380 regulator-max-microvolt = <2000000>;
381 /* Only for efuse reprograming! */
382 status = "disabled";
383 };
384
385 ldo8_reg: ldo8 {
386 /* VDD_3v0: Does not go anywhere */
387 regulator-name = "ldo8";
388 regulator-min-microvolt = <3000000>;
389 regulator-max-microvolt = <3000000>;
390 regulator-boot-on;
391 /* Unused */
392 status = "disabled";
393 };
394
395 ldo9_reg: ldo9 {
396 /* VCC_DV_SDIO: vdds_sdcard */
397 regulator-name = "ldo9";
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <3000000>;
400 regulator-boot-on;
401 };
402
403 ldoln_reg: ldoln {
404 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
405 regulator-name = "ldoln";
406 regulator-min-microvolt = <1800000>;
407 regulator-max-microvolt = <1800000>;
408 regulator-always-on;
409 regulator-boot-on;
410 };
411
412 ldousb_reg: ldousb {
413 /* VDDA_3V_USB: VDDA_USBHS33 */
414 regulator-name = "ldousb";
415 regulator-min-microvolt = <3250000>;
416 regulator-max-microvolt = <3250000>;
417 regulator-always-on;
418 regulator-boot-on;
419 };
420
421 regen3_reg: regen3 {
422 /* REGEN3 controls LDO9 supply to card */
423 regulator-name = "regen3";
424 regulator-always-on;
425 regulator-boot-on;
426 };
427 };
428 };
429 };
430};
431
432&i2c5 {
433 pinctrl-names = "default";
434 pinctrl-0 = <&i2c5_pins>;
435
436 clock-frequency = <400000>;
437};
438
439&mcbsp3 {
440 status = "disabled";
441};
442
443&usbhshost {
444 port2-mode = "ehci-hsic";
445 port3-mode = "ehci-hsic";
446};
447
448&usbhsehci {
449 phys = <0 &hsusb2_phy &hsusb3_phy>;
450};
451
452&usb3 {
453 extcon = <&extcon_usb3>;
454 vbus-supply = <&smps10_out1_reg>;
455};
456
457&mcspi1 {
458
459};
460
461&mcspi2 {
462 pinctrl-names = "default";
463 pinctrl-0 = <&mcspi2_pins>;
464};
465
466&mcspi3 {
467 pinctrl-names = "default";
468 pinctrl-0 = <&mcspi3_pins>;
469};
470
471&mcspi4 {
472 pinctrl-names = "default";
473 pinctrl-0 = <&mcspi4_pins>;
474};
475
476&uart1 {
477 pinctrl-names = "default";
478 pinctrl-0 = <&uart1_pins>;
479};
480
481&uart3 {
482 pinctrl-names = "default";
483 pinctrl-0 = <&uart3_pins>;
484};
485
486&uart5 {
487 pinctrl-names = "default";
488 pinctrl-0 = <&uart5_pins>;
489};
490
491&cpu0 {
492 cpu0-supply = <&smps123_reg>;
493};