Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-j721s2-som-p0.dtsi" |
Aswath Govindraju | 886284f | 2022-01-25 20:56:44 +0530 | [diff] [blame] | 9 | #include "k3-j721s2-ddr-evm-lp4-4266.dtsi" |
| 10 | #include "k3-j721s2-ddr.dtsi" |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | chosen { |
| 14 | firmware-loader = &fs_loader0; |
| 15 | stdout-path = &main_uart8; |
| 16 | tick-timer = &timer1; |
| 17 | }; |
| 18 | |
| 19 | aliases { |
| 20 | remoteproc0 = &sysctrler; |
| 21 | remoteproc1 = &a72_0; |
| 22 | }; |
| 23 | |
| 24 | fs_loader0: fs_loader@0 { |
| 25 | compatible = "u-boot,fs-loader"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 26 | bootph-all; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +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>, |
Manorit Chawdhry | 5ba1159 | 2023-04-14 09:47:52 +0530 | [diff] [blame] | 33 | <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>, |
| 34 | <&k3_pds 4 TI_SCI_PD_EXCLUSIVE>; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 35 | resets = <&k3_reset 202 0>; |
| 36 | clocks = <&k3_clks 61 1>; |
| 37 | assigned-clocks = <&k3_clks 61 1>, <&k3_clks 202 0>; |
| 38 | assigned-clock-parents = <&k3_clks 61 2>; |
| 39 | assigned-clock-rates = <200000000>, <2000000000>; |
| 40 | ti,sci = <&sms>; |
| 41 | ti,sci-proc-id = <32>; |
| 42 | ti,sci-host-id = <10>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 43 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | clk_200mhz: dummy_clock_200mhz { |
| 47 | compatible = "fixed-clock"; |
| 48 | #clock-cells = <0>; |
| 49 | clock-frequency = <200000000>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 50 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | clk_19_2mhz: dummy_clock_19_2mhz { |
| 54 | compatible = "fixed-clock"; |
| 55 | #clock-cells = <0>; |
| 56 | clock-frequency = <19200000>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 57 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 58 | }; |
| 59 | }; |
| 60 | |
| 61 | &cbass_mcu_wakeup { |
| 62 | sa3_secproxy: secproxy@44880000 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 63 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 64 | compatible = "ti,am654-secure-proxy"; |
| 65 | reg = <0x0 0x44880000 0x0 0x20000>, |
| 66 | <0x0 0x44860000 0x0 0x20000>, |
| 67 | <0x0 0x43600000 0x0 0x10000>; |
| 68 | reg-names = "rt", "scfg", "target_data"; |
| 69 | #mbox-cells = <1>; |
| 70 | }; |
| 71 | |
| 72 | mcu_secproxy: secproxy@2a380000 { |
| 73 | compatible = "ti,am654-secure-proxy"; |
| 74 | reg = <0x0 0x2a380000 0x0 0x80000>, |
| 75 | <0x0 0x2a400000 0x0 0x80000>, |
| 76 | <0x0 0x2a480000 0x0 0x80000>; |
| 77 | reg-names = "rt", "scfg", "target_data"; |
| 78 | #mbox-cells = <1>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 79 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | sysctrler: sysctrler { |
| 83 | compatible = "ti,am654-system-controller"; |
| 84 | mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>, <&sa3_secproxy 5>; |
| 85 | mbox-names = "tx", "rx", "boot_notify"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 86 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | dm_tifs: dm-tifs { |
| 90 | compatible = "ti,j721e-dm-sci"; |
| 91 | ti,host-id = <3>; |
| 92 | ti,secure-host; |
| 93 | mbox-names = "rx", "tx"; |
| 94 | mboxes= <&mcu_secproxy 21>, |
| 95 | <&mcu_secproxy 23>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 96 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 97 | }; |
| 98 | }; |
| 99 | |
| 100 | &main_pmx0 { |
| 101 | main_uart8_pins_default: main-uart8-pins-default { |
| 102 | pinctrl-single,pins = < |
| 103 | J721S2_IOPAD(0x040, PIN_INPUT, 14) /* (AC28) MCASP0_AXR0.UART8_CTSn */ |
| 104 | J721S2_IOPAD(0x044, PIN_OUTPUT, 14) /* (Y26) MCASP0_AXR1.UART8_RTSn */ |
| 105 | J721S2_IOPAD(0x0d0, PIN_INPUT, 11) /* (AF26) SPI0_CS1.UART8_RXD */ |
| 106 | J721S2_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AH27) SPI0_CLK.UART8_TXD */ |
| 107 | >; |
| 108 | }; |
| 109 | |
| 110 | main_mmc1_pins_default: main-mmc1-pins-default { |
| 111 | pinctrl-single,pins = < |
| 112 | J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */ |
| 113 | J721S2_IOPAD(0x108, PIN_INPUT, 0) /* (N24) MMC1_CMD */ |
| 114 | J721S2_IOPAD(0x100, PIN_INPUT, 0) /* (###) MMC1_CLKLB */ |
| 115 | J721S2_IOPAD(0x0fc, PIN_INPUT, 0) /* (M23) MMC1_DAT0 */ |
| 116 | J721S2_IOPAD(0x0f8, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */ |
| 117 | J721S2_IOPAD(0x0f4, PIN_INPUT, 0) /* (R24) MMC1_DAT2 */ |
| 118 | J721S2_IOPAD(0x0f0, PIN_INPUT, 0) /* (R22) MMC1_DAT3 */ |
| 119 | J721S2_IOPAD(0x0e8, PIN_INPUT, 8) /* (AE25) TIMER_IO0.MMC1_SDCD */ |
| 120 | >; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | &wkup_pmx0 { |
| 125 | mcu_uart0_pins_default: mcu-uart0-pins-default { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 126 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 127 | pinctrl-single,pins = < |
| 128 | J721S2_WKUP_IOPAD(0x0f8, PIN_INPUT, 0) /* (B24) WKUP_GPIO0_14.MCU_UART0_CTSn */ |
| 129 | J721S2_WKUP_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (D25) WKUP_GPIO0_15.MCU_UART0_RTSn */ |
| 130 | J721S2_WKUP_IOPAD(0x0f4, PIN_INPUT, 0) /* (C24) WKUP_GPIO0_13.MCU_UART0_RXD */ |
| 131 | J721S2_WKUP_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (C25) WKUP_GPIO0_12.MCU_UART0_TXD */ |
| 132 | >; |
| 133 | }; |
| 134 | |
| 135 | wkup_uart0_pins_default: wkup-uart0-pins-default { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 136 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 137 | pinctrl-single,pins = < |
| 138 | J721S2_WKUP_IOPAD(0x0d8, PIN_INPUT, 0) /* (E25) WKUP_GPIO0_6.WKUP_UART0_CTSn */ |
| 139 | J721S2_WKUP_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (F28) WKUP_GPIO0_7.WKUP_UART0_RTSn */ |
| 140 | J721S2_WKUP_IOPAD(0x0b0, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */ |
| 141 | J721S2_WKUP_IOPAD(0x0b4, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */ |
| 142 | >; |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | &sms { |
| 147 | mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>; |
| 148 | mbox-names = "tx", "rx", "notify"; |
| 149 | ti,host-id = <4>; |
| 150 | ti,secure-host; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 151 | bootph-pre-ram; |
Aswath Govindraju | aec9a18 | 2022-01-25 20:56:43 +0530 | [diff] [blame] | 152 | }; |
| 153 | |
| 154 | &wkup_uart0 { |
| 155 | pinctrl-names = "default"; |
| 156 | pinctrl-0 = <&wkup_uart0_pins_default>; |
| 157 | }; |
| 158 | |
| 159 | &mcu_uart0 { |
| 160 | pinctrl-names = "default"; |
| 161 | pinctrl-0 = <&mcu_uart0_pins_default>; |
| 162 | }; |
| 163 | |
| 164 | &main_uart8 { |
| 165 | pinctrl-names = "default"; |
| 166 | pinctrl-0 = <&main_uart8_pins_default>; |
| 167 | }; |
| 168 | |
| 169 | &main_sdhci0 { |
| 170 | /delete-property/ power-domains; |
| 171 | /delete-property/ assigned-clocks; |
| 172 | /delete-property/ assigned-clock-parents; |
| 173 | clock-names = "clk_xin"; |
| 174 | clocks = <&clk_200mhz>; |
| 175 | ti,driver-strength-ohm = <50>; |
| 176 | non-removable; |
| 177 | bus-width = <8>; |
| 178 | }; |
| 179 | |
| 180 | &main_sdhci1 { |
| 181 | /delete-property/ power-domains; |
| 182 | /delete-property/ assigned-clocks; |
| 183 | /delete-property/ assigned-clock-parents; |
| 184 | pinctrl-0 = <&main_mmc1_pins_default>; |
| 185 | pinctrl-names = "default"; |
| 186 | clock-names = "clk_xin"; |
| 187 | clocks = <&clk_200mhz>; |
| 188 | ti,driver-strength-ohm = <50>; |
| 189 | }; |
| 190 | |
| 191 | &mcu_ringacc { |
| 192 | ti,sci = <&dm_tifs>; |
| 193 | }; |
| 194 | |
| 195 | &mcu_udmap { |
| 196 | ti,sci = <&dm_tifs>; |
| 197 | }; |
| 198 | |
| 199 | #include "k3-j721s2-common-proc-board-u-boot.dtsi" |