blob: 7c5067cf002e3eb0fc9e77037189faf17a97907a [file] [log] [blame]
Kever Yang2e91e202019-08-15 11:40:56 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2019 Rockchip Electronics Co., Ltd
4 */
5
Quentin Schulz05713d52022-09-02 15:10:52 +02006#include "rockchip-u-boot.dtsi"
7
Kever Yang2e91e202019-08-15 11:40:56 +08008/ {
9 aliases {
10 mmc0 = &emmc;
11 mmc1 = &sdmmc;
Johannes Krottmayerb5716c12020-07-08 23:57:40 +020012 spi0 = &spi0;
Kever Yang2e91e202019-08-15 11:40:56 +080013 };
14
15 chosen {
Jonas Karlmand9588012024-02-17 00:22:27 +000016 u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
Kever Yang2e91e202019-08-15 11:40:56 +080017 };
18
19 dmc: dmc {
Simon Glass8c103c32023-02-13 08:56:33 -070020 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +080021 compatible = "rockchip,rk3328-dmc";
22 reg = <0x0 0xff400000 0x0 0x1000
23 0x0 0xff780000 0x0 0x3000
24 0x0 0xff100000 0x0 0x1000
25 0x0 0xff440000 0x0 0x1000
26 0x0 0xff720000 0x0 0x1000
27 0x0 0xff798000 0x0 0x1000>;
28 };
Kever Yang2e91e202019-08-15 11:40:56 +080029};
30
31&cru {
Simon Glass8c103c32023-02-13 08:56:33 -070032 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +080033};
34
Jonas Karlman1e21f562024-02-17 00:22:34 +000035&emmc {
36 bootph-pre-ram;
37 bootph-some-ram;
38
39 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
40 u-boot,spl-fifo-mode;
41};
42
43&emmc_bus8 {
44 bootph-pre-ram;
45};
46
47&emmc_clk {
48 bootph-pre-ram;
49};
50
51&emmc_cmd {
52 bootph-pre-ram;
53};
54
55&gpio0 {
56 bootph-pre-ram;
57};
58
Kever Yang2e91e202019-08-15 11:40:56 +080059&grf {
Simon Glass8c103c32023-02-13 08:56:33 -070060 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +080061};
62
Jonas Karlman1e21f562024-02-17 00:22:34 +000063&pcfg_pull_none {
64 bootph-all;
65};
66
67&pcfg_pull_none_8ma {
68 bootph-pre-ram;
69};
70
71&pcfg_pull_none_12ma {
72 bootph-pre-ram;
73};
74
75&pcfg_pull_up {
76 bootph-all;
77};
78
79&pcfg_pull_up_4ma {
80 bootph-pre-ram;
81};
82
83&pcfg_pull_up_8ma {
84 bootph-pre-ram;
85};
86
87&pcfg_pull_up_12ma {
88 bootph-pre-ram;
89};
90
91&pinctrl {
92 bootph-pre-ram;
93 bootph-some-ram;
94};
95
96&sdmmc {
97 bootph-pre-ram;
98 bootph-some-ram;
99
100 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
101 u-boot,spl-fifo-mode;
102};
103
104&sdmmc0_bus4 {
105 bootph-pre-ram;
106};
107
108&sdmmc0_clk {
109 bootph-pre-ram;
110};
111
112&sdmmc0_cmd {
113 bootph-pre-ram;
114};
115
116&sdmmc0_dectn {
117 bootph-pre-ram;
118};
119
120&sdmmc0m1_pin {
121 bootph-pre-ram;
122};
123
Kever Yang2e91e202019-08-15 11:40:56 +0800124&uart2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700125 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +0800126 clock-frequency = <24000000>;
127};
128
Jonas Karlman1e21f562024-02-17 00:22:34 +0000129&uart2m1_xfer {
Simon Glass8c103c32023-02-13 08:56:33 -0700130 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +0800131};
Chen-Yu Tsai32fd6162020-04-27 14:52:48 +0800132
Jagan Teki67940632024-01-17 13:21:51 +0530133&vop {
134 bootph-all;
135};
136
Jonas Karlmanc60b8352024-02-17 00:22:39 +0000137#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
138&binman {
139 simple-bin-spi {
140 mkimage {
141 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
142 offset = <0x8000>;
143 };
144 };
145};
146#endif