blob: 0135bc08d4913df45533662b7bd93a3e9db616b6 [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 {
Kever Yange68e10b2019-08-15 11:40:56 +080020 compatible = "rockchip,rk3328-dmc";
21 reg = <0x0 0xff400000 0x0 0x1000
22 0x0 0xff780000 0x0 0x3000
23 0x0 0xff100000 0x0 0x1000
24 0x0 0xff440000 0x0 0x1000
25 0x0 0xff720000 0x0 0x1000
26 0x0 0xff798000 0x0 0x1000>;
Jonas Karlman69e78442024-05-01 19:21:24 +000027 bootph-all;
Kever Yange68e10b2019-08-15 11:40:56 +080028 };
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;
Jonas Karlman69e78442024-05-01 19:21:24 +000045 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000046};
47
48&emmc_clk {
49 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000050 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000051};
52
53&emmc_cmd {
54 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000055 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000056};
57
58&gpio0 {
59 bootph-pre-ram;
60};
61
Kever Yange68e10b2019-08-15 11:40:56 +080062&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070063 bootph-all;
Kever Yange68e10b2019-08-15 11:40:56 +080064};
65
Jonas Karlmand6a1b572024-02-17 00:22:34 +000066&pcfg_pull_none {
Simon Glassd3a98cb2023-02-13 08:56:33 -070067 bootph-all;
Kever Yange68e10b2019-08-15 11:40:56 +080068};
69
Jonas Karlmand6a1b572024-02-17 00:22:34 +000070&pcfg_pull_none_8ma {
71 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000072 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000073};
74
75&pcfg_pull_none_12ma {
76 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000077 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000078};
79
80&pcfg_pull_up {
Simon Glassd3a98cb2023-02-13 08:56:33 -070081 bootph-all;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000082};
Kever Yang49ec4b92019-12-31 15:57:55 +080083
Jonas Karlmand6a1b572024-02-17 00:22:34 +000084&pcfg_pull_up_4ma {
85 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000086 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000087};
88
89&pcfg_pull_up_8ma {
90 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000091 bootph-some-ram;
Kever Yange68e10b2019-08-15 11:40:56 +080092};
93
Jonas Karlmand6a1b572024-02-17 00:22:34 +000094&pcfg_pull_up_12ma {
95 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +000096 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +000097};
98
99&pinctrl {
Jonas Karlman69e78442024-05-01 19:21:24 +0000100 bootph-all;
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000101};
102
Kever Yange68e10b2019-08-15 11:40:56 +0800103&sdmmc {
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000104 bootph-pre-ram;
105 bootph-some-ram;
Kever Yang49ec4b92019-12-31 15:57:55 +0800106
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000107 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
Kever Yang49ec4b92019-12-31 15:57:55 +0800108 u-boot,spl-fifo-mode;
Kever Yange68e10b2019-08-15 11:40:56 +0800109};
Chen-Yu Tsai2c63f6d2020-04-27 14:52:48 +0800110
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000111&sdmmc0_bus4 {
112 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +0000113 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000114};
115
116&sdmmc0_clk {
117 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +0000118 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000119};
120
121&sdmmc0_cmd {
122 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +0000123 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000124};
125
126&sdmmc0_dectn {
127 bootph-pre-ram;
Jonas Karlman69e78442024-05-01 19:21:24 +0000128 bootph-some-ram;
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000129};
130
131&sdmmc0m1_pin {
132 bootph-pre-ram;
133};
134
135&uart2 {
136 bootph-all;
137 clock-frequency = <24000000>;
Chen-Yu Tsai2c63f6d2020-04-27 14:52:48 +0800138};
Johannes Krottmayer47075e32020-07-08 23:57:40 +0200139
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000140&uart2m1_xfer {
Jonas Karlman69e78442024-05-01 19:21:24 +0000141 bootph-pre-sram;
142 bootph-pre-ram;
Johannes Krottmayer47075e32020-07-08 23:57:40 +0200143};
Jonas Karlmand6a1b572024-02-17 00:22:34 +0000144
Jagan Teki7d4dba92024-01-17 13:21:51 +0530145&vop {
Jonas Karlman5fc09152024-04-21 20:12:29 +0000146 bootph-some-ram;
Jagan Teki7d4dba92024-01-17 13:21:51 +0530147};
148
Jonas Karlmane4b50e02024-02-17 00:22:39 +0000149#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
150&binman {
151 simple-bin-spi {
152 mkimage {
153 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
154 offset = <0x8000>;
155 };
156 };
157};
158#endif