blob: c340c2bba6ff8b54b08bbfdb66d191009408740a [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;
12 };
13
Nico Cheng16bc03c2021-10-26 10:42:20 +080014 chosen {
Jonas Karlman980da012023-03-14 00:38:23 +000015 u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc0;
Nico Cheng16bc03c2021-10-26 10:42:20 +080016 };
17
Joseph Chen868dc1d2021-06-02 15:58:23 +080018 dmc: dmc {
19 compatible = "rockchip,rk3568-dmc";
Simon Glassd3a98cb2023-02-13 08:56:33 -070020 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080021 status = "okay";
22 };
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>;
29 status = "okay";
30
31 cpu_id: id@a {
32 reg = <0x0a 0x10>;
33 };
34 };
Joseph Chen868dc1d2021-06-02 15:58:23 +080035};
36
Jonas Karlman13e3dc92023-05-17 18:26:29 +000037&xin24m {
38 bootph-all;
39 status = "okay";
40};
41
Joseph Chen868dc1d2021-06-02 15:58:23 +080042&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070043 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080044 status = "okay";
45};
46
47&pmucru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070048 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080049 status = "okay";
50};
51
52&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070053 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080054 status = "okay";
55};
56
57&pmugrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070058 bootph-all;
Joseph Chen868dc1d2021-06-02 15:58:23 +080059 status = "okay";
60};
Nico Cheng16bc03c2021-10-26 10:42:20 +080061
FUKAUMI Naoki98dc96a2022-10-04 01:30:30 +000062&sdhci {
Simon Glassd3a98cb2023-02-13 08:56:33 -070063 bootph-pre-ram;
Nico Cheng16bc03c2021-10-26 10:42:20 +080064 status = "okay";
65};
66
FUKAUMI Naoki98dc96a2022-10-04 01:30:30 +000067&sdmmc0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070068 bootph-pre-ram;
Nico Cheng16bc03c2021-10-26 10:42:20 +080069 status = "okay";
70};
Jonas Karlmana9d8d532023-05-17 18:26:35 +000071
72#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
73&binman {
74 simple-bin-spi {
75 mkimage {
76 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
77 offset = <0x8000>;
78 };
79 };
80};
81#endif