2023-03-15 03:35:22

by Yixun Lan

[permalink] [raw]
Subject: [PATCH 0/2] arm64: rockchip: Add Khadas edge2 board

In this patch series, we will try to add basic support for
Khadas Edge2 board, currently only UART and eMMC are enabled.
The ethernet connect to Pads expansion board via USB which will need extra
effort, so no ethernet for now.

The first patch introduce a dt-bindings for Edge2 board,
the second patch will add basic device tree.

Yixun Lan (2):
dt-bindings: arm: rockchip: Add Khadas Edge2 board
arm64: dts: rockchip: Add Khadas edge2 board

.../devicetree/bindings/arm/rockchip.yaml | 5 +++
arch/arm64/boot/dts/rockchip/Makefile | 1 +
.../dts/rockchip/rk3588s-khadas-edge2.dts | 37 +++++++++++++++++++
3 files changed, 43 insertions(+)
create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts

--
2.39.2



2023-03-15 03:35:25

by Yixun Lan

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: arm: rockchip: Add Khadas Edge2 board

Edge2 is an ultraslim, credit-card sized ARM PC designed by Khadas.
It has quite a few rich peripherals.

Specification:
- Rockchip RK3588s
- 8/16GB LPDDR4
- 32/64GB eMMC 5.1
- AP6275P WiFi6 LAN
- HDMI2.1 Type-A
- MIPI-CSI x3
- MIPI-DSI x2
- usb3.1; usb2.0
- RTC clock
- PWM fan
- SPI Flash
- Pads expansion board (UART, USB)

Signed-off-by: Yixun Lan <[email protected]>
---
Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
index 35f74eda30ae..ff663797291c 100644
--- a/Documentation/devicetree/bindings/arm/rockchip.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
@@ -533,6 +533,11 @@ properties:
- khadas,edge-v
- const: rockchip,rk3399

+ - description: Khadas Edge2 series boards
+ items:
+ - const: khadas,edge2
+ - const: rockchip,rk3588s
+
- description: Kobol Helios64
items:
- const: kobol,helios64
--
2.39.2


2023-03-15 03:35:29

by Yixun Lan

[permalink] [raw]
Subject: [PATCH 2/2] arm64: dts: rockchip: Add Khadas edge2 board

Edge2 is an ultraslim, credit-card sized ARM PC designed by Khadas.

In this patch, we will add basic device tree support for this board,
Only eMMC, UART are enabled, so it's capable of booting into
a basic linux system from eMMC via serial console.

Signed-off-by: Yixun Lan <[email protected]>
---
arch/arm64/boot/dts/rockchip/Makefile | 1 +
.../dts/rockchip/rk3588s-khadas-edge2.dts | 37 +++++++++++++++++++
2 files changed, 38 insertions(+)
create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts

diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index 99a44c400d6a..1743e9e14426 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -90,4 +90,5 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3a.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-rock-5b.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-khadas-edge2.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
new file mode 100644
index 000000000000..93b4a0c4ed0f
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rk3588s.dtsi"
+
+/ {
+ model = "Khadas Edge2";
+ compatible = "khadas,edge2", "rockchip,rk3588s";
+
+ aliases {
+ mmc0 = &sdhci;
+ serial2 = &uart2;
+ };
+
+ chosen {
+ stdout-path = "serial2:1500000n8";
+ };
+};
+
+&sdhci {
+ bus-width = <8>;
+ no-sdio;
+ no-sd;
+ non-removable;
+ max-frequency = <200000000>;
+ mmc-hs400-1_8v;
+ mmc-hs400-enhanced-strobe;
+ status = "okay";
+};
+
+&uart2 {
+ pinctrl-0 = <&uart2m0_xfer>;
+ status = "okay";
+};
--
2.39.2


2023-03-15 07:17:04

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: arm: rockchip: Add Khadas Edge2 board

On 15/03/2023 04:34, Yixun Lan wrote:
> Edge2 is an ultraslim, credit-card sized ARM PC designed by Khadas.
> It has quite a few rich peripherals.
>


Acked-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof


2023-03-15 07:55:02

by Heiko Stuebner

[permalink] [raw]
Subject: Re: [PATCH 0/2] arm64: rockchip: Add Khadas edge2 board

On Wed, 15 Mar 2023 11:34:39 +0800, Yixun Lan wrote:
> In this patch series, we will try to add basic support for
> Khadas Edge2 board, currently only UART and eMMC are enabled.
> The ethernet connect to Pads expansion board via USB which will need extra
> effort, so no ethernet for now.
>
> The first patch introduce a dt-bindings for Edge2 board,
> the second patch will add basic device tree.
>
> [...]

Applied, thanks!

[1/2] dt-bindings: arm: rockchip: Add Khadas Edge2 board
commit: 5a6d76761225bfa31d114f434b990fa2ed9b04c5
[2/2] arm64: dts: rockchip: Add Khadas edge2 board
commit: 04d5529935229a709d6facb8a80168cc0976c89a

Best regards,
--
Heiko Stuebner <[email protected]>