Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | */ |
| 5 | |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 6 | #include <dt-bindings/pinctrl/k3.h> |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 7 | #include <dt-bindings/net/ti-dp83867.h> |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | chosen { |
| 11 | stdout-path = "serial2:115200n8"; |
| 12 | }; |
| 13 | |
| 14 | aliases { |
| 15 | serial2 = &main_uart0; |
Grygorii Strashko | 5195c10 | 2019-07-09 10:30:35 +0530 | [diff] [blame] | 16 | ethernet0 = &cpsw_port1; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 17 | }; |
| 18 | }; |
| 19 | |
| 20 | &cbass_main{ |
| 21 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 22 | |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 23 | sdhci1: sdhci@04FA0000 { |
Faiz Abbas | 3a1a0df | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 24 | compatible = "ti,am654-sdhci-5.1"; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 25 | reg = <0x0 0x4FA0000 0x0 0x1000>, |
| 26 | <0x0 0x4FB0000 0x0 0x400>; |
Faiz Abbas | fe0e30c | 2020-01-16 19:42:18 +0530 | [diff] [blame] | 27 | clocks =<&k3_clks 48 0>, <&k3_clks 48 1>; |
| 28 | clock-names = "clk_ahb", "clk_xin"; |
Lokesh Vutla | 355be91 | 2019-06-07 19:24:47 +0530 | [diff] [blame] | 29 | power-domains = <&k3_pds 48 TI_SCI_PD_EXCLUSIVE>; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 30 | max-frequency = <25000000>; |
Faiz Abbas | c7d106b | 2020-02-26 13:44:33 +0530 | [diff] [blame] | 31 | ti,otap-del-sel-legacy = <0x0>; |
| 32 | ti,otap-del-sel-mmc-hs = <0x0>; |
| 33 | ti,otap-del-sel-sd-hs = <0x0>; |
| 34 | ti,otap-del-sel-sdr12 = <0x0>; |
| 35 | ti,otap-del-sel-sdr25 = <0x0>; |
| 36 | ti,otap-del-sel-sdr50 = <0x8>; |
| 37 | ti,otap-del-sel-sdr104 = <0x7>; |
| 38 | ti,otap-del-sel-ddr50 = <0x4>; |
| 39 | ti,otap-del-sel-ddr52 = <0x4>; |
| 40 | ti,otap-del-sel-hs200 = <0x7>; |
Faiz Abbas | bbcfaad | 2019-06-11 00:43:36 +0530 | [diff] [blame] | 41 | ti,trm-icp = <0x8>; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | }; |
| 45 | |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 46 | &cbass_mcu { |
| 47 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 48 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 49 | mcu_navss { |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 50 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 51 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 52 | ringacc@2b800000 { |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 53 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 54 | }; |
| 55 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 56 | dma-controller@285c0000 { |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 57 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 58 | }; |
| 59 | }; |
Grygorii Strashko | 5195c10 | 2019-07-09 10:30:35 +0530 | [diff] [blame] | 60 | |
| 61 | mcu_conf: scm_conf@40f00000 { |
| 62 | compatible = "syscon"; |
| 63 | reg = <0x0 0x40f00000 0x0 0x20000>; |
| 64 | }; |
| 65 | |
| 66 | mcu_cpsw: cpsw_nuss@046000000 { |
| 67 | compatible = "ti,am654-cpsw-nuss"; |
| 68 | #address-cells = <2>; |
| 69 | #size-cells = <2>; |
| 70 | reg = <0x0 0x46000000 0x0 0x200000>; |
| 71 | reg-names = "cpsw_nuss"; |
| 72 | ranges; |
| 73 | dma-coherent; |
| 74 | clocks = <&k3_clks 5 10>; |
| 75 | clock-names = "fck"; |
Suman Anna | dcddf0f | 2019-07-29 11:13:41 -0500 | [diff] [blame] | 76 | power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>; |
Grygorii Strashko | 5195c10 | 2019-07-09 10:30:35 +0530 | [diff] [blame] | 77 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame^] | 78 | dmas = <&mcu_udmap 0xf000>, |
| 79 | <&mcu_udmap 0xf001>, |
| 80 | <&mcu_udmap 0xf002>, |
| 81 | <&mcu_udmap 0xf003>, |
| 82 | <&mcu_udmap 0xf004>, |
| 83 | <&mcu_udmap 0xf005>, |
| 84 | <&mcu_udmap 0xf006>, |
| 85 | <&mcu_udmap 0xf007>, |
| 86 | <&mcu_udmap 0x7000>; |
Grygorii Strashko | 5195c10 | 2019-07-09 10:30:35 +0530 | [diff] [blame] | 87 | dma-names = "tx0", "tx1", "tx2", "tx3", |
| 88 | "tx4", "tx5", "tx6", "tx7", |
| 89 | "rx"; |
| 90 | |
| 91 | ports { |
| 92 | #address-cells = <1>; |
| 93 | #size-cells = <0>; |
| 94 | host: host@0 { |
| 95 | reg = <0>; |
| 96 | ti,label = "host"; |
| 97 | }; |
| 98 | |
| 99 | cpsw_port1: port@1 { |
| 100 | reg = <1>; |
| 101 | ti,mac-only; |
| 102 | ti,label = "port1"; |
| 103 | ti,syscon-efuse = <&mcu_conf 0x200>; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | davinci_mdio: mdio { |
| 108 | #address-cells = <1>; |
| 109 | #size-cells = <0>; |
| 110 | bus_freq = <1000000>; |
| 111 | }; |
Grygorii Strashko | 5195c10 | 2019-07-09 10:30:35 +0530 | [diff] [blame] | 112 | }; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 113 | }; |
| 114 | |
| 115 | &cbass_wakeup { |
| 116 | u-boot,dm-spl; |
| 117 | }; |
| 118 | |
| 119 | &secure_proxy_main { |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 120 | u-boot,dm-spl; |
| 121 | }; |
| 122 | |
| 123 | &dmsc { |
| 124 | u-boot,dm-spl; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 125 | k3_sysreset: sysreset-controller { |
| 126 | compatible = "ti,sci-sysreset"; |
| 127 | u-boot,dm-spl; |
| 128 | }; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 129 | }; |
| 130 | |
| 131 | &k3_pds { |
| 132 | u-boot,dm-spl; |
| 133 | }; |
| 134 | |
| 135 | &k3_clks { |
| 136 | u-boot,dm-spl; |
| 137 | }; |
| 138 | |
| 139 | &k3_reset { |
| 140 | u-boot,dm-spl; |
| 141 | }; |
| 142 | |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 143 | &wkup_pmx0 { |
| 144 | u-boot,dm-spl; |
| 145 | |
| 146 | wkup_i2c0_pins_default { |
| 147 | u-boot,dm-spl; |
| 148 | }; |
| 149 | }; |
| 150 | |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 151 | &main_pmx0 { |
| 152 | u-boot,dm-spl; |
| 153 | main_uart0_pins_default: main_uart0_pins_default { |
| 154 | pinctrl-single,pins = < |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 155 | AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */ |
| 156 | AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */ |
| 157 | AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */ |
| 158 | AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */ |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 159 | >; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 160 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 161 | }; |
| 162 | |
| 163 | main_mmc0_pins_default: main_mmc0_pins_default { |
| 164 | pinctrl-single,pins = < |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 165 | AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */ |
| 166 | AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */ |
| 167 | AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */ |
| 168 | AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */ |
| 169 | AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */ |
| 170 | AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */ |
| 171 | AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */ |
| 172 | AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */ |
| 173 | AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */ |
| 174 | AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */ |
Faiz Abbas | 3a1a0df | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 175 | AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */ |
| 176 | AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 177 | >; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 178 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | main_mmc1_pins_default: main_mmc1_pins_default { |
| 182 | pinctrl-single,pins = < |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 183 | AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */ |
| 184 | AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */ |
| 185 | AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */ |
| 186 | AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */ |
| 187 | AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */ |
| 188 | AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */ |
| 189 | AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */ |
| 190 | AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */ |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 191 | >; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 192 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | }; |
| 196 | |
| 197 | &main_pmx1 { |
| 198 | u-boot,dm-spl; |
| 199 | }; |
| 200 | |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 201 | &wkup_pmx0 { |
| 202 | mcu_cpsw_pins_default: mcu_cpsw_pins_default { |
| 203 | pinctrl-single,pins = < |
| 204 | AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */ |
| 205 | AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */ |
| 206 | AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */ |
| 207 | AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */ |
| 208 | AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */ |
| 209 | AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */ |
| 210 | AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */ |
| 211 | AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */ |
| 212 | AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */ |
| 213 | AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */ |
| 214 | AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */ |
| 215 | AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */ |
| 216 | >; |
| 217 | }; |
| 218 | |
| 219 | mcu_mdio_pins_default: mcu_mdio1_pins_default { |
| 220 | pinctrl-single,pins = < |
| 221 | AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ |
| 222 | AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ |
| 223 | >; |
| 224 | }; |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 225 | |
| 226 | mcu-fss0-ospi0-pins-default { |
| 227 | u-boot,dm-spl; |
| 228 | }; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 229 | }; |
| 230 | |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 231 | &main_uart0 { |
| 232 | u-boot,dm-spl; |
| 233 | pinctrl-names = "default"; |
| 234 | pinctrl-0 = <&main_uart0_pins_default>; |
| 235 | status = "okay"; |
| 236 | }; |
| 237 | |
| 238 | &sdhci0 { |
| 239 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 240 | }; |
| 241 | |
| 242 | &sdhci1 { |
| 243 | u-boot,dm-spl; |
| 244 | status = "okay"; |
| 245 | pinctrl-names = "default"; |
| 246 | pinctrl-0 = <&main_mmc1_pins_default>; |
| 247 | sdhci-caps-mask = <0x7 0x0>; |
Faiz Abbas | bbcfaad | 2019-06-11 00:43:36 +0530 | [diff] [blame] | 248 | ti,driver-strength-ohm = <50>; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 249 | }; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 250 | |
| 251 | &mcu_cpsw { |
| 252 | pinctrl-names = "default"; |
| 253 | pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; |
| 254 | }; |
| 255 | |
| 256 | &davinci_mdio { |
| 257 | phy0: ethernet-phy@0 { |
| 258 | reg = <0>; |
| 259 | /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */ |
| 260 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 261 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 262 | }; |
| 263 | }; |
| 264 | |
| 265 | &cpsw_port1 { |
Grygorii Strashko | 5efb692 | 2019-11-18 23:04:47 +0200 | [diff] [blame] | 266 | phy-mode = "rgmii-rxid"; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 267 | phy-handle = <&phy0>; |
| 268 | }; |
| 269 | |
| 270 | &mcu_cpsw { |
| 271 | reg = <0x0 0x46000000 0x0 0x200000>, |
| 272 | <0x0 0x40f00200 0x0 0x2>; |
| 273 | reg-names = "cpsw_nuss", "mac_efuse"; |
| 274 | |
| 275 | cpsw-phy-sel@40f04040 { |
| 276 | compatible = "ti,am654-cpsw-phy-sel"; |
| 277 | reg= <0x0 0x40f04040 0x0 0x4>; |
| 278 | reg-names = "gmii-sel"; |
| 279 | }; |
| 280 | }; |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 281 | |
| 282 | &wkup_i2c0 { |
| 283 | u-boot,dm-spl; |
| 284 | }; |
Vignesh Raghavendra | 6012007 | 2019-12-09 10:37:33 +0530 | [diff] [blame] | 285 | |
| 286 | &usb1 { |
| 287 | dr_mode = "peripheral"; |
| 288 | }; |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 289 | |
| 290 | &fss { |
| 291 | u-boot,dm-spl; |
| 292 | }; |
| 293 | |
| 294 | &ospi0 { |
| 295 | u-boot,dm-spl; |
| 296 | |
| 297 | flash@0{ |
| 298 | u-boot,dm-spl; |
| 299 | }; |
| 300 | }; |