blob: 7fcbdb9692403c2fd7578db888d3048c388f945e [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 {
135 bootph-pre-ram;
136};
137
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300138&emmc_bus8 {
139 bootph-all;
140};
141
142&emmc_clk {
143 bootph-all;
144};
145
146&emmc_cmd {
147 bootph-all;
148};
149
150&emmc_data_strobe {
151 bootph-all;
152};
153
154&emmc_rstnout {
155 bootph-all;
156};
157
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000158&ioc {
159 bootph-pre-ram;
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300160};
161
162&pcfg_pull_none {
163 bootph-all;
164};
165
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300166&pcfg_pull_up {
167 bootph-all;
168};
169
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000170&pcfg_pull_up_drv_level_2 {
Tom Rinide70b472023-03-27 15:20:19 -0400171 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530172};
173
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000174&pinctrl {
175 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530176};
177
Jonas Karlman592101d2024-01-26 22:14:52 +0000178&pmu1grf {
179 bootph-all;
180};
181
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000182&scmi {
183 bootph-pre-ram;
184};
185
186&scmi_clk {
187 bootph-pre-ram;
188};
189
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000190&sdhci {
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000191 bootph-pre-ram;
Quentin Schulz71f30122024-03-11 13:01:58 +0100192 bootph-some-ram;
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000193 u-boot,spl-fifo-mode;
194};
195
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000196&sdmmc {
Jonas Karlmanced8be02023-04-18 16:46:41 +0000197 bootph-pre-ram;
Quentin Schulz71f30122024-03-11 13:01:58 +0100198 bootph-some-ram;
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000199 u-boot,spl-fifo-mode;
Jonas Karlmanced8be02023-04-18 16:46:41 +0000200};
201
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300202&sdmmc_bus4 {
203 bootph-all;
204};
205
206&sdmmc_clk {
207 bootph-all;
208};
209
210&sdmmc_cmd {
211 bootph-all;
212};
213
214&sdmmc_det {
215 bootph-all;
216};
217
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000218&sys_grf {
219 bootph-pre-ram;
220};
221
Jagan Tekia4dd7932023-01-30 20:27:46 +0530222&uart2 {
Tom Rinide70b472023-03-27 15:20:19 -0400223 bootph-pre-ram;
Jonas Karlman87fc32b2024-01-26 22:14:55 +0000224 clock-frequency = <24000000>;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530225};
226
Eugen Hristev2b2416e2023-07-04 22:05:11 +0300227&uart2m0_xfer {
228 bootph-all;
229};
230
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000231&xin24m {
232 bootph-all;
Jonas Karlmanadb78942023-05-18 15:39:30 +0000233};