blob: 945b2d62a75e5d489dacaf26e7c18b2afc733a94 [file] [log] [blame]
Jagan Tekia4dd7932023-01-30 20:27:46 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
4 */
5
6#include "rockchip-u-boot.dtsi"
7
8/ {
Jonas Karlmana5e28652023-07-28 12:05:41 +00009 aliases {
Jonas Karlmana5e28652023-07-28 12:05:41 +000010 spi5 = &sfc;
11 };
12
Jonas Karlmaneb193012024-01-26 22:14:54 +000013 chosen {
14 u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
15 };
16
Jagan Tekia4dd7932023-01-30 20:27:46 +053017 dmc {
18 compatible = "rockchip,rk3588-dmc";
Tom Rinide70b472023-03-27 15:20:19 -040019 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +053020 status = "okay";
21 };
22
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000023 usb_host0_xhci: usb@fc000000 {
Jonas Karlman592101d2024-01-26 22:14:52 +000024 compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000025 reg = <0x0 0xfc000000 0x0 0x400000>;
26 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH 0>;
Joseph Chena1d63212023-05-29 13:01:34 +030027 clocks = <&cru REF_CLK_USB3OTG0>, <&cru SUSPEND_CLK_USB3OTG0>,
28 <&cru ACLK_USB3OTG0>;
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000029 clock-names = "ref_clk", "suspend_clk", "bus_clk";
30 dr_mode = "otg";
31 phys = <&u2phy0_otg>, <&usbdp_phy0_u3>;
32 phy-names = "usb2-phy", "usb3-phy";
33 phy_type = "utmi_wide";
34 power-domains = <&power RK3588_PD_USB>;
35 resets = <&cru SRST_A_USB3OTG0>;
36 snps,dis_enblslpm_quirk;
37 snps,dis-u1-entry-quirk;
38 snps,dis-u2-entry-quirk;
39 snps,dis-u2-freeclk-exists-quirk;
40 snps,dis-del-phy-power-chg-quirk;
41 snps,dis-tx-ipgap-linecheck-quirk;
Joseph Chena1d63212023-05-29 13:01:34 +030042 status = "disabled";
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000043 };
Joseph Chena1d63212023-05-29 13:01:34 +030044
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000045 usbdpphy0_grf: syscon@fd5c8000 {
46 compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
47 reg = <0x0 0xfd5c8000 0x0 0x4000>;
48 };
49
Joseph Chena1d63212023-05-29 13:01:34 +030050 usb2phy0_grf: syscon@fd5d0000 {
51 compatible = "rockchip,rk3588-usb2phy-grf", "syscon",
52 "simple-mfd";
53 reg = <0x0 0xfd5d0000 0x0 0x4000>;
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 u2phy0: usb2-phy@0 {
58 compatible = "rockchip,rk3588-usb2phy";
59 reg = <0x0 0x10>;
60 interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH 0>;
61 resets = <&cru SRST_OTGPHY_U3_0>, <&cru SRST_P_USB2PHY_U3_0_GRF0>;
62 reset-names = "phy", "apb";
63 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
64 clock-names = "phyclk";
65 clock-output-names = "usb480m_phy0";
66 #clock-cells = <0>;
Joseph Chena1d63212023-05-29 13:01:34 +030067 status = "disabled";
68
69 u2phy0_otg: otg-port {
70 #phy-cells = <0>;
71 status = "disabled";
72 };
73 };
74 };
75
Joseph Chena1d63212023-05-29 13:01:34 +030076 vo0_grf: syscon@fd5a6000 {
77 compatible = "rockchip,rk3588-vo-grf", "syscon";
78 reg = <0x0 0xfd5a6000 0x0 0x2000>;
79 clocks = <&cru PCLK_VO0GRF>;
80 };
81
82 usb_grf: syscon@fd5ac000 {
83 compatible = "rockchip,rk3588-usb-grf", "syscon";
84 reg = <0x0 0xfd5ac000 0x0 0x4000>;
85 };
86
Joseph Chena1d63212023-05-29 13:01:34 +030087 usbdpphy0_grf: syscon@fd5c8000 {
88 compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
89 reg = <0x0 0xfd5c8000 0x0 0x4000>;
90 };
91
Chris Morgan7f255042023-04-13 09:13:03 -050092 rng: rng@fe378000 {
93 compatible = "rockchip,trngv1";
94 reg = <0x0 0xfe378000 0x0 0x200>;
95 status = "disabled";
96 };
Joseph Chen84445502023-05-17 13:01:00 +030097
Joseph Chena1d63212023-05-29 13:01:34 +030098 usbdp_phy0: phy@fed80000 {
99 compatible = "rockchip,rk3588-usbdp-phy";
100 reg = <0x0 0xfed80000 0x0 0x10000>;
101 rockchip,u2phy-grf = <&usb2phy0_grf>;
102 rockchip,usb-grf = <&usb_grf>;
103 rockchip,usbdpphy-grf = <&usbdpphy0_grf>;
104 rockchip,vo-grf = <&vo0_grf>;
105 clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>,
106 <&cru CLK_USBDP_PHY0_IMMORTAL>,
107 <&cru PCLK_USBDPPHY0>,
108 <&u2phy0>;
109 clock-names = "refclk", "immortal", "pclk", "utmi";
110 resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>,
111 <&cru SRST_USBDP_COMBO_PHY0_CMN>,
112 <&cru SRST_USBDP_COMBO_PHY0_LANE>,
113 <&cru SRST_USBDP_COMBO_PHY0_PCS>,
114 <&cru SRST_P_USBDPPHY0>;
115 reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb";
116 status = "disabled";
117
118 usbdp_phy0_dp: dp-port {
119 #phy-cells = <0>;
120 status = "disabled";
121 };
122
123 usbdp_phy0_u3: usb3-port {
124 #phy-cells = <0>;
125 status = "disabled";
126 };
127 };
Jagan Tekia4dd7932023-01-30 20:27:46 +0530128};
129
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300130&emmc_bus8 {
131 bootph-all;
132};
133
134&emmc_clk {
135 bootph-all;
136};
137
138&emmc_cmd {
139 bootph-all;
140};
141
142&emmc_data_strobe {
143 bootph-all;
144};
145
146&emmc_rstnout {
147 bootph-all;
148};
149
150&pinctrl {
151 bootph-all;
152};
153
154&pcfg_pull_none {
155 bootph-all;
156};
157
158&pcfg_pull_up_drv_level_2 {
159 bootph-all;
160};
161
162&pcfg_pull_up {
163 bootph-all;
164};
165
Jagan Tekia4dd7932023-01-30 20:27:46 +0530166&xin24m {
Tom Rinide70b472023-03-27 15:20:19 -0400167 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530168 status = "okay";
169};
170
171&cru {
Tom Rinide70b472023-03-27 15:20:19 -0400172 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530173 status = "okay";
174};
175
176&sys_grf {
Tom Rinide70b472023-03-27 15:20:19 -0400177 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530178 status = "okay";
179};
180
Jonas Karlman592101d2024-01-26 22:14:52 +0000181&pmu1grf {
182 bootph-all;
183};
184
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000185&scmi {
186 bootph-pre-ram;
187};
188
189&scmi_clk {
190 bootph-pre-ram;
191};
192
193&sdmmc {
194 bootph-pre-ram;
195 u-boot,spl-fifo-mode;
196};
197
Jonas Karlmanced8be02023-04-18 16:46:41 +0000198&sdhci {
199 bootph-pre-ram;
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000200 u-boot,spl-fifo-mode;
Jonas Karlmanced8be02023-04-18 16:46:41 +0000201};
202
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300203&sdmmc_bus4 {
204 bootph-all;
205};
206
207&sdmmc_clk {
208 bootph-all;
209};
210
211&sdmmc_cmd {
212 bootph-all;
213};
214
215&sdmmc_det {
216 bootph-all;
217};
218
Jagan Tekia4dd7932023-01-30 20:27:46 +0530219&uart2 {
220 clock-frequency = <24000000>;
Tom Rinide70b472023-03-27 15:20:19 -0400221 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530222 status = "okay";
223};
224
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300225&uart2m0_xfer {
226 bootph-all;
227};
228
Jagan Tekia4dd7932023-01-30 20:27:46 +0530229&ioc {
Tom Rinide70b472023-03-27 15:20:19 -0400230 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530231};
Jonas Karlmanadb78942023-05-18 15:39:30 +0000232
233#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
234&binman {
235 simple-bin-spi {
236 mkimage {
237 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
238 offset = <0x8000>;
239 };
240 };
241};
242#endif