blob: a43d320ade7baec9299d4118a3969a1830c3a969 [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 {
10 gpio0 = &gpio0;
11 gpio1 = &gpio1;
12 gpio2 = &gpio2;
13 gpio3 = &gpio3;
14 gpio4 = &gpio4;
15 gpio5 = &gpio5;
16 gpio6 = &gpio6;
17 gpio7 = &gpio7;
18 gpio8 = &gpio8;
19 mmc0 = &emmc;
20 mmc1 = &sdmmc;
21 mmc2 = &sdio0;
22 mmc3 = &sdio1;
23 };
24
Kever Yange5f3c6e2019-07-09 21:58:54 +080025 chosen {
26 u-boot,spl-boot-order = \
27 "same-as-spl", &emmc, &sdmmc;
28 };
Johan Jonker8ba3d4062022-04-15 23:21:39 +020029
30 dmc: dmc@ff610000 {
31 compatible = "rockchip,rk3288-dmc", "syscon";
Johan Jonker9a26fb12023-12-27 13:06:47 +010032 reg = <0x0 0xff610000 0x0 0x3fc
33 0x0 0xff620000 0x0 0x294
34 0x0 0xff630000 0x0 0x3fc
35 0x0 0xff640000 0x0 0x294>;
Johan Jonker8ba3d4062022-04-15 23:21:39 +020036 clocks = <&cru PCLK_DDRUPCTL0>, <&cru PCLK_PUBL0>,
37 <&cru PCLK_DDRUPCTL1>, <&cru PCLK_PUBL1>,
38 <&cru ARMCLK>;
39 clock-names = "pclk_ddrupctl0", "pclk_publ0",
40 "pclk_ddrupctl1", "pclk_publ1",
41 "arm_clk";
42 rockchip,cru = <&cru>;
43 rockchip,grf = <&grf>;
44 rockchip,noc = <&noc>;
45 rockchip,pmu = <&pmu>;
46 rockchip,sgrf = <&sgrf>;
47 rockchip,sram = <&ddr_sram>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070048 bootph-all;
Johan Jonker8ba3d4062022-04-15 23:21:39 +020049 };
50
51 noc: syscon@ffac0000 {
52 compatible = "rockchip,rk3288-noc", "syscon";
Johan Jonker9a26fb12023-12-27 13:06:47 +010053 reg = <0x0 0xffac0000 0x0 0x2000>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-all;
Johan Jonker8ba3d4062022-04-15 23:21:39 +020055 };
Kever Yange5f3c6e2019-07-09 21:58:54 +080056};
57
Quentin Schulz12df9cf2022-09-02 15:10:54 +020058#if defined(CONFIG_ROCKCHIP_SPI_IMAGE) && defined(CONFIG_HAS_ROM)
Simon Glass88315f72020-07-19 13:55:57 -060059&binman {
60 rom {
61 filename = "u-boot.rom";
62 size = <0x400000>;
63 pad-byte = <0xff>;
64
65 mkimage {
66 args = "-n rk3288 -T rkspi";
67 u-boot-spl {
68 };
69 };
70 u-boot-img {
71 offset = <0x20000>;
72 };
73 u-boot {
74 offset = <0x300000>;
75 };
76 fdtmap {
77 };
78 };
79};
80#endif
81
Johan Jonker8ba3d4062022-04-15 23:21:39 +020082&bus_intmem {
83 ddr_sram: ddr-sram@1000 {
84 compatible = "rockchip,rk3288-ddr-sram";
85 reg = <0x1000 0x4000>;
86 };
Kever Yang162cebd2019-07-01 11:49:10 +080087};
88
Johan Jonker8ba3d4062022-04-15 23:21:39 +020089&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070090 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080091};
92
Johan Jonker8d7b6a82023-03-15 19:33:50 +010093&edp {
94 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
95 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
96};
97
Johan Jonker8ba3d4062022-04-15 23:21:39 +020098&gpio7 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070099 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +0800100};
101
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200102&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700103 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +0800104};
105
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200106&pmu {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700107 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +0800108};
109
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200110&sgrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700111 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +0800112};
113
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200114&uart0 {
115 clock-frequency = <24000000>;
116};
117
118&uart1 {
119 clock-frequency = <24000000>;
Kever Yang162cebd2019-07-01 11:49:10 +0800120};
121
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200122&uart2 {
123 clock-frequency = <24000000>;
124};
125
126&uart3 {
127 clock-frequency = <24000000>;
128};
129
130&vopb {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700131 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +0800132};
Walter Lozano6dc8d7e2020-06-25 01:10:15 -0300133
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200134&vopl {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700135 bootph-all;
Walter Lozano6dc8d7e2020-06-25 01:10:15 -0300136};
Johan Jonker9a26fb12023-12-27 13:06:47 +0100137
138&xin24m {
139 bootph-all;
140};