blob: 2205caabc51ec4535bef3ab950d7ff5b421d8016 [file] [log] [blame]
Kever Yang162cebd2019-07-01 11:49:10 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Rockchip Electronics Co., Ltd
4 */
5
Jagan Tekib22da752020-01-10 00:16:21 +05306#include "rockchip-u-boot.dtsi"
7
Kever Yange5f3c6e2019-07-09 21:58:54 +08008/ {
Johan Jonker8ba3d4062022-04-15 23:21:39 +02009 aliases {
Johan Jonker8ba3d4062022-04-15 23:21:39 +020010 mmc0 = &emmc;
11 mmc1 = &sdmmc;
12 mmc2 = &sdio0;
13 mmc3 = &sdio1;
14 };
15
Kever Yange5f3c6e2019-07-09 21:58:54 +080016 chosen {
17 u-boot,spl-boot-order = \
18 "same-as-spl", &emmc, &sdmmc;
19 };
Johan Jonker8ba3d4062022-04-15 23:21:39 +020020
21 dmc: dmc@ff610000 {
22 compatible = "rockchip,rk3288-dmc", "syscon";
Johan Jonker9a26fb12023-12-27 13:06:47 +010023 reg = <0x0 0xff610000 0x0 0x3fc
24 0x0 0xff620000 0x0 0x294
25 0x0 0xff630000 0x0 0x3fc
26 0x0 0xff640000 0x0 0x294>;
Johan Jonker8ba3d4062022-04-15 23:21:39 +020027 clocks = <&cru PCLK_DDRUPCTL0>, <&cru PCLK_PUBL0>,
28 <&cru PCLK_DDRUPCTL1>, <&cru PCLK_PUBL1>,
29 <&cru ARMCLK>;
30 clock-names = "pclk_ddrupctl0", "pclk_publ0",
31 "pclk_ddrupctl1", "pclk_publ1",
32 "arm_clk";
33 rockchip,cru = <&cru>;
34 rockchip,grf = <&grf>;
35 rockchip,noc = <&noc>;
36 rockchip,pmu = <&pmu>;
37 rockchip,sgrf = <&sgrf>;
38 rockchip,sram = <&ddr_sram>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070039 bootph-all;
Johan Jonker8ba3d4062022-04-15 23:21:39 +020040 };
41
42 noc: syscon@ffac0000 {
43 compatible = "rockchip,rk3288-noc", "syscon";
Johan Jonker9a26fb12023-12-27 13:06:47 +010044 reg = <0x0 0xffac0000 0x0 0x2000>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070045 bootph-all;
Johan Jonker8ba3d4062022-04-15 23:21:39 +020046 };
Kever Yange5f3c6e2019-07-09 21:58:54 +080047};
48
Quentin Schulz12df9cf2022-09-02 15:10:54 +020049#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
Simon Glass88315f72020-07-19 13:55:57 -060050&binman {
51 rom {
52 filename = "u-boot.rom";
53 size = <0x400000>;
54 pad-byte = <0xff>;
55
56 mkimage {
57 args = "-n rk3288 -T rkspi";
58 u-boot-spl {
59 };
60 };
61 u-boot-img {
62 offset = <0x20000>;
63 };
64 u-boot {
65 offset = <0x300000>;
66 };
67 fdtmap {
68 };
69 };
70};
71#endif
72
Johan Jonker8ba3d4062022-04-15 23:21:39 +020073&bus_intmem {
74 ddr_sram: ddr-sram@1000 {
75 compatible = "rockchip,rk3288-ddr-sram";
76 reg = <0x1000 0x4000>;
77 };
Kever Yang162cebd2019-07-01 11:49:10 +080078};
79
Johan Jonker8ba3d4062022-04-15 23:21:39 +020080&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070081 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080082};
83
Johan Jonker8d7b6a82023-03-15 19:33:50 +010084&edp {
85 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
86 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
87};
88
Johan Jonker8ba3d4062022-04-15 23:21:39 +020089&gpio7 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070090 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080091};
92
Johan Jonker8ba3d4062022-04-15 23:21:39 +020093&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070094 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080095};
96
Johan Jonker8ba3d4062022-04-15 23:21:39 +020097&pmu {
Simon Glassd3a98cb2023-02-13 08:56:33 -070098 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080099};
100
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200101&sgrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700102 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +0800103};
104
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200105&uart0 {
106 clock-frequency = <24000000>;
107};
108
109&uart1 {
110 clock-frequency = <24000000>;
Kever Yang162cebd2019-07-01 11:49:10 +0800111};
112
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200113&uart2 {
114 clock-frequency = <24000000>;
115};
116
117&uart3 {
118 clock-frequency = <24000000>;
119};
120
121&vopb {
Jonas Karlmanc84a0d42024-11-04 20:25:40 +0000122 bootph-some-ram;
Kever Yang162cebd2019-07-01 11:49:10 +0800123};
Walter Lozano6dc8d7e2020-06-25 01:10:15 -0300124
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200125&vopl {
Jonas Karlmanc84a0d42024-11-04 20:25:40 +0000126 bootph-some-ram;
Walter Lozano6dc8d7e2020-06-25 01:10:15 -0300127};
Johan Jonker9a26fb12023-12-27 13:06:47 +0100128
129&xin24m {
130 bootph-all;
131};