blob: e0c6aee58aba6789b9d88e68582bc2e072039f6b [file] [log] [blame]
Kever Yange68e10b2019-08-15 11:40:56 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2019 Rockchip Electronics Co., Ltd
4 */
5
Quentin Schulzd9ffa5e2022-09-02 15:10:52 +02006#include "rockchip-u-boot.dtsi"
7
Kever Yange68e10b2019-08-15 11:40:56 +08008/ {
9 aliases {
10 mmc0 = &emmc;
11 mmc1 = &sdmmc;
Johannes Krottmayer47075e32020-07-08 23:57:40 +020012 spi0 = &spi0;
Kever Yange68e10b2019-08-15 11:40:56 +080013 };
14
15 chosen {
Jonas Karlman7a1bd392024-02-17 00:22:27 +000016 u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
Kever Yange68e10b2019-08-15 11:40:56 +080017 };
18
19 dmc: dmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070020 bootph-all;
Kever Yange68e10b2019-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 Yange68e10b2019-08-15 11:40:56 +080029};
30
31&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-all;
Kever Yange68e10b2019-08-15 11:40:56 +080033};
34
Jonas Karlmand6a1b572024-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 Yange68e10b2019-08-15 11:40:56 +080059&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070060 bootph-all;
Kever Yange68e10b2019-08-15 11:40:56 +080061};
62
Jonas Karlmand6a1b572024-02-17 00:22:34 +000063&pcfg_pull_none {
Simon Glassd3a98cb2023-02-13 08:56:33 -070064 bootph-all;
Kever Yange68e10b2019-08-15 11:40:56 +080065};
66
Jonas Karlmand6a1b572024-02-17 00:22:34 +000067&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 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070076 bootph-all;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000077};
Kever Yang49ec4b92019-12-31 15:57:55 +080078
Jonas Karlmand6a1b572024-02-17 00:22:34 +000079&pcfg_pull_up_4ma {
80 bootph-pre-ram;
81};
82
83&pcfg_pull_up_8ma {
84 bootph-pre-ram;
Kever Yange68e10b2019-08-15 11:40:56 +080085};
86
Jonas Karlmand6a1b572024-02-17 00:22:34 +000087&pcfg_pull_up_12ma {
88 bootph-pre-ram;
89};
90
91&pinctrl {
92 bootph-pre-ram;
93 bootph-some-ram;
94};
95
Kever Yange68e10b2019-08-15 11:40:56 +080096&sdmmc {
Jonas Karlmand6a1b572024-02-17 00:22:34 +000097 bootph-pre-ram;
98 bootph-some-ram;
Kever Yang49ec4b92019-12-31 15:57:55 +080099
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000100 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
Kever Yang49ec4b92019-12-31 15:57:55 +0800101 u-boot,spl-fifo-mode;
Kever Yange68e10b2019-08-15 11:40:56 +0800102};
Chen-Yu Tsai2c63f6d2020-04-27 14:52:48 +0800103
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000104&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
124&uart2 {
125 bootph-all;
126 clock-frequency = <24000000>;
Chen-Yu Tsai2c63f6d2020-04-27 14:52:48 +0800127};
Johannes Krottmayer47075e32020-07-08 23:57:40 +0200128
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000129&uart2m1_xfer {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700130 bootph-all;
Johannes Krottmayer47075e32020-07-08 23:57:40 +0200131};
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000132
Jonas Karlmane4b50e02024-02-17 00:22:39 +0000133#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
134&binman {
135 simple-bin-spi {
136 mkimage {
137 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
138 offset = <0x8000>;
139 };
140 };
141};
142#endif