blob: 0a0943b462a90826a05b3539bd19f77abf169944 [file] [log] [blame]
Joseph Chen636ffbd2021-06-02 15:58:23 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * (C) Copyright 2021 Rockchip Electronics Co., Ltd
4 */
5
Quentin Schulz05713d52022-09-02 15:10:52 +02006#include "rockchip-u-boot.dtsi"
7
Joseph Chen636ffbd2021-06-02 15:58:23 +08008/ {
9 aliases {
10 mmc0 = &sdhci;
11 mmc1 = &sdmmc0;
Jonas Karlman52f6b962023-07-28 12:05:40 +000012 spi4 = &sfc;
Joseph Chen636ffbd2021-06-02 15:58:23 +080013 };
14
Nico Cheng6b97f2d2021-10-26 10:42:20 +080015 chosen {
Jonas Karlmanf40dcc72023-07-28 11:53:08 +000016 u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
Nico Cheng6b97f2d2021-10-26 10:42:20 +080017 };
18
Joseph Chen636ffbd2021-06-02 15:58:23 +080019 dmc: dmc {
20 compatible = "rockchip,rk3568-dmc";
Simon Glass8c103c32023-02-13 08:56:33 -070021 bootph-all;
Joseph Chen636ffbd2021-06-02 15:58:23 +080022 };
Jonas Karlman2eedb6d2023-02-22 22:44:41 +000023
Jonas Karlman320ffd02024-04-22 06:28:45 +000024 rng: rng@fe388000 {
25 compatible = "rockchip,cryptov2-rng";
26 reg = <0x0 0xfe388000 0x0 0x2000>;
27 };
28
Jonas Karlman2eedb6d2023-02-22 22:44:41 +000029 otp: nvmem@fe38c000 {
30 compatible = "rockchip,rk3568-otp";
31 reg = <0x0 0xfe38c000 0x0 0x4000>;
32 #address-cells = <1>;
33 #size-cells = <1>;
Jonas Karlman2eedb6d2023-02-22 22:44:41 +000034
35 cpu_id: id@a {
36 reg = <0x0a 0x10>;
37 };
38 };
Joseph Chen636ffbd2021-06-02 15:58:23 +080039};
40
Jonas Karlman647b8cf2024-04-22 06:28:48 +000041#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
42&binman {
43 simple-bin-spi {
44 mkimage {
45 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
46 offset = <0x8000>;
47 };
48 };
Jonas Karlmandc27b4a2023-05-17 18:26:29 +000049};
Jonas Karlman647b8cf2024-04-22 06:28:48 +000050#endif
Jonas Karlmandc27b4a2023-05-17 18:26:29 +000051
Joseph Chen636ffbd2021-06-02 15:58:23 +080052&cru {
Simon Glass8c103c32023-02-13 08:56:33 -070053 bootph-all;
Joseph Chen636ffbd2021-06-02 15:58:23 +080054};
55
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000056&emmc_bus8 {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000057 bootph-pre-ram;
58 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000059};
60
61&emmc_clk {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000062 bootph-pre-ram;
63 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000064};
65
66&emmc_cmd {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000067 bootph-pre-ram;
68 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000069};
70
71&emmc_datastrobe {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000072 bootph-pre-ram;
73 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000074};
75
76&emmc_rstnout {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000077 bootph-pre-ram;
78 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000079};
80
81&fspi_pins {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000082 bootph-pre-ram;
83 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +000084};
85
Jonas Karlman647b8cf2024-04-22 06:28:48 +000086&grf {
87 bootph-all;
88};
89
Jonas Karlman647b8cf2024-04-22 06:28:48 +000090&pcfg_pull_none {
91 bootph-all;
92};
93
94&pcfg_pull_none_smt {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +000095 bootph-pre-ram;
96 bootph-some-ram;
Jonas Karlman647b8cf2024-04-22 06:28:48 +000097};
98
99&pcfg_pull_up {
100 bootph-all;
101};
102
103&pcfg_pull_up_drv_level_2 {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000104 bootph-pre-ram;
105 bootph-some-ram;
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000106};
107
108&pinctrl {
109 bootph-all;
110};
111
112&pmucru {
113 bootph-all;
114};
115
116&pmugrf {
117 bootph-all;
118};
119
120&sdhci {
121 bootph-pre-ram;
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000122 bootph-some-ram;
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000123 max-frequency = <200000000>;
124};
125
126&sdmmc0 {
127 bootph-pre-ram;
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000128 bootph-some-ram;
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000129};
130
Jonas Karlmana3ef37a2023-07-28 11:53:07 +0000131&sdmmc0_bus4 {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000132 bootph-pre-ram;
133 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +0000134};
135
136&sdmmc0_clk {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000137 bootph-pre-ram;
138 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +0000139};
140
141&sdmmc0_cmd {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000142 bootph-pre-ram;
143 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +0000144};
145
146&sdmmc0_det {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000147 bootph-pre-ram;
148 bootph-some-ram;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +0000149};
150
151&sdmmc0_pwren {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000152 bootph-pre-ram;
153 bootph-some-ram;
154};
155
156&sfc {
157 u-boot,spl-sfc-no-dma;
Jonas Karlmana3ef37a2023-07-28 11:53:07 +0000158};
159
Jonas Karlman473e54e2024-01-26 22:14:51 +0000160&uart2 {
Jonas Karlman63dfe0a2024-04-22 06:28:49 +0000161 bootph-all;
Jonas Karlman473e54e2024-01-26 22:14:51 +0000162 clock-frequency = <24000000>;
163};
164
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000165&uart2m0_xfer {
166 bootph-all;
Jonas Karlman64f79f82023-05-17 18:26:35 +0000167};
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000168
169&xin24m {
170 bootph-all;
171};