blob: ac67c777adea1d5f236fc809385c0a7686858364 [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 };
21
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000022 usb_host0_xhci: usb@fc000000 {
Jonas Karlman592101d2024-01-26 22:14:52 +000023 compatible = "rockchip,rk3588-dwc3", "snps,dwc3";
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000024 reg = <0x0 0xfc000000 0x0 0x400000>;
25 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH 0>;
Joseph Chena1d63212023-05-29 13:01:34 +030026 clocks = <&cru REF_CLK_USB3OTG0>, <&cru SUSPEND_CLK_USB3OTG0>,
27 <&cru ACLK_USB3OTG0>;
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000028 clock-names = "ref_clk", "suspend_clk", "bus_clk";
29 dr_mode = "otg";
30 phys = <&u2phy0_otg>, <&usbdp_phy0_u3>;
31 phy-names = "usb2-phy", "usb3-phy";
32 phy_type = "utmi_wide";
33 power-domains = <&power RK3588_PD_USB>;
34 resets = <&cru SRST_A_USB3OTG0>;
35 snps,dis_enblslpm_quirk;
36 snps,dis-u1-entry-quirk;
37 snps,dis-u2-entry-quirk;
38 snps,dis-u2-freeclk-exists-quirk;
39 snps,dis-del-phy-power-chg-quirk;
40 snps,dis-tx-ipgap-linecheck-quirk;
Joseph Chena1d63212023-05-29 13:01:34 +030041 status = "disabled";
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000042 };
Joseph Chena1d63212023-05-29 13:01:34 +030043
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000044 usbdpphy0_grf: syscon@fd5c8000 {
45 compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
46 reg = <0x0 0xfd5c8000 0x0 0x4000>;
47 };
48
Joseph Chena1d63212023-05-29 13:01:34 +030049 usb2phy0_grf: syscon@fd5d0000 {
50 compatible = "rockchip,rk3588-usb2phy-grf", "syscon",
51 "simple-mfd";
52 reg = <0x0 0xfd5d0000 0x0 0x4000>;
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 u2phy0: usb2-phy@0 {
57 compatible = "rockchip,rk3588-usb2phy";
58 reg = <0x0 0x10>;
59 interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH 0>;
60 resets = <&cru SRST_OTGPHY_U3_0>, <&cru SRST_P_USB2PHY_U3_0_GRF0>;
61 reset-names = "phy", "apb";
62 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
63 clock-names = "phyclk";
64 clock-output-names = "usb480m_phy0";
65 #clock-cells = <0>;
Joseph Chena1d63212023-05-29 13:01:34 +030066 status = "disabled";
67
68 u2phy0_otg: otg-port {
69 #phy-cells = <0>;
70 status = "disabled";
71 };
72 };
73 };
74
Joseph Chena1d63212023-05-29 13:01:34 +030075 vo0_grf: syscon@fd5a6000 {
76 compatible = "rockchip,rk3588-vo-grf", "syscon";
77 reg = <0x0 0xfd5a6000 0x0 0x2000>;
78 clocks = <&cru PCLK_VO0GRF>;
79 };
80
81 usb_grf: syscon@fd5ac000 {
82 compatible = "rockchip,rk3588-usb-grf", "syscon";
83 reg = <0x0 0xfd5ac000 0x0 0x4000>;
84 };
85
Joseph Chena1d63212023-05-29 13:01:34 +030086 usbdpphy0_grf: syscon@fd5c8000 {
87 compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
88 reg = <0x0 0xfd5c8000 0x0 0x4000>;
89 };
90
Chris Morgan7f255042023-04-13 09:13:03 -050091 rng: rng@fe378000 {
92 compatible = "rockchip,trngv1";
93 reg = <0x0 0xfe378000 0x0 0x200>;
94 status = "disabled";
95 };
Joseph Chen84445502023-05-17 13:01:00 +030096
Joseph Chena1d63212023-05-29 13:01:34 +030097 usbdp_phy0: phy@fed80000 {
98 compatible = "rockchip,rk3588-usbdp-phy";
99 reg = <0x0 0xfed80000 0x0 0x10000>;
100 rockchip,u2phy-grf = <&usb2phy0_grf>;
101 rockchip,usb-grf = <&usb_grf>;
102 rockchip,usbdpphy-grf = <&usbdpphy0_grf>;
103 rockchip,vo-grf = <&vo0_grf>;
104 clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>,
105 <&cru CLK_USBDP_PHY0_IMMORTAL>,
106 <&cru PCLK_USBDPPHY0>,
107 <&u2phy0>;
108 clock-names = "refclk", "immortal", "pclk", "utmi";
109 resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>,
110 <&cru SRST_USBDP_COMBO_PHY0_CMN>,
111 <&cru SRST_USBDP_COMBO_PHY0_LANE>,
112 <&cru SRST_USBDP_COMBO_PHY0_PCS>,
113 <&cru SRST_P_USBDPPHY0>;
114 reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb";
115 status = "disabled";
116
117 usbdp_phy0_dp: dp-port {
118 #phy-cells = <0>;
119 status = "disabled";
120 };
121
122 usbdp_phy0_u3: usb3-port {
123 #phy-cells = <0>;
124 status = "disabled";
125 };
126 };
Jagan Tekia4dd7932023-01-30 20:27:46 +0530127};
128
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300129&emmc_bus8 {
130 bootph-all;
131};
132
133&emmc_clk {
134 bootph-all;
135};
136
137&emmc_cmd {
138 bootph-all;
139};
140
141&emmc_data_strobe {
142 bootph-all;
143};
144
145&emmc_rstnout {
146 bootph-all;
147};
148
149&pinctrl {
150 bootph-all;
151};
152
153&pcfg_pull_none {
154 bootph-all;
155};
156
157&pcfg_pull_up_drv_level_2 {
158 bootph-all;
159};
160
161&pcfg_pull_up {
162 bootph-all;
163};
164
Jagan Tekia4dd7932023-01-30 20:27:46 +0530165&xin24m {
Tom Rinide70b472023-03-27 15:20:19 -0400166 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530167};
168
169&cru {
Tom Rinide70b472023-03-27 15:20:19 -0400170 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530171};
172
173&sys_grf {
Tom Rinide70b472023-03-27 15:20:19 -0400174 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530175};
176
Jonas Karlman592101d2024-01-26 22:14:52 +0000177&pmu1grf {
178 bootph-all;
179};
180
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000181&scmi {
182 bootph-pre-ram;
183};
184
185&scmi_clk {
186 bootph-pre-ram;
187};
188
189&sdmmc {
190 bootph-pre-ram;
Quentin Schulz71f30122024-03-11 13:01:58 +0100191 bootph-some-ram;
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000192 u-boot,spl-fifo-mode;
193};
194
Jonas Karlmanced8be02023-04-18 16:46:41 +0000195&sdhci {
196 bootph-pre-ram;
Quentin Schulz71f30122024-03-11 13:01:58 +0100197 bootph-some-ram;
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000198 u-boot,spl-fifo-mode;
Jonas Karlmanced8be02023-04-18 16:46:41 +0000199};
200
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300201&sdmmc_bus4 {
202 bootph-all;
203};
204
205&sdmmc_clk {
206 bootph-all;
207};
208
209&sdmmc_cmd {
210 bootph-all;
211};
212
213&sdmmc_det {
214 bootph-all;
215};
216
Jagan Tekia4dd7932023-01-30 20:27:46 +0530217&uart2 {
Tom Rinide70b472023-03-27 15:20:19 -0400218 bootph-pre-ram;
Jonas Karlman87fc32b2024-01-26 22:14:55 +0000219 clock-frequency = <24000000>;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530220};
221
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300222&uart2m0_xfer {
223 bootph-all;
224};
225
Jagan Tekia4dd7932023-01-30 20:27:46 +0530226&ioc {
Tom Rinide70b472023-03-27 15:20:19 -0400227 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530228};
Jonas Karlmanadb78942023-05-18 15:39:30 +0000229
230#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
231&binman {
232 simple-bin-spi {
233 mkimage {
234 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
235 offset = <0x8000>;
236 };
237 };
238};
239#endif