Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-j7200-som-p0.dtsi" |
Kevin Scholz | dc9f100 | 2021-06-03 08:14:53 -0500 | [diff] [blame] | 9 | #include "k3-j7200-ddr-evm-lp4-2666.dtsi" |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 10 | #include "k3-j721e-ddr.dtsi" |
| 11 | |
| 12 | / { |
| 13 | aliases { |
| 14 | remoteproc0 = &sysctrler; |
| 15 | remoteproc1 = &a72_0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = &main_uart0; |
| 20 | tick-timer = &timer1; |
Suman Anna | 70377b7 | 2020-08-18 14:09:44 -0500 | [diff] [blame] | 21 | firmware-loader = &fs_loader0; |
| 22 | }; |
| 23 | |
| 24 | fs_loader0: fs_loader@0 { |
| 25 | u-boot,dm-pre-reloc; |
| 26 | compatible = "u-boot,fs-loader"; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | a72_0: a72@0 { |
| 30 | compatible = "ti,am654-rproc"; |
| 31 | reg = <0x0 0x00a90000 0x0 0x10>; |
| 32 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
| 33 | <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; |
| 34 | resets = <&k3_reset 202 0>; |
Nishanth Menon | 965db9f | 2021-01-06 13:20:31 -0600 | [diff] [blame] | 35 | clocks = <&k3_clks 61 1>; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 36 | assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>; |
| 37 | assigned-clock-rates = <2000000000>, <200000000>; |
| 38 | ti,sci = <&dmsc>; |
| 39 | ti,sci-proc-id = <32>; |
| 40 | ti,sci-host-id = <10>; |
| 41 | u-boot,dm-spl; |
| 42 | }; |
| 43 | |
| 44 | clk_200mhz: dummy_clock_200mhz { |
| 45 | compatible = "fixed-clock"; |
| 46 | #clock-cells = <0>; |
| 47 | clock-frequency = <200000000>; |
| 48 | u-boot,dm-spl; |
| 49 | }; |
| 50 | |
| 51 | clk_19_2mhz: dummy_clock_19_2mhz { |
| 52 | compatible = "fixed-clock"; |
| 53 | #clock-cells = <0>; |
| 54 | clock-frequency = <19200000>; |
| 55 | u-boot,dm-spl; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | &memorycontroller { |
| 60 | power-domains = <&k3_pds 8 TI_SCI_PD_SHARED>, |
| 61 | <&k3_pds 90 TI_SCI_PD_SHARED>; |
| 62 | clocks = <&k3_clks 8 5>, <&k3_clks 30 9>; |
| 63 | }; |
| 64 | |
| 65 | &cbass_mcu_wakeup { |
| 66 | mcu_secproxy: secproxy@2a380000 { |
| 67 | u-boot,dm-spl; |
| 68 | compatible = "ti,am654-secure-proxy"; |
| 69 | reg = <0x0 0x2a380000 0x0 0x80000>, |
| 70 | <0x0 0x2a400000 0x0 0x80000>, |
| 71 | <0x0 0x2a480000 0x0 0x80000>; |
| 72 | reg-names = "rt", "scfg", "target_data"; |
| 73 | #mbox-cells = <1>; |
| 74 | }; |
| 75 | |
| 76 | sysctrler: sysctrler { |
| 77 | u-boot,dm-spl; |
| 78 | compatible = "ti,am654-system-controller"; |
| 79 | mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>; |
| 80 | mbox-names = "tx", "rx"; |
| 81 | }; |
Vignesh Raghavendra | 00d6fc9 | 2021-06-07 19:47:50 +0530 | [diff] [blame] | 82 | |
| 83 | dm_tifs: dm-tifs { |
| 84 | compatible = "ti,j721e-dm-sci"; |
| 85 | ti,host-id = <3>; |
| 86 | ti,secure-host; |
| 87 | mbox-names = "rx", "tx"; |
| 88 | mboxes= <&mcu_secproxy 21>, |
| 89 | <&mcu_secproxy 23>; |
| 90 | u-boot,dm-spl; |
| 91 | }; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | &dmsc { |
| 95 | mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>; |
| 96 | mbox-names = "tx", "rx", "notify"; |
| 97 | ti,host-id = <4>; |
| 98 | ti,secure-host; |
| 99 | }; |
| 100 | |
| 101 | &wkup_pmx0 { |
| 102 | u-boot,dm-spl; |
| 103 | wkup_uart0_pins_default: wkup_uart0_pins_default { |
| 104 | u-boot,dm-spl; |
| 105 | pinctrl-single,pins = < |
| 106 | J721E_WKUP_IOPAD(0xb0, PIN_INPUT, 0) /* (B14) WKUP_UART0_RXD */ |
| 107 | J721E_WKUP_IOPAD(0xb4, PIN_OUTPUT, 0) /* (A14) WKUP_UART0_TXD */ |
| 108 | >; |
| 109 | }; |
| 110 | |
| 111 | mcu_uart0_pins_default: mcu_uart0_pins_default { |
| 112 | u-boot,dm-spl; |
| 113 | pinctrl-single,pins = < |
| 114 | J721E_WKUP_IOPAD(0xf4, PIN_INPUT, 0) /* (D20) WKUP_GPIO0_13.MCU_UART0_RXD */ |
| 115 | J721E_WKUP_IOPAD(0xf0, PIN_OUTPUT, 0) /* (D19) WKUP_GPIO0_12.MCU_UART0_TXD */ |
| 116 | J721E_WKUP_IOPAD(0xf8, PIN_INPUT, 0) /* (E20) WKUP_GPIO0_14.MCU_UART0_CTSn */ |
| 117 | J721E_WKUP_IOPAD(0xfc, PIN_OUTPUT, 0) /* (E21) WKUP_GPIO0_15.MCU_UART0_RTSn */ |
| 118 | >; |
| 119 | }; |
| 120 | |
| 121 | wkup_i2c0_pins_default: wkup-i2c0-pins-default { |
| 122 | pinctrl-single,pins = < |
| 123 | J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) WKUP_I2C0_SCL */ |
| 124 | J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */ |
| 125 | >; |
| 126 | }; |
Vignesh Raghavendra | c07d068 | 2020-08-13 14:56:17 +0530 | [diff] [blame] | 127 | |
| 128 | mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default { |
| 129 | pinctrl-single,pins = < |
| 130 | J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* (E20) MCU_OSPI0_CLK.MCU_HYPERBUS0_CK */ |
| 131 | J721E_WKUP_IOPAD(0x4, PIN_OUTPUT, 1) /* (C21) MCU_OSPI0_LBCLKO.MCU_HYPERBUS0_CKn */ |
| 132 | J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 1) /* (F19) MCU_OSPI0_CSn0.MCU_HYPERBUS0_CSn0 */ |
| 133 | J721E_WKUP_IOPAD(0x54, PIN_OUTPUT, 3) /* (E22) MCU_OSPI1_CSn1.MCU_HYPERBUS0_CSn1 */ |
| 134 | J721E_WKUP_IOPAD(0x30, PIN_OUTPUT, 1) /* (E19) MCU_OSPI0_CSn1.MCU_HYPERBUS0_RESETn */ |
| 135 | J721E_WKUP_IOPAD(0x8, PIN_INPUT, 1) /* (D21) MCU_OSPI0_DQS.MCU_HYPERBUS0_RWDS */ |
| 136 | J721E_WKUP_IOPAD(0xc, PIN_INPUT, 1) /* (D20) MCU_OSPI0_D0.MCU_HYPERBUS0_DQ0 */ |
| 137 | J721E_WKUP_IOPAD(0x10, PIN_INPUT, 1) /* (G19) MCU_OSPI0_D1.MCU_HYPERBUS0_DQ1 */ |
| 138 | J721E_WKUP_IOPAD(0x14, PIN_INPUT, 1) /* (G20) MCU_OSPI0_D2.MCU_HYPERBUS0_DQ2 */ |
| 139 | J721E_WKUP_IOPAD(0x18, PIN_INPUT, 1) /* (F20) MCU_OSPI0_D3.MCU_HYPERBUS0_DQ3 */ |
| 140 | J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 1) /* (F21) MCU_OSPI0_D4.MCU_HYPERBUS0_DQ4 */ |
| 141 | J721E_WKUP_IOPAD(0x20, PIN_INPUT, 1) /* (E21) MCU_OSPI0_D5.MCU_HYPERBUS0_DQ5 */ |
| 142 | J721E_WKUP_IOPAD(0x24, PIN_INPUT, 1) /* (B22) MCU_OSPI0_D6.MCU_HYPERBUS0_DQ6 */ |
| 143 | J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1) /* (G21) MCU_OSPI0_D7.MCU_HYPERBUS0_DQ7 */ |
| 144 | >; |
| 145 | }; |
| 146 | |
| 147 | wkup_gpio_pins_default: wkup-gpio-pins-default { |
| 148 | pinctrl-single,pins = < |
| 149 | J721E_WKUP_IOPAD(0xd8, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */ |
| 150 | >; |
| 151 | }; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 152 | }; |
| 153 | |
| 154 | &main_pmx0 { |
| 155 | u-boot,dm-spl; |
| 156 | |
| 157 | main_uart0_pins_default: main_uart0_pins_default { |
| 158 | u-boot,dm-spl; |
| 159 | pinctrl-single,pins = < |
| 160 | J721E_IOPAD(0xb0, PIN_INPUT, 0) /* (T16) UART0_RXD */ |
| 161 | J721E_IOPAD(0xb4, PIN_OUTPUT, 0) /* (T17) UART0_TXD */ |
| 162 | J721E_IOPAD(0xc0, PIN_INPUT, 2) /* (W3) SPI0_CS0.UART0_CTSn */ |
| 163 | J721E_IOPAD(0xc4, PIN_OUTPUT, 2) /* (U5) SPI0_CS1.UART0_RTSn */ |
| 164 | >; |
| 165 | }; |
| 166 | |
| 167 | main_i2c0_pins_default: main-i2c0-pins-default { |
| 168 | u-boot,dm-spl; |
| 169 | pinctrl-single,pins = < |
| 170 | J721E_IOPAD(0xd4, PIN_INPUT_PULLUP, 0) /* (V3) I2C0_SCL */ |
| 171 | J721E_IOPAD(0xd8, PIN_INPUT_PULLUP, 0) /* (W2) I2C0_SDA */ |
| 172 | >; |
| 173 | }; |
Vignesh Raghavendra | 86c9bd4 | 2020-08-07 00:26:56 +0530 | [diff] [blame] | 174 | |
Faiz Abbas | b4e85ca | 2021-02-04 15:11:00 +0530 | [diff] [blame] | 175 | main_mmc1_pins_default: main_mmc1_pins_default { |
| 176 | pinctrl-single,pins = < |
| 177 | J721E_IOPAD(0x104, PIN_INPUT, 0) /* (M20) MMC1_CMD */ |
| 178 | J721E_IOPAD(0x100, PIN_INPUT, 0) /* (P21) MMC1_CLK */ |
| 179 | J721E_IOPAD(0xfc, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */ |
| 180 | J721E_IOPAD(0xf8, PIN_INPUT, 0) /* (M19) MMC1_DAT0 */ |
| 181 | J721E_IOPAD(0xf4, PIN_INPUT, 0) /* (N21) MMC1_DAT1 */ |
| 182 | J721E_IOPAD(0xf0, PIN_INPUT, 0) /* (N20) MMC1_DAT2 */ |
| 183 | J721E_IOPAD(0xec, PIN_INPUT, 0) /* (N19) MMC1_DAT3 */ |
| 184 | J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */ |
| 185 | >; |
| 186 | }; |
| 187 | |
Vignesh Raghavendra | 86c9bd4 | 2020-08-07 00:26:56 +0530 | [diff] [blame] | 188 | main_usbss0_pins_default: main_usbss0_pins_default { |
| 189 | pinctrl-single,pins = < |
| 190 | J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */ |
| 191 | >; |
| 192 | }; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | &wkup_uart0 { |
| 196 | u-boot,dm-spl; |
| 197 | pinctrl-names = "default"; |
| 198 | pinctrl-0 = <&wkup_uart0_pins_default>; |
| 199 | status = "okay"; |
| 200 | }; |
| 201 | |
| 202 | &mcu_uart0 { |
| 203 | /delete-property/ power-domains; |
| 204 | /delete-property/ clocks; |
| 205 | /delete-property/ clock-names; |
| 206 | pinctrl-names = "default"; |
| 207 | pinctrl-0 = <&mcu_uart0_pins_default>; |
| 208 | status = "okay"; |
| 209 | clock-frequency = <96000000>; |
| 210 | }; |
| 211 | |
| 212 | &main_uart0 { |
| 213 | status = "okay"; |
| 214 | power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; |
| 215 | pinctrl-names = "default"; |
| 216 | pinctrl-0 = <&main_uart0_pins_default>; |
| 217 | status = "okay"; |
| 218 | }; |
| 219 | |
| 220 | &main_sdhci0 { |
| 221 | /delete-property/ power-domains; |
| 222 | /delete-property/ assigned-clocks; |
| 223 | /delete-property/ assigned-clock-parents; |
Faiz Abbas | b4e85ca | 2021-02-04 15:11:00 +0530 | [diff] [blame] | 224 | pinctrl-0 = <&main_mmc1_pins_default>; |
| 225 | pinctrl-names = "default"; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 226 | clock-names = "clk_xin"; |
| 227 | clocks = <&clk_200mhz>; |
| 228 | ti,driver-strength-ohm = <50>; |
| 229 | non-removable; |
| 230 | bus-width = <8>; |
| 231 | }; |
| 232 | |
| 233 | &main_sdhci1 { |
| 234 | /delete-property/ power-domains; |
| 235 | /delete-property/ assigned-clocks; |
| 236 | /delete-property/ assigned-clock-parents; |
| 237 | clock-names = "clk_xin"; |
| 238 | clocks = <&clk_200mhz>; |
| 239 | ti,driver-strength-ohm = <50>; |
| 240 | }; |
| 241 | |
| 242 | &main_i2c0 { |
| 243 | pinctrl-names = "default"; |
| 244 | pinctrl-0 = <&main_i2c0_pins_default>; |
| 245 | clock-frequency = <400000>; |
| 246 | |
| 247 | exp1: gpio@20 { |
| 248 | compatible = "ti,tca6416"; |
| 249 | reg = <0x20>; |
| 250 | gpio-controller; |
| 251 | #gpio-cells = <2>; |
| 252 | }; |
| 253 | |
| 254 | exp2: gpio@22 { |
| 255 | compatible = "ti,tca6424"; |
| 256 | reg = <0x22>; |
| 257 | gpio-controller; |
| 258 | #gpio-cells = <2>; |
| 259 | }; |
| 260 | }; |
| 261 | |
Vignesh Raghavendra | 86c9bd4 | 2020-08-07 00:26:56 +0530 | [diff] [blame] | 262 | &usbss0 { |
| 263 | pinctrl-names = "default"; |
| 264 | pinctrl-0 = <&main_usbss0_pins_default>; |
| 265 | ti,vbus-divider; |
| 266 | ti,usb2-only; |
| 267 | }; |
| 268 | |
| 269 | &usb0 { |
| 270 | dr_mode = "otg"; |
| 271 | maximum-speed = "high-speed"; |
| 272 | }; |
| 273 | |
Vignesh Raghavendra | c07d068 | 2020-08-13 14:56:17 +0530 | [diff] [blame] | 274 | &hbmc { |
| 275 | status = "okay"; |
| 276 | pinctrl-names = "default"; |
| 277 | pinctrl-0 = <&mcu_fss0_hpb0_pins_default>; |
| 278 | reg = <0x0 0x47040000 0x0 0x100>, |
| 279 | <0x0 0x50000000 0x0 0x8000000>; |
| 280 | ranges = <0x0 0x0 0x0 0x50000000 0x4000000>, /* 64MB Flash on CS0 */ |
| 281 | <0x1 0x0 0x0 0x54000000 0x800000>; /* 8MB flash on CS1 */ |
| 282 | |
| 283 | flash@0,0 { |
| 284 | compatible = "cypress,hyperflash", "cfi-flash"; |
| 285 | reg = <0x0 0x0 0x4000000>; |
| 286 | }; |
| 287 | }; |
| 288 | |
Vignesh Raghavendra | 00d6fc9 | 2021-06-07 19:47:50 +0530 | [diff] [blame] | 289 | &mcu_ringacc { |
| 290 | ti,sci = <&dm_tifs>; |
| 291 | }; |
| 292 | |
| 293 | &mcu_udmap { |
| 294 | ti,sci = <&dm_tifs>; |
| 295 | }; |
Dave Gerlach | 7cc9855 | 2020-08-05 22:44:29 +0530 | [diff] [blame] | 296 | #include "k3-j7200-common-proc-board-u-boot.dtsi" |