Skip to content

Commit

Permalink
arm64: dts: rockchip: add rk1808-module-v01 for BCTC project
Browse files Browse the repository at this point in the history
Signed-off-by: Weixin Zhou <[email protected]>
Change-Id: I74507af549ee4945641b83209d3b1802c1c8b6fe
  • Loading branch information
Weixin Zhou authored and rkhuangtao committed Jun 24, 2020
1 parent f7df680 commit 8850466
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk1808-evb-x4.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk1808-evb-x4-second.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk1808-fpga.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk1808-compute-stick-emmc.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk1808-module-v01.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-ai-va-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb-amic-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb-amic-v11.dtb
Expand Down
72 changes: 72 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk1808-module-v01.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (c) 2020 Rockchip Electronics Co., Ltd.


/dts-v1/;
#include "rk1808-compute.dtsi"

/ {
model = "Rockchip RK1808 Module V01 Board";
compatible = "rockchip,rk1808-module-v01", "rockchip,rk1808";

chosen {
bootargs = "earlycon=uart8250,mmio32,0xff550000 console=ttyFIQ0 dump_initrd root=/dev/ram0 init=/init swiotlb=1 kpti=0";
};

keys: gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&pwr_key>;

power {
gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
label = "GPIO Power";
linux,code = <116>;
wakeup-source;
};
};
};

&combphy {
status = "disabled";
};

&u2phy_otg {
/delete-property/ rockchip,vbus-always-on;
status = "okay";
};

&usbdrd3 {
status = "okay";
extcon = <&u2phy>;
};

&usbdrd_dwc3 {
dr_mode = "otg";
maximum-speed = "high-speed";
phys = <&u2phy_otg>;
phy-names = "usb2-phy";
status = "okay";
};

&pinctrl {
pwr_key: pwr-key {
rockchip,pins =
<0 RK_PC0 0 &pcfg_pull_none>;
};
};

&rockchip_suspend {
status = "okay";
rockchip,sleep-debug-en = <1>;
rockchip,sleep-mode-config = <
(0
| RKPM_SLP_ARMOFF
)
>;
rockchip,wakeup-config = <
(0
| RKPM_GPIO_WKUP_EN
)
>;
};

0 comments on commit 8850466

Please sign in to comment.