Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-j721e-som-p0.dtsi" |
Lokesh Vutla | 430a0b3 | 2019-10-07 19:26:37 +0530 | [diff] [blame] | 9 | #include "k3-j721e-ddr-evm-lp4-3733.dtsi" |
| 10 | #include "k3-j721e-ddr.dtsi" |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | aliases { |
| 14 | remoteproc0 = &sysctrler; |
| 15 | remoteproc1 = &a72_0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial2:115200n8"; |
| 20 | tick-timer = &timer1; |
| 21 | }; |
| 22 | |
| 23 | a72_0: a72@0 { |
| 24 | compatible = "ti,am654-rproc"; |
| 25 | reg = <0x0 0x00a90000 0x0 0x10>; |
| 26 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
| 27 | <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; |
| 28 | resets = <&k3_reset 202 0>; |
| 29 | assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>; |
| 30 | assigned-clock-rates = <2000000000>, <200000000>; |
| 31 | ti,sci = <&dmsc>; |
| 32 | ti,sci-proc-id = <32>; |
| 33 | ti,sci-host-id = <10>; |
| 34 | u-boot,dm-spl; |
| 35 | }; |
| 36 | |
| 37 | clk_200mhz: dummy_clock { |
| 38 | compatible = "fixed-clock"; |
| 39 | #clock-cells = <0>; |
| 40 | clock-frequency = <200000000>; |
| 41 | u-boot,dm-spl; |
| 42 | }; |
Vignesh Raghavendra | 4bdd330 | 2020-01-27 17:59:25 +0530 | [diff] [blame] | 43 | |
| 44 | clk_19_2mhz: dummy_clock { |
| 45 | compatible = "fixed-clock"; |
| 46 | #clock-cells = <0>; |
| 47 | clock-frequency = <19200000>; |
| 48 | u-boot,dm-spl; |
| 49 | }; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | &cbass_mcu_wakeup { |
| 53 | mcu_secproxy: secproxy@28380000 { |
| 54 | u-boot,dm-spl; |
| 55 | compatible = "ti,am654-secure-proxy"; |
| 56 | reg = <0x0 0x2a380000 0x0 0x80000>, |
| 57 | <0x0 0x2a400000 0x0 0x80000>, |
| 58 | <0x0 0x2a480000 0x0 0x80000>; |
| 59 | reg-names = "rt", "scfg", "target_data"; |
| 60 | #mbox-cells = <1>; |
| 61 | }; |
| 62 | |
| 63 | sysctrler: sysctrler { |
| 64 | u-boot,dm-spl; |
| 65 | compatible = "ti,am654-system-controller"; |
| 66 | mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>; |
| 67 | mbox-names = "tx", "rx"; |
| 68 | }; |
Keerthy | be86d32 | 2019-10-24 15:00:58 +0530 | [diff] [blame] | 69 | |
| 70 | wkup_vtm0: wkup_vtm@42040000 { |
| 71 | compatible = "ti,am654-vtm", "ti,j721e-avs"; |
| 72 | reg = <0x0 0x42040000 0x0 0x330>; |
| 73 | power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>; |
| 74 | #thermal-sensor-cells = <1>; |
| 75 | }; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | &dmsc { |
| 79 | mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>; |
| 80 | mbox-names = "tx", "rx", "notify"; |
| 81 | ti,host-id = <4>; |
| 82 | ti,secure-host; |
| 83 | }; |
| 84 | |
| 85 | &wkup_pmx0 { |
| 86 | wkup_uart0_pins_default: wkup_uart0_pins_default { |
| 87 | u-boot,dm-spl; |
| 88 | pinctrl-single,pins = < |
| 89 | J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */ |
| 90 | J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */ |
| 91 | >; |
| 92 | }; |
| 93 | |
| 94 | mcu_uart0_pins_default: mcu_uart0_pins_default { |
| 95 | u-boot,dm-spl; |
| 96 | pinctrl-single,pins = < |
| 97 | J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */ |
| 98 | J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */ |
| 99 | J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */ |
| 100 | J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */ |
| 101 | >; |
| 102 | }; |
Keerthy | c6f8654 | 2019-10-24 15:00:59 +0530 | [diff] [blame] | 103 | |
| 104 | wkup_i2c0_pins_default: wkup-i2c0-pins-default { |
| 105 | pinctrl-single,pins = < |
| 106 | J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */ |
| 107 | J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */ |
| 108 | >; |
| 109 | }; |
Vignesh Raghavendra | da67437 | 2020-02-04 11:09:52 +0530 | [diff] [blame] | 110 | |
| 111 | mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default { |
| 112 | pinctrl-single,pins = < |
| 113 | J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */ |
| 114 | J721E_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* MCU_OSPI0_DQS */ |
| 115 | J721E_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* MCU_OSPI0_D0 */ |
| 116 | J721E_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* MCU_OSPI0_D1 */ |
| 117 | J721E_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* MCU_OSPI0_D2 */ |
| 118 | J721E_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* MCU_OSPI0_D3 */ |
| 119 | J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* MCU_OSPI0_D4 */ |
| 120 | J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* MCU_OSPI0_D5 */ |
| 121 | J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* MCU_OSPI0_D6 */ |
| 122 | J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* MCU_OSPI0_D7 */ |
| 123 | J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */ |
| 124 | >; |
| 125 | }; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 126 | }; |
| 127 | |
| 128 | &main_pmx0 { |
| 129 | main_uart0_pins_default: main_uart0_pins_default { |
| 130 | u-boot,dm-spl; |
| 131 | pinctrl-single,pins = < |
| 132 | J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */ |
| 133 | J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */ |
| 134 | J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */ |
| 135 | J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */ |
| 136 | >; |
| 137 | }; |
Vignesh Raghavendra | 04ed493 | 2019-11-18 19:16:35 +0530 | [diff] [blame] | 138 | |
| 139 | main_usbss0_pins_default: main_usbss0_pins_default { |
| 140 | pinctrl-single,pins = < |
| 141 | J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */ |
| 142 | J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */ |
| 143 | >; |
| 144 | }; |
Faiz Abbas | c67d389 | 2020-01-16 19:42:21 +0530 | [diff] [blame] | 145 | |
| 146 | main_mmc1_pins_default: main_mmc1_pins_default { |
| 147 | pinctrl-single,pins = < |
| 148 | J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */ |
| 149 | J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */ |
| 150 | J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */ |
| 151 | J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */ |
| 152 | J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */ |
| 153 | J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */ |
| 154 | J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */ |
| 155 | J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */ |
| 156 | J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */ |
| 157 | >; |
| 158 | }; |
Vignesh Raghavendra | 8a290cc | 2020-01-27 23:22:15 +0530 | [diff] [blame] | 159 | |
| 160 | main_i2c0_pins_default: main-i2c0-pins-default { |
| 161 | pinctrl-single,pins = < |
| 162 | J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */ |
| 163 | J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */ |
| 164 | >; |
| 165 | }; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 166 | }; |
| 167 | |
| 168 | &wkup_uart0 { |
| 169 | u-boot,dm-spl; |
| 170 | pinctrl-names = "default"; |
| 171 | pinctrl-0 = <&wkup_uart0_pins_default>; |
| 172 | status = "okay"; |
| 173 | }; |
| 174 | |
| 175 | &mcu_uart0 { |
Lokesh Vutla | bad3d41 | 2020-02-03 19:16:53 +0530 | [diff] [blame] | 176 | /delete-property/ power-domains; |
| 177 | /delete-property/ clocks; |
| 178 | /delete-property/ clock-names; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 179 | pinctrl-names = "default"; |
| 180 | pinctrl-0 = <&mcu_uart0_pins_default>; |
| 181 | status = "okay"; |
Lokesh Vutla | bad3d41 | 2020-02-03 19:16:53 +0530 | [diff] [blame] | 182 | clock-frequency = <48000000>; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 183 | }; |
| 184 | |
| 185 | &main_uart0 { |
| 186 | pinctrl-names = "default"; |
| 187 | pinctrl-0 = <&main_uart0_pins_default>; |
| 188 | status = "okay"; |
| 189 | power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; |
| 190 | }; |
| 191 | |
| 192 | &main_sdhci0 { |
| 193 | /delete-property/ power-domains; |
| 194 | /delete-property/ assigned-clocks; |
| 195 | /delete-property/ assigned-clock-parents; |
| 196 | clock-names = "clk_xin"; |
| 197 | clocks = <&clk_200mhz>; |
| 198 | ti,driver-strength-ohm = <50>; |
| 199 | non-removable; |
| 200 | bus-width = <8>; |
| 201 | }; |
| 202 | |
| 203 | &main_sdhci1 { |
| 204 | /delete-property/ power-domains; |
| 205 | /delete-property/ assigned-clocks; |
| 206 | /delete-property/ assigned-clock-parents; |
Faiz Abbas | c67d389 | 2020-01-16 19:42:21 +0530 | [diff] [blame] | 207 | pinctrl-names = "default"; |
| 208 | pinctrl-0 = <&main_mmc1_pins_default>; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 209 | clock-names = "clk_xin"; |
| 210 | clocks = <&clk_200mhz>; |
| 211 | ti,driver-strength-ohm = <50>; |
| 212 | }; |
| 213 | |
Keerthy | c6f8654 | 2019-10-24 15:00:59 +0530 | [diff] [blame] | 214 | &wkup_i2c0 { |
| 215 | u-boot,dm-spl; |
| 216 | tps659413a: tps659413a@48 { |
| 217 | reg = <0x48>; |
| 218 | compatible = "ti,tps659413"; |
| 219 | u-boot,dm-spl; |
| 220 | pinctrl-names = "default"; |
| 221 | pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 222 | clock-frequency = <400000>; |
| 223 | |
| 224 | regulators: regulators { |
| 225 | u-boot,dm-spl; |
| 226 | buck12_reg: buck12 { |
| 227 | /*VDD_MPU*/ |
| 228 | regulator-name = "buck12"; |
| 229 | regulator-min-microvolt = <800000>; |
| 230 | regulator-max-microvolt = <1250000>; |
| 231 | regulator-always-on; |
| 232 | regulator-boot-on; |
| 233 | u-boot,dm-spl; |
| 234 | }; |
| 235 | }; |
| 236 | }; |
| 237 | }; |
| 238 | |
Keerthy | 7c9fa30 | 2019-10-24 15:01:00 +0530 | [diff] [blame] | 239 | &wkup_vtm0 { |
| 240 | vdd-supply-2 = <&buck12_reg>; |
| 241 | u-boot,dm-spl; |
| 242 | }; |
| 243 | |
Vignesh Raghavendra | 4bdd330 | 2020-01-27 17:59:25 +0530 | [diff] [blame] | 244 | &usbss0 { |
| 245 | /delete-property/ power-domains; |
| 246 | /delete-property/ assigned-clocks; |
| 247 | /delete-property/ assigned-clock-parents; |
| 248 | clocks = <&clk_19_2mhz>; |
| 249 | clock-names = "usb2_refclk"; |
| 250 | pinctrl-names = "default"; |
| 251 | pinctrl-0 = <&main_usbss0_pins_default>; |
| 252 | ti,vbus-divider; |
| 253 | }; |
| 254 | |
Vignesh Raghavendra | 8a290cc | 2020-01-27 23:22:15 +0530 | [diff] [blame] | 255 | &main_i2c0 { |
| 256 | pinctrl-names = "default"; |
| 257 | pinctrl-0 = <&main_i2c0_pins_default>; |
| 258 | clock-frequency = <400000>; |
| 259 | |
| 260 | exp1: gpio@20 { |
| 261 | compatible = "ti,tca6416"; |
| 262 | reg = <0x20>; |
| 263 | gpio-controller; |
| 264 | #gpio-cells = <2>; |
| 265 | }; |
| 266 | |
| 267 | exp2: gpio@22 { |
| 268 | compatible = "ti,tca6424"; |
| 269 | reg = <0x22>; |
| 270 | gpio-controller; |
| 271 | #gpio-cells = <2>; |
| 272 | }; |
| 273 | }; |
| 274 | |
Vignesh Raghavendra | da67437 | 2020-02-04 11:09:52 +0530 | [diff] [blame] | 275 | &ospi0 { |
| 276 | pinctrl-names = "default"; |
| 277 | pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; |
| 278 | |
| 279 | reg = <0x0 0x47040000 0x0 0x100>, |
| 280 | <0x0 0x50000000 0x0 0x8000000>; |
| 281 | |
| 282 | flash@0{ |
| 283 | compatible = "jedec,spi-nor"; |
| 284 | reg = <0x0>; |
| 285 | spi-tx-bus-width = <1>; |
| 286 | spi-rx-bus-width = <8>; |
| 287 | spi-max-frequency = <40000000>; |
| 288 | cdns,tshsl-ns = <60>; |
| 289 | cdns,tsd2d-ns = <60>; |
| 290 | cdns,tchsh-ns = <60>; |
| 291 | cdns,tslch-ns = <60>; |
| 292 | cdns,read-delay = <0>; |
| 293 | #address-cells = <1>; |
| 294 | #size-cells = <1>; |
| 295 | }; |
| 296 | }; |
| 297 | |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 298 | #include "k3-j721e-common-proc-board-u-boot.dtsi" |