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