blob: 09d8b311cec50aee86794eef17a296546f6da988 [file] [log] [blame]
Jagan Teki2a8481e2023-01-30 20:27:46 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
4 */
5
6#include "rockchip-u-boot.dtsi"
7
8/ {
Jonas Karlman747f9f22023-07-28 12:05:41 +00009 aliases {
Jonas Karlman747f9f22023-07-28 12:05:41 +000010 spi5 = &sfc;
11 };
12
Jonas Karlmane1292c22024-01-26 22:14:54 +000013 chosen {
14 u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
15 };
16
Jagan Teki2a8481e2023-01-30 20:27:46 +053017 dmc {
18 compatible = "rockchip,rk3588-dmc";
Tom Rini82b896c2023-03-27 15:20:19 -040019 bootph-all;
Jagan Teki2a8481e2023-01-30 20:27:46 +053020 };
21
Chris Morganf89167b2023-04-13 09:13:03 -050022 rng: rng@fe378000 {
23 compatible = "rockchip,trngv1";
24 reg = <0x0 0xfe378000 0x0 0x200>;
Chris Morganf89167b2023-04-13 09:13:03 -050025 };
Jagan Teki2a8481e2023-01-30 20:27:46 +053026};
27
Jonas Karlman647b8cf2024-04-22 06:28:48 +000028#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
29&binman {
30 simple-bin-spi {
31 mkimage {
32 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
33 offset = <0x8000>;
34 };
35 };
36};
37#endif
38
39&cru {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000040 bootph-all;
Jonas Karlman647b8cf2024-04-22 06:28:48 +000041};
42
Eugen Hristev70312242023-07-04 22:05:11 +030043&emmc_bus8 {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000044 bootph-pre-ram;
45 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +030046};
47
48&emmc_clk {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000049 bootph-pre-ram;
50 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +030051};
52
53&emmc_cmd {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000054 bootph-pre-ram;
55 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +030056};
57
58&emmc_data_strobe {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000059 bootph-pre-ram;
60 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +030061};
62
63&emmc_rstnout {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000064 bootph-pre-ram;
65 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +030066};
67
Jonas Karlman647b8cf2024-04-22 06:28:48 +000068&ioc {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000069 bootph-all;
70};
71
72&pcfg_pull_down {
73 bootph-all;
Eugen Hristev70312242023-07-04 22:05:11 +030074};
75
76&pcfg_pull_none {
77 bootph-all;
78};
79
Eugen Hristev70312242023-07-04 22:05:11 +030080&pcfg_pull_up {
81 bootph-all;
82};
83
Jonas Karlman647b8cf2024-04-22 06:28:48 +000084&pcfg_pull_up_drv_level_2 {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +000085 bootph-pre-ram;
86 bootph-some-ram;
87};
88
89&php_grf {
Tom Rini82b896c2023-03-27 15:20:19 -040090 bootph-all;
Jagan Teki2a8481e2023-01-30 20:27:46 +053091};
92
Jonas Karlman647b8cf2024-04-22 06:28:48 +000093&pinctrl {
94 bootph-all;
Jagan Teki2a8481e2023-01-30 20:27:46 +053095};
96
Jonas Karlman7c3e42b2024-01-26 22:14:52 +000097&pmu1grf {
98 bootph-all;
99};
100
Jonas Karlman58c23012023-04-17 19:07:21 +0000101&scmi {
102 bootph-pre-ram;
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000103 bootph-some-ram;
Jonas Karlman58c23012023-04-17 19:07:21 +0000104};
105
106&scmi_clk {
107 bootph-pre-ram;
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000108 bootph-some-ram;
Jonas Karlman58c23012023-04-17 19:07:21 +0000109};
110
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000111&sdhci {
Jonas Karlman58c23012023-04-17 19:07:21 +0000112 bootph-pre-ram;
Quentin Schulz70f92122024-03-11 13:01:58 +0100113 bootph-some-ram;
Jonas Karlman58c23012023-04-17 19:07:21 +0000114 u-boot,spl-fifo-mode;
115};
116
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000117&sdmmc {
Jonas Karlmanb564aa22023-04-18 16:46:41 +0000118 bootph-pre-ram;
Quentin Schulz70f92122024-03-11 13:01:58 +0100119 bootph-some-ram;
Jonas Karlman3b804b32023-05-06 17:41:11 +0000120 u-boot,spl-fifo-mode;
Jonas Karlmanb564aa22023-04-18 16:46:41 +0000121};
122
Eugen Hristev70312242023-07-04 22:05:11 +0300123&sdmmc_bus4 {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000124 bootph-pre-ram;
125 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +0300126};
127
128&sdmmc_clk {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000129 bootph-pre-ram;
130 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +0300131};
132
133&sdmmc_cmd {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000134 bootph-pre-ram;
135 bootph-some-ram;
Eugen Hristev70312242023-07-04 22:05:11 +0300136};
137
138&sdmmc_det {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000139 bootph-pre-ram;
140 bootph-some-ram;
141};
142
143&sfc {
144 u-boot,spl-sfc-no-dma;
Eugen Hristev70312242023-07-04 22:05:11 +0300145};
146
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000147&sys_grf {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000148 bootph-all;
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000149};
150
Jagan Teki2a8481e2023-01-30 20:27:46 +0530151&uart2 {
Jonas Karlmanbcaf6c02024-04-22 06:28:50 +0000152 bootph-all;
Jonas Karlmane9277822024-01-26 22:14:55 +0000153 clock-frequency = <24000000>;
Jagan Teki2a8481e2023-01-30 20:27:46 +0530154};
155
Eugen Hristev70312242023-07-04 22:05:11 +0300156&uart2m0_xfer {
157 bootph-all;
158};
159
Jonas Karlman647b8cf2024-04-22 06:28:48 +0000160&xin24m {
161 bootph-all;
Jagan Teki2a8481e2023-01-30 20:27:46 +0530162};