blob: d3c257983ecbac9c49983abf1edfdbce676e8995 [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 Karlman7b733dd2024-04-22 06:28:48 +000044 vo0_grf: syscon@fd5a6000 {
45 compatible = "rockchip,rk3588-vo-grf", "syscon";
46 reg = <0x0 0xfd5a6000 0x0 0x2000>;
47 clocks = <&cru PCLK_VO0GRF>;
48 };
49
50 usb_grf: syscon@fd5ac000 {
51 compatible = "rockchip,rk3588-usb-grf", "syscon";
52 reg = <0x0 0xfd5ac000 0x0 0x4000>;
53 };
54
Jonas Karlmanf9b28c22023-10-17 17:02:11 +000055 usbdpphy0_grf: syscon@fd5c8000 {
56 compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
57 reg = <0x0 0xfd5c8000 0x0 0x4000>;
58 };
59
Joseph Chena1d63212023-05-29 13:01:34 +030060 usb2phy0_grf: syscon@fd5d0000 {
61 compatible = "rockchip,rk3588-usb2phy-grf", "syscon",
62 "simple-mfd";
63 reg = <0x0 0xfd5d0000 0x0 0x4000>;
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 u2phy0: usb2-phy@0 {
68 compatible = "rockchip,rk3588-usb2phy";
69 reg = <0x0 0x10>;
70 interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH 0>;
71 resets = <&cru SRST_OTGPHY_U3_0>, <&cru SRST_P_USB2PHY_U3_0_GRF0>;
72 reset-names = "phy", "apb";
73 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
74 clock-names = "phyclk";
75 clock-output-names = "usb480m_phy0";
76 #clock-cells = <0>;
Joseph Chena1d63212023-05-29 13:01:34 +030077 status = "disabled";
78
79 u2phy0_otg: otg-port {
80 #phy-cells = <0>;
81 status = "disabled";
82 };
83 };
84 };
85
Chris Morgan7f255042023-04-13 09:13:03 -050086 rng: rng@fe378000 {
87 compatible = "rockchip,trngv1";
88 reg = <0x0 0xfe378000 0x0 0x200>;
Chris Morgan7f255042023-04-13 09:13:03 -050089 };
Joseph Chen84445502023-05-17 13:01:00 +030090
Joseph Chena1d63212023-05-29 13:01:34 +030091 usbdp_phy0: phy@fed80000 {
92 compatible = "rockchip,rk3588-usbdp-phy";
93 reg = <0x0 0xfed80000 0x0 0x10000>;
94 rockchip,u2phy-grf = <&usb2phy0_grf>;
95 rockchip,usb-grf = <&usb_grf>;
96 rockchip,usbdpphy-grf = <&usbdpphy0_grf>;
97 rockchip,vo-grf = <&vo0_grf>;
98 clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>,
99 <&cru CLK_USBDP_PHY0_IMMORTAL>,
100 <&cru PCLK_USBDPPHY0>,
101 <&u2phy0>;
102 clock-names = "refclk", "immortal", "pclk", "utmi";
103 resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>,
104 <&cru SRST_USBDP_COMBO_PHY0_CMN>,
105 <&cru SRST_USBDP_COMBO_PHY0_LANE>,
106 <&cru SRST_USBDP_COMBO_PHY0_PCS>,
107 <&cru SRST_P_USBDPPHY0>;
108 reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb";
109 status = "disabled";
110
111 usbdp_phy0_dp: dp-port {
112 #phy-cells = <0>;
113 status = "disabled";
114 };
115
116 usbdp_phy0_u3: usb3-port {
117 #phy-cells = <0>;
118 status = "disabled";
119 };
120 };
Jagan Tekia4dd7932023-01-30 20:27:46 +0530121};
122
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000123#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
124&binman {
125 simple-bin-spi {
126 mkimage {
127 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
128 offset = <0x8000>;
129 };
130 };
131};
132#endif
133
134&cru {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000135 bootph-all;
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000136};
137
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300138&emmc_bus8 {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000139 bootph-pre-ram;
140 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300141};
142
143&emmc_clk {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000144 bootph-pre-ram;
145 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300146};
147
148&emmc_cmd {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000149 bootph-pre-ram;
150 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300151};
152
153&emmc_data_strobe {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000154 bootph-pre-ram;
155 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300156};
157
158&emmc_rstnout {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000159 bootph-pre-ram;
160 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300161};
162
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000163&ioc {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000164 bootph-all;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300165};
166
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000167&pcfg_pull_down {
168 bootph-all;
169};
170
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300171&pcfg_pull_none {
172 bootph-all;
173};
174
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300175&pcfg_pull_up {
176 bootph-all;
177};
178
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000179&pcfg_pull_up_drv_level_2 {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000180 bootph-pre-ram;
181 bootph-some-ram;
182};
183
184&php_grf {
Tom Rinide70b472023-03-27 15:20:19 -0400185 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530186};
187
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000188&pinctrl {
189 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530190};
191
Jonas Karlman592101d2024-01-26 22:14:52 +0000192&pmu1grf {
193 bootph-all;
194};
195
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000196&scmi {
197 bootph-pre-ram;
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000198 bootph-some-ram;
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000199};
200
201&scmi_clk {
202 bootph-pre-ram;
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000203 bootph-some-ram;
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000204};
205
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000206&sdhci {
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000207 bootph-pre-ram;
Quentin Schulz71f30122024-03-11 13:01:58 +0100208 bootph-some-ram;
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000209 u-boot,spl-fifo-mode;
210};
211
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000212&sdmmc {
Jonas Karlmanced8be02023-04-18 16:46:41 +0000213 bootph-pre-ram;
Quentin Schulz71f30122024-03-11 13:01:58 +0100214 bootph-some-ram;
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000215 u-boot,spl-fifo-mode;
Jonas Karlmanced8be02023-04-18 16:46:41 +0000216};
217
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300218&sdmmc_bus4 {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000219 bootph-pre-ram;
220 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300221};
222
223&sdmmc_clk {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000224 bootph-pre-ram;
225 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300226};
227
228&sdmmc_cmd {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000229 bootph-pre-ram;
230 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300231};
232
233&sdmmc_det {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000234 bootph-pre-ram;
235 bootph-some-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300236};
237
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000238&sfc {
239 u-boot,spl-sfc-no-dma;
240};
241
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000242&sys_grf {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000243 bootph-all;
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000244};
245
Jagan Tekia4dd7932023-01-30 20:27:46 +0530246&uart2 {
Jonas Karlmanab956bb2024-04-22 06:28:50 +0000247 bootph-all;
Jonas Karlman87fc32b2024-01-26 22:14:55 +0000248 clock-frequency = <24000000>;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530249};
250
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300251&uart2m0_xfer {
252 bootph-all;
253};
254
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000255&xin24m {
256 bootph-all;
Jonas Karlmanadb78942023-05-18 15:39:30 +0000257};