mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: Karl Chan <exkcmailist@yahoo.com>
To: linux-amlogic@lists.infradead.org
Subject: [PATCHv2] ARM64: dts: meson-gxl: add X96 Mini support
Date: Mon, 3 Apr 2023 16:02:44 +0800	[thread overview]
Message-ID: <ec15bbce-16f6-bd47-45ac-208be059ff8f@yahoo.com> (raw)
In-Reply-To: <ec15bbce-16f6-bd47-45ac-208be059ff8f.ref@yahoo.com>

The X96 Mini is a TV box based on the Amlogic S905W chipset.
There are two variants:
- 2 GiB/16GIB
- 1 GiB/8GIB

Both variants come with:
- 802.11a/b/g/n wifi (SP6330)
- HDMI , AV (CVBS) , spdif , ir extender output
- 2x USB 2.0 (utilizing both USB ports provided by the SoC)

The board seems to be very similar to the Oranth Tanix TX3 Mini , which 
is smaller to P281 reference
boards so that is why it includes meson-gx-p23x-q20x.dtsi;
Signed-off-by: Karl Chan <exxxxkc@getgoogleoff.me>
Tested-by: Karl Chan <exxxxkc@getgoogleoff.me>
---
I forgot to tag it as patch in v1.
---
  arch/arm64/boot/dts/amlogic/Makefile |  1 +
  .../dts/amlogic/meson-gxl-s905w-x96-mini.dts | 38 +++++++++++++++++++
  2 files changed, 39 insertions(+)
  create mode 100644 
arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96-mini.dts

diff --git a/arch/arm64/boot/dts/amlogic/Makefile 
b/arch/arm64/boot/dts/amlogic/Makefile
index e213aeebb..857bb7c00 100644
--- a/arch/arm64/boot/dts/amlogic/Makefile
+++ b/arch/arm64/boot/dts/amlogic/Makefile
@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_MESON) += 
meson-gxl-s905d-vero4k-plus.dtb
  dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-jethome-jethub-j80.dtb
  dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb
  dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb
+dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-x96-mini.dtb
  dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb
  dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb
  dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-libretech-cc-v2.dtb
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96-mini.dts 
b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96-mini.dts
new file mode 100644
index 000000000..bd69f8897
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-x96-mini.dts
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2023 Karl Chan <exxxxkc@getgoogleoff.me>.
+ * Based on meson-gxl-s905w-tx3-mini.dts:
+ *
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/leds/common.h>
+
+#include "meson-gxl-s905x.dtsi"
+#include "meson-gx-p23x-q20x.dtsi"
+
+/ {
+    compatible = "amediatech,x96-mini", "amlogic,s905w", 
"amlogic,meson-gxl";
+    model = "Shenzhen Amediatech Technology Co., X96 Mini";
+
+    memory@0 {
+        device_type = "memory";
+        reg = <0x0 0x0 0x0 0x40000000>; /* 1 GiB or 2 GiB */
+    };
+
+    leds {
+        compatible = "gpio-leds";
+
+        led-0 {
+            label = "x96-mini:blue:power";
+            gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
+            default-state = "on";
+        };
+    };
+
+};
+
+&usb {
+    dr_mode = "host";
+};
-- 
2.39.2

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

           reply	other threads:[~2023-04-03  8:03 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <ec15bbce-16f6-bd47-45ac-208be059ff8f.ref@yahoo.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec15bbce-16f6-bd47-45ac-208be059ff8f@yahoo.com \
    --to=exkcmailist@yahoo.com \
    --cc=linux-amlogic@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®