2019-07-01 03:49:10 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Rockchip Electronics Co., Ltd
|
|
|
|
*/
|
|
|
|
|
2020-01-09 18:46:21 +00:00
|
|
|
#include "rockchip-u-boot.dtsi"
|
2020-07-19 19:56:12 +00:00
|
|
|
#include "rockchip-optee.dtsi"
|
2020-01-09 18:46:21 +00:00
|
|
|
|
2019-07-09 13:58:54 +00:00
|
|
|
/ {
|
2022-04-15 21:21:39 +00:00
|
|
|
aliases {
|
|
|
|
gpio0 = &gpio0;
|
|
|
|
gpio1 = &gpio1;
|
|
|
|
gpio2 = &gpio2;
|
|
|
|
gpio3 = &gpio3;
|
|
|
|
gpio4 = &gpio4;
|
|
|
|
gpio5 = &gpio5;
|
|
|
|
gpio6 = &gpio6;
|
|
|
|
gpio7 = &gpio7;
|
|
|
|
gpio8 = &gpio8;
|
|
|
|
mmc0 = &emmc;
|
|
|
|
mmc1 = &sdmmc;
|
|
|
|
mmc2 = &sdio0;
|
|
|
|
mmc3 = &sdio1;
|
|
|
|
};
|
|
|
|
|
2019-07-09 13:58:54 +00:00
|
|
|
chosen {
|
|
|
|
u-boot,spl-boot-order = \
|
|
|
|
"same-as-spl", &emmc, &sdmmc;
|
|
|
|
};
|
2022-04-15 21:21:39 +00:00
|
|
|
|
|
|
|
dmc: dmc@ff610000 {
|
|
|
|
compatible = "rockchip,rk3288-dmc", "syscon";
|
|
|
|
reg = <0xff610000 0x3fc
|
|
|
|
0xff620000 0x294
|
|
|
|
0xff630000 0x3fc
|
|
|
|
0xff640000 0x294>;
|
|
|
|
clocks = <&cru PCLK_DDRUPCTL0>, <&cru PCLK_PUBL0>,
|
|
|
|
<&cru PCLK_DDRUPCTL1>, <&cru PCLK_PUBL1>,
|
|
|
|
<&cru ARMCLK>;
|
|
|
|
clock-names = "pclk_ddrupctl0", "pclk_publ0",
|
|
|
|
"pclk_ddrupctl1", "pclk_publ1",
|
|
|
|
"arm_clk";
|
|
|
|
rockchip,cru = <&cru>;
|
|
|
|
rockchip,grf = <&grf>;
|
|
|
|
rockchip,noc = <&noc>;
|
|
|
|
rockchip,pmu = <&pmu>;
|
|
|
|
rockchip,sgrf = <&sgrf>;
|
|
|
|
rockchip,sram = <&ddr_sram>;
|
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
|
|
|
noc: syscon@ffac0000 {
|
|
|
|
compatible = "rockchip,rk3288-noc", "syscon";
|
|
|
|
reg = <0xffac0000 0x2000>;
|
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
2019-07-09 13:58:54 +00:00
|
|
|
};
|
|
|
|
|
2020-07-19 19:55:57 +00:00
|
|
|
#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
|
|
|
|
&binman {
|
|
|
|
rom {
|
|
|
|
filename = "u-boot.rom";
|
|
|
|
size = <0x400000>;
|
|
|
|
pad-byte = <0xff>;
|
|
|
|
|
|
|
|
mkimage {
|
|
|
|
args = "-n rk3288 -T rkspi";
|
|
|
|
u-boot-spl {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
u-boot-img {
|
|
|
|
offset = <0x20000>;
|
|
|
|
};
|
|
|
|
u-boot {
|
|
|
|
offset = <0x300000>;
|
|
|
|
};
|
|
|
|
fdtmap {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&bus_intmem {
|
|
|
|
ddr_sram: ddr-sram@1000 {
|
|
|
|
compatible = "rockchip,rk3288-ddr-sram";
|
|
|
|
reg = <0x1000 0x4000>;
|
|
|
|
};
|
2019-07-01 03:49:10 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&cru {
|
2019-07-01 03:49:10 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&gpio7 {
|
2019-07-01 03:49:10 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&grf {
|
2019-07-01 03:49:10 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&pmu {
|
2019-07-01 03:49:10 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&sgrf {
|
2019-07-01 03:49:10 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&uart0 {
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
clock-frequency = <24000000>;
|
2019-07-01 03:49:10 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&uart2 {
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart3 {
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&vopb {
|
2019-07-01 03:49:10 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|
2020-06-25 04:10:15 +00:00
|
|
|
|
2022-04-15 21:21:39 +00:00
|
|
|
&vopl {
|
2020-06-25 04:10:15 +00:00
|
|
|
u-boot,dm-pre-reloc;
|
|
|
|
};
|