Skip to content

Commit

Permalink
arm64: dts: rockchip: Add support for Khadas Edge/Edge-V/Captain boards
Browse files Browse the repository at this point in the history
Add devicetree support for Khadas Edge/Edge-V/Captain boards.
Khadas Edge is an expandable Rockchip RK3399 board with goldfinger.
Khadas Captain is the carrier board for Khadas Edge.
Khadas Edge-V is a Khadas VIM form factor Rockchip RK3399 board.

Signed-off-by: Nick Xie <nick@khadas.com>
[edge-captain and edge-v contain different components that are supposed
 to get added in future patches, so should stay separate while looking
 somewhat similar right now]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
  • Loading branch information
numbqq authored and mmind committed Jun 14, 2019
1 parent 549dcda commit c2aacce
Show file tree
Hide file tree
Showing 6 changed files with 882 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/arm/rockchip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ properties:
- const: haoyu,marsboard-rk3066
- const: rockchip,rk3066a

- description: Khadas Edge series boards
items:
- enum:
- khadas,edge
- khadas,edge-captain
- khadas,edge-v
- const: rockchip,rk3399

- description: mqmaker MiQi
items:
- const: mqmaker,miqi
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-inx.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-kd.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-khadas-edge.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-khadas-edge-captain.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-khadas-edge-v.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopc-t4.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-m4.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-neo4.dtb
Expand Down
27 changes: 27 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-captain.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Shenzhen Wesion Technology Co., Ltd.
* (https://www.khadas.com)
*/

/dts-v1/;
#include "rk3399-khadas-edge.dtsi"

/ {
model = "Khadas Edge-Captain";
compatible = "khadas,edge-captain", "rockchip,rk3399";
};

&gmac {
status = "okay";
};

&pcie_phy {
status = "okay";
};

&pcie0 {
ep-gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
num-lanes = <4>;
status = "okay";
};
27 changes: 27 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-v.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Shenzhen Wesion Technology Co., Ltd.
* (https://www.khadas.com)
*/

/dts-v1/;
#include "rk3399-khadas-edge.dtsi"

/ {
model = "Khadas Edge-V";
compatible = "khadas,edge-v", "rockchip,rk3399";
};

&gmac {
status = "okay";
};

&pcie_phy {
status = "okay";
};

&pcie0 {
ep-gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
num-lanes = <4>;
status = "okay";
};
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Shenzhen Wesion Technology Co., Ltd.
* (https://www.khadas.com)
*/

/dts-v1/;
#include "rk3399-khadas-edge.dtsi"

/ {
model = "Khadas Edge";
compatible = "khadas,edge", "rockchip,rk3399";
};

0 comments on commit c2aacce

Please sign in to comment.