Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 3 | * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/ |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
Bryan Brattlof | 33d4ea3 | 2023-12-29 11:47:03 -0600 | [diff] [blame] | 8 | #include "k3-am654-base-board.dts" |
| 9 | #include "k3-am654-base-board-u-boot.dtsi" |
James Doublesin | e88e472 | 2019-10-07 14:04:25 +0530 | [diff] [blame] | 10 | #include "k3-am654-base-board-ddr4-1600MTs.dtsi" |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 11 | #include "k3-am654-ddr.dtsi" |
| 12 | |
| 13 | / { |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 14 | aliases { |
Bryan Brattlof | d08cada | 2023-12-29 11:47:00 -0600 | [diff] [blame] | 15 | remoteproc0 = &sysctrler; |
| 16 | remoteproc1 = &a53_0; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 17 | }; |
| 18 | |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 19 | a53_0: a53@0 { |
| 20 | compatible = "ti,am654-rproc"; |
| 21 | reg = <0x0 0x00a90000 0x0 0x10>; |
Lokesh Vutla | 61ff6a3 | 2019-06-07 19:24:47 +0530 | [diff] [blame] | 22 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
| 23 | <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 24 | resets = <&k3_reset 202 0>; |
Nishanth Menon | 975b78c | 2021-01-06 13:20:31 -0600 | [diff] [blame] | 25 | clocks = <&k3_clks 61 0>; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 26 | assigned-clocks = <&k3_clks 202 0>; |
| 27 | assigned-clock-rates = <800000000>; |
| 28 | ti,sci = <&dmsc>; |
| 29 | ti,sci-proc-id = <32>; |
| 30 | ti,sci-host-id = <10>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 31 | bootph-pre-ram; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 32 | }; |
Bryan Brattlof | eec923e | 2023-12-29 11:47:21 -0600 | [diff] [blame] | 33 | |
| 34 | clk_200mhz: dummy_clock { |
| 35 | compatible = "fixed-clock"; |
| 36 | #clock-cells = <0>; |
| 37 | clock-frequency = <200000000>; |
| 38 | bootph-pre-ram; |
| 39 | }; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 40 | }; |
| 41 | |
Bryan Brattlof | 9389761 | 2023-12-29 11:47:22 -0600 | [diff] [blame] | 42 | &secure_proxy_mcu { |
| 43 | status = "okay"; |
| 44 | bootph-pre-ram; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | &cbass_wakeup { |
| 48 | sysctrler: sysctrler { |
| 49 | compatible = "ti,am654-system-controller"; |
Bryan Brattlof | 9389761 | 2023-12-29 11:47:22 -0600 | [diff] [blame] | 50 | mboxes= <&secure_proxy_mcu 4>, <&secure_proxy_mcu 5>; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 51 | mbox-names = "tx", "rx"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 52 | bootph-pre-ram; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 53 | }; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 54 | }; |
| 55 | |
Bryan Brattlof | f059310 | 2023-12-29 11:47:06 -0600 | [diff] [blame] | 56 | /* |
| 57 | * timer init is called as part of rproc_start() while |
| 58 | * starting System Firmware, so any clock/power-domain |
| 59 | * operations will fail as SYSFW is not yet up and running. |
| 60 | * Delete all clock/power-domain properties to avoid |
| 61 | * timer init failure. |
| 62 | * This is an always on timer at 20MHz. |
| 63 | */ |
| 64 | &mcu_timer0 { |
| 65 | /delete-property/ clocks; |
| 66 | /delete-property/ assigned-clocks; |
| 67 | /delete-property/ assigned-clock-parents; |
| 68 | /delete-property/ power-domains; |
| 69 | }; |
| 70 | |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 71 | &dmsc { |
Bryan Brattlof | 9389761 | 2023-12-29 11:47:22 -0600 | [diff] [blame] | 72 | mboxes = <&secure_proxy_mcu 8>, |
| 73 | <&secure_proxy_mcu 6>, |
| 74 | <&secure_proxy_mcu 5>; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 75 | mbox-names = "tx", "rx", "notify"; |
| 76 | ti,host-id = <4>; |
| 77 | ti,secure-host; |
| 78 | }; |
| 79 | |
| 80 | &wkup_uart0 { |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 81 | status = "okay"; |
Bryan Brattlof | 62e59b2 | 2023-12-29 11:47:02 -0600 | [diff] [blame] | 82 | bootph-pre-ram; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 83 | }; |
| 84 | |
Andreas Dannenberg | 7073436 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 85 | &mcu_uart0 { |
Andreas Dannenberg | 7073436 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 86 | clock-frequency = <48000000>; |
Lokesh Vutla | 462275c | 2021-02-01 11:26:39 +0530 | [diff] [blame] | 87 | /delete-property/ power-domains; |
Andreas Dannenberg | 7073436 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 88 | status = "okay"; |
Bryan Brattlof | 62e59b2 | 2023-12-29 11:47:02 -0600 | [diff] [blame] | 89 | bootph-pre-ram; |
Andreas Dannenberg | 7073436 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 90 | }; |
| 91 | |
Tero Kristo | 2219390 | 2019-10-24 15:00:57 +0530 | [diff] [blame] | 92 | &wkup_vtm0 { |
Lokesh Vutla | 462275c | 2021-02-01 11:26:39 +0530 | [diff] [blame] | 93 | compatible = "ti,am654-vtm", "ti,am654-avs"; |
Tero Kristo | 2219390 | 2019-10-24 15:00:57 +0530 | [diff] [blame] | 94 | vdd-supply-3 = <&vdd_mpu>; |
| 95 | vdd-supply-4 = <&vdd_mpu>; |
Tero Kristo | 2219390 | 2019-10-24 15:00:57 +0530 | [diff] [blame] | 96 | }; |
| 97 | |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 98 | &memorycontroller { |
| 99 | vtt-supply = <&vtt_supply>; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 100 | }; |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 101 | |
Bryan Brattlof | 5cd5064 | 2023-12-29 11:47:12 -0600 | [diff] [blame] | 102 | /* |
| 103 | * MMC is probed to pull in firmware, so any clock |
| 104 | * or power-domain operation will fail as we do not |
| 105 | * have the firmware running at this point. Delete the |
| 106 | * power-domain properties to avoid making calls to |
| 107 | * SYSFW before it is loaded. Public ROM has already |
| 108 | * set it up for us anyway. |
| 109 | */ |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 110 | &sdhci0 { |
| 111 | clock-names = "clk_xin"; |
| 112 | clocks = <&clk_200mhz>; |
| 113 | /delete-property/ power-domains; |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 114 | }; |
| 115 | |
Bryan Brattlof | 86741b4 | 2023-12-29 11:47:13 -0600 | [diff] [blame] | 116 | /* |
| 117 | * MMC is probed to pull in firmware, so any clock |
| 118 | * or power-domain operation will fail as we do not |
| 119 | * have the firmware running at this point. Delete the |
| 120 | * power-domain properties to avoid making calls to |
| 121 | * SYSFW before it is loaded. Public ROM has already |
| 122 | * set it up for us anyway. |
| 123 | */ |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 124 | &sdhci1 { |
| 125 | clock-names = "clk_xin"; |
| 126 | clocks = <&clk_200mhz>; |
| 127 | /delete-property/ power-domains; |
| 128 | }; |
Andreas Dannenberg | d20cf7b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 129 | |
Vignesh Raghavendra | 1ee7955 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 130 | &ospi0 { |
Vignesh Raghavendra | 1ee7955 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 131 | reg = <0x0 0x47040000 0x0 0x100>, |
| 132 | <0x0 0x50000000 0x0 0x8000000>; |
Vignesh Raghavendra | 1ee7955 | 2020-02-04 11:09:51 +0530 | [diff] [blame] | 133 | }; |
Faiz Abbas | 60a7ab2 | 2020-08-03 11:35:11 +0530 | [diff] [blame] | 134 | |
Faiz Abbas | 60a7ab2 | 2020-08-03 11:35:11 +0530 | [diff] [blame] | 135 | &dwc3_0 { |
| 136 | status = "okay"; |
Aswath Govindraju | 57c687b | 2022-05-18 16:49:12 +0530 | [diff] [blame] | 137 | /delete-property/ clocks; |
Faiz Abbas | 60a7ab2 | 2020-08-03 11:35:11 +0530 | [diff] [blame] | 138 | /delete-property/ power-domains; |
| 139 | /delete-property/ assigned-clocks; |
| 140 | /delete-property/ assigned-clock-parents; |
| 141 | }; |
| 142 | |
Bryan Brattlof | d08cada | 2023-12-29 11:47:00 -0600 | [diff] [blame] | 143 | &mcu_cpsw { |
| 144 | reg = <0x0 0x46000000 0x0 0x200000>, |
| 145 | <0x0 0x40f00200 0x0 0x2>; |
| 146 | reg-names = "cpsw_nuss", "mac_efuse"; |
| 147 | /delete-property/ ranges; |
| 148 | |
| 149 | cpsw-phy-sel@40f04040 { |
| 150 | compatible = "ti,am654-cpsw-phy-sel"; |
| 151 | reg= <0x0 0x40f04040 0x0 0x4>; |
| 152 | reg-names = "gmii-sel"; |
| 153 | }; |
| 154 | }; |
| 155 | |
| 156 | &usb1 { |
| 157 | dr_mode = "peripheral"; |
| 158 | }; |