Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-am642.dtsi" |
Dave Gerlach | fe0f3e3 | 2021-05-04 18:00:52 -0500 | [diff] [blame] | 9 | #include "k3-am64-evm-ddr4-1600MTs.dtsi" |
| 10 | #include "k3-am64-ddr.dtsi" |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | chosen { |
| 14 | stdout-path = "serial2:115200n8"; |
| 15 | tick-timer = &timer1; |
| 16 | }; |
| 17 | |
| 18 | aliases { |
| 19 | remoteproc0 = &sysctrler; |
| 20 | remoteproc1 = &a53_0; |
| 21 | }; |
| 22 | |
| 23 | memory@80000000 { |
| 24 | device_type = "memory"; |
| 25 | /* 2G RAM */ |
| 26 | reg = <0x00000000 0x80000000 0x00000000 0x80000000>; |
| 27 | |
Dave Gerlach | adbe138 | 2022-03-17 12:03:39 -0500 | [diff] [blame] | 28 | u-boot,dm-spl; |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | a53_0: a53@0 { |
| 32 | compatible = "ti,am654-rproc"; |
| 33 | reg = <0x00 0x00a90000 0x00 0x10>; |
| 34 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
| 35 | <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>; |
| 36 | resets = <&k3_reset 135 0>; |
| 37 | clocks = <&k3_clks 61 0>; |
| 38 | assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>; |
| 39 | assigned-clock-parents = <&k3_clks 61 2>; |
| 40 | assigned-clock-rates = <200000000>, <1000000000>; |
| 41 | ti,sci = <&dmsc>; |
| 42 | ti,sci-proc-id = <32>; |
| 43 | ti,sci-host-id = <10>; |
| 44 | u-boot,dm-spl; |
| 45 | }; |
| 46 | |
| 47 | reserved-memory { |
| 48 | #address-cells = <2>; |
| 49 | #size-cells = <2>; |
| 50 | ranges; |
| 51 | |
| 52 | secure_ddr: optee@9e800000 { |
| 53 | reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ |
| 54 | alignment = <0x1000>; |
| 55 | no-map; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | clk_200mhz: dummy-clock-200mhz { |
| 60 | compatible = "fixed-clock"; |
| 61 | #clock-cells = <0>; |
| 62 | clock-frequency = <200000000>; |
| 63 | u-boot,dm-spl; |
| 64 | }; |
Nishanth Menon | ab4c072 | 2021-05-04 18:00:55 -0500 | [diff] [blame] | 65 | |
| 66 | vtt_supply: vtt-supply { |
| 67 | compatible = "regulator-gpio"; |
| 68 | regulator-name = "vtt"; |
| 69 | regulator-min-microvolt = <0>; |
| 70 | regulator-max-microvolt = <3300000>; |
| 71 | gpios = <&main_gpio0 12 GPIO_ACTIVE_HIGH>; |
| 72 | states = <0 0x0 3300000 0x1>; |
| 73 | u-boot,dm-spl; |
| 74 | }; |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | &cbass_main { |
| 78 | sysctrler: sysctrler { |
| 79 | compatible = "ti,am654-system-controller"; |
| 80 | mboxes= <&secure_proxy_main 1>, <&secure_proxy_main 0>; |
| 81 | mbox-names = "tx", "rx"; |
| 82 | u-boot,dm-spl; |
| 83 | }; |
| 84 | }; |
| 85 | |
Hari Nagalla | 3d64cff | 2022-03-09 14:42:29 -0600 | [diff] [blame] | 86 | &cbass_main { |
| 87 | main_esm: esm@420000 { |
| 88 | compatible = "ti,j721e-esm"; |
| 89 | reg = <0x0 0x420000 0x0 0x1000>; |
| 90 | ti,esm-pins = <160>, <161>; |
| 91 | u-boot,dm-spl; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | &cbass_mcu { |
| 96 | u-boot,dm-spl; |
| 97 | mcu_esm: esm@4100000 { |
| 98 | compatible = "ti,j721e-esm"; |
| 99 | reg = <0x0 0x4100000 0x0 0x1000>; |
| 100 | ti,esm-pins = <0>, <1>; |
| 101 | u-boot,dm-spl; |
| 102 | }; |
| 103 | }; |
| 104 | |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 105 | &main_pmx0 { |
| 106 | u-boot,dm-spl; |
| 107 | main_uart0_pins_default: main-uart0-pins-default { |
| 108 | u-boot,dm-spl; |
| 109 | pinctrl-single,pins = < |
| 110 | AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */ |
| 111 | AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */ |
| 112 | AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */ |
| 113 | AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */ |
| 114 | >; |
| 115 | }; |
| 116 | |
| 117 | main_uart1_pins_default: main-uart1-pins-default { |
| 118 | u-boot,dm-spl; |
| 119 | pinctrl-single,pins = < |
| 120 | AM64X_IOPAD(0x0248, PIN_INPUT, 0) /* (D16) UART1_CTSn */ |
| 121 | AM64X_IOPAD(0x024c, PIN_OUTPUT, 0) /* (E16) UART1_RTSn */ |
| 122 | AM64X_IOPAD(0x0240, PIN_INPUT, 0) /* (E15) UART1_RXD */ |
| 123 | AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) /* (E14) UART1_TXD */ |
| 124 | >; |
| 125 | }; |
| 126 | |
| 127 | main_mmc0_pins_default: main-mmc0-pins-default { |
| 128 | u-boot,dm-spl; |
| 129 | pinctrl-single,pins = < |
| 130 | AM64X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */ |
| 131 | AM64X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */ |
| 132 | AM64X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */ |
| 133 | AM64X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */ |
| 134 | AM64X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */ |
| 135 | AM64X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */ |
| 136 | AM64X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */ |
| 137 | AM64X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */ |
| 138 | AM64X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */ |
| 139 | AM64X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */ |
| 140 | AM64X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ |
| 141 | >; |
| 142 | }; |
| 143 | |
| 144 | main_mmc1_pins_default: main-mmc1-pins-default { |
| 145 | u-boot,dm-spl; |
| 146 | pinctrl-single,pins = < |
| 147 | AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */ |
| 148 | AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */ |
| 149 | AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */ |
| 150 | AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */ |
| 151 | AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */ |
| 152 | AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */ |
| 153 | AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */ |
| 154 | AM64X_IOPAD(0x029c, PIN_INPUT_PULLUP, 0) /* (C20) MMC1_SDWP */ |
| 155 | >; |
| 156 | }; |
Nishanth Menon | ab4c072 | 2021-05-04 18:00:55 -0500 | [diff] [blame] | 157 | |
| 158 | ddr_vtt_pins_default: ddr-vtt-pins-default { |
| 159 | u-boot,dm-spl; |
| 160 | pinctrl-single,pins = < |
| 161 | AM64X_IOPAD(0x0030, PIN_OUTPUT_PULLUP, 7) /* (L18) OSPI0_CSN1.GPIO0_12 */ |
| 162 | >; |
| 163 | }; |
Aswath Govindraju | 7803a5b | 2021-06-04 22:00:36 +0530 | [diff] [blame] | 164 | |
| 165 | main_usb0_pins_default: main-usb0-pins-default { |
| 166 | pinctrl-single,pins = < |
| 167 | AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */ |
| 168 | >; |
| 169 | }; |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | &dmsc { |
| 173 | mboxes= <&secure_proxy_main 0>, |
| 174 | <&secure_proxy_main 1>, |
| 175 | <&secure_proxy_main 0>; |
| 176 | mbox-names = "rx", "tx", "notify"; |
| 177 | ti,host-id = <35>; |
| 178 | ti,secure-host; |
| 179 | }; |
| 180 | |
| 181 | &main_uart0 { |
| 182 | /delete-property/ power-domains; |
| 183 | /delete-property/ clocks; |
| 184 | /delete-property/ clock-names; |
| 185 | pinctrl-names = "default"; |
| 186 | pinctrl-0 = <&main_uart0_pins_default>; |
| 187 | status = "okay"; |
| 188 | }; |
| 189 | |
| 190 | &main_uart1 { |
| 191 | u-boot,dm-spl; |
| 192 | pinctrl-names = "default"; |
| 193 | pinctrl-0 = <&main_uart1_pins_default>; |
| 194 | }; |
| 195 | |
Nishanth Menon | ab4c072 | 2021-05-04 18:00:55 -0500 | [diff] [blame] | 196 | &memorycontroller { |
| 197 | vtt-supply = <&vtt_supply>; |
| 198 | pinctrl-names = "default"; |
| 199 | pinctrl-0 = <&ddr_vtt_pins_default>; |
| 200 | }; |
| 201 | |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 202 | &sdhci0 { |
| 203 | /delete-property/ power-domains; |
| 204 | clocks = <&clk_200mhz>; |
| 205 | clock-names = "clk_xin"; |
| 206 | ti,driver-strength-ohm = <50>; |
| 207 | disable-wp; |
| 208 | pinctrl-0 = <&main_mmc0_pins_default>; |
| 209 | }; |
| 210 | |
| 211 | &sdhci1 { |
| 212 | /delete-property/ power-domains; |
| 213 | clocks = <&clk_200mhz>; |
| 214 | clock-names = "clk_xin"; |
| 215 | ti,driver-strength-ohm = <50>; |
| 216 | disable-wp; |
| 217 | pinctrl-0 = <&main_mmc1_pins_default>; |
| 218 | }; |
| 219 | |
Nishanth Menon | ab4c072 | 2021-05-04 18:00:55 -0500 | [diff] [blame] | 220 | &main_gpio0 { |
| 221 | u-boot,dm-spl; |
| 222 | /delete-property/ power-domains; |
| 223 | }; |
| 224 | |
Lokesh Vutla | e922b5a | 2021-05-06 16:44:57 +0530 | [diff] [blame] | 225 | /* EEPROM might be read before SYSFW is available */ |
| 226 | &main_i2c0 { |
| 227 | /delete-property/ power-domains; |
| 228 | }; |
| 229 | |
Aswath Govindraju | 7803a5b | 2021-06-04 22:00:36 +0530 | [diff] [blame] | 230 | &usbss0 { |
| 231 | ti,vbus-divider; |
| 232 | ti,usb2-only; |
| 233 | }; |
| 234 | |
| 235 | &usb0 { |
| 236 | dr_mode = "otg"; |
| 237 | maximum-speed = "high-speed"; |
| 238 | pinctrl-names = "default"; |
| 239 | pinctrl-0 = <&main_usb0_pins_default>; |
| 240 | }; |
| 241 | |
Dave Gerlach | b6059dd | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 242 | #include "k3-am642-evm-u-boot.dtsi" |