arm64: dts: meson: add GXLX/S905L/p271 support
authorChristian Hewitt <christianshewitt@gmail.com>
Tue, 4 Jun 2024 08:41:34 +0000 (08:41 +0000)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 6 Jun 2024 09:11:25 +0000 (11:11 +0200)
Add a device-tree for the GXLX Amlogic P271 (S905L) reference design
board. This is a low-cost design similar to P281 (S905W) but with
silicon differences to omit VP9 and use Mali 450-MP2 (not MP3). The
SoC is marked with S905L and "2" (believed to denote MP2) resulting
in chip distributor stock lists and Android STB marketing sometimes
describing it as an S905L2 chip.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240604084134.3315841-2-christianshewitt@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/Makefile
arch/arm64/boot/dts/amlogic/meson-gxlx-s905l-p271.dts [new file with mode: 0644]

index 0f29517da5ec153dfc9af1ec4350760a601c08aa..0746e01b5853247c5f1ec11900421a4665d3e08d 100644 (file)
@@ -62,6 +62,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb
+dtb-$(CONFIG_ARCH_MESON) += meson-gxlx-s905l-p271.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-gt1-ultimate.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-mecool-kiii-pro.dtb
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxlx-s905l-p271.dts b/arch/arm64/boot/dts/amlogic/meson-gxlx-s905l-p271.dts
new file mode 100644 (file)
index 0000000..1221f45
--- /dev/null
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2024 Christian Hewitt <christianshewitt@gmail.com>
+ */
+
+/dts-v1/;
+
+#include "meson-gxl-s905x.dtsi"
+#include "meson-gx-p23x-q20x.dtsi"
+
+/ {
+       compatible = "amlogic,p271", "amlogic,s905l", "amlogic,meson-gxlx";
+       model = "Amlogic Meson GXLX (S905L) P271 Development Board";
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x0 0x0 0x40000000>;
+       };
+
+       sound {
+               model = "P271";
+       };
+};
+
+&apb {
+       mali: gpu@c0000 {
+               /* Mali 450-MP2 */
+               interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
+                       <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "gp", "gpmmu", "pp", "pmu",
+                       "pp0", "ppmmu0", "pp1", "ppmmu1";
+       };
+};
+
+&saradc {
+       compatible = "amlogic,meson-gxlx-saradc", "amlogic,meson-saradc";
+};
+
+&usb {
+       dr_mode = "host";
+};
+
+&vdec {
+       compatible = "amlogic,gxlx-vdec", "amlogic,gx-vdec";
+};