blob: 321b6d7448ac34bc6b7ae1d0ef1b18434ed709c1 [file] [log] [blame]
Andrew Davis855bb442023-04-11 13:24:59 -05001// SPDX-License-Identifier: GPL-2.0-only
Derald D. Woods49dde872017-12-29 10:37:31 -06002/*
Andrew Davis855bb442023-04-11 13:24:59 -05003 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
Derald D. Woods49dde872017-12-29 10:37:31 -06004 */
5/dts-v1/;
6
7#include "omap34xx.dtsi"
8
9/ {
10 model = "TI OMAP3 BeagleBoard";
11 compatible = "ti,omap3-beagle", "ti,omap3";
12
13 cpus {
14 cpu@0 {
15 cpu0-supply = <&vcc>;
16 };
17 };
18
19 memory@80000000 {
20 device_type = "memory";
21 reg = <0x80000000 0x10000000>; /* 256 MB */
22 };
23
24 aliases {
25 display0 = &dvi0;
26 display1 = &tv0;
27 };
28
29 leds {
30 compatible = "gpio-leds";
Andrew Davisddb82a02023-04-11 13:25:08 -050031 led-pmu-stat {
Derald D. Woods49dde872017-12-29 10:37:31 -060032 label = "beagleboard::pmu_stat";
33 gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
34 };
35
Andrew Davisddb82a02023-04-11 13:25:08 -050036 led-heartbeat {
Derald D. Woods49dde872017-12-29 10:37:31 -060037 label = "beagleboard::usr0";
38 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
39 linux,default-trigger = "heartbeat";
40 };
41
Andrew Davisddb82a02023-04-11 13:25:08 -050042 led-mmc {
Derald D. Woods49dde872017-12-29 10:37:31 -060043 label = "beagleboard::usr1";
44 gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
45 linux,default-trigger = "mmc0";
46 };
47 };
48
49 /* HS USB Port 2 Power */
50 hsusb2_power: hsusb2_power_reg {
51 compatible = "regulator-fixed";
52 regulator-name = "hsusb2_vbus";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
55 gpio = <&twl_gpio 18 GPIO_ACTIVE_HIGH>; /* GPIO LEDA */
56 startup-delay-us = <70000>;
57 };
58
59 /* HS USB Host PHY on PORT 2 */
60 hsusb2_phy: hsusb2_phy {
61 compatible = "usb-nop-xceiv";
62 reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */
63 vcc-supply = <&hsusb2_power>;
64 #phy-cells = <0>;
65 };
66
67 sound {
68 compatible = "ti,omap-twl4030";
69 ti,model = "omap3beagle";
70
71 ti,mcbsp = <&mcbsp2>;
72 };
73
74 gpio_keys {
75 compatible = "gpio-keys";
76
77 user {
78 label = "user";
79 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
80 linux,code = <0x114>;
81 wakeup-source;
82 };
83
84 };
85
86 tfp410: encoder0 {
87 compatible = "ti,tfp410";
88 powerdown-gpios = <&gpio6 10 GPIO_ACTIVE_LOW>; /* gpio_170 */
89
90 pinctrl-names = "default";
91 pinctrl-0 = <&tfp410_pins>;
92
93 ports {
94 #address-cells = <1>;
95 #size-cells = <0>;
96
97 port@0 {
98 reg = <0>;
99
100 tfp410_in: endpoint {
101 remote-endpoint = <&dpi_out>;
102 };
103 };
104
105 port@1 {
106 reg = <1>;
107
108 tfp410_out: endpoint {
109 remote-endpoint = <&dvi_connector_in>;
110 };
111 };
112 };
113 };
114
115 dvi0: connector0 {
116 compatible = "dvi-connector";
117 label = "dvi";
118
119 digital;
120
121 ddc-i2c-bus = <&i2c3>;
122
123 port {
124 dvi_connector_in: endpoint {
125 remote-endpoint = <&tfp410_out>;
126 };
127 };
128 };
129
130 tv0: connector1 {
131 compatible = "svideo-connector";
132 label = "tv";
133
134 port {
135 tv_connector_in: endpoint {
136 remote-endpoint = <&venc_out>;
137 };
138 };
139 };
140
141 etb@540000000 {
142 compatible = "arm,coresight-etb10", "arm,primecell";
143 reg = <0x5401b000 0x1000>;
144
145 clocks = <&emu_src_ck>;
146 clock-names = "apb_pclk";
147 port {
148 etb_in: endpoint {
149 slave-mode;
150 remote-endpoint = <&etm_out>;
151 };
152 };
153 };
154
155 etm@54010000 {
156 compatible = "arm,coresight-etm3x", "arm,primecell";
157 reg = <0x54010000 0x1000>;
158
159 clocks = <&emu_src_ck>;
160 clock-names = "apb_pclk";
161 port {
162 etm_out: endpoint {
163 remote-endpoint = <&etb_in>;
164 };
165 };
166 };
167};
168
169&omap3_pmx_wkup {
170 gpio1_pins: pinmux_gpio1_pins {
171 pinctrl-single,pins = <
172 OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
173 >;
174 };
175};
176
177&omap3_pmx_core {
178 pinctrl-names = "default";
179 pinctrl-0 = <
180 &hsusb2_pins
181 >;
182
183 hsusb2_pins: pinmux_hsusb2_pins {
184 pinctrl-single,pins = <
185 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
186 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
187 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
188 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
189 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
190 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
191 >;
192 };
193
194 uart3_pins: pinmux_uart3_pins {
195 pinctrl-single,pins = <
196 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
197 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
198 >;
199 };
200
201 tfp410_pins: pinmux_tfp410_pins {
202 pinctrl-single,pins = <
203 OMAP3_CORE1_IOPAD(0x21c6, PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */
204 >;
205 };
206
207 dss_dpi_pins: pinmux_dss_dpi_pins {
208 pinctrl-single,pins = <
209 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
210 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
211 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
212 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
213 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
214 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
215 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
216 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
217 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
218 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
219 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
220 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
221 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
222 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
223 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
224 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
225 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
226 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
227 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
228 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
229 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
230 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
231 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
232 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
233 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
234 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
235 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
236 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
237 >;
238 };
239};
240
241&omap3_pmx_core2 {
242 pinctrl-names = "default";
243 pinctrl-0 = <
244 &hsusb2_2_pins
245 >;
246
247 hsusb2_2_pins: pinmux_hsusb2_2_pins {
248 pinctrl-single,pins = <
249 OMAP3430_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
250 OMAP3430_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
251 OMAP3430_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
252 OMAP3430_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
253 OMAP3430_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
254 OMAP3430_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
255 >;
256 };
257};
258
259&i2c1 {
260 clock-frequency = <2600000>;
261
262 twl: twl@48 {
263 reg = <0x48>;
264 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
265 interrupt-parent = <&intc>;
266
267 twl_audio: audio {
268 compatible = "ti,twl4030-audio";
269 codec {
270 };
271 };
272 };
273};
274
275#include "twl4030.dtsi"
276#include "twl4030_omap3.dtsi"
277
278&i2c3 {
279 clock-frequency = <100000>;
280};
281
282&mmc1 {
283 vmmc-supply = <&vmmc1>;
284 vqmmc-supply = <&vsim>;
285 bus-width = <8>;
286};
287
288&mmc2 {
289 status = "disabled";
290};
291
292&mmc3 {
293 status = "disabled";
294};
295
296&usbhshost {
297 port2-mode = "ehci-phy";
298};
299
300&usbhsehci {
301 phys = <0 &hsusb2_phy>;
302};
303
304&twl_gpio {
305 ti,use-leds;
306 /* pullups: BIT(1) */
307 ti,pullups = <0x000002>;
308 /*
309 * pulldowns:
310 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
311 * BIT(15), BIT(16), BIT(17)
312 */
313 ti,pulldowns = <0x03a1c4>;
314};
315
316&uart3 {
317 pinctrl-names = "default";
318 pinctrl-0 = <&uart3_pins>;
319 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
320};
321
322&gpio1 {
323 pinctrl-names = "default";
324 pinctrl-0 = <&gpio1_pins>;
325};
326
327&usb_otg_hs {
328 interface-type = <0>;
329 usb-phy = <&usb2_phy>;
330 phys = <&usb2_phy>;
331 phy-names = "usb2-phy";
332 mode = <3>;
333 power = <50>;
334};
335
336&vaux2 {
337 regulator-name = "vdd_ehci";
338 regulator-min-microvolt = <1800000>;
339 regulator-max-microvolt = <1800000>;
340 regulator-always-on;
341};
342
343&mcbsp2 {
344 status = "okay";
345};
346
347/* Needed to power the DPI pins */
348&vpll2 {
349 regulator-always-on;
350};
351
352&dss {
Roger Quadros0ffbc742021-08-24 14:07:27 +0300353 status = "okay";
Derald D. Woods49dde872017-12-29 10:37:31 -0600354
355 pinctrl-names = "default";
356 pinctrl-0 = <&dss_dpi_pins>;
357
358 port {
359 dpi_out: endpoint {
360 remote-endpoint = <&tfp410_in>;
361 data-lines = <24>;
362 };
363 };
364};
365
366&venc {
Roger Quadros0ffbc742021-08-24 14:07:27 +0300367 status = "okay";
Derald D. Woods49dde872017-12-29 10:37:31 -0600368
369 vdda-supply = <&vdac>;
370
371 port {
372 venc_out: endpoint {
373 remote-endpoint = <&tv_connector_in>;
374 ti,channels = <2>;
375 };
376 };
377};
378
379&gpmc {
Roger Quadros0ffbc742021-08-24 14:07:27 +0300380 status = "okay";
Derald D. Woods49dde872017-12-29 10:37:31 -0600381 ranges = <0 0 0x30000000 0x1000000>; /* CS0 space, 16MB */
382
383 /* Chip select 0 */
384 nand@0,0 {
385 compatible = "ti,omap2-nand";
386 reg = <0 0 4>; /* NAND I/O window, 4 bytes */
387 interrupt-parent = <&gpmc>;
388 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
389 <1 IRQ_TYPE_NONE>; /* termcount */
390 ti,nand-ecc-opt = "ham1";
391 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
392 nand-bus-width = <16>;
393 #address-cells = <1>;
394 #size-cells = <1>;
395
396 gpmc,device-width = <2>;
397 gpmc,cs-on-ns = <0>;
398 gpmc,cs-rd-off-ns = <36>;
399 gpmc,cs-wr-off-ns = <36>;
400 gpmc,adv-on-ns = <6>;
401 gpmc,adv-rd-off-ns = <24>;
402 gpmc,adv-wr-off-ns = <36>;
403 gpmc,oe-on-ns = <6>;
404 gpmc,oe-off-ns = <48>;
405 gpmc,we-on-ns = <6>;
406 gpmc,we-off-ns = <30>;
407 gpmc,rd-cycle-ns = <72>;
408 gpmc,wr-cycle-ns = <72>;
409 gpmc,access-ns = <54>;
410 gpmc,wr-access-ns = <30>;
411
412 partition@0 {
413 label = "X-Loader";
414 reg = <0 0x80000>;
415 };
416 partition@80000 {
417 label = "U-Boot";
418 reg = <0x80000 0x1e0000>;
419 };
420 partition@1c0000 {
421 label = "U-Boot Env";
422 reg = <0x260000 0x20000>;
423 };
424 partition@280000 {
425 label = "Kernel";
426 reg = <0x280000 0x400000>;
427 };
428 partition@780000 {
429 label = "Filesystem";
430 reg = <0x680000 0xf980000>;
431 };
432 };
433};