Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 3 | * Copyright (C) 2020-2023 Texas Instruments Incorporated - https://www.ti.com/ |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 4 | */ |
| 5 | |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 6 | #include "k3-am642-evm.dts" |
Dave Gerlach | 3daecde | 2021-05-04 18:00:52 -0500 | [diff] [blame] | 7 | #include "k3-am64-evm-ddr4-1600MTs.dtsi" |
| 8 | #include "k3-am64-ddr.dtsi" |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 9 | |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 10 | #include "k3-am642-evm-u-boot.dtsi" |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 11 | |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 12 | / { |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 13 | aliases { |
| 14 | remoteproc0 = &sysctrler; |
| 15 | remoteproc1 = &a53_0; |
| 16 | }; |
| 17 | |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 18 | a53_0: a53@0 { |
| 19 | compatible = "ti,am654-rproc"; |
| 20 | reg = <0x00 0x00a90000 0x00 0x10>; |
| 21 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
Manorit Chawdhry | 99aceb8 | 2023-04-14 09:47:57 +0530 | [diff] [blame] | 22 | <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>, |
| 23 | <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 24 | resets = <&k3_reset 135 0>; |
Manorit Chawdhry | f23728b | 2024-10-15 16:22:19 +0530 | [diff] [blame] | 25 | clocks = <&k3_clks 61 0>, <&k3_clks 135 0>; |
| 26 | clock-names = "gtc", "core"; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 27 | assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>; |
| 28 | assigned-clock-parents = <&k3_clks 61 2>; |
| 29 | assigned-clock-rates = <200000000>, <1000000000>; |
| 30 | ti,sci = <&dmsc>; |
| 31 | ti,sci-proc-id = <32>; |
| 32 | ti,sci-host-id = <10>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 34 | }; |
| 35 | |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 36 | clk_200mhz: dummy-clock-200mhz { |
| 37 | compatible = "fixed-clock"; |
| 38 | #clock-cells = <0>; |
| 39 | clock-frequency = <200000000>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 40 | bootph-pre-ram; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 41 | }; |
| 42 | }; |
| 43 | |
| 44 | &cbass_main { |
| 45 | sysctrler: sysctrler { |
| 46 | compatible = "ti,am654-system-controller"; |
| 47 | mboxes= <&secure_proxy_main 1>, <&secure_proxy_main 0>; |
| 48 | mbox-names = "tx", "rx"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 49 | bootph-pre-ram; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 50 | }; |
| 51 | }; |
| 52 | |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 53 | &dmsc { |
| 54 | mboxes= <&secure_proxy_main 0>, |
| 55 | <&secure_proxy_main 1>, |
| 56 | <&secure_proxy_main 0>; |
| 57 | mbox-names = "rx", "tx", "notify"; |
| 58 | ti,host-id = <35>; |
| 59 | ti,secure-host; |
| 60 | }; |
| 61 | |
Roger Quadros | 12fdc4c | 2023-09-29 16:46:42 +0300 | [diff] [blame] | 62 | &memorycontroller { |
| 63 | vtt-supply = <&vtt_supply>; |
| 64 | }; |
| 65 | |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 66 | &sdhci0 { |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 67 | clocks = <&clk_200mhz>; |
| 68 | clock-names = "clk_xin"; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 69 | }; |
| 70 | |
| 71 | &sdhci1 { |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 72 | clocks = <&clk_200mhz>; |
| 73 | clock-names = "clk_xin"; |
Dave Gerlach | 278e7ac | 2021-04-23 11:27:46 -0500 | [diff] [blame] | 74 | }; |
| 75 | |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 76 | /* UART is initialized before SYSFW is started |
| 77 | * so we can't do any power-domain/clock operations. |
| 78 | * Delete clock/power-domain properties to avoid |
| 79 | * UART init failure |
| 80 | */ |
| 81 | &main_uart0 { |
Lokesh Vutla | e1c5a5d | 2021-05-06 16:44:57 +0530 | [diff] [blame] | 82 | /delete-property/ power-domains; |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 83 | /delete-property/ clocks; |
| 84 | /delete-property/ clock-names; |
Aswath Govindraju | 0b2481e | 2021-06-04 22:00:36 +0530 | [diff] [blame] | 85 | }; |
| 86 | |
Roger Quadros | af6e2a7 | 2023-08-05 11:14:40 +0300 | [diff] [blame] | 87 | /* timer init is called as part of rproc_start() while |
| 88 | * starting System Firmware, so any clock/power-domain |
| 89 | * operations will fail as SYSFW is not yet up and running. |
| 90 | * Delete all clock/power-domain properties to avoid |
| 91 | * timer init failure. |
| 92 | * This is an always on timer at 20MHz. |
| 93 | */ |
| 94 | &main_timer0 { |
| 95 | /delete-property/ clocks; |
| 96 | /delete-property/ assigned-clocks; |
| 97 | /delete-property/ assigned-clock-parents; |
| 98 | /delete-property/ power-domains; |
Aswath Govindraju | 0b2481e | 2021-06-04 22:00:36 +0530 | [diff] [blame] | 99 | }; |
Jonathan Humphreys | e1ce4f4 | 2024-02-23 18:17:02 -0600 | [diff] [blame] | 100 | |
| 101 | &ospi0 { |
| 102 | reg = <0x00 0x0fc40000 0x00 0x100>, |
| 103 | <0x00 0x60000000 0x00 0x8000000>; |
| 104 | }; |