Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] Add initial support for Khadas VIM 5
@ 2026-10-17  4:00 Nick Xie
  2026-10-17  4:00 ` [PATCH 1/2] dt-bindings: arm: amlogic: Add " Nick Xie
  2026-10-17  4:00 ` [PATCH 2/2] arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree Nick Xie
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Xie @ 2026-10-17  4:00 UTC (permalink / raw)
  To: neil.armstrong, khilman
  Cc: robh, krzk+dt, conor+dt, jbrunet, martin.blumenstingl,
	christianshewitt, xianwei.zhao, linux-amlogic, linux-arm-kernel,
	devicetree, linux-kernel, xieqinick

This series adds initial support for the Khadas VIM 5, a board based
on the Amlogic A311Y3 SoC.

The first patch documents the board compatible. The second adds the
board device tree with UART B enabled, an 8 GiB memory description,
and the ARM Trusted Firmware reserved memory region.

The board has been boot-tested up to initramfs using the serial
console.


Nick Xie (2):
  dt-bindings: arm: amlogic: Add Khadas VIM 5
  arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree

 .../devicetree/bindings/arm/amlogic.yaml      |  1 +
 arch/arm64/boot/dts/amlogic/Makefile          |  1 +
 .../amlogic-a9-a311y3-khadas-vim-5.dts        | 42 +++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts


base-commit: 58161ead29e50d70a317ea26b472e0c7508e69da
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] dt-bindings: arm: amlogic: Add Khadas VIM 5
  2026-10-17  4:00 [PATCH 0/2] Add initial support for Khadas VIM 5 Nick Xie
@ 2026-10-17  4:00 ` Nick Xie
  2026-10-17  9:05   ` Krzysztof Kozlowski
  2026-10-17  4:00 ` [PATCH 2/2] arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree Nick Xie
  1 sibling, 1 reply; 4+ messages in thread
From: Nick Xie @ 2026-10-17  4:00 UTC (permalink / raw)
  To: neil.armstrong, khilman
  Cc: robh, krzk+dt, conor+dt, jbrunet, martin.blumenstingl,
	christianshewitt, xianwei.zhao, linux-amlogic, linux-arm-kernel,
	devicetree, linux-kernel, xieqinick

The Khadas VIM 5 is a board based on the Amlogic A311Y3 SoC.
Document its board compatible.

Signed-off-by: Nick Xie <nick@khadas.com>
---
 Documentation/devicetree/bindings/arm/amlogic.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
index 9f73a0054fb21..e2b258ae8a4c6 100644
--- a/Documentation/devicetree/bindings/arm/amlogic.yaml
+++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
@@ -238,6 +238,7 @@ properties:
         items:
           - enum:
               - amlogic,by401
+              - khadas,vim-5
           - const: amlogic,a9
 
       - description: Boards with the Amlogic C3 C302X/C308L SoC
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree
  2026-10-17  4:00 [PATCH 0/2] Add initial support for Khadas VIM 5 Nick Xie
  2026-10-17  4:00 ` [PATCH 1/2] dt-bindings: arm: amlogic: Add " Nick Xie
@ 2026-10-17  4:00 ` Nick Xie
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Xie @ 2026-10-17  4:00 UTC (permalink / raw)
  To: neil.armstrong, khilman
  Cc: robh, krzk+dt, conor+dt, jbrunet, martin.blumenstingl,
	christianshewitt, xianwei.zhao, linux-amlogic, linux-arm-kernel,
	devicetree, linux-kernel, xieqinick

The Khadas VIM 5 uses the Amlogic A311Y3 SoC, based on the Amlogic A9
SoC family, on a board with the same form factor as the
VIM/VIM2/VIM3/VIM4/VIM1S models. The serial debug console works with this
initial device tree.

It features:
 - 8GB LPDDR5
 - 64GB eMMC 5.1 storage
 - 32MB SPI flash
 - 10/100/1000 Base-T Ethernet
 - AP6275P Wireless (802.11 a/b/g/n/ac/ax, BT5.1)
 - HDMI 2.1 output
 - HDMI 2.1 input
 - 1x USB 2.0 + 1x USB 3.0 ports
 - 1x USB-C with USB 3.0/DP/PD
 - 2x LEDs (1x red, 1x white)
 - 3x buttons (power, function, reset)
 - M2 socket with PCIe, USB, ADC & I2C
 - 1x 4 lanes MIPI DSI
 - 1x 4 lanes MIPI CSI
 - 40pin GPIO Header
 - 1x micro SD card slot

Signed-off-by: Nick Xie <nick@khadas.com>
---
 arch/arm64/boot/dts/amlogic/Makefile          |  1 +
 .../amlogic-a9-a311y3-khadas-vim-5.dts        | 42 +++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts

diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
index 57bc440fa55cc..8b4e3212be131 100644
--- a/arch/arm64/boot/dts/amlogic/Makefile
+++ b/arch/arm64/boot/dts/amlogic/Makefile
@@ -2,6 +2,7 @@
 dtb-$(CONFIG_ARCH_MESON) += amlogic-a4-a113l2-ba400.dtb
 dtb-$(CONFIG_ARCH_MESON) += amlogic-a5-a113x2-av400.dtb
 dtb-$(CONFIG_ARCH_MESON) += amlogic-a9-a311y3-by401.dtb
+dtb-$(CONFIG_ARCH_MESON) += amlogic-a9-a311y3-khadas-vim-5.dtb
 dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c302x-aw409.dtb
 dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c308l-aw419.dtb
 dtb-$(CONFIG_ARCH_MESON) += amlogic-s6-s905x5-bl209.dtb
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts b/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts
new file mode 100644
index 0000000000000..3989ce7a8aff9
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2026 Khadas Technology Co., Ltd.
+ */
+
+/dts-v1/;
+
+#include "amlogic-a9.dtsi"
+
+/ {
+	model = "Khadas VIM 5";
+	compatible = "khadas,vim-5", "amlogic,a9";
+	#address-cells = <2>;
+	#size-cells = <2>;
+
+	aliases {
+		serial0 = &uart_b;
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0xe0000000>,
+		      <0x1 0x0 0x1 0x20000000>; /* 8 GiB */
+	};
+
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		/* 35 MiB reserved for ARM Trusted Firmware */
+		secmon_reserved: secmon@5000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x05000000 0x0 0x2300000>;
+			no-map;
+		};
+	};
+};
+
+&uart_b {
+	status = "okay";
+};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: amlogic: Add Khadas VIM 5
  2026-10-17  4:00 ` [PATCH 1/2] dt-bindings: arm: amlogic: Add " Nick Xie
@ 2026-10-17  9:05   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-17  9:05 UTC (permalink / raw)
  To: Nick Xie, neil.armstrong, khilman
  Cc: robh, krzk+dt, conor+dt, jbrunet, martin.blumenstingl,
	christianshewitt, xianwei.zhao, linux-amlogic, linux-arm-kernel,
	devicetree, linux-kernel, xieqinick

On 17/10/2026 06:00, Nick Xie wrote:
> The Khadas VIM 5 is a board based on the Amlogic A311Y3 SoC.
> Document its board compatible.
> 
> Signed-off-by: Nick Xie <nick@khadas.com>
> ---
>  Documentation/devicetree/bindings/arm/amlogic.yaml | 1 +


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-17  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-17  4:00 [PATCH 0/2] Add initial support for Khadas VIM 5 Nick Xie
2026-10-17  4:00 ` [PATCH 1/2] dt-bindings: arm: amlogic: Add " Nick Xie
2026-10-17  9:05   ` Krzysztof Kozlowski
2026-10-17  4:00 ` [PATCH 2/2] arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree Nick Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox