Lokesh Vutla | aebb2a4 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | */ |
| 5 | |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 6 | #include <dt-bindings/net/ti-dp83867.h> |
| 7 | |
Lokesh Vutla | aebb2a4 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 8 | / { |
| 9 | chosen { |
| 10 | stdout-path = "serial2:115200n8"; |
| 11 | tick-timer = &timer1; |
| 12 | }; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 13 | |
| 14 | aliases { |
| 15 | ethernet0 = &cpsw_port1; |
| 16 | }; |
Lokesh Vutla | aebb2a4 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | &cbass_main{ |
| 20 | u-boot,dm-spl; |
| 21 | }; |
| 22 | |
| 23 | &cbass_mcu_wakeup { |
| 24 | u-boot,dm-spl; |
| 25 | |
| 26 | timer1: timer@40400000 { |
| 27 | compatible = "ti,omap5430-timer"; |
| 28 | reg = <0x0 0x40400000 0x0 0x80>; |
| 29 | ti,timer-alwon; |
| 30 | clock-frequency = <25000000>; |
| 31 | u-boot,dm-spl; |
| 32 | }; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 33 | |
| 34 | mcu_conf: scm_conf@40f00000 { |
| 35 | compatible = "syscon", "simple-mfd"; |
| 36 | reg = <0x0 0x40f00000 0x0 0x20000>; |
| 37 | #address-cells = <1>; |
| 38 | #size-cells = <1>; |
| 39 | ranges = <0x0 0x0 0x40f00000 0x20000>; |
| 40 | |
| 41 | phy_sel: cpsw-phy-sel@4040 { |
| 42 | compatible = "ti,am654-cpsw-phy-sel"; |
| 43 | reg = <0x4040 0x4>; |
| 44 | reg-names = "gmii-sel"; |
| 45 | }; |
| 46 | }; |
| 47 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 48 | mcu_navss { |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 49 | u-boot,dm-spl; |
| 50 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 51 | ringacc@2b800000 { |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 52 | u-boot,dm-spl; |
| 53 | }; |
| 54 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 55 | dma-controller@285c0000 { |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 56 | u-boot,dm-spl; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | mcu_cpsw: ethernet@046000000 { |
| 61 | compatible = "ti,j721e-cpsw-nuss"; |
| 62 | #address-cells = <2>; |
| 63 | #size-cells = <2>; |
| 64 | reg = <0x0 0x46000000 0x0 0x200000>; |
| 65 | reg-names = "cpsw_nuss"; |
| 66 | ranges; |
| 67 | dma-coherent; |
| 68 | clocks = <&k3_clks 18 22>; |
| 69 | clock-names = "fck"; |
| 70 | power-domains = <&k3_pds 18 TI_SCI_PD_EXCLUSIVE>; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 71 | cpsw-phy-sel = <&phy_sel>; |
| 72 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 73 | dmas = <&mcu_udmap 0xf000>, |
| 74 | <&mcu_udmap 0xf001>, |
| 75 | <&mcu_udmap 0xf002>, |
| 76 | <&mcu_udmap 0xf003>, |
| 77 | <&mcu_udmap 0xf004>, |
| 78 | <&mcu_udmap 0xf005>, |
| 79 | <&mcu_udmap 0xf006>, |
| 80 | <&mcu_udmap 0xf007>, |
| 81 | <&mcu_udmap 0x7000>; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 82 | dma-names = "tx0", "tx1", "tx2", "tx3", |
| 83 | "tx4", "tx5", "tx6", "tx7", |
| 84 | "rx"; |
| 85 | |
| 86 | ports { |
| 87 | #address-cells = <1>; |
| 88 | #size-cells = <0>; |
| 89 | |
| 90 | host: host@0 { |
| 91 | reg = <0>; |
| 92 | ti,label = "host"; |
| 93 | }; |
| 94 | |
| 95 | cpsw_port1: port@1 { |
| 96 | reg = <1>; |
| 97 | ti,mac-only; |
| 98 | ti,label = "port1"; |
| 99 | ti,syscon-efuse = <&mcu_conf 0x200>; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | davinci_mdio: mdio { |
| 104 | #address-cells = <1>; |
| 105 | #size-cells = <0>; |
| 106 | bus_freq = <1000000>; |
| 107 | }; |
| 108 | |
| 109 | cpts { |
| 110 | clocks = <&k3_clks 18 2>; |
| 111 | clock-names = "cpts"; |
| 112 | interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>; |
| 113 | interrupt-names = "cpts"; |
| 114 | ti,cpts-ext-ts-inputs = <4>; |
| 115 | ti,cpts-periodic-outputs = <2>; |
| 116 | }; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 117 | }; |
Lokesh Vutla | aebb2a4 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 118 | }; |
| 119 | |
| 120 | &secure_proxy_main { |
| 121 | u-boot,dm-spl; |
| 122 | }; |
| 123 | |
| 124 | &dmsc { |
| 125 | u-boot,dm-spl; |
| 126 | k3_sysreset: sysreset-controller { |
| 127 | compatible = "ti,sci-sysreset"; |
| 128 | u-boot,dm-spl; |
| 129 | }; |
| 130 | }; |
| 131 | |
| 132 | &k3_pds { |
| 133 | u-boot,dm-spl; |
| 134 | }; |
| 135 | |
| 136 | &k3_clks { |
| 137 | u-boot,dm-spl; |
| 138 | }; |
| 139 | |
| 140 | &k3_reset { |
| 141 | u-boot,dm-spl; |
| 142 | }; |
| 143 | |
| 144 | &wkup_pmx0 { |
| 145 | u-boot,dm-spl; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 146 | mcu_cpsw_pins_default: mcu_cpsw_pins_default { |
| 147 | pinctrl-single,pins = < |
| 148 | J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */ |
| 149 | J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */ |
| 150 | J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */ |
| 151 | J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */ |
| 152 | J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */ |
| 153 | J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */ |
| 154 | J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */ |
| 155 | J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */ |
| 156 | J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */ |
| 157 | J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */ |
| 158 | J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */ |
| 159 | J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */ |
| 160 | >; |
| 161 | }; |
| 162 | |
| 163 | mcu_mdio_pins_default: mcu_mdio1_pins_default { |
| 164 | pinctrl-single,pins = < |
| 165 | J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ |
| 166 | J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ |
| 167 | >; |
| 168 | }; |
Lokesh Vutla | aebb2a4 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 169 | }; |
| 170 | |
| 171 | &main_pmx0 { |
| 172 | u-boot,dm-spl; |
| 173 | }; |
| 174 | |
| 175 | &main_uart0 { |
| 176 | u-boot,dm-spl; |
| 177 | }; |
| 178 | |
| 179 | &mcu_uart0 { |
| 180 | u-boot,dm-spl; |
| 181 | }; |
| 182 | |
| 183 | &main_sdhci0 { |
| 184 | u-boot,dm-spl; |
| 185 | }; |
| 186 | |
| 187 | &main_sdhci1 { |
| 188 | u-boot,dm-spl; |
| 189 | }; |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 190 | |
Vignesh Raghavendra | 5aeab3b | 2019-11-18 19:16:35 +0530 | [diff] [blame] | 191 | &main_usbss0_pins_default { |
| 192 | u-boot,dm-spl; |
| 193 | }; |
| 194 | |
| 195 | &usbss0 { |
| 196 | u-boot,dm-spl; |
| 197 | ti,usb2-only; |
| 198 | }; |
| 199 | |
| 200 | &usb0 { |
| 201 | dr_mode = "peripheral"; |
| 202 | u-boot,dm-spl; |
| 203 | }; |
| 204 | |
Vignesh Raghavendra | 4886f1c | 2019-12-04 22:17:24 +0530 | [diff] [blame] | 205 | &mcu_cpsw { |
| 206 | pinctrl-names = "default"; |
| 207 | pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; |
| 208 | }; |
| 209 | |
| 210 | &davinci_mdio { |
| 211 | phy0: ethernet-phy@0 { |
| 212 | reg = <0>; |
| 213 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 214 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 215 | }; |
| 216 | }; |
| 217 | |
| 218 | &cpsw_port1 { |
| 219 | phy-mode = "rgmii-rxid"; |
| 220 | phy-handle = <&phy0>; |
| 221 | }; |
| 222 | |
| 223 | &mcu_cpsw { |
| 224 | reg = <0x0 0x46000000 0x0 0x200000>, |
| 225 | <0x0 0x40f00200 0x0 0x2>; |
| 226 | reg-names = "cpsw_nuss", "mac_efuse"; |
| 227 | |
| 228 | cpsw-phy-sel@40f04040 { |
| 229 | compatible = "ti,am654-cpsw-phy-sel"; |
| 230 | reg= <0x0 0x40f04040 0x0 0x4>; |
| 231 | reg-names = "gmii-sel"; |
| 232 | }; |
| 233 | }; |
Faiz Abbas | ccc855e | 2020-01-16 19:42:21 +0530 | [diff] [blame] | 234 | |
| 235 | &main_mmc1_pins_default { |
| 236 | u-boot,dm-spl; |
| 237 | }; |
Andreas Dannenberg | c44fb27 | 2020-01-07 13:15:56 +0530 | [diff] [blame] | 238 | |
| 239 | &wkup_i2c0_pins_default { |
| 240 | u-boot,dm-spl; |
| 241 | }; |
| 242 | |
| 243 | &wkup_i2c0 { |
| 244 | u-boot,dm-spl; |
| 245 | }; |
Vignesh Raghavendra | b642778 | 2020-01-27 23:22:15 +0530 | [diff] [blame] | 246 | |
| 247 | &main_i2c0 { |
| 248 | u-boot,dm-spl; |
| 249 | }; |
| 250 | |
| 251 | &main_i2c0_pins_default { |
| 252 | u-boot,dm-spl; |
| 253 | }; |
| 254 | |
| 255 | &exp2 { |
| 256 | u-boot,dm-spl; |
| 257 | }; |
Vignesh Raghavendra | 224d7fe | 2020-02-04 11:09:52 +0530 | [diff] [blame] | 258 | |
| 259 | &mcu_fss0_ospi0_pins_default { |
| 260 | u-boot,dm-spl; |
| 261 | }; |
| 262 | |
| 263 | &fss { |
| 264 | u-boot,dm-spl; |
| 265 | }; |
| 266 | |
| 267 | &ospi0 { |
| 268 | u-boot,dm-spl; |
| 269 | |
| 270 | flash@0 { |
| 271 | u-boot,dm-spl; |
| 272 | }; |
| 273 | }; |
Keerthy | 896cf0e | 2020-03-04 10:09:59 +0530 | [diff] [blame] | 274 | |
| 275 | &ospi1 { |
| 276 | u-boot,dm-spl; |
| 277 | |
| 278 | flash@0 { |
| 279 | u-boot,dm-spl; |
| 280 | }; |
| 281 | }; |
| 282 | |
| 283 | &mcu_fss0_ospi1_pins_default { |
| 284 | u-boot,dm-spl; |
| 285 | }; |