blob: 0a0943b462a90826a05b3539bd19f77abf169944 [file] [log] [blame]
Joseph Chen868dc1d2021-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 Schulzd9ffa5e2022-09-02 15:10:52 +02006#include "rockchip-u-boot.dtsi"
7
Joseph Chen868dc1d2021-06-02 15:58:23 +08008/ {
9 aliases {
10 mmc0 = &sdhci;
11 mmc1 = &sdmmc0;
Jonas Karlmanaec644c2023-07-28 12:05:40 +000012 spi4 = &sfc;
Joseph Chen868dc1d2021-06-02 15:58:23 +080013 };
14
Nico Cheng16bc03c2021-10-26 10:42:20 +080015 chosen {
Jonas Karlmandab889e2023-07-28 11:53:08 +000016 u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
Nico Cheng16bc03c2021-10-26 10:42:20 +080017 };
18
Joseph Chen868dc1d2021-06-02 15:58:23 +080019 dmc: dmc {
20 compatible = "rockchip,rk3568-dmc";
Simon Glassd3a98cb2023-02-13 08:56:33 -070021 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080022 };
Jonas Karlmanbe56bb52023-02-22 22:44:41 +000023
Jonas Karlmancfcf05e2024-04-22 06:28:45 +000024 rng: rng@fe388000 {
25 compatible = "rockchip,cryptov2-rng";
26 reg = <0x0 0xfe388000 0x0 0x2000>;
27 };
28
Jonas Karlmanbe56bb52023-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 Karlmanbe56bb52023-02-22 22:44:41 +000034
35 cpu_id: id@a {
36 reg = <0x0a 0x10>;
37 };
38 };
Joseph Chen868dc1d2021-06-02 15:58:23 +080039};
40
Jonas Karlman7b733dd2024-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 Karlman13e3dc92023-05-17 18:26:29 +000049};
Jonas Karlman7b733dd2024-04-22 06:28:48 +000050#endif
Jonas Karlman13e3dc92023-05-17 18:26:29 +000051
Joseph Chen868dc1d2021-06-02 15:58:23 +080052&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070053 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080054};
55
Jonas Karlman7b733dd2024-04-22 06:28:48 +000056&emmc_bus8 {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000057 bootph-pre-ram;
58 bootph-some-ram;
Joseph Chen868dc1d2021-06-02 15:58:23 +080059};
60
Jonas Karlman7b733dd2024-04-22 06:28:48 +000061&emmc_clk {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000062 bootph-pre-ram;
63 bootph-some-ram;
Joseph Chen868dc1d2021-06-02 15:58:23 +080064};
65
Jonas Karlman7b733dd2024-04-22 06:28:48 +000066&emmc_cmd {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000067 bootph-pre-ram;
68 bootph-some-ram;
Joseph Chen868dc1d2021-06-02 15:58:23 +080069};
Nico Cheng16bc03c2021-10-26 10:42:20 +080070
Jonas Karlman7b733dd2024-04-22 06:28:48 +000071&emmc_datastrobe {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000072 bootph-pre-ram;
73 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +000074};
75
Jonas Karlman7b733dd2024-04-22 06:28:48 +000076&emmc_rstnout {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000077 bootph-pre-ram;
78 bootph-some-ram;
Jonas Karlmanc6391352023-08-03 21:11:54 +000079};
80
Jonas Karlman7b733dd2024-04-22 06:28:48 +000081&fspi_pins {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000082 bootph-pre-ram;
83 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +000084};
85
Jonas Karlman7b733dd2024-04-22 06:28:48 +000086&grf {
Jonas Karlmanf216c612023-07-28 11:53:07 +000087 bootph-all;
88};
89
Jonas Karlman7b733dd2024-04-22 06:28:48 +000090&pcfg_pull_none {
Jonas Karlmanf216c612023-07-28 11:53:07 +000091 bootph-all;
92};
93
Jonas Karlman7b733dd2024-04-22 06:28:48 +000094&pcfg_pull_none_smt {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +000095 bootph-pre-ram;
96 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +000097};
98
Jonas Karlman7b733dd2024-04-22 06:28:48 +000099&pcfg_pull_up {
Jonas Karlmanf216c612023-07-28 11:53:07 +0000100 bootph-all;
101};
102
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000103&pcfg_pull_up_drv_level_2 {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000104 bootph-pre-ram;
105 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +0000106};
107
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000108&pinctrl {
Jonas Karlmanf216c612023-07-28 11:53:07 +0000109 bootph-all;
110};
111
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000112&pmucru {
Jonas Karlmanf216c612023-07-28 11:53:07 +0000113 bootph-all;
114};
115
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000116&pmugrf {
Jonas Karlmanc6391352023-08-03 21:11:54 +0000117 bootph-all;
118};
119
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000120&sdhci {
121 bootph-pre-ram;
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000122 bootph-some-ram;
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000123 max-frequency = <200000000>;
124};
125
126&sdmmc0 {
127 bootph-pre-ram;
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000128 bootph-some-ram;
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000129};
130
Jonas Karlmanf216c612023-07-28 11:53:07 +0000131&sdmmc0_bus4 {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000132 bootph-pre-ram;
133 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +0000134};
135
136&sdmmc0_clk {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000137 bootph-pre-ram;
138 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +0000139};
140
141&sdmmc0_cmd {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000142 bootph-pre-ram;
143 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +0000144};
145
146&sdmmc0_det {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000147 bootph-pre-ram;
148 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +0000149};
150
151&sdmmc0_pwren {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000152 bootph-pre-ram;
153 bootph-some-ram;
Jonas Karlmanf216c612023-07-28 11:53:07 +0000154};
155
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000156&sfc {
157 u-boot,spl-sfc-no-dma;
158};
159
Jonas Karlman1fb8b8d2024-01-26 22:14:51 +0000160&uart2 {
Jonas Karlmandc3daaa2024-04-22 06:28:49 +0000161 bootph-all;
Jonas Karlman1fb8b8d2024-01-26 22:14:51 +0000162 clock-frequency = <24000000>;
163};
164
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000165&uart2m0_xfer {
166 bootph-all;
Jonas Karlmana9d8d532023-05-17 18:26:35 +0000167};
Jonas Karlman7b733dd2024-04-22 06:28:48 +0000168
169&xin24m {
170 bootph-all;
171};