blob: 6af9621ac3d08f5f91b62bcb7c14464571ff909c [file] [log] [blame]
Jagan Teki208badd2019-03-11 13:50:03 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
4 */
Simon Glass8251e032020-07-19 13:55:58 -06005#include "rockchip-u-boot.dtsi"
6
Peter Robinson94fb4c42020-01-20 09:17:00 +00007/ {
8 aliases {
Jonas Karlmane872ddc2024-05-01 16:22:22 +00009 ethernet0 = &gmac;
Peter Robinson94fb4c42020-01-20 09:17:00 +000010 mmc0 = &sdhci;
11 mmc1 = &sdmmc;
Jagan Teki77c31a82020-05-09 22:26:23 +053012 pci0 = &pcie0;
Simon Glass8251e032020-07-19 13:55:58 -060013 spi1 = &spi1;
Peter Robinson94fb4c42020-01-20 09:17:00 +000014 };
Peter Robinsondd44a152019-11-09 20:30:05 +000015
Jonas Karlman747c9572024-04-30 15:30:18 +000016 chosen {
17 u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
18 };
19
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000020 pmusgrf: syscon@ff330000 {
21 compatible = "rockchip,rk3399-pmusgrf", "syscon";
22 reg = <0x0 0xff330000 0x0 0xe3d4>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070023 bootph-all;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000024 };
25
26 cic: syscon@ff620000 {
Peter Robinson94fb4c42020-01-20 09:17:00 +000027 compatible = "rockchip,rk3399-cic", "syscon";
28 reg = <0x0 0xff620000 0x0 0x100>;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +000029 bootph-all;
Peter Robinson94fb4c42020-01-20 09:17:00 +000030 };
Simon Glass8251e032020-07-19 13:55:58 -060031};
32
Quentin Schulz12df9cf2022-09-02 15:10:54 +020033#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
Simon Glass8251e032020-07-19 13:55:58 -060034&binman {
Simon Glassf1268222023-01-07 14:07:17 -070035 multiple-images;
Simon Glass8251e032020-07-19 13:55:58 -060036 rom {
37 filename = "u-boot.rom";
38 size = <0x400000>;
39 pad-byte = <0xff>;
40
41 mkimage {
42 args = "-n rk3399 -T rkspi";
43 u-boot-spl {
44 };
45 };
46 u-boot-img {
47 offset = <0x40000>;
48 };
49 u-boot {
50 offset = <0x300000>;
51 };
52 fdtmap {
53 };
54 };
Peter Robinsondd44a152019-11-09 20:30:05 +000055};
Simon Glassf1268222023-01-07 14:07:17 -070056#endif /* CONFIG_ROCKCHIP_SPI_IMAGE && CONFIG_HAS_ROM */
Peter Robinsondd44a152019-11-09 20:30:05 +000057
Peter Robinson94fb4c42020-01-20 09:17:00 +000058&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070059 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +000060};
61
Jonas Karlmane872ddc2024-05-01 16:22:22 +000062&dfi {
63 bootph-all;
64};
65
66&dmc {
67 reg = <0x0 0xffa80000 0x0 0x0800
68 0x0 0xffa80800 0x0 0x1800
69 0x0 0xffa82000 0x0 0x2000
70 0x0 0xffa84000 0x0 0x1000
71 0x0 0xffa88000 0x0 0x0800
72 0x0 0xffa88800 0x0 0x1800
73 0x0 0xffa8a000 0x0 0x2000
74 0x0 0xffa8c000 0x0 0x1000>;
75 bootph-all;
76 status = "okay";
77};
78
Yifeng Zhaod7e4c322021-11-01 12:43:47 +080079&emmc_phy {
Jonas Karlman6a6b4f52024-04-30 15:30:24 +000080 bootph-pre-ram;
81 bootph-some-ram;
Yifeng Zhaod7e4c322021-11-01 12:43:47 +080082};
83
Peter Robinsondd44a152019-11-09 20:30:05 +000084&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070085 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +000086};
87
Jonas Karlman6a6b4f52024-04-30 15:30:24 +000088&pcfg_pull_none {
89 bootph-all;
90};
91
92&pcfg_pull_up {
93 bootph-all;
94};
95
Peter Robinsondd44a152019-11-09 20:30:05 +000096&pinctrl {
Simon Glassd3a98cb2023-02-13 08:56:33 -070097 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +000098};
99
Jagan Teki9b545852019-07-16 17:27:34 +0530100&pmu {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700101 bootph-all;
Jagan Teki9b545852019-07-16 17:27:34 +0530102};
103
Jonas Karlman47f7e5f2024-04-30 15:30:20 +0000104&pmucru {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700105 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +0000106};
107
Jonas Karlman47f7e5f2024-04-30 15:30:20 +0000108&pmugrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700109 bootph-all;
Peter Robinsondd44a152019-11-09 20:30:05 +0000110};
111
Peter Robinsondd44a152019-11-09 20:30:05 +0000112&sdhci {
Jonas Karlman6a6b4f52024-04-30 15:30:24 +0000113 bootph-pre-ram;
114 bootph-some-ram;
Jonas Karlman47f7e5f2024-04-30 15:30:20 +0000115 max-frequency = <200000000>;
116
117 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
Jonas Karlmanf79c5372023-05-06 17:41:11 +0000118 u-boot,spl-fifo-mode;
Peter Robinsondd44a152019-11-09 20:30:05 +0000119};
120
Jagan Teki208badd2019-03-11 13:50:03 +0530121&sdmmc {
Jonas Karlman6a6b4f52024-04-30 15:30:24 +0000122 bootph-pre-ram;
123 bootph-some-ram;
Deepak Das4ef2ded2020-04-15 08:55:24 +0530124
125 /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
126 u-boot,spl-fifo-mode;
Jagan Teki208badd2019-03-11 13:50:03 +0530127};
Jagan Teki60c5fed2019-05-07 23:51:51 +0530128
Jonas Karlman6a6b4f52024-04-30 15:30:24 +0000129&sdmmc_bus4 {
130 bootph-pre-ram;
131 bootph-some-ram;
132};
133
134&sdmmc_cd {
135 bootph-pre-ram;
136 bootph-some-ram;
137};
138
139&sdmmc_clk {
140 bootph-pre-ram;
141 bootph-some-ram;
142};
143
144&sdmmc_cmd {
145 bootph-pre-ram;
146 bootph-some-ram;
147};
148
149&spi1_clk {
150 bootph-pre-ram;
151 bootph-some-ram;
152};
153
154&spi1_cs0 {
155 bootph-pre-ram;
156 bootph-some-ram;
157};
158
159&spi1_rx {
160 bootph-pre-ram;
161 bootph-some-ram;
162};
163
164&spi1_tx {
165 bootph-pre-ram;
166 bootph-some-ram;
Jagan Teki60c5fed2019-05-07 23:51:51 +0530167};
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530168
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530169&uart2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700170 bootph-all;
Jonas Karlmanfab0bd32024-04-30 15:30:23 +0000171 clock-frequency = <24000000>;
172};
173
174&uart2c_xfer {
175 bootph-pre-sram;
176 bootph-pre-ram;
Jagan Teki2ff51fd2019-06-21 00:25:02 +0530177};
Peter Robinsondd44a152019-11-09 20:30:05 +0000178
179&vopb {
Jonas Karlman98519912024-04-30 15:30:21 +0000180 bootph-some-ram;
Peter Robinsondd44a152019-11-09 20:30:05 +0000181};
182
183&vopl {
Jonas Karlman98519912024-04-30 15:30:21 +0000184 bootph-some-ram;
Peter Robinsondd44a152019-11-09 20:30:05 +0000185};
Jonas Karlmane872ddc2024-05-01 16:22:22 +0000186
187&xin24m {
188 bootph-all;
189};