From patchwork Fri Oct 6 09:01:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Ribbeck X-Patchwork-Id: 730766 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78F5820F7 for ; Fri, 6 Oct 2023 09:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=julian.ribbeck@gmx.de header.b="VW5WQWnC" Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 391F4AD; Fri, 6 Oct 2023 02:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1696582936; x=1697187736; i=julian.ribbeck@gmx.de; bh=qbziC+TbQMjflhlt6KwWMiaUOsFEEHNJl0dYIOw0j7A=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VW5WQWnCoO4CzmUE3pcYJ2wpZwKUhHmM67zBtU8k+jW1c29a3vQ7+rjPNUns2IDf2oHA+qvGOmt 2phTduG4w4jhq+hwKpk6GDURlwllYyYTOfdMjNUl7u9VeFpL7SVHApns5SRW4gnvFisNks8ijooXi k55+92Q23NomK1ndHRGhbXJzRJ0mOgzZpOVw3pd4z7u01PG/dih0TtE9C7fbCbcOcsmKd5mw2AWME gNHT6SijdPQc15eZhDFDIMpKbnk4N8yB8WoZ3oGesUKQDBUaNZ5DfZ3o0tFwNLMmAeAqwytUvciG4 WpK4lnAHWArYC537ptDxGCDZ+5qVWfsCAGYg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost.localdomain ([95.90.255.242]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M5QJD-1qnJ9B00X7-001RuD; Fri, 06 Oct 2023 11:02:16 +0200 From: Julian Ribbeck To: conor@kernel.org Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, jernej.skrabec@gmail.com, julian.ribbeck@gmx.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, robh+dt@kernel.org, samuel@sholland.org, wens@csie.org Subject: [PATCH v4 1/2] ARM: dts: sun7i: Add Iteaduino Plus A20 Date: Fri, 6 Oct 2023 11:01:30 +0200 Message-ID: <20231006090154.9289-1-julian.ribbeck@gmx.de> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230929-given-making-f3fac6afb176@spud> References: <20230929-given-making-f3fac6afb176@spud> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:TV9KKKQrrOIWGqaMf6d1BzytJ6PKBtVrww/qFlmOtk2P4M/k9Cv 4wawCZt1DxDw4kN/lwzOAYINfKnvkyoAOlL3QSiT7dYpqN6Iin1af/cKtAPNEUiComXyhYO 5eWUtL9iCCcgED3XSxaFx7omV2cBKQWFCL6rqY48wiKc5f8SyW9GhDdaFpHtH6xXNT6wCah BQ2v04V7I0lfTe8u+xJVA== UI-OutboundReport: notjunk:1;M01:P0:SuVfN/XrUNo=;X1HJOVDq3RNdzqQKeTcLQpbXmaE Z9jGNQEeOG6xhrafkCXZr0wfTjV5jJf3677Mrv2Pf7qR+FyUOO1fHG7zqkY5GSyH5Ylglyc91 r2udbuW3O+YPUE4OyuSfhSzkDaUsER6dZn0jrDE/maSrPwy7YMFYTylDhNj835/YHHV3aHm/U dBe5oNdtLi0Vvl8Z4b5/TwrHcgKZHwtG1JXjpF5UCKVBmJ/gbUVUTbx8ngtf016SSOEjBwOUt YHgiPyP8OBlp8ZjF51lqid9vSVCOwUtBAUHqGvGD7+QpB/BgJsRDj9cLiww9pfZoCLGw7KQkh mKAARKJ/8zsMN9TzG/nMJbmg+KJ45evKq9YkuE8oS3p4iJEyqRd3c9kX9FFT9+8qONC3RWPXi Rp9sjNmeSdw5o3iV3exG1nWhKOJnDLWbm+uTy7zVLQBfT7glxkl2mvjUZXllA/RAfl9M89oEn FD8+Yl76aYuKSZBB2FQ+TUeJmT/02xvZ9ziWSZipxU80Sy117PHcfrQSF4bVqdYN6Z2Cj7ALM As3cv/8n8KC7pF5NdLJ06ldr3hEuQTNX/rpfMfPQjOvTr3zl5oP6it6XC4sBDCbs4Hs0niWoE uFE/C2zSokqrQ8j8DvNdNhu9sppn7wGtsbFpxdL9PMqyQNOW8aTdSbLNz86CdR25qq5VJsWI0 v0kspCKZuqoyP1Ky3lXSnK1qeqblHBMrzBBB8WDtjXimiYLTtjVCDHn3CfT3DxTUowNhvpufG tgUu+JAdonel89igMTWANdOmjLNGZWsROufyRImmBSresEZGPG7ffrvUqlX7oZIL+ght/JJ3s W+ckFoUkkF876bZT9F7HdNFSuYWYJPw1BDbA+4Dq0fvnpYBvmaD+fZqKJR5hT1uGxc1LnKB8m fKJxJe+yU9GMcW6EYkymp3WRG1wi4PYVqH1SRSMIuBt4LO2/DsFHd2jaTIwg+s+ukt3wAsRP0 bL8Gcw== X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Iteaduino Plus A20 is very similar to Iteaduino Plus A10. In fact it shares the same breakout board and the Itead Core A20 on top of it, is only adapted to support the dual-core A20. This commits enables the following hardware: * HDMI Video output * USB * SATA (untested due to lack of hardware I could attach) * Ethernet * MMC storage * UART * USB OTG (untested, because I don't own an USB OTG cable/device) Signed-off-by: Julian Ribbeck Reviewed-by: Jernej Skrabec --- arch/arm/boot/dts/allwinner/Makefile | 1 + .../sun7i-a20-itead-iteaduino-plus.dts | 104 ++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun7i-a20-itead-iteaduino-plus.dts -- 2.42.0 diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwinner/Makefile index eebb5a0c873a..39af5ad94590 100644 --- a/arch/arm/boot/dts/allwinner/Makefile +++ b/arch/arm/boot/dts/allwinner/Makefile @@ -124,6 +124,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-haoyu-marsboard.dtb \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ + sun7i-a20-itead-iteaduino-plus.dts \ sun7i-a20-i12-tvbox.dtb \ sun7i-a20-icnova-a20-adb4006.dtb \ sun7i-a20-icnova-swac.dtb \ diff --git a/arch/arm/boot/dts/allwinner/sun7i-a20-itead-iteaduino-plus.dts b/arch/arm/boot/dts/allwinner/sun7i-a20-itead-iteaduino-plus.dts new file mode 100644 index 000000000000..c9f9b0275381 --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun7i-a20-itead-iteaduino-plus.dts @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) + +/dts-v1/; +#include "sun7i-a20.dtsi" +#include "sunxi-itead-core-common.dtsi" + +/ { + model = "Itead Iteaduino Plus A20"; + compatible = "itead,iteaduino-plus-a20", "allwinner,sun7i-a20"; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; +}; + +&ac_power_supply { + status = "okay"; +}; + +&ahci { + target-supply = <®_ahci_5v>; + status = "okay"; +}; + +&axp209 { + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; +}; + +&battery_power_supply { + status = "okay"; +}; + +&codec { + stauts = "okay"; +}; + +&de { + status = "okay"; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_pa_pins>; + phy-handle = <&phy1>; + status = "okay"; +}; + +&emac_sram { + status = "okay"; +}; + +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + +&mdio { + status = "okay"; + + phy1: ethernet-phy@1 { + reg = <1>; + }; +}; + +&mmc0 { + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ + status = "okay"; +}; + +&otg_sram { + status = "okay"; +}; + +®_ahci_5v { + status = "okay"; +}; + +®_usb0_vbus { + status = "okay"; +}; + +&usb_otg { + status = "okay"; + dr_mode = "host"; +}; + +&usbphy { + usb0_vbus-supply = <®_usb0_vbus>; +}; From patchwork Fri Oct 6 09:01:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Ribbeck X-Patchwork-Id: 730765 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2B4A1078B for ; Fri, 6 Oct 2023 09:03:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=julian.ribbeck@gmx.de header.b="XfDhbIpW" Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB0FBB; Fri, 6 Oct 2023 02:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1696582973; x=1697187773; i=julian.ribbeck@gmx.de; bh=bC983lG28ckhgdb284kkMkUVerGEcXzknlNmQS+eYBg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XfDhbIpW5JYb4trxmD0YkwwQqSDSzjx46WleaP2EpMfyWtRAmdUbrA2saVaREH4uPTBOTBSwGc9 G+SGT1ffOSVJ3Wp4dPeUjTh8OlJVd0pAURobWZhDkyqlT83cUPdF7g1vUc5rGj4qdq1KnnWNj/3C/ lpdApfqwpaOnjVzNpvcUG9Fjgq6qHyb3TPOHKazpm3jT7lkFV1NkBNQgJcxyAgrAwz9KIOIoaKuTm AjaT8W/UyPQwlhJKrliB5GpbZFIGSH2gt86W9PA59UchSUJ04hBa6ETyvrLamhW8Nhq1nyJF9wbWR 3TbNIo5MqY8HNHxnQ5kyDwIHEtY4lg0T9QvQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost.localdomain ([95.90.255.242]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MLi8g-1r6DcL1Yqe-00HbLY; Fri, 06 Oct 2023 11:02:53 +0200 From: Julian Ribbeck To: conor@kernel.org Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, jernej.skrabec@gmail.com, julian.ribbeck@gmx.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, robh+dt@kernel.org, samuel@sholland.org, wens@csie.org, Krzysztof Kozlowski Subject: [PATCH v4 2/2] dt-bindings: arm: sunxi: Add itead,iteaduino-plus-a20 Date: Fri, 6 Oct 2023 11:01:31 +0200 Message-ID: <20231006090154.9289-2-julian.ribbeck@gmx.de> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231006090154.9289-1-julian.ribbeck@gmx.de> References: <20230929-given-making-f3fac6afb176@spud> <20231006090154.9289-1-julian.ribbeck@gmx.de> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: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ZseVUWkWbcHKS+g5FaRmFLDh ZWPhP9BfrROKVuUmi99mikdqeCEOiP/ERIX7GeAp2igN3yJO6rRhJXhmeKpoGGmNbSgok1C0t mJKGjL7hTHrkIkmgs+3Z34mw6WApFN5hZ4QTsUZrT/ckAcAhArkSX5wggEOdoHs+a9DiKVuAs RvM1gw9xbHDCFr+Qc8lA2QYAH5o= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Add itead,iteaduino-plus-a20 bindings Acked-by: Krzysztof Kozlowski Signed-off-by: Julian Ribbeck --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+) -- 2.42.0 diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index e4dd678f4212..25251ce4b60d 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -362,6 +362,11 @@ properties: - const: itead,iteaduino-plus-a10 - const: allwinner,sun4i-a10 + - description: Itead Iteaduino Plus A20 + items: + - const: itead,iteaduino-plus-a20 + - const: allwinner,sun7i-a20 + - description: Jesurun Q5 items: - const: jesurun,q5