blob: 4fdf97ccac44aef084e8a21395af3e8ffd5521f8 [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 Karlmaneeb19172023-02-22 22:44:41 +0000168 otp: nvmem@fecc0000 {
169 compatible = "rockchip,rk3588-otp";
170 reg = <0x0 0xfecc0000 0x0 0x400>;
171 #address-cells = <1>;
172 #size-cells = <1>;
173 status = "okay";
174
175 cpu_id: id@7 {
176 reg = <0x07 0x10>;
177 };
178 };
Chris Morgan7f255042023-04-13 09:13:03 -0500179
180 rng: rng@fe378000 {
181 compatible = "rockchip,trngv1";
182 reg = <0x0 0xfe378000 0x0 0x200>;
183 status = "disabled";
184 };
Joseph Chen84445502023-05-17 13:01:00 +0300185
186 combphy0_ps: phy@fee00000 {
187 compatible = "rockchip,rk3588-naneng-combphy";
188 reg = <0x0 0xfee00000 0x0 0x100>;
189 #phy-cells = <1>;
190 clocks = <&cru CLK_REF_PIPE_PHY0>, <&cru PCLK_PCIE_COMBO_PIPE_PHY0>,
191 <&cru PCLK_PHP_ROOT>;
192 clock-names = "refclk", "apbclk", "phpclk";
193 assigned-clocks = <&cru CLK_REF_PIPE_PHY0>;
194 assigned-clock-rates = <100000000>;
195 resets = <&cru SRST_P_PCIE2_PHY0>, <&cru SRST_REF_PIPE_PHY0>;
196 reset-names = "combphy-apb", "combphy";
197 rockchip,pipe-grf = <&php_grf>;
198 rockchip,pipe-phy-grf = <&pipe_phy0_grf>;
199 status = "disabled";
200 };
Jagan Tekia4dd7932023-01-30 20:27:46 +0530201};
202
203&xin24m {
Tom Rinide70b472023-03-27 15:20:19 -0400204 bootph-all;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530205 status = "okay";
206};
207
208&cru {
Tom Rinide70b472023-03-27 15:20:19 -0400209 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530210 status = "okay";
211};
212
213&sys_grf {
Tom Rinide70b472023-03-27 15:20:19 -0400214 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530215 status = "okay";
216};
217
Jonas Karlmanfc805c22023-04-17 19:07:21 +0000218&scmi {
219 bootph-pre-ram;
220};
221
222&scmi_clk {
223 bootph-pre-ram;
224};
225
226&sdmmc {
227 bootph-pre-ram;
228 u-boot,spl-fifo-mode;
229};
230
Jonas Karlmanced8be02023-04-18 16:46:41 +0000231&sdhci {
232 bootph-pre-ram;
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000233 u-boot,spl-fifo-mode;
Jonas Karlmanced8be02023-04-18 16:46:41 +0000234};
235
Jagan Tekia4dd7932023-01-30 20:27:46 +0530236&uart2 {
237 clock-frequency = <24000000>;
Tom Rinide70b472023-03-27 15:20:19 -0400238 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530239 status = "okay";
240};
241
242&ioc {
Tom Rinide70b472023-03-27 15:20:19 -0400243 bootph-pre-ram;
Jagan Tekia4dd7932023-01-30 20:27:46 +0530244};