From patchwork Mon Apr 3 08:02:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Karl Chan X-Patchwork-Id: 13197781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E378C76196 for ; Mon, 3 Apr 2023 08:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:To:Subject:From:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Owner; bh=yQrDcdmYSOZ++M/ugKTYBPWi1SKiQyp3BL36jjyd7w8=; b=FvzyROa8PnLkx/N5N0k+Dkz4lO tt5LY52G6ZCKself5zyx51X/r1zmLx7+TERqYcCsvLlWazRIfoTTa4sJICCYyQJOFOP4t3iVvFiYE DGPf5yEn0kyPjGg5OHNhuVmqRfG58w0EHobjVuJmjK0pnj8I0xdGjbeA3wfAoxAVlSHrNg2YL1nu8 aArtCKoKxgnN2jqgb4YN0Rv8rxiayU+jiGF95DbIIfZb//3anfeJdee+WElwwVMVbWJU7T1OtZf8T I7i7Naf3yIBQUydCmimP0MO7kHYYLbUrlmnIeYXucrRO5P0ozITJQCmjMZN95Vha+5pJ0AYLIQkg3 NYdHCG4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjF9T-00ESIj-0H; Mon, 03 Apr 2023 08:02:55 +0000 Received: from sonic305-19.consmr.mail.sg3.yahoo.com ([106.10.241.82]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjF9P-00ESIH-2m for linux-amlogic@lists.infradead.org; Mon, 03 Apr 2023 08:02:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680508967; bh=BvZNWYtQSLhAK8qeDu77gWQYLdDjK3wd87YBFFKhNu0=; h=Date:From:Subject:To:References:From:Subject:Reply-To; b=i1gVVF883qw7tE6r5TIFOT+n/L5xKydfpOK5s/ksNIqLlrxqG+L9bQPc7TTl3ufy0UE6zVYu5oBfU4j8tG1MRjN+oVcoE+hyR7WLYE88rzks+MDd5Vv0RetjTkRCQxss57rSYAeb1k72PP16RojVeWyKdIpxQ5TdcJf39xE8eN3LxGs5J99uUol+wdDiK2aX0v1l8mL0rpwJehRwm+DBJVAzBmfgAbFmxHSYdPT7/o83ghLVzOYqVwKkAZAcercdwwFHq5pdNauNM3skS2zuiBMQqzx6rQ/1Mg4ypztp1cXDp3KRqMuXMUxlELot4rMM7DjmCpqPKYH7+PvTiJpTVA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680508967; bh=iRxwqUG35G9DGKTlB9yMoeR4ujUDHQdb/5unrEtHVXs=; h=X-Sonic-MF:Date:From:Subject:To:From:Subject; b=AGkzJLmNeelLzXNz9KxwJA6WNQALNDZ0495w4CDrHIcWMmqpio1slCRW4LCFR6InTHFcxMgKrM1KwzocHe08Py6IeMw6HVliIt9w/LZotSwZuv4T76g2/jj2b8e1GF5FPNE2AuRGuqZZPUAusFG3WU4h0DA/E/e/2Wu/KgndgOsSz+KBp7B6xXSh7jWXYNXSG93l9xEAb4rs7CADe3H8SfiyAAN98YIjRcF2TAneskN+vo1xxmb3m2kcl1jU16qgj7jcdkgTRwTSktRmFc5iI6+U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l2soN1JYcbrp6ABc8f7r1kLhnP9Z2aqxI68iXsdMNRDYrg2wgO J4lEZhFO_ATreaBDdE5NY94V0CY5mCk5QkbRtURyDAPee0BgCUzbaBqJB7pSMG6zi473GCxbEkMI W X-Sonic-MF: X-Sonic-ID: 5a9adc20-2830-4a90-b8dc-e31ebc1093d8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.sg3.yahoo.com with HTTP; Mon, 3 Apr 2023 08:02:47 +0000 Received: by hermes--production-sg3-6d6fb994f6-94jgf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 666c0d31b12db36d06f5b239a16ec902; Mon, 03 Apr 2023 08:02:41 +0000 (UTC) Message-ID: Date: Mon, 3 Apr 2023 16:02:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 From: Karl Chan Subject: [PATCHv2] ARM64: dts: meson-gxl: add X96 Mini support To: linux-amlogic@lists.infradead.org Content-Language: en-US References: X-Mailer: WebService/1.1.21284 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_010252_068666_1BE27457 X-CRM114-Status: GOOD ( 10.56 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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 Tested-by: Karl Chan --- 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 . + * Based on meson-gxl-s905w-tx3-mini.dts: + * + */ + +/dts-v1/; + +#include + +#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";