blob: c703e41802b6fa6d163316a486cae8dd37725ec6 [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"
Joseph Chen84445502023-05-17 13:01:00 +03007#include <dt-bindings/phy/phy.h>
Jagan Tekia4dd7932023-01-30 20:27:46 +05308
9/ {
10 dmc {
11 compatible = "rockchip,rk3588-dmc";
Tom Rinide70b472023-03-27 15:20:19 -040012 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +053013 status = "okay";
14 };
15
Eugen Hristeva856b1a2023-05-15 12:59:45 +030016 usb_host0_ehci: usb@fc800000 {
17 compatible = "generic-ehci";
18 reg = <0x0 0xfc800000 0x0 0x40000>;
19 interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH 0>;
20 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>;
21 clock-names = "usbhost", "arbiter";
22 power-domains = <&power RK3588_PD_USB>;
23 status = "disabled";
24 };
25
26 usb_host0_ohci: usb@fc840000 {
27 compatible = "generic-ohci";
28 reg = <0x0 0xfc840000 0x0 0x40000>;
29 interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH 0>;
30 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>;
31 clock-names = "usbhost", "arbiter";
32 power-domains = <&power RK3588_PD_USB>;
33 status = "disabled";
34 };
35
36 usb_host1_ehci: usb@fc880000 {
37 compatible = "generic-ehci";
38 reg = <0x0 0xfc880000 0x0 0x40000>;
39 interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH 0>;
40 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST_ARB1>;
41 clock-names = "usbhost", "arbiter";
42 power-domains = <&power RK3588_PD_USB>;
43 status = "disabled";
44 };
45
46 usb_host1_ohci: usb@fc8c0000 {
47 compatible = "generic-ohci";
48 reg = <0x0 0xfc8c0000 0x0 0x40000>;
49 interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH 0>;
50 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST_ARB1>;
51 clock-names = "usbhost", "arbiter";
52 power-domains = <&power RK3588_PD_USB>;
53 status = "disabled";
54 };
55
Jagan Tekia4dd7932023-01-30 20:27:46 +053056 pmu1_grf: syscon@fd58a000 {
Tom Rinide70b472023-03-27 15:20:19 -040057 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +053058 compatible = "rockchip,rk3588-pmu1-grf", "syscon";
59 reg = <0x0 0xfd58a000 0x0 0x2000>;
60 };
Jagan Teki275d8512023-01-30 20:27:47 +053061
Joseph Chen84445502023-05-17 13:01:00 +030062 pipe_phy0_grf: syscon@fd5bc000 {
63 compatible = "rockchip,pipe-phy-grf", "syscon";
64 reg = <0x0 0xfd5bc000 0x0 0x100>;
65 };
66
Eugen Hristeva856b1a2023-05-15 12:59:45 +030067 usb2phy2_grf: syscon@fd5d8000 {
68 compatible = "rockchip,rk3588-usb2phy-grf", "syscon",
69 "simple-mfd";
70 reg = <0x0 0xfd5d8000 0x0 0x4000>;
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 u2phy2: usb2-phy@8000 {
75 compatible = "rockchip,rk3588-usb2phy";
76 reg = <0x8000 0x10>;
77 interrupts = <GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH 0>;
78 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
79 clock-names = "phyclk";
80 #clock-cells = <0>;
81 status = "disabled";
82
83 u2phy2_host: host-port {
84 #phy-cells = <0>;
85 status = "disabled";
86 };
87 };
88 };
89
90 usb2phy3_grf: syscon@fd5dc000 {
91 compatible = "rockchip,rk3588-usb2phy-grf", "syscon",
92 "simple-mfd";
93 reg = <0x0 0xfd5dc000 0x0 0x4000>;
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 u2phy3: usb2-phy@c000 {
98 compatible = "rockchip,rk3588-usb2phy";
99 reg = <0xc000 0x10>;
100 interrupts = <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH 0>;
101 clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
102 clock-names = "phyclk";
103 #clock-cells = <0>;
104 status = "disabled";
105
106 u2phy3_host: host-port {
107 #phy-cells = <0>;
108 status = "disabled";
109 };
110 };
111 };
112
Joseph Chen84445502023-05-17 13:01:00 +0300113 pcie2x1l2: pcie@fe190000 {
114 compatible = "rockchip,rk3588-pcie", "snps,dw-pcie";
115 #address-cells = <3>;
116 #size-cells = <2>;
117 bus-range = <0x40 0x4f>;
118 clocks = <&cru ACLK_PCIE_1L2_MSTR>, <&cru ACLK_PCIE_1L2_SLV>,
119 <&cru ACLK_PCIE_1L2_DBI>, <&cru PCLK_PCIE_1L2>,
120 <&cru CLK_PCIE_AUX4>, <&cru CLK_PCIE1L2_PIPE>;
121 clock-names = "aclk_mst", "aclk_slv",
122 "aclk_dbi", "pclk",
123 "aux", "pipe";
124 device_type = "pci";
125 interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH 0>,
126 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH 0>,
127 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH 0>,
128 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH 0>,
129 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH 0>;
130 interrupt-names = "sys", "pmc", "msg", "legacy", "err";
131 #interrupt-cells = <1>;
132 interrupt-map-mask = <0 0 0 7>;
133 interrupt-map = <0 0 0 1 &pcie2x1l2_intc 0>,
134 <0 0 0 2 &pcie2x1l2_intc 1>,
135 <0 0 0 3 &pcie2x1l2_intc 2>,
136 <0 0 0 4 &pcie2x1l2_intc 3>;
137 linux,pci-domain = <4>;
138 num-ib-windows = <8>;
139 num-ob-windows = <8>;
140 num-viewport = <4>;
141 max-link-speed = <2>;
142 msi-map = <0x4000 &gic 0x4000 0x1000>;
143 num-lanes = <1>;
144 phys = <&combphy0_ps PHY_TYPE_PCIE>;
145 phy-names = "pcie-phy";
146 power-domains = <&power RK3588_PD_PCIE>;
147 ranges = <0x01000000 0x0 0xf4100000 0x0 0xf4100000 0x0 0x00100000>,
148 <0x02000000 0x0 0xf4200000 0x0 0xf4200000 0x0 0x00e00000>,
149 <0x03000000 0x0 0x40000000 0xa 0x00000000 0x0 0x40000000>;
150 reg = <0xa 0x41000000 0x0 0x00400000>,
151 <0x0 0xfe190000 0x0 0x00010000>,
152 <0x0 0xf4000000 0x0 0x00100000>;
153 reg-names = "dbi", "apb", "config";
154 resets = <&cru SRST_PCIE4_POWER_UP>, <&cru SRST_P_PCIE4>;
155 reset-names = "pcie", "periph";
156 rockchip,pipe-grf = <&php_grf>;
157 status = "disabled";
158
159 pcie2x1l2_intc: legacy-interrupt-controller {
160 interrupt-controller;
161 #address-cells = <0>;
162 #interrupt-cells = <1>;
163 interrupt-parent = <&gic>;
164 interrupts = <GIC_SPI 250 IRQ_TYPE_EDGE_RISING 0>;
165 };
166 };
167
Jonas Karlmanadb78942023-05-18 15:39:30 +0000168 sfc: spi@fe2b0000 {
169 compatible = "rockchip,sfc";
170 reg = <0x0 0xfe2b0000 0x0 0x4000>;
171 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH 0>;
172 clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
173 clock-names = "clk_sfc", "hclk_sfc";
174 status = "disabled";
175 };
176
Jonas Karlmaneeb19172023-02-22 22:44:41 +0000177 otp: nvmem@fecc0000 {
178 compatible = "rockchip,rk3588-otp";
179 reg = <0x0 0xfecc0000 0x0 0x400>;
180 #address-cells = <1>;
181 #size-cells = <1>;
182 status = "okay";
183
184 cpu_id: id@7 {
185 reg = <0x07 0x10>;
186 };
187 };
Chris Morgan7f255042023-04-13 09:13:03 -0500188
189 rng: rng@fe378000 {
190 compatible = "rockchip,trngv1";
191 reg = <0x0 0xfe378000 0x0 0x200>;
192 status = "disabled";
193 };
Joseph Chen84445502023-05-17 13:01:00 +0300194
195 combphy0_ps: phy@fee00000 {
196 compatible = "rockchip,rk3588-naneng-combphy";
197 reg = <0x0 0xfee00000 0x0 0x100>;
198 #phy-cells = <1>;
199 clocks = <&cru CLK_REF_PIPE_PHY0>, <&cru PCLK_PCIE_COMBO_PIPE_PHY0>,
200 <&cru PCLK_PHP_ROOT>;
201 clock-names = "refclk", "apbclk", "phpclk";
202 assigned-clocks = <&cru CLK_REF_PIPE_PHY0>;
203 assigned-clock-rates = <100000000>;
204 resets = <&cru SRST_P_PCIE2_PHY0>, <&cru SRST_REF_PIPE_PHY0>;
205 reset-names = "combphy-apb", "combphy";
206 rockchip,pipe-grf = <&php_grf>;
207 rockchip,pipe-phy-grf = <&pipe_phy0_grf>;
208 status = "disabled";
209 };
Jagan Tekia4dd7932023-01-30 20:27:46 +0530210};
211
212&xin24m {
Tom Rinide70b472023-03-27 15:20:19 -0400213 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530214 status = "okay";
215};
216
217&cru {
Tom Rinide70b472023-03-27 15:20:19 -0400218 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530219 status = "okay";
220};
221
222&sys_grf {
Tom Rinide70b472023-03-27 15:20:19 -0400223 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530224 status = "okay";
225};
226
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000227&scmi {
228 bootph-pre-ram;
229};
230
231&scmi_clk {
232 bootph-pre-ram;
233};
234
235&sdmmc {
236 bootph-pre-ram;
237 u-boot,spl-fifo-mode;
238};
239
Jonas Karlmanced8be02023-04-18 16:46:41 +0000240&sdhci {
241 bootph-pre-ram;
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000242 u-boot,spl-fifo-mode;
Jonas Karlmanced8be02023-04-18 16:46:41 +0000243};
244
Jagan Tekia4dd7932023-01-30 20:27:46 +0530245&uart2 {
246 clock-frequency = <24000000>;
Tom Rinide70b472023-03-27 15:20:19 -0400247 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530248 status = "okay";
249};
250
251&ioc {
Tom Rinide70b472023-03-27 15:20:19 -0400252 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530253};
Jonas Karlmanadb78942023-05-18 15:39:30 +0000254
255#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
256&binman {
257 simple-bin-spi {
258 mkimage {
259 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
260 offset = <0x8000>;
261 };
262 };
263};
264#endif