1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
4 * Copyright (C) 2014 Stefan Roese <sr@denx.de>
8 #include "omap34xx.dtsi"
10 /* Secure omaps have some devices inaccessible depending on the firmware */
27 device_type = "memory";
28 reg = <0x80000000 0x10000000>; /* 256 MB */
31 /* HS USB Port 2 Power */
32 hsusb2_power: hsusb2_power_reg {
33 compatible = "regulator-fixed";
34 regulator-name = "hsusb2_vbus";
35 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
37 gpio = <&twl_gpio 18 GPIO_ACTIVE_HIGH>; /* GPIO LEDA */
38 startup-delay-us = <70000>;
41 /* HS USB Host PHY on PORT 2 */
42 hsusb2_phy: hsusb2_phy {
43 compatible = "usb-nop-xceiv";
44 reset-gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* gpio_162 */
45 vcc-supply = <&hsusb2_power>;
50 compatible = "ti,omap-twl4030";
51 ti,model = "omap3beagle";
53 /* McBSP2 is used for onboard sound, same as on beagle */
57 /* Regulator to enable/switch the vcc of the Wifi module */
58 mmc2_sdio_poweron: regulator-mmc2-sdio-poweron {
59 compatible = "regulator-fixed";
60 regulator-name = "regulator-mmc2-sdio-poweron";
61 regulator-min-microvolt = <3150000>;
62 regulator-max-microvolt = <3150000>;
63 gpio = <&gpio5 29 GPIO_ACTIVE_LOW>; /* gpio_157 */
64 startup-delay-us = <10000>;
69 hsusbb2_pins: pinmux_hsusbb2_pins {
70 pinctrl-single,pins = <
71 OMAP3_CORE1_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
72 OMAP3_CORE1_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
73 OMAP3_CORE1_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
74 OMAP3_CORE1_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
75 OMAP3_CORE1_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
76 OMAP3_CORE1_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
77 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
78 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
79 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
80 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
81 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
82 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
86 mmc1_pins: pinmux_mmc1_pins {
87 pinctrl-single,pins = <
88 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
89 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
90 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
91 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
92 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
93 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
94 OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat4.sdmmc1_dat4 */
95 OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat5.sdmmc1_dat5 */
96 OMAP3_CORE1_IOPAD(0x2154, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat6.sdmmc1_dat6 */
97 OMAP3_CORE1_IOPAD(0x2156, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat7.sdmmc1_dat7 */
101 mmc2_pins: pinmux_mmc2_pins {
102 pinctrl-single,pins = <
103 OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
104 OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
105 OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
106 OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
107 OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
108 OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
112 /* wlan GPIO output for WLAN_EN */
113 wlan_gpio: pinmux_wlan_gpio {
114 pinctrl-single,pins = <
115 OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_fsr gpio_157 */
119 uart3_pins: pinmux_uart3_pins {
120 pinctrl-single,pins = <
121 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
122 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
126 i2c3_pins: pinmux_i2c3_pins {
127 pinctrl-single,pins = <
128 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl.i2c3_scl */
129 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.i2c3_sda */
133 mcspi1_pins: pinmux_mcspi1_pins {
134 pinctrl-single,pins = <
135 OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
136 OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
137 OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
138 OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
142 mcspi3_pins: pinmux_mcspi3_pins {
143 pinctrl-single,pins = <
144 OMAP3_CORE1_IOPAD(0x25dc, PIN_OUTPUT | MUX_MODE1) /* etk_d0.mcspi3_simo gpio14 INPUT | MODE1 */
145 OMAP3_CORE1_IOPAD(0x25de, PIN_INPUT_PULLUP | MUX_MODE1) /* etk_d1.mcspi3_somi gpio15 INPUT | MODE1 */
146 OMAP3_CORE1_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE1) /* etk_d2.mcspi3_cs0 gpio16 INPUT | MODE1 */
147 OMAP3_CORE1_IOPAD(0x25e2, PIN_INPUT | MUX_MODE1) /* etk_d3.mcspi3_clk gpio17 INPUT | MODE1 */
151 mcbsp3_pins: pinmux_mcbsp3_pins {
152 pinctrl-single,pins = <
153 OMAP3_CORE1_IOPAD(0x216c, PIN_OUTPUT | MUX_MODE0) /* mcbsp3_dx.uart2_cts */
154 OMAP3_CORE1_IOPAD(0x216e, PIN_INPUT | MUX_MODE0) /* mcbsp3_dr.uart2_rts */
155 OMAP3_CORE1_IOPAD(0x2170, PIN_INPUT | MUX_MODE0) /* mcbsp3_clk.uart2_tx */
156 OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE0) /* mcbsp3_fsx.uart2_rx */
161 /* McBSP1: mux'ed with GPIO158 as clock for HA-DSP */
171 clock-frequency = <2600000>;
175 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
176 interrupt-parent = <&intc>;
179 compatible = "ti,twl4030-audio";
187 clock-frequency = <100000>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&i2c3_pins>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&mcspi1_pins>;
198 compatible = "spidev";
199 spi-max-frequency = <48000000>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&mcspi3_pins>;
210 compatible = "spidev";
211 spi-max-frequency = <48000000>;
217 #include "twl4030.dtsi"
218 #include "twl4030_omap3.dtsi"
221 pinctrl-names = "default";
222 pinctrl-0 = <&mmc1_pins>;
223 vmmc-supply = <&vmmc1>;
224 vqmmc-supply = <&vsim>;
225 cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
229 // WiFi (Marvell 88W8686) on MMC2/SDIO
231 pinctrl-names = "default";
232 pinctrl-0 = <&mmc2_pins>;
233 vmmc-supply = <&mmc2_sdio_poweron>;
244 port2-mode = "ehci-phy";
248 phys = <0 &hsusb2_phy>;
253 /* pullups: BIT(1) */
254 ti,pullups = <0x000002>;
257 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
258 * BIT(15), BIT(16), BIT(17)
260 ti,pulldowns = <0x03a1c4>;
264 pinctrl-names = "default";
265 pinctrl-0 = <&uart3_pins>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&mcbsp3_pins>;
275 ranges = <0 0 0x30000000 0x01000000>; /* CS0: 16MB for NAND */
278 compatible = "ti,omap2-nand";
279 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
280 interrupt-parent = <&gpmc>;
281 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
282 <1 IRQ_TYPE_NONE>; /* termcount */
283 nand-bus-width = <16>;
284 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
285 ti,nand-ecc-opt = "sw";
288 gpmc,cs-rd-off-ns = <36>;
289 gpmc,cs-wr-off-ns = <36>;
290 gpmc,adv-on-ns = <6>;
291 gpmc,adv-rd-off-ns = <24>;
292 gpmc,adv-wr-off-ns = <36>;
294 gpmc,oe-off-ns = <48>;
296 gpmc,we-off-ns = <30>;
297 gpmc,rd-cycle-ns = <72>;
298 gpmc,wr-cycle-ns = <72>;
299 gpmc,access-ns = <54>;
300 gpmc,wr-access-ns = <30>;
302 #address-cells = <1>;
312 reg = <0x80000 0x1e0000>;
315 bootloaders_env@260000 {
316 label = "U-Boot Env";
317 reg = <0x260000 0x20000>;
322 reg = <0x280000 0x400000>;
326 label = "File System";
327 reg = <0x680000 0xf980000>;
333 interface-type = <0>;
334 usb-phy = <&usb2_phy>;
336 phy-names = "usb2-phy";
342 regulator-name = "vdd_ehci";
343 regulator-min-microvolt = <1800000>;
344 regulator-max-microvolt = <1800000>;