arm64: dts: rockchip: add rk3358 evb for linux

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I64fd77f17c4df93dc1ba14b19a054ec551500ba8
This commit is contained in:
Caesar Wang
2021-09-29 16:25:12 +08:00
committed by Tao Huang
parent 79e86a7536
commit 6295871c7e
5 changed files with 1276 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2s.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-rock64.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-roc-cc.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3358-evb-ddr3-v10-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-lion-haikou.dtb

View File

@@ -0,0 +1,15 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
*
*/
/dts-v1/;
#include "rk3358-evb-ddr3.dtsi"
#include "rk3358-linux.dtsi"
/ {
model = "Rockchip linux RK3358 EVB DDR3 board";
compatible = "rockchip,rk3358-evb-ddr3-v10-linux", "rockchip,px30", "rockchip,rk3358";
};

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,49 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
*
*/
/ {
compatible = "rockchip,linux", "rockchip,rk3358", "rockchip,px30";
chosen {
bootargs = "earlycon=uart8250,mmio32,0xff160000 console=ttyFIQ0 rw root=PARTUUID=614e0000-0000 rootwait";
};
fiq-debugger {
compatible = "rockchip,fiq-debugger";
rockchip,serial-id = <2>;
rockchip,wake-irq = <0>;
/* If enable uart uses irq instead of fiq */
rockchip,irq-mode-enable = <0>;
rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&uart2m0_xfer>;
status = "okay";
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
drm_logo: drm-logo@00000000 {
compatible = "rockchip,drm-logo";
reg = <0x0 0x0 0x0 0x0>;
};
};
};
&cpu0_opp_table {
rockchip,avs = <1>;
};
&rng {
status = "okay";
};
&video_phy {
status = "okay";
};

View File

@@ -0,0 +1,122 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
*
*/
#include "px30.dtsi"
&cpu0_opp_table {
/delete-node/ opp-1200000000;
/delete-node/ opp-1248000000;
/delete-node/ opp-1296000000;
/delete-node/ opp-1416000000;
/delete-node/ opp-1512000000;
};
&cru {
assigned-clocks = <&cru PLL_NPLL>;
assigned-clock-rates = <1040000000>;
};
&display_subsystem {
status = "disabled";
ports = <&vopb_out>, <&vopl_out>;
logo-memory-region = <&drm_logo>;
route {
route_lvds: route-lvds {
status = "disabled";
logo,uboot = "logo.bmp";
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
connect = <&vopb_out_lvds>;
};
route_dsi: route-dsi {
status = "disabled";
logo,uboot = "logo.bmp";
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
connect = <&vopb_out_dsi>;
};
route_rgb: route-rgb {
status = "disabled";
logo,uboot = "logo.bmp";
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
connect = <&vopb_out_rgb>;
};
};
};
&gpu_opp_table {
opp-520000000 {
opp-hz = /bits/ 64 <520000000>;
opp-microvolt = <1175000>;
opp-microvolt-L0 = <1175000>;
opp-microvolt-L1 = <1150000>;
opp-microvolt-L2 = <1100000>;
opp-microvolt-L3 = <1050000>;
};
};
&rgb {
phys = <&video_phy>;
phy-names = "phy";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&lcdc_m1_rgb_pins>;
pinctrl-1 = <&lcdc_m1_sleep_pins>;
};
&pinctrl {
lcdc {
lcdc_m1_rgb_pins: lcdc-m1-rgb-pins {
rockchip,pins =
<3 RK_PA0 1 &pcfg_pull_none_8ma>, /* LCDC_DCLK */
<3 RK_PA4 1 &pcfg_pull_none_8ma>, /* LCDC_D0 */
<3 RK_PA6 1 &pcfg_pull_none_8ma>, /* LCDC_D2 */
<3 RK_PB2 1 &pcfg_pull_none_8ma>, /* LCDC_D6 */
<3 RK_PB3 1 &pcfg_pull_none_8ma>, /* LCDC_D7 */
<3 RK_PB5 1 &pcfg_pull_none_8ma>, /* LCDC_D9 */
<3 RK_PC0 1 &pcfg_pull_none_8ma>, /* LCDC_D12 */
<3 RK_PC1 1 &pcfg_pull_none_8ma>, /* LCDC_D13 */
<3 RK_PC2 1 &pcfg_pull_none_8ma>, /* LCDC_D14 */
<3 RK_PC3 1 &pcfg_pull_none_8ma>, /* LCDC_D15 */
<3 RK_PC4 1 &pcfg_pull_none_8ma>, /* LCDC_D16 */
<3 RK_PC5 1 &pcfg_pull_none_8ma>, /* LCDC_D17 */
<3 RK_PC6 1 &pcfg_pull_none_8ma>, /* LCDC_D18 */
<3 RK_PC7 1 &pcfg_pull_none_8ma>, /* LCDC_D19 */
<3 RK_PD0 1 &pcfg_pull_none_8ma>, /* LCDC_D20 */
<3 RK_PD1 1 &pcfg_pull_none_8ma>, /* LCDC_D21 */
<3 RK_PD2 1 &pcfg_pull_none_8ma>, /* LCDC_D22 */
<3 RK_PD3 1 &pcfg_pull_none_8ma>; /* LCDC_D23 */
};
lcdc_m1_sleep_pins: lcdc-m1-sleep-pins {
rockchip,pins =
<3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_DCLK */
<3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D0 */
<3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D2 */
<3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D6 */
<3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D7 */
<3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D9 */
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
<3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
<3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
<3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
<3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
<3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
<3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
<3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
<3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
<3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
<3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
<3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; /* LCDC_D23 */
};
};
};