1 1.1 yurix /* $NetBSD: am335x-ufw.dts,v 1.1 2026/10/27 20:06:33 yurix Exp $ */ 2 1.1 yurix 3 1.1 yurix /*- 4 1.1 yurix * Copyright (c) 2016, 2017 Rubicon Communications, LLC (Netgate) 5 1.1 yurix * All rights reserved. 6 1.1 yurix * 7 1.1 yurix * Redistribution and use in source and binary forms, with or without 8 1.1 yurix * modification, are permitted provided that the following conditions 9 1.1 yurix * are met: 10 1.1 yurix * 1. Redistributions of source code must retain the above copyright 11 1.1 yurix * notice, this list of conditions and the following disclaimer. 12 1.1 yurix * 2. Redistributions in binary form must reproduce the above copyright 13 1.1 yurix * notice, this list of conditions and the following disclaimer in the 14 1.1 yurix * documentation and/or other materials provided with the distribution. 15 1.1 yurix * 16 1.1 yurix * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17 1.1 yurix * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 1.1 yurix * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 1.1 yurix * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20 1.1 yurix * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 1.1 yurix * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 1.1 yurix * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 1.1 yurix * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 1.1 yurix * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 1.1 yurix * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 1.1 yurix * SUCH DAMAGE. 27 1.1 yurix * 28 1.1 yurix */ 29 1.1 yurix 30 1.1 yurix /dts-v1/; 31 1.1 yurix 32 1.1 yurix #include "ti/omap/am33xx.dtsi" 33 1.1 yurix 34 1.1 yurix / { 35 1.1 yurix model = "AM335x uFW"; 36 1.1 yurix compatible = "ti,am335x-ufw", "ti,am335x-ubmc", "ti,am33xx"; 37 1.1 yurix 38 1.1 yurix memory { 39 1.1 yurix device_type = "memory"; 40 1.1 yurix reg = <0x80000000 0x20000000>; /* 512 MB */ 41 1.1 yurix }; 42 1.1 yurix 43 1.1 yurix vmmcsd_fixed: fixedregulator@0 { 44 1.1 yurix compatible = "regulator-fixed"; 45 1.1 yurix regulator-name = "vmmcsd_fixed"; 46 1.1 yurix regulator-min-microvolt = <3300000>; 47 1.1 yurix regulator-max-microvolt = <3300000>; 48 1.1 yurix }; 49 1.1 yurix }; 50 1.1 yurix 51 1.1 yurix &am33xx_pinmux { 52 1.1 yurix pinctrl-names = "default"; 53 1.1 yurix pinctrl-0 = <&clkout2_pin>; 54 1.1 yurix 55 1.1 yurix i2c0_pins: pinmux_i2c0_pins { 56 1.1 yurix pinctrl-single,pins = < 57 1.1 yurix AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ 58 1.1 yurix AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ 59 1.1 yurix >; 60 1.1 yurix }; 61 1.1 yurix 62 1.1 yurix i2c1_pins: pinmux_i2c1_pins { 63 1.1 yurix pinctrl-single,pins = < 64 1.1 yurix AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE3) /* uart0_ctsn.i2c1_sda */ 65 1.1 yurix AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE3) /* uart0_rtsn.i2c1_scl */ 66 1.1 yurix >; 67 1.1 yurix }; 68 1.1 yurix 69 1.1 yurix uart0_pins: pinmux_uart0_pins { 70 1.1 yurix pinctrl-single,pins = < 71 1.1 yurix AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ 72 1.1 yurix AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ 73 1.1 yurix >; 74 1.1 yurix }; 75 1.1 yurix 76 1.1 yurix clkout2_pin: pinmux_clkout2_pin { 77 1.1 yurix pinctrl-single,pins = < 78 1.1 yurix AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ 79 1.1 yurix >; 80 1.1 yurix }; 81 1.1 yurix 82 1.1 yurix cpsw_default: cpsw_default { 83 1.1 yurix pinctrl-single,pins = < 84 1.1 yurix /* Slave 1 */ 85 1.1 yurix AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii_1_txen */ 86 1.1 yurix AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii_1_rxdv */ 87 1.1 yurix AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii_1_txd3 */ 88 1.1 yurix AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii_1_txd2 */ 89 1.1 yurix AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii_1_txd1 */ 90 1.1 yurix AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii_1_txd0 */ 91 1.1 yurix AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii_1_txclk */ 92 1.1 yurix AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii_1_rxclk */ 93 1.1 yurix AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii_1_rxd3 */ 94 1.1 yurix AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii_1_rxd2 */ 95 1.1 yurix AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii_1_rxd1 */ 96 1.1 yurix AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii_1_rxd0 */ 97 1.1 yurix 98 1.1 yurix /* Slave 2 */ 99 1.1 yurix AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gmpc_a0.rgmii_2_txen */ 100 1.1 yurix AM33XX_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE2) /* gmpc_a1.rgmii_2_rxdv */ 101 1.1 yurix AM33XX_IOPAD(0x848, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gmpc_a2.rgmii_2_txd3 */ 102 1.1 yurix AM33XX_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gmpc_a3.rgmii_2_txd2 */ 103 1.1 yurix AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gmpc_a4.rgmii_2_txd1 */ 104 1.1 yurix AM33XX_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gmpc_a5.rgmii_2_txd0 */ 105 1.1 yurix AM33XX_IOPAD(0x858, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gmpc_a6.rgmii_2_txclk */ 106 1.1 yurix AM33XX_IOPAD(0x85c, PIN_INPUT_PULLUP | MUX_MODE2) /* gmpc_a7.rgmii_2_rxclk */ 107 1.1 yurix AM33XX_IOPAD(0x860, PIN_INPUT_PULLUP | MUX_MODE2) /* gmpc_a8.rgmii_2_rxd3 */ 108 1.1 yurix AM33XX_IOPAD(0x864, PIN_INPUT_PULLUP | MUX_MODE2) /* gmpc_a9.rgmii_2_rxd2 */ 109 1.1 yurix AM33XX_IOPAD(0x868, PIN_INPUT_PULLUP | MUX_MODE2) /* gmpc_a10.rgmii_2_rxd1 */ 110 1.1 yurix AM33XX_IOPAD(0x86c, PIN_INPUT_PULLUP | MUX_MODE2) /* gmpc_a11.rgmii_2_rxd0 */ 111 1.1 yurix >; 112 1.1 yurix }; 113 1.1 yurix 114 1.1 yurix cpsw_sleep: cpsw_sleep { 115 1.1 yurix pinctrl-single,pins = < 116 1.1 yurix /* Slave 1 reset value */ 117 1.1 yurix AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7) 118 1.1 yurix AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7) 119 1.1 yurix AM33XX_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7) 120 1.1 yurix AM33XX_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7) 121 1.1 yurix AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7) 122 1.1 yurix AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7) 123 1.1 yurix AM33XX_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7) 124 1.1 yurix AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7) 125 1.1 yurix AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7) 126 1.1 yurix AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7) 127 1.1 yurix AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7) 128 1.1 yurix AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7) 129 1.1 yurix 130 1.1 yurix /* Slave 2 reset value */ 131 1.1 yurix AM33XX_IOPAD(0x840, PIN_INPUT_PULLDOWN | MUX_MODE7) 132 1.1 yurix AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE7) 133 1.1 yurix AM33XX_IOPAD(0x848, PIN_INPUT_PULLDOWN | MUX_MODE7) 134 1.1 yurix AM33XX_IOPAD(0x84c, PIN_INPUT_PULLDOWN | MUX_MODE7) 135 1.1 yurix AM33XX_IOPAD(0x850, PIN_INPUT_PULLDOWN | MUX_MODE7) 136 1.1 yurix AM33XX_IOPAD(0x854, PIN_INPUT_PULLDOWN | MUX_MODE7) 137 1.1 yurix AM33XX_IOPAD(0x858, PIN_INPUT_PULLDOWN | MUX_MODE7) 138 1.1 yurix AM33XX_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE7) 139 1.1 yurix AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE7) 140 1.1 yurix AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE7) 141 1.1 yurix AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE7) 142 1.1 yurix AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE7) 143 1.1 yurix >; 144 1.1 yurix }; 145 1.1 yurix 146 1.1 yurix davinci_mdio_default: davinci_mdio_default { 147 1.1 yurix pinctrl-single,pins = < 148 1.1 yurix /* MDIO */ 149 1.1 yurix AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ 150 1.1 yurix AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ 151 1.1 yurix >; 152 1.1 yurix }; 153 1.1 yurix 154 1.1 yurix davinci_mdio_sleep: davinci_mdio_sleep { 155 1.1 yurix pinctrl-single,pins = < 156 1.1 yurix /* MDIO reset value */ 157 1.1 yurix AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7) 158 1.1 yurix AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7) 159 1.1 yurix >; 160 1.1 yurix }; 161 1.1 yurix 162 1.1 yurix mmc1_pins: pinmux_mmc1_pins { 163 1.1 yurix pinctrl-single,pins = < 164 1.1 yurix AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ 165 1.1 yurix AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ 166 1.1 yurix AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ 167 1.1 yurix AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ 168 1.1 yurix AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */ 169 1.1 yurix AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ 170 1.1 yurix AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE5) /* spi0_cs1.mmc0_cd */ 171 1.1 yurix >; 172 1.1 yurix }; 173 1.1 yurix 174 1.1 yurix emmc_pins: pinmux_emmc_pins { 175 1.1 yurix pinctrl-single,pins = < 176 1.1 yurix AM33XX_IOPAD(0x994, PIN_INPUT_PULLUP | MUX_MODE4) /* mcasp0_fsx.mmc1_cd */ 177 1.1 yurix AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ 178 1.1 yurix AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ 179 1.1 yurix AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */ 180 1.1 yurix AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */ 181 1.1 yurix AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */ 182 1.1 yurix AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */ 183 1.1 yurix AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */ 184 1.1 yurix AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */ 185 1.1 yurix AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */ 186 1.1 yurix AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */ 187 1.1 yurix >; 188 1.1 yurix }; 189 1.1 yurix }; 190 1.1 yurix 191 1.1 yurix &uart0 { 192 1.1 yurix pinctrl-names = "default"; 193 1.1 yurix pinctrl-0 = <&uart0_pins>; 194 1.1 yurix 195 1.1 yurix status = "okay"; 196 1.1 yurix }; 197 1.1 yurix 198 1.1 yurix &usb { 199 1.1 yurix status = "okay"; 200 1.1 yurix }; 201 1.1 yurix 202 1.1 yurix &usb_ctrl_mod { 203 1.1 yurix status = "okay"; 204 1.1 yurix }; 205 1.1 yurix 206 1.1 yurix &usb0_phy { 207 1.1 yurix status = "okay"; 208 1.1 yurix }; 209 1.1 yurix 210 1.1 yurix &usb1_phy { 211 1.1 yurix status = "okay"; 212 1.1 yurix }; 213 1.1 yurix 214 1.1 yurix &usb0 { 215 1.1 yurix status = "okay"; 216 1.1 yurix dr_mode = "host"; 217 1.1 yurix }; 218 1.1 yurix 219 1.1 yurix &usb1 { 220 1.1 yurix status = "okay"; 221 1.1 yurix dr_mode = "host"; 222 1.1 yurix }; 223 1.1 yurix 224 1.1 yurix &cppi41dma { 225 1.1 yurix status = "okay"; 226 1.1 yurix }; 227 1.1 yurix 228 1.1 yurix &mac_sw { 229 1.1 yurix status = "okay"; 230 1.1 yurix pinctrl-names = "default", "sleep"; 231 1.1 yurix pinctrl-0 = <&cpsw_default>; 232 1.1 yurix pinctrl-1 = <&cpsw_sleep>; 233 1.1 yurix }; 234 1.1 yurix 235 1.1 yurix &cpsw_port1 { 236 1.1 yurix phy-mode = "rgmii-id"; 237 1.1 yurix phy-handle = <ðphy0>; 238 1.1 yurix ti,dual-emac-pvid = <1>; 239 1.1 yurix }; 240 1.1 yurix 241 1.1 yurix &cpsw_port2 { 242 1.1 yurix phy-mode = "rgmii-id"; 243 1.1 yurix phy-handle = <ðphy1>; 244 1.1 yurix ti,dual-emac-pvid = <2>; 245 1.1 yurix }; 246 1.1 yurix 247 1.1 yurix &davinci_mdio_sw { 248 1.1 yurix pinctrl-names = "default", "sleep"; 249 1.1 yurix pinctrl-0 = <&davinci_mdio_default>; 250 1.1 yurix pinctrl-1 = <&davinci_mdio_sleep>; 251 1.1 yurix status = "okay"; 252 1.1 yurix 253 1.1 yurix ethphy0: ethernet-phy@1 { 254 1.1 yurix reg = <1>; 255 1.1 yurix }; 256 1.1 yurix 257 1.1 yurix ethphy1: ethernet-phy@2 { 258 1.1 yurix reg = <2>; 259 1.1 yurix }; 260 1.1 yurix }; 261 1.1 yurix 262 1.1 yurix &aes { 263 1.1 yurix status = "okay"; 264 1.1 yurix }; 265 1.1 yurix 266 1.1 yurix &sham { 267 1.1 yurix status = "okay"; 268 1.1 yurix }; 269 1.1 yurix 270 1.1 yurix &mmc1 { 271 1.1 yurix vmmc-supply = <&vmmcsd_fixed>; 272 1.1 yurix pinctrl-names = "default"; 273 1.1 yurix pinctrl-0 = <&mmc1_pins>; 274 1.1 yurix bus-width = <4>; 275 1.1 yurix non-removable; 276 1.1 yurix wp-disable; 277 1.1 yurix status = "okay"; 278 1.1 yurix }; 279 1.1 yurix 280 1.1 yurix &mmc2 { 281 1.1 yurix vmmc-supply = <&vmmcsd_fixed>; 282 1.1 yurix pinctrl-names = "default"; 283 1.1 yurix pinctrl-0 = <&emmc_pins>; 284 1.1 yurix bus-width = <8>; 285 1.1 yurix ti,dual-volt; 286 1.1 yurix non-removable; 287 1.1 yurix status = "okay"; 288 1.1 yurix }; 289 1.1 yurix 290 1.1 yurix &i2c0 { 291 1.1 yurix pinctrl-names = "default"; 292 1.1 yurix pinctrl-0 = <&i2c0_pins>; 293 1.1 yurix 294 1.1 yurix status = "okay"; 295 1.1 yurix clock-frequency = <400000>; 296 1.1 yurix 297 1.1 yurix baseboard_eeprom: baseboard_eeprom@50 { 298 1.1 yurix compatible = "atmel,24c02"; 299 1.1 yurix reg = <0x50>; 300 1.1 yurix 301 1.1 yurix #address-cells = <1>; 302 1.1 yurix #size-cells = <1>; 303 1.1 yurix baseboard_data: baseboard_data@0 { 304 1.1 yurix reg = <0 0x100>; 305 1.1 yurix }; 306 1.1 yurix }; 307 1.1 yurix }; 308 1.1 yurix 309 1.1 yurix &i2c1 { 310 1.1 yurix pinctrl-names = "default"; 311 1.1 yurix pinctrl-0 = <&i2c1_pins>; 312 1.1 yurix 313 1.1 yurix status = "okay"; 314 1.1 yurix }; 315