Skip to contentSkip to conversation

arm64: rockchip: Add Khadas edge2 board

PATCH Applied Yixun Lan 3 participants 5 messages Mar 15, 2023

Subsystems (2)
lore
Share & tools
lore

Yixun Lan

author
#0 lore raw

cover 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
Signature · 1 line
2.39.2
author
#1 lore raw

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)

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index 35f74eda30ae..ff663797291c 100644
@@ -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
Signature · 1 line
2.39.2
Acked-by on v1 1/2
#2 lore raw

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

Quoted 3 lines · Yixun Lan

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

Best regards,
Krzysztof

author
#3 lore raw

PATCH 2/2 arm64: dts: rockchip: Add Khadas edge2 board

In reply to Yixun Lan

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.

---
 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
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 99a44c400d6a..1743e9e14426 100644
@@ -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
arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts new file +37 -0
new file mode 100644
index 000000000000..93b4a0c4ed0f
@@ -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";
+};
Signature · 1 line
2.39.2
maintainer Applied
#4 lore raw
In reply to Yixun Lan
Quoted 9 lines · Yixun Lan

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,

Signature · 1 line
Heiko Stuebner <[email protected]>