Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
2 | /* | ||||
3 | * (C) Copyright 2021 Rockchip Electronics Co., Ltd | ||||
4 | */ | ||||
5 | |||||
Quentin Schulz | d9ffa5e | 2022-09-02 15:10:52 +0200 | [diff] [blame] | 6 | #include "rockchip-u-boot.dtsi" |
7 | |||||
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 8 | / { |
9 | aliases { | ||||
10 | mmc0 = &sdhci; | ||||
11 | mmc1 = &sdmmc0; | ||||
12 | }; | ||||
13 | |||||
Nico Cheng | 16bc03c | 2021-10-26 10:42:20 +0800 | [diff] [blame] | 14 | chosen { |
Jonas Karlman | 980da01 | 2023-03-14 00:38:23 +0000 | [diff] [blame] | 15 | u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc0; |
Nico Cheng | 16bc03c | 2021-10-26 10:42:20 +0800 | [diff] [blame] | 16 | }; |
17 | |||||
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 18 | dmc: dmc { |
19 | compatible = "rockchip,rk3568-dmc"; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 20 | bootph-all; |
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 21 | status = "okay"; |
22 | }; | ||||
Jonas Karlman | be56bb5 | 2023-02-22 22:44:41 +0000 | [diff] [blame] | 23 | |
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 Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 35 | }; |
36 | |||||
Jonas Karlman | 13e3dc9 | 2023-05-17 18:26:29 +0000 | [diff] [blame] | 37 | &xin24m { |
38 | bootph-all; | ||||
39 | status = "okay"; | ||||
40 | }; | ||||
41 | |||||
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 42 | &cru { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 43 | bootph-all; |
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 44 | status = "okay"; |
45 | }; | ||||
46 | |||||
47 | &pmucru { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 48 | bootph-all; |
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 49 | status = "okay"; |
50 | }; | ||||
51 | |||||
52 | &grf { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 53 | bootph-all; |
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 54 | status = "okay"; |
55 | }; | ||||
56 | |||||
57 | &pmugrf { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 58 | bootph-all; |
Joseph Chen | 868dc1d | 2021-06-02 15:58:23 +0800 | [diff] [blame] | 59 | status = "okay"; |
60 | }; | ||||
Nico Cheng | 16bc03c | 2021-10-26 10:42:20 +0800 | [diff] [blame] | 61 | |
FUKAUMI Naoki | 98dc96a | 2022-10-04 01:30:30 +0000 | [diff] [blame] | 62 | &sdhci { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 63 | bootph-pre-ram; |
Nico Cheng | 16bc03c | 2021-10-26 10:42:20 +0800 | [diff] [blame] | 64 | status = "okay"; |
65 | }; | ||||
66 | |||||
FUKAUMI Naoki | 98dc96a | 2022-10-04 01:30:30 +0000 | [diff] [blame] | 67 | &sdmmc0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 68 | bootph-pre-ram; |
Nico Cheng | 16bc03c | 2021-10-26 10:42:20 +0800 | [diff] [blame] | 69 | status = "okay"; |
70 | }; | ||||
Jonas Karlman | a9d8d53 | 2023-05-17 18:26:35 +0000 | [diff] [blame] | 71 | |
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 |