blob: bb0078588fe819118eb0592e002e1708da7ce806 [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
Johan Jonker8ba3d4062022-04-15 23:21:39 +020049&bus_intmem {
50 ddr_sram: ddr-sram@1000 {
51 compatible = "rockchip,rk3288-ddr-sram";
52 reg = <0x1000 0x4000>;
53 };
Kever Yang162cebd2019-07-01 11:49:10 +080054};
55
Johan Jonker8ba3d4062022-04-15 23:21:39 +020056&cru {
Simon Glassd3a98cb2023-02-13 08:56:33 -070057 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080058};
59
Johan Jonker8d7b6a82023-03-15 19:33:50 +010060&edp {
61 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
62 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
63};
64
Johan Jonker8ba3d4062022-04-15 23:21:39 +020065&gpio7 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070066 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080067};
68
Johan Jonker8ba3d4062022-04-15 23:21:39 +020069&grf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070070 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080071};
72
Johan Jonker8ba3d4062022-04-15 23:21:39 +020073&pmu {
Simon Glassd3a98cb2023-02-13 08:56:33 -070074 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080075};
76
Johan Jonker8ba3d4062022-04-15 23:21:39 +020077&sgrf {
Simon Glassd3a98cb2023-02-13 08:56:33 -070078 bootph-all;
Kever Yang162cebd2019-07-01 11:49:10 +080079};
80
Johan Jonker8ba3d4062022-04-15 23:21:39 +020081&uart0 {
82 clock-frequency = <24000000>;
83};
84
85&uart1 {
86 clock-frequency = <24000000>;
Kever Yang162cebd2019-07-01 11:49:10 +080087};
88
Johan Jonker8ba3d4062022-04-15 23:21:39 +020089&uart2 {
90 clock-frequency = <24000000>;
91};
92
93&uart3 {
94 clock-frequency = <24000000>;
95};
96
97&vopb {
Jonas Karlmanc84a0d42024-11-04 20:25:40 +000098 bootph-some-ram;
Kever Yang162cebd2019-07-01 11:49:10 +080099};
Walter Lozano6dc8d7e2020-06-25 01:10:15 -0300100
Johan Jonker8ba3d4062022-04-15 23:21:39 +0200101&vopl {
Jonas Karlmanc84a0d42024-11-04 20:25:40 +0000102 bootph-some-ram;
Walter Lozano6dc8d7e2020-06-25 01:10:15 -0300103};
Johan Jonker9a26fb12023-12-27 13:06:47 +0100104
105&xin24m {
106 bootph-all;
107};