blob: 0135bc08d4913df45533662b7bd93a3e9db616b6 [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 {
Kever Yang2e91e202019-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 Karlman7c35f6d2024-05-01 19:21:24 +000027 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +080028 };
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;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000045 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000046};
47
48&emmc_clk {
49 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000050 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000051};
52
53&emmc_cmd {
54 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000055 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000056};
57
58&gpio0 {
59 bootph-pre-ram;
60};
61
Kever Yang2e91e202019-08-15 11:40:56 +080062&grf {
Simon Glass8c103c32023-02-13 08:56:33 -070063 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +080064};
65
Jonas Karlman1e21f562024-02-17 00:22:34 +000066&pcfg_pull_none {
67 bootph-all;
68};
69
70&pcfg_pull_none_8ma {
71 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000072 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000073};
74
75&pcfg_pull_none_12ma {
76 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000077 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000078};
79
80&pcfg_pull_up {
81 bootph-all;
82};
83
84&pcfg_pull_up_4ma {
85 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000086 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000087};
88
89&pcfg_pull_up_8ma {
90 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000091 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000092};
93
94&pcfg_pull_up_12ma {
95 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +000096 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +000097};
98
99&pinctrl {
Jonas Karlman7c35f6d2024-05-01 19:21:24 +0000100 bootph-all;
Jonas Karlman1e21f562024-02-17 00:22:34 +0000101};
102
103&sdmmc {
104 bootph-pre-ram;
105 bootph-some-ram;
106
107 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
108 u-boot,spl-fifo-mode;
109};
110
111&sdmmc0_bus4 {
112 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +0000113 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +0000114};
115
116&sdmmc0_clk {
117 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +0000118 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +0000119};
120
121&sdmmc0_cmd {
122 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +0000123 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +0000124};
125
126&sdmmc0_dectn {
127 bootph-pre-ram;
Jonas Karlman7c35f6d2024-05-01 19:21:24 +0000128 bootph-some-ram;
Jonas Karlman1e21f562024-02-17 00:22:34 +0000129};
130
131&sdmmc0m1_pin {
132 bootph-pre-ram;
133};
134
Kever Yang2e91e202019-08-15 11:40:56 +0800135&uart2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700136 bootph-all;
Kever Yang2e91e202019-08-15 11:40:56 +0800137 clock-frequency = <24000000>;
138};
139
Jonas Karlman1e21f562024-02-17 00:22:34 +0000140&uart2m1_xfer {
Jonas Karlman7c35f6d2024-05-01 19:21:24 +0000141 bootph-pre-sram;
142 bootph-pre-ram;
Kever Yang2e91e202019-08-15 11:40:56 +0800143};
Chen-Yu Tsai32fd6162020-04-27 14:52:48 +0800144
Jagan Teki67940632024-01-17 13:21:51 +0530145&vop {
Jonas Karlman405818d2024-04-21 20:12:29 +0000146 bootph-some-ram;
Jagan Teki67940632024-01-17 13:21:51 +0530147};
148
Jonas Karlmanc60b8352024-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