blob: 4516ab1437e73399de4bada4f90c08c89c7b8bc5 [file] [log] [blame]
Lokesh Vutlaf6de8272021-06-22 12:04:29 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2018-2021 Texas Instruments Incorporated - http://www.ti.com/
4 */
5
6#include <dt-bindings/pinctrl/k3.h>
7#include <dt-bindings/net/ti-dp83867.h>
8
9/ {
10 chosen {
11 stdout-path = "serial2:115200n8";
12 };
13
14 aliases {
15 serial2 = &main_uart0;
16 ethernet0 = &cpsw_port1;
17 usb0 = &usb0;
18 usb1 = &usb1;
19 spi0 = &ospi0;
20 spi1 = &ospi1;
21 };
22};
23
24&cbass_main{
Simon Glassd3a98cb2023-02-13 08:56:33 -070025 bootph-pre-ram;
Tom Rinif8276452021-09-10 17:37:43 -040026 main_navss: bus@30800000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070027 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053028 };
29};
30
31&cbass_mcu {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053033
Tom Rinif8276452021-09-10 17:37:43 -040034 mcu_navss: bus@28380000 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070035 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053036
37 ringacc@2b800000 {
38 reg = <0x0 0x2b800000 0x0 0x400000>,
39 <0x0 0x2b000000 0x0 0x400000>,
40 <0x0 0x28590000 0x0 0x100>,
41 <0x0 0x2a500000 0x0 0x40000>,
42 <0x0 0x28440000 0x0 0x40000>;
43 reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target", "cfg";
Simon Glassd3a98cb2023-02-13 08:56:33 -070044 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053045 ti,dma-ring-reset-quirk;
46 };
47
48 dma-controller@285c0000 {
49 reg = <0x0 0x285c0000 0x0 0x100>,
50 <0x0 0x284c0000 0x0 0x4000>,
51 <0x0 0x2a800000 0x0 0x40000>,
52 <0x0 0x284a0000 0x0 0x4000>,
53 <0x0 0x2aa00000 0x0 0x40000>,
54 <0x0 0x28400000 0x0 0x2000>;
55 reg-names = "gcfg", "rchan", "rchanrt", "tchan",
56 "tchanrt", "rflow";
Simon Glassd3a98cb2023-02-13 08:56:33 -070057 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053058 };
59 };
60};
61
62&cbass_wakeup {
Simon Glassd3a98cb2023-02-13 08:56:33 -070063 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053064
65 chipid@43000014 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070066 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053067 };
68};
69
70&secure_proxy_main {
Simon Glassd3a98cb2023-02-13 08:56:33 -070071 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053072};
73
74&dmsc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070075 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053076 k3_sysreset: sysreset-controller {
77 compatible = "ti,sci-sysreset";
Simon Glassd3a98cb2023-02-13 08:56:33 -070078 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053079 };
80};
81
82&k3_pds {
Simon Glassd3a98cb2023-02-13 08:56:33 -070083 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053084};
85
86&k3_clks {
Simon Glassd3a98cb2023-02-13 08:56:33 -070087 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053088};
89
90&k3_reset {
Simon Glassd3a98cb2023-02-13 08:56:33 -070091 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053092};
93
94&wkup_pmx0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070095 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053096
97 wkup_i2c0_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -070098 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +053099 };
100};
101
102&main_pmx0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700103 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530104 usb0_pins_default: usb0_pins_default {
105 pinctrl-single,pins = <
106 AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */
107 >;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700108 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530109 };
110};
111
112&main_uart0_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700113 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530114};
115
116&main_pmx1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700117 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530118};
119
120&wkup_pmx0 {
121 mcu-fss0-ospi0-pins-default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700122 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530123 };
124};
125
126&main_uart0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700127 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530128};
129
130&main_mmc0_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700131 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530132};
133
134&main_mmc1_pins_default {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700135 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530136};
137
138&sdhci0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700139 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530140};
141
142&sdhci1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700143 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530144};
145
146&davinci_mdio {
147 phy0: ethernet-phy@0 {
148 reg = <0>;
149 /* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
150 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
151 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
152 };
153};
154
155&mcu_cpsw {
156 reg = <0x0 0x46000000 0x0 0x200000>,
157 <0x0 0x40f00200 0x0 0x2>;
158 reg-names = "cpsw_nuss", "mac_efuse";
159 /delete-property/ ranges;
160
161 cpsw-phy-sel@40f04040 {
162 compatible = "ti,am654-cpsw-phy-sel";
163 reg= <0x0 0x40f04040 0x0 0x4>;
164 reg-names = "gmii-sel";
165 };
166};
167
168&wkup_i2c0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700169 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530170};
171
172&usb1 {
173 dr_mode = "peripheral";
174};
175
176&fss {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700177 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530178};
179
180&ospi0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700181 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530182
183 flash@0{
Simon Glassd3a98cb2023-02-13 08:56:33 -0700184 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530185 };
186};
187
188&dwc3_0 {
189 status = "okay";
Simon Glassd3a98cb2023-02-13 08:56:33 -0700190 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530191};
192
193&usb0_phy {
194 status = "okay";
Simon Glassd3a98cb2023-02-13 08:56:33 -0700195 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530196};
197
198&usb0 {
199 pinctrl-names = "default";
200 pinctrl-0 = <&usb0_pins_default>;
Aswath Govindraju57c687b2022-05-18 16:49:12 +0530201 dr_mode = "peripheral";
Simon Glassd3a98cb2023-02-13 08:56:33 -0700202 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530203};
204
205&scm_conf {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700206 bootph-pre-ram;
Lokesh Vutlaf6de8272021-06-22 12:04:29 +0530207};