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; |
Aswath Govindraju | 62be236 | 2020-11-20 21:18:55 +0530 | [diff] [blame] | 17 | usb0 = &usb0; |
| 18 | usb1 = &usb1; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 19 | }; |
| 20 | }; |
| 21 | |
| 22 | &cbass_main{ |
| 23 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 24 | }; |
| 25 | |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 26 | &cbass_mcu { |
| 27 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 28 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame] | 29 | mcu_navss { |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 30 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 31 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame] | 32 | ringacc@2b800000 { |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 33 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 34 | }; |
| 35 | |
Vignesh Raghavendra | 99faf0d | 2020-07-07 13:43:35 +0530 | [diff] [blame] | 36 | dma-controller@285c0000 { |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 37 | u-boot,dm-spl; |
Grygorii Strashko | 736b6c3 | 2019-02-05 17:31:26 +0530 | [diff] [blame] | 38 | }; |
| 39 | }; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | &cbass_wakeup { |
| 43 | u-boot,dm-spl; |
| 44 | }; |
| 45 | |
| 46 | &secure_proxy_main { |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 47 | u-boot,dm-spl; |
| 48 | }; |
| 49 | |
| 50 | &dmsc { |
| 51 | u-boot,dm-spl; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 52 | k3_sysreset: sysreset-controller { |
| 53 | compatible = "ti,sci-sysreset"; |
| 54 | u-boot,dm-spl; |
| 55 | }; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | &k3_pds { |
| 59 | u-boot,dm-spl; |
| 60 | }; |
| 61 | |
| 62 | &k3_clks { |
| 63 | u-boot,dm-spl; |
| 64 | }; |
| 65 | |
| 66 | &k3_reset { |
| 67 | u-boot,dm-spl; |
| 68 | }; |
| 69 | |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 70 | &wkup_pmx0 { |
| 71 | u-boot,dm-spl; |
| 72 | |
| 73 | wkup_i2c0_pins_default { |
| 74 | u-boot,dm-spl; |
| 75 | }; |
| 76 | }; |
| 77 | |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 78 | &main_pmx0 { |
| 79 | u-boot,dm-spl; |
| 80 | main_uart0_pins_default: main_uart0_pins_default { |
| 81 | pinctrl-single,pins = < |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 82 | AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */ |
| 83 | AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */ |
| 84 | AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */ |
| 85 | AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */ |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 86 | >; |
Lokesh Vutla | 2d0eba3 | 2018-11-02 19:51:08 +0530 | [diff] [blame] | 87 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 88 | }; |
| 89 | |
Faiz Abbas | c20aee3 | 2020-08-03 11:35:12 +0530 | [diff] [blame] | 90 | usb0_pins_default: usb0_pins_default { |
| 91 | pinctrl-single,pins = < |
| 92 | AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */ |
| 93 | >; |
| 94 | u-boot,dm-spl; |
| 95 | }; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 96 | }; |
| 97 | |
| 98 | &main_pmx1 { |
| 99 | u-boot,dm-spl; |
| 100 | }; |
| 101 | |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 102 | &wkup_pmx0 { |
| 103 | mcu_cpsw_pins_default: mcu_cpsw_pins_default { |
| 104 | pinctrl-single,pins = < |
| 105 | AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */ |
| 106 | AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */ |
| 107 | AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */ |
| 108 | AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */ |
| 109 | AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */ |
| 110 | AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */ |
| 111 | AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */ |
| 112 | AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */ |
| 113 | AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */ |
| 114 | AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */ |
| 115 | AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */ |
| 116 | AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */ |
| 117 | >; |
| 118 | }; |
| 119 | |
| 120 | mcu_mdio_pins_default: mcu_mdio1_pins_default { |
| 121 | pinctrl-single,pins = < |
| 122 | AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ |
| 123 | AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ |
| 124 | >; |
| 125 | }; |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 126 | |
| 127 | mcu-fss0-ospi0-pins-default { |
| 128 | u-boot,dm-spl; |
| 129 | }; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 130 | }; |
| 131 | |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 132 | &main_uart0 { |
| 133 | u-boot,dm-spl; |
| 134 | pinctrl-names = "default"; |
| 135 | pinctrl-0 = <&main_uart0_pins_default>; |
| 136 | status = "okay"; |
| 137 | }; |
| 138 | |
Faiz Abbas | 2121c7e | 2021-02-04 15:10:56 +0530 | [diff] [blame^] | 139 | &main_mmc0_pins_default { |
| 140 | u-boot,dm-spl; |
| 141 | }; |
| 142 | |
| 143 | &main_mmc1_pins_default { |
| 144 | u-boot,dm-spl; |
| 145 | }; |
| 146 | |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 147 | &sdhci0 { |
| 148 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 149 | }; |
| 150 | |
| 151 | &sdhci1 { |
| 152 | u-boot,dm-spl; |
Lokesh Vutla | 853f7f5 | 2018-08-27 15:59:09 +0530 | [diff] [blame] | 153 | }; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 154 | |
| 155 | &mcu_cpsw { |
| 156 | pinctrl-names = "default"; |
| 157 | pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; |
| 158 | }; |
| 159 | |
| 160 | &davinci_mdio { |
| 161 | phy0: ethernet-phy@0 { |
| 162 | reg = <0>; |
| 163 | /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */ |
| 164 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 165 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | &cpsw_port1 { |
Grygorii Strashko | 5efb692 | 2019-11-18 23:04:47 +0200 | [diff] [blame] | 170 | phy-mode = "rgmii-rxid"; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 171 | phy-handle = <&phy0>; |
| 172 | }; |
| 173 | |
| 174 | &mcu_cpsw { |
| 175 | reg = <0x0 0x46000000 0x0 0x200000>, |
| 176 | <0x0 0x40f00200 0x0 0x2>; |
| 177 | reg-names = "cpsw_nuss", "mac_efuse"; |
Vignesh Raghavendra | 3f09ebf | 2020-07-06 13:36:56 +0530 | [diff] [blame] | 178 | /delete-property/ ranges; |
Grygorii Strashko | 6f2929d | 2019-07-09 10:30:36 +0530 | [diff] [blame] | 179 | |
| 180 | cpsw-phy-sel@40f04040 { |
| 181 | compatible = "ti,am654-cpsw-phy-sel"; |
| 182 | reg= <0x0 0x40f04040 0x0 0x4>; |
| 183 | reg-names = "gmii-sel"; |
| 184 | }; |
| 185 | }; |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 186 | |
| 187 | &wkup_i2c0 { |
| 188 | u-boot,dm-spl; |
| 189 | }; |
Vignesh Raghavendra | 6012007 | 2019-12-09 10:37:33 +0530 | [diff] [blame] | 190 | |
| 191 | &usb1 { |
| 192 | dr_mode = "peripheral"; |
| 193 | }; |
Vignesh Raghavendra | 9e9dfc1 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 194 | |
| 195 | &fss { |
| 196 | u-boot,dm-spl; |
| 197 | }; |
| 198 | |
| 199 | &ospi0 { |
| 200 | u-boot,dm-spl; |
| 201 | |
| 202 | flash@0{ |
| 203 | u-boot,dm-spl; |
| 204 | }; |
| 205 | }; |
Dave Gerlach | bec8b94 | 2020-07-15 23:40:00 -0500 | [diff] [blame] | 206 | |
| 207 | &chipid { |
| 208 | u-boot,dm-spl; |
| 209 | }; |
Faiz Abbas | c20aee3 | 2020-08-03 11:35:12 +0530 | [diff] [blame] | 210 | |
| 211 | &dwc3_0 { |
| 212 | status = "okay"; |
| 213 | u-boot,dm-spl; |
| 214 | }; |
| 215 | |
| 216 | &usb0_phy { |
| 217 | status = "okay"; |
| 218 | u-boot,dm-spl; |
| 219 | }; |
| 220 | |
| 221 | &usb0 { |
| 222 | pinctrl-names = "default"; |
| 223 | pinctrl-0 = <&usb0_pins_default>; |
Aswath Govindraju | d3af9e3 | 2020-11-20 21:18:54 +0530 | [diff] [blame] | 224 | dr_mode = "host"; |
Faiz Abbas | c20aee3 | 2020-08-03 11:35:12 +0530 | [diff] [blame] | 225 | u-boot,dm-spl; |
| 226 | }; |
| 227 | |
| 228 | &scm_conf { |
| 229 | u-boot,dm-spl; |
| 230 | }; |