Add initial support for Khadas VIM 5
Subsystems (2)
cover Add initial support for Khadas VIM 5
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
Signature · 1 line
2.34.1
PATCH 1/2 dt-bindings: arm: amlogic: Add Khadas VIM 5
The Khadas VIM 5 is a board based on the Amlogic A311Y3 SoC. Document its board compatible.
--- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/amlogic.yaml +1 -0
@@ -238,6 +238,7 @@ properties: items: - enum: - amlogic,by401 + - khadas,vim-5 - const: amlogic,a9 - description: Boards with the Amlogic C3 C302X/C308L SoC
Signature · 1 line
2.34.1
Re: [PATCH 1/2] dt-bindings: arm: amlogic: Add Khadas VIM 5
Quoted 6 lines · Nick Xie
The Khadas VIM 5 is a board based on the Amlogic A311Y3 SoC. Document its board compatible.
Signed-off-by Nick Xie <[email protected]>--- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 +
Best regards,
Krzysztof
PATCH 2/2 arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree
In reply to Nick XieThe 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
--- 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
arch/arm64/boot/dts/amlogic/Makefile +1 -0
@@ -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
arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH 2/2] arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree
Quoted 80 lines · Nick Xie
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 slotSigned-off-by Nick Xie <[email protected]>--- 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.dtsarch/arm64/boot/dts/amlogic/Makefile +1
-0@@ -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.dtbarch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts new file +32
-0@@ -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 {
arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts line 42
Quoted 10 lines
arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-khadas-vim-5.dts new file +10
-0+ compatible = "shared-dma-pool"; + reg = <0x0 0x05000000 0x0 0x2300000>; + no-map; + }; + }; +}; + +&uart_b { + status = "okay"; +};
Thanks,
Neil
Hi,
Quoted 8 lines · Nick Xie
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.
[...]
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v7.5/arm64-dt)
[1/2] dt-bindings: arm: amlogic: Add Khadas VIM 5
https://git.kernel.org/amlogic/c/7db251465d5319a5c0fc46c397ebddb284560982 [2/2] arm64: dts: amlogic-a9-a311y3-khadas-vim-5: add initial device tree https://git.kernel.org/amlogic/c/56d1180882a32c78a6207b5364e43c2fc546cd9d
These changes has been applied on the intermediate git tree [1].
The v7.5/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in their intermediate git branches in order to be sent to Linus during the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate kernel and as soon they appear on the Linux master branch they will be backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3], people are encouraged testing these pre-release kernels and report issues on the relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signature · 1 line
Neil