blob: d347080577d9cb9dd0f327d576fa26a29d7f2e2e [file] [log] [blame]
Joseph Chen868dc1d2021-06-02 15:58:23 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * (C) Copyright 2021 Rockchip Electronics Co., Ltd
4 */
5
Quentin Schulzd9ffa5e2022-09-02 15:10:52 +02006#include "rockchip-u-boot.dtsi"
7
Joseph Chen868dc1d2021-06-02 15:58:23 +08008/ {
9 aliases {
10 mmc0 = &sdhci;
11 mmc1 = &sdmmc0;
Jonas Karlmanaec644c2023-07-28 12:05:40 +000012 spi4 = &sfc;
Joseph Chen868dc1d2021-06-02 15:58:23 +080013 };
14
Nico Cheng16bc03c2021-10-26 10:42:20 +080015 chosen {
Jonas Karlmandab889e2023-07-28 11:53:08 +000016 u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
Nico Cheng16bc03c2021-10-26 10:42:20 +080017 };
18
Joseph Chen868dc1d2021-06-02 15:58:23 +080019 dmc: dmc {
20 compatible = "rockchip,rk3568-dmc";
Simon Glassd3a98cb2023-02-13 08:56:33 -070021 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080022 };
Jonas Karlmanbe56bb52023-02-22 22:44:41 +000023
24 otp: nvmem@fe38c000 {
25 compatible = "rockchip,rk3568-otp";
26 reg = <0x0 0xfe38c000 0x0 0x4000>;
27 #address-cells = <1>;
28 #size-cells = <1>;
Jonas Karlmanbe56bb52023-02-22 22:44:41 +000029
30 cpu_id: id@a {
31 reg = <0x0a 0x10>;
32 };
33 };
Joseph Chen868dc1d2021-06-02 15:58:23 +080034};
35
Jonas Karlman13e3dc92023-05-17 18:26:29 +000036&xin24m {
37 bootph-all;
Jonas Karlman13e3dc92023-05-17 18:26:29 +000038};
39
Joseph Chen868dc1d2021-06-02 15:58:23 +080040&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080042};
43
44&pmucru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070045 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080046};
47
48&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070049 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080050};
51
52&pmugrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070053 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080054};
Nico Cheng16bc03c2021-10-26 10:42:20 +080055
Jonas Karlmanf216c612023-07-28 11:53:07 +000056&pinctrl {
57 bootph-all;
58};
59
Jonas Karlmanc6391352023-08-03 21:11:54 +000060&pcfg_pull_none_smt {
61 bootph-all;
62};
63
Jonas Karlmanf216c612023-07-28 11:53:07 +000064&pcfg_pull_none {
65 bootph-all;
66};
67
68&pcfg_pull_up_drv_level_2 {
69 bootph-all;
70};
71
72&pcfg_pull_up {
73 bootph-all;
74};
75
76&emmc_bus8 {
77 bootph-all;
78};
79
80&emmc_clk {
81 bootph-all;
82};
83
84&emmc_cmd {
85 bootph-all;
86};
87
88&emmc_datastrobe {
89 bootph-all;
90};
91
92&emmc_rstnout {
93 bootph-all;
94};
95
96&fspi_pins {
97 bootph-all;
98};
99
Jonas Karlmanc6391352023-08-03 21:11:54 +0000100&i2c0_xfer {
101 bootph-all;
102};
103
Jonas Karlmanf216c612023-07-28 11:53:07 +0000104&sdmmc0_bus4 {
105 bootph-all;
106};
107
108&sdmmc0_clk {
109 bootph-all;
110};
111
112&sdmmc0_cmd {
113 bootph-all;
114};
115
116&sdmmc0_det {
117 bootph-all;
118};
119
120&sdmmc0_pwren {
121 bootph-all;
122};
123
124&uart2m0_xfer {
125 bootph-all;
126};
127
FUKAUMI Naoki98dc96a2022-10-04 01:30:30 +0000128&sdhci {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700129 bootph-pre-ram;
Jonas Karlmane8841382023-08-04 09:34:01 +0000130 max-frequency = <200000000>;
Nico Cheng16bc03c2021-10-26 10:42:20 +0800131};
132
FUKAUMI Naoki98dc96a2022-10-04 01:30:30 +0000133&sdmmc0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700134 bootph-pre-ram;
Nico Cheng16bc03c2021-10-26 10:42:20 +0800135};
Jonas Karlmana9d8d532023-05-17 18:26:35 +0000136
Jonas Karlman1fb8b8d2024-01-26 22:14:51 +0000137&uart2 {
138 bootph-pre-ram;
139 clock-frequency = <24000000>;
140};
141
Jonas Karlmana9d8d532023-05-17 18:26:35 +0000142#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
143&binman {
144 simple-bin-spi {
145 mkimage {
146 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
147 offset = <0x8000>;
148 };
149 };
150};
151#endif