xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3588-u-boot.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1/*
2 * (C) Copyright 2021 Rockchip Electronics Co., Ltd
3 *
4 * SPDX-License-Identifier:     GPL-2.0+
5 */
6
7#include <dt-bindings/gpio/gpio.h>
8
9/ {
10	aliases {
11		mmc0 = &sdhci;
12		mmc1 = &sdmmc;
13	};
14
15	chosen {
16		stdout-path = &uart2;
17		u-boot,spl-boot-order = &sdmmc, &sdhci, &spi_nand, &spi_nor;
18	};
19
20	secure-otp@fe3a0000 {
21		u-boot,dm-spl;
22		compatible = "rockchip,rk3588-secure-otp";
23		reg = <0x0 0xfe3a0000 0x0 0x4000>;
24	};
25};
26
27&firmware {
28	u-boot,dm-spl;
29};
30
31&gpio0 {
32	u-boot,dm-spl;
33	status = "okay";
34};
35&gpio1 {
36	u-boot,dm-pre-reloc;
37	status = "okay";
38};
39
40&gpio2 {
41	u-boot,dm-pre-reloc;
42	status = "okay";
43};
44&gpio3 {
45	u-boot,dm-pre-reloc;
46	status = "okay";
47};
48
49&gpio4 {
50	u-boot,dm-pre-reloc;
51	status = "okay";
52};
53
54&scmi {
55	u-boot,dm-spl;
56};
57
58&scmi_clk {
59	u-boot,dm-spl;
60};
61
62&sram {
63	u-boot,dm-spl;
64};
65
66&scmi_shmem {
67	u-boot,dm-spl;
68};
69
70&xin24m {
71	u-boot,dm-pre-reloc;
72	status = "okay";
73};
74
75&cru {
76	u-boot,dm-spl;
77	status = "okay";
78};
79
80&psci {
81	u-boot,dm-pre-reloc;
82	status = "okay";
83};
84
85&crypto {
86	u-boot,dm-spl;
87	status = "okay";
88};
89
90&sys_grf {
91	u-boot,dm-spl;
92	status = "okay";
93};
94
95&pcie30_phy_grf {
96	u-boot,dm-pre-reloc;
97	status = "okay";
98};
99
100&php_grf {
101	u-boot,dm-pre-reloc;
102	status = "okay";
103};
104
105&pipe_phy0_grf {
106	u-boot,dm-pre-reloc;
107	status = "okay";
108};
109
110&pipe_phy1_grf {
111	u-boot,dm-pre-reloc;
112	status = "okay";
113};
114
115&pipe_phy2_grf {
116	u-boot,dm-pre-reloc;
117	status = "okay";
118};
119
120&uart2 {
121	u-boot,dm-spl;
122	status = "okay";
123};
124
125&hw_decompress {
126	u-boot,dm-spl;
127	status = "okay";
128};
129
130&rng {
131	u-boot,dm-pre-reloc;
132	status = "okay";
133};
134
135&sfc {
136	u-boot,dm-spl;
137	status = "okay";
138
139	#address-cells = <1>;
140	#size-cells = <0>;
141	spi_nand: flash@0 {
142		u-boot,dm-spl;
143		compatible = "spi-nand";
144		reg = <0>;
145		spi-tx-bus-width = <1>;
146		spi-rx-bus-width = <4>;
147		spi-max-frequency = <80000000>;
148	};
149
150	spi_nor: flash@1 {
151		u-boot,dm-spl;
152		compatible = "jedec,spi-nor";
153		label = "sfc_nor";
154		reg = <0>;
155		spi-tx-bus-width = <1>;
156		spi-rx-bus-width = <4>;
157		spi-max-frequency = <80000000>;
158	};
159};
160
161&saradc {
162	u-boot,dm-pre-reloc;
163	status = "okay";
164};
165
166&sdmmc {
167	bus-width = <4>;
168	u-boot,dm-spl;
169	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
170	status = "okay";
171};
172
173&sdhci {
174	bus-width = <8>;
175	u-boot,dm-spl;
176	mmc-hs400-1_8v;
177	mmc-hs400-enhanced-strobe;
178	non-removable;
179	status = "okay";
180};
181
182&usb2phy0_grf {
183	u-boot,dm-pre-reloc;
184};
185
186&u2phy0 {
187	u-boot,dm-pre-reloc;
188	status = "okay";
189};
190
191&u2phy0_otg {
192	u-boot,dm-pre-reloc;
193	status = "okay";
194};
195
196/* Support SPL-PINCTRL:
197 * 1. ioc
198 * 2. pinctrl(sdmmc)
199 * 3. gpio if need
200 */
201&ioc {
202	u-boot,dm-spl;
203};
204
205&pinctrl {
206	u-boot,dm-spl;
207	/delete-node/ sdmmc;
208	sdmmc {
209		u-boot,dm-spl;
210		sdmmc_bus4: sdmmc-bus4 {
211			u-boot,dm-spl;
212			rockchip,pins =
213				/* sdmmc_d0 */
214				<4 RK_PD0 1 &pcfg_pull_up_drv_level_2>,
215				/* sdmmc_d1 */
216				<4 RK_PD1 1 &pcfg_pull_up_drv_level_2>,
217				/* sdmmc_d2 */
218				<4 RK_PD2 1 &pcfg_pull_up_drv_level_2>,
219				/* sdmmc_d3 */
220				<4 RK_PD3 1 &pcfg_pull_up_drv_level_2>;
221		};
222
223		sdmmc_clk: sdmmc-clk {
224			u-boot,dm-spl;
225			rockchip,pins =
226				/* sdmmc_clk */
227				<4 RK_PD5 1 &pcfg_pull_up_drv_level_2>;
228		};
229
230		sdmmc_cmd: sdmmc-cmd {
231			u-boot,dm-spl;
232			rockchip,pins =
233				/* sdmmc_cmd */
234				<4 RK_PD4 1 &pcfg_pull_up_drv_level_2>;
235		};
236
237		sdmmc_det: sdmmc-det {
238			u-boot,dm-spl;
239			rockchip,pins =
240				/* sdmmc_det */
241				<0 RK_PA4 1 &pcfg_pull_up>;
242		};
243
244		sdmmc_pwren: sdmmc-pwren {
245			u-boot,dm-spl;
246			rockchip,pins =
247				/* sdmmc_pwren */
248				<0 RK_PA5 2 &pcfg_pull_none>;
249		};
250	};
251};
252
253&pcfg_pull_up_drv_level_2 {
254	u-boot,dm-spl;
255};
256
257&pcfg_pull_up {
258	u-boot,dm-spl;
259};
260
261&pcfg_pull_none
262{
263	u-boot,dm-spl;
264};
265