blob: 2bec139d8338216a013386beb5cbfab2f83039d1 [file] [log] [blame]
Jagan Tekie05b4a42019-03-11 13:50:03 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
4 */
Simon Glassc4cea2b2020-07-19 13:55:58 -06005#include "rockchip-u-boot.dtsi"
6
Peter Robinson5532e3b2020-01-20 09:17:00 +00007/ {
8 aliases {
9 mmc0 = &sdhci;
10 mmc1 = &sdmmc;
Jagan Teki765a12d2020-05-09 22:26:23 +053011 pci0 = &pcie0;
Simon Glassc4cea2b2020-07-19 13:55:58 -060012 spi1 = &spi1;
Peter Robinson5532e3b2020-01-20 09:17:00 +000013 };
14
Jonas Karlman1520e812024-04-30 15:30:18 +000015 chosen {
16 u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
17 };
18
Jonas Karlman4e3c7e82024-04-30 15:30:20 +000019 pmusgrf: syscon@ff330000 {
20 compatible = "rockchip,rk3399-pmusgrf", "syscon";
21 reg = <0x0 0xff330000 0x0 0xe3d4>;
Simon Glass8c103c32023-02-13 08:56:33 -070022 bootph-all;
Jonas Karlman4e3c7e82024-04-30 15:30:20 +000023 };
24
25 cic: syscon@ff620000 {
Peter Robinson5532e3b2020-01-20 09:17:00 +000026 compatible = "rockchip,rk3399-cic", "syscon";
27 reg = <0x0 0xff620000 0x0 0x100>;
Jonas Karlman4e3c7e82024-04-30 15:30:20 +000028 bootph-all;
Peter Robinson5532e3b2020-01-20 09:17:00 +000029 };
Peter Robinsonf459e232019-11-09 20:30:05 +000030};
31
Quentin Schulza4bb36d2022-09-02 15:10:54 +020032#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
Simon Glassc4cea2b2020-07-19 13:55:58 -060033&binman {
Simon Glass4170dd92023-01-07 14:07:17 -070034 multiple-images;
Simon Glassc4cea2b2020-07-19 13:55:58 -060035 rom {
36 filename = "u-boot.rom";
37 size = <0x400000>;
38 pad-byte = <0xff>;
39
40 mkimage {
41 args = "-n rk3399 -T rkspi";
42 u-boot-spl {
43 };
44 };
45 u-boot-img {
46 offset = <0x40000>;
47 };
48 u-boot {
49 offset = <0x300000>;
50 };
51 fdtmap {
52 };
53 };
54};
Simon Glass4170dd92023-01-07 14:07:17 -070055#endif /* CONFIG_ROCKCHIP_SPI_IMAGE && CONFIG_HAS_ROM */
Simon Glassc4cea2b2020-07-19 13:55:58 -060056
Peter Robinsonf459e232019-11-09 20:30:05 +000057&cru {
Simon Glass8c103c32023-02-13 08:56:33 -070058 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +000059};
60
Jonas Karlman104779b2024-05-01 16:22:22 +000061&dfi {
62 bootph-all;
63};
64
65&dmc {
66 reg = <0x0 0xffa80000 0x0 0x0800
67 0x0 0xffa80800 0x0 0x1800
68 0x0 0xffa82000 0x0 0x2000
69 0x0 0xffa84000 0x0 0x1000
70 0x0 0xffa88000 0x0 0x0800
71 0x0 0xffa88800 0x0 0x1800
72 0x0 0xffa8a000 0x0 0x2000
73 0x0 0xffa8c000 0x0 0x1000>;
74 bootph-all;
75 status = "okay";
76};
77
Yifeng Zhaof8b36082021-11-01 12:43:47 +080078&emmc_phy {
Jonas Karlman100f4892024-04-30 15:30:24 +000079 bootph-pre-ram;
80 bootph-some-ram;
Yifeng Zhaof8b36082021-11-01 12:43:47 +080081};
82
Peter Robinsonf459e232019-11-09 20:30:05 +000083&grf {
Simon Glass8c103c32023-02-13 08:56:33 -070084 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +000085};
86
Jonas Karlman100f4892024-04-30 15:30:24 +000087&pcfg_pull_none {
88 bootph-all;
89};
90
91&pcfg_pull_up {
92 bootph-all;
93};
94
Peter Robinsonf459e232019-11-09 20:30:05 +000095&pinctrl {
Simon Glass8c103c32023-02-13 08:56:33 -070096 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +000097};
98
Jagan Tekiab0ce362019-07-16 17:27:34 +053099&pmu {
Simon Glass8c103c32023-02-13 08:56:33 -0700100 bootph-all;
Jagan Tekiab0ce362019-07-16 17:27:34 +0530101};
102
Peter Robinsonf459e232019-11-09 20:30:05 +0000103&pmucru {
Simon Glass8c103c32023-02-13 08:56:33 -0700104 bootph-all;
Peter Robinsonf459e232019-11-09 20:30:05 +0000105};
106
Jonas Karlman4e3c7e82024-04-30 15:30:20 +0000107&pmugrf {
Simon Glass8c103c32023-02-13 08:56:33 -0700108 bootph-all;
Jonas Karlman4e3c7e82024-04-30 15:30:20 +0000109};
110
111&sdhci {
Jonas Karlman100f4892024-04-30 15:30:24 +0000112 bootph-pre-ram;
113 bootph-some-ram;
Jonas Karlman4e3c7e82024-04-30 15:30:20 +0000114 max-frequency = <200000000>;
115
116 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
Jonas Karlman3b804b32023-05-06 17:41:11 +0000117 u-boot,spl-fifo-mode;
Peter Robinsonf459e232019-11-09 20:30:05 +0000118};
119
Jagan Tekie05b4a42019-03-11 13:50:03 +0530120&sdmmc {
Jonas Karlman100f4892024-04-30 15:30:24 +0000121 bootph-pre-ram;
122 bootph-some-ram;
Deepak Das5c606ca2020-04-15 08:55:24 +0530123
124 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
125 u-boot,spl-fifo-mode;
Jagan Tekie05b4a42019-03-11 13:50:03 +0530126};
Jagan Tekib5f88912019-05-07 23:51:51 +0530127
Jonas Karlman100f4892024-04-30 15:30:24 +0000128&sdmmc_bus4 {
129 bootph-pre-ram;
130 bootph-some-ram;
131};
132
133&sdmmc_cd {
134 bootph-pre-ram;
135 bootph-some-ram;
136};
137
138&sdmmc_clk {
139 bootph-pre-ram;
140 bootph-some-ram;
141};
142
143&sdmmc_cmd {
144 bootph-pre-ram;
145 bootph-some-ram;
146};
147
Quentin Schulz0a9e0812024-06-17 15:10:08 +0200148&spi1 {
149 bootph-pre-ram;
150 bootph-some-ram;
151};
152
Jonas Karlman100f4892024-04-30 15:30:24 +0000153&spi1_clk {
154 bootph-pre-ram;
155 bootph-some-ram;
156};
157
158&spi1_cs0 {
159 bootph-pre-ram;
160 bootph-some-ram;
161};
162
163&spi1_rx {
164 bootph-pre-ram;
165 bootph-some-ram;
166};
167
168&spi1_tx {
169 bootph-pre-ram;
170 bootph-some-ram;
Jagan Tekib5f88912019-05-07 23:51:51 +0530171};
Jagan Teki16b0dd42019-06-21 00:25:02 +0530172
Jagan Teki16b0dd42019-06-21 00:25:02 +0530173&uart2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700174 bootph-all;
Jonas Karlmanfa903912024-04-30 15:30:23 +0000175 clock-frequency = <24000000>;
176};
177
178&uart2c_xfer {
179 bootph-pre-sram;
180 bootph-pre-ram;
Jagan Teki16b0dd42019-06-21 00:25:02 +0530181};
Peter Robinsonf459e232019-11-09 20:30:05 +0000182
183&vopb {
Jonas Karlman2e1c0022024-04-30 15:30:21 +0000184 bootph-some-ram;
Peter Robinsonf459e232019-11-09 20:30:05 +0000185};
186
187&vopl {
Jonas Karlman2e1c0022024-04-30 15:30:21 +0000188 bootph-some-ram;
Peter Robinsonf459e232019-11-09 20:30:05 +0000189};
Jonas Karlman104779b2024-05-01 16:22:22 +0000190
191&xin24m {
192 bootph-all;
193};