From patchwork Mon Jul 30 12:31:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10548991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D087814E0 for ; Mon, 30 Jul 2018 12:33:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0725288C3 for ; Mon, 30 Jul 2018 12:33:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3CF5290DD; Mon, 30 Jul 2018 12:33:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6818B288C3 for ; Mon, 30 Jul 2018 12:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LaFXu/oxeTlRvyQo3HJ8XVpnPrR+E3ao8w80TGOR068=; b=qoyVPmmAySOpIQbonOCWrthbi4 RJCUXfOYJobtPstCzoMhZE+B7bFQq4VxVqIhULdbDTEK51P7OfqS/oti5tiWiGI71K3OAPagHH+Ml F0C3bMfZ76yQLVbCfFYz2fW1iadzRsoBgtABMR5pdCBIS25DoBYlPiS+LPeHJhdQKLpL65vqTG3b9 Xc9gYHNZ4ntZ1iFPudGefNgmiE2Y/wQfKJkzYtpYvOsL4pGdf63aTiApt6L55tjDAbhVa0z7KAgtI 4Sfd2rxPN/a8r4dFn3tDM1GaxAe10t94tjZ0SNt2RUmHo36v+mnmQG0/siK2eAW4pQu2l0d2I3+Gh H4NMzdMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Ma-0007wz-DX; Mon, 30 Jul 2018 12:33:24 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7MR-0007m1-Cg for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1425615AD; Mon, 30 Jul 2018 05:33:04 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14ADA3F802; Mon, 30 Jul 2018 05:33:01 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 01/19] arm64: dts: allwinner: a64: Add L2 cache nodes Date: Mon, 30 Jul 2018 13:31:19 +0100 Message-Id: <20180730123137.923-2-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053315_454191_DDE28C32 X-CRM114-Status: GOOD ( 12.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Current kernels complain when booting on an A64 Soc: .... [ 1.904297] cacheinfo: Unable to detect cache hierarchy for CPU 0 .... Not a real biggie on this flat topology, but also easy enough to fix. Add the L2 cache node and let each CPU point to it. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index d3daf90a8715..934d7e87fa08 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -88,6 +88,7 @@ device_type = "cpu"; reg = <0>; enable-method = "psci"; + next-level-cache = <&L2>; }; cpu1: cpu@1 { @@ -95,6 +96,7 @@ device_type = "cpu"; reg = <1>; enable-method = "psci"; + next-level-cache = <&L2>; }; cpu2: cpu@2 { @@ -102,6 +104,7 @@ device_type = "cpu"; reg = <2>; enable-method = "psci"; + next-level-cache = <&L2>; }; cpu3: cpu@3 { @@ -109,6 +112,12 @@ device_type = "cpu"; reg = <3>; enable-method = "psci"; + next-level-cache = <&L2>; + }; + + L2: l2-cache { + compatible = "cache"; + cache-level = <2>; }; }; From patchwork Mon Jul 30 12:31:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10548993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B9E6413BB for ; Mon, 30 Jul 2018 12:34:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9365290AB for ; Mon, 30 Jul 2018 12:34:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D8F8290EA; Mon, 30 Jul 2018 12:34:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 491E1290AB for ; Mon, 30 Jul 2018 12:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mVaYBMX8FEZ+Gd5bnJYVxhM3RRDx+TZDSz5KEzkonTo=; b=l3O/tZENEU5MN0oPu5R9V2Hooc crCpi+SVgqnxLntCRYPxpW/ZYUlmOi/EnYGxVjFbLHAwcH8hvCz1O8eH39vqZRK4n/3ZeEcIXVOMi I7iodHMk26CGDhASv+jRA1pI54Rm6Vx9hxHyQMnJd21/ki1FvtCMhYwtMF+Y7CZMwr2joLmlqY/cg fwxQxTbCL0KR+LjScDy7bSA8WRc3UTvJMIUehzbaW8mcsB08jisYDVLwEUR0ToUDMJB9aYXBKMIN9 aXDUCcOhMws+tlp6o+8QOTPKNByUBg0mHDtdiSYQ/PrvIYdsCTU/N59WQTZI9VejeR9eD8gzXBULc YFAelQGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7N8-00007n-Ts; Mon, 30 Jul 2018 12:33:58 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7MR-0007m3-TG for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:18 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 54FD51684; Mon, 30 Jul 2018 05:33:06 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 544483F802; Mon, 30 Jul 2018 05:33:04 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 02/19] arm64: dts: allwinner: a64: Add Pine64-LTS device tree file Date: Mon, 30 Jul 2018 13:31:20 +0100 Message-Id: <20180730123137.923-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053315_953019_DA3DE32D X-CRM114-Status: GOOD ( 15.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Pine64-LTS is a variant of the Pine64 board, from the software visible side resembling a SoPine module on a baseboard, though the board has the SoC and DRAM integrated on one PCB. Due to this it basically shares the DT with the SoPine baseboard, which we mimic in our DT by inclucing the boardboard .dts into the new file, just overwriting the model name. Having a separate .dts for this seems useful, since we don't know yet if there are subtle differences between the two. Also the SoC on the LTS board is technically an "R18" instead of the original "A64", although as far as we know this is just a relabelled version of the original SoC. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 9ffa7a038791..b7034327b28b 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts new file mode 100644 index 000000000000..72d6961dc312 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts @@ -0,0 +1,13 @@ +/* + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + * + * Copyright (c) 2018 ARM Ltd. + */ + +#include "sun50i-a64-sopine-baseboard.dts" + +/ { + model = "Pine64 LTS"; + compatible = "pine64,pine64-lts", "allwinner,sun50i-r18", + "allwinner,sun50i-a64"; +}; From patchwork Mon Jul 30 12:31:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10548995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A37B13BB for ; Mon, 30 Jul 2018 12:34:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED1AB290AB for ; Mon, 30 Jul 2018 12:34:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E12B6290F3; Mon, 30 Jul 2018 12:34:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 82DFB290AB for ; Mon, 30 Jul 2018 12:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=YP+pbejH9D4Pz3cLI1bJ2eEcWj9QsTTjEtIyAuz49ow=; b=mec4pXjEVp+3eocfwIAuTlvvrf 1dWClfM97RM02X4xWMZ9ZSDBkUoO5e26PwterSTUtTj5nAH03UTPopWeNg30ytIvw0+K0pQ03DQ/1 vEygSlhBFXhatoHJmffCDyY7L/KsVDyfXvIVUtGXJdC7V275ujUiMg1PjBg3iujhX/8emLX5BrKuv 1r0pzP9NsbYKhWstsK4TmxGLpBiIaRpriO3/QUWLXjmO6hmeEPbr5LGDblurVzU8sHY3xEqHCA2CS ndLaO2yIR6C9TlEVSHAYtjTwkU6272ZY13K3uq/PosGFVf1aPnhLASBSvVyBKLeo7y7yMCTku7aof aQGgC5IQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7NH-0000Gl-Ad; Mon, 30 Jul 2018 12:34:07 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7MS-0007mA-DF for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:18 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2F5E168F; Mon, 30 Jul 2018 05:33:08 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 93DB13F802; Mon, 30 Jul 2018 05:33:06 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 03/19] arm64: dts: allwinner: a64: Orange Pi Win: Fix SD card node Date: Mon, 30 Jul 2018 13:31:21 +0100 Message-Id: <20180730123137.923-4-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053316_456531_BE578D52 X-CRM114-Status: GOOD ( 14.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win has a microSD card slot which is connected via all four SD data lines. As the DT was not mentioning this fact, we got the default single bit transfers, losing out on performance. Also, as microSD does not have a write protect switch, we disable this feature in the DT node. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 1221764f5719..667016815cf3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -67,7 +67,9 @@ pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; vmmc-supply = <®_dcdc1>; - cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ + disable-wp; + bus-width = <4>; status = "okay"; }; From patchwork Mon Jul 30 12:31:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10548989 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17AB513BB for ; Mon, 30 Jul 2018 12:33:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03BB9288C3 for ; Mon, 30 Jul 2018 12:33:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9E5E290DD; Mon, 30 Jul 2018 12:33:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E34CE288C3 for ; Mon, 30 Jul 2018 12:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Rnc/Wqdof9Uu33Wja1i3dYenIL/HqmXXkYbABl+kRq8=; b=c2YDvQ4NfTgGKy+vs1uuX5Z93v njCdQYMbUWRdg5JWP8G8QvJNldax9TyAX7CuUtSAoPE14ZjXOaJK2iSg8j0iNktqjYzEEodMWLwR8 RtZE24RuWi425c6elYgJuVltQ051VSfT1DSHKDWQAi31tbZDR3ryEFBZ7p13bYgYtOBoKCwNAP56W hLsOVHn4/CPE1gbe/BS5PAhWcR8egWIVKq43UqiCp3cxNNuPVFBSp4Lk1TghQbGFFv5RLz/QU63lB 0MtATcdBhJ8fOzwVhTdDGR8fbcn8DWY3eSTRP7Jv1rMItDU00xyLNZbipnJtLmhq322YqXsp6xAPn kIKoPZBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7MT-0007pB-Il; Mon, 30 Jul 2018 12:33:17 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7MR-0007n3-89 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 21B841713; Mon, 30 Jul 2018 05:33:11 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 209E73F802; Mon, 30 Jul 2018 05:33:08 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 04/19] arm64: dts: allwinner: a64: Orange Pi Win: Enable USB hub regulator Date: Mon, 30 Jul 2018 13:31:22 +0100 Message-Id: <20180730123137.923-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053315_310341_3D883FF5 X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win has four standard USB-A sockets, connected to an on-board USB hub. The hub's and socket's power regulators are enabled by GPIO PD7. Add the regulator to the DT to enable the power supply. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 667016815cf3..a73489850d88 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -57,6 +57,17 @@ chosen { stdout-path = "serial0:115200n8"; }; + + reg_usb1_vbus: usb1-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb1-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + enable-active-high; + gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* PD7 */ + status = "okay"; + }; }; &ehci1 { @@ -204,6 +215,7 @@ }; &usbphy { + usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; From patchwork Mon Jul 30 12:31:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A884713B8 for ; Mon, 30 Jul 2018 12:50:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9357529906 for ; Mon, 30 Jul 2018 12:50:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9132F29845; Mon, 30 Jul 2018 12:50:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F254429906 for ; Mon, 30 Jul 2018 12:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=HMEqnK9YYhKOK8qlwsNQem4hHvKUGReRhXYyGea2WuM=; b=g6ANvR0QIgG9Kg8aA1+s1Ca+ak yFCGGorw9to/xyxkt/DmzV6nV0QgqppMrW1zqoC0OHC1UMZVT2qZ2ys0v+PYNt0RbIfzxE6WDEQ3H Gi477bkEV1enzoeviSXXVyd4fVB6yArWr/HqcRe1s9QetUpzCsTjy8WLSs7lR3uJDPe0rLwretV36 w90ox9nTCLwWadzdwRpv3cZb5upJr+1ir8YRSa4O2rgBbJwj5lODIYG+m0OqaRYi0EPXcPKXrxyrU 34gu35v8Kzd225/0/2Dj/ocIrrYY/ReJIBy8sw6gNXKjLIiq/Z4Fh+GctnHYzbytsMDSTqPlWrZXq 1o2NSZrQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7cY-0000hX-VG; Mon, 30 Jul 2018 12:49:54 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mc-0007ow-SB for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 60658174E; Mon, 30 Jul 2018 05:33:13 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 61ADF3F802; Mon, 30 Jul 2018 05:33:11 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 05/19] arm64: dts: allwinner: a64: Orange Pi Win: Enable USB OTG socket Date: Mon, 30 Jul 2018 13:31:23 +0100 Message-Id: <20180730123137.923-6-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_929076_2E11AC06 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win has a micro USB-B socket, connected to the SoC's USB-OTG port. Its power is supplied by the AXP PMIC, and the ID pin is connected to GPIO PH9. It can serve both as a host or a client port. Add the respective DT node to enable it. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index a73489850d88..c9cabe987c19 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -214,8 +214,13 @@ status = "okay"; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + &usbphy { + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; - From patchwork Mon Jul 30 12:31:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7F5ADA800 for ; Mon, 30 Jul 2018 12:34:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CA7F290AB for ; Mon, 30 Jul 2018 12:34:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60CE429547; Mon, 30 Jul 2018 12:34:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 09267290AB for ; Mon, 30 Jul 2018 12:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=iJZzkS3h1TxKUKL1tMhJLqatcf9sKV5sYQlmVQJ0PNk=; b=TZXCC8gZVPZVIZoQMOveTFFr5l HPl6pUpTt6J1JCqVrt+7g009UAXHnVhcJpTSfEyqglUbG2klBLlMuFRH6zUGEC7ncsjZHiN0zcxfD 7iDTAgzEvuPPfeiB4w15JVENLoZ1uJsVr6/UQgB3h8ZIgRsBZUkwVzhIi4LTDrI0b7RBJeZj/c8vF 7OgQIUGUC/McQO8/QEJsWN5xgd7SfPWwd6oJDv/Qr2bGMQs1V6/xH0ZIrzFADCBLF9WwdEvj3J82X sWi6u82YJODHq5m9EDieFYmu9a2O6cNADYd3pHPMZcvKby6eSGcqMOZTpOuS92UvPiW4sbkBMEZ2C /5HZZ7WQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Nr-00014c-Jm; Mon, 30 Jul 2018 12:34:43 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mc-0007ox-S6 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:32 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A1C3D1993; Mon, 30 Jul 2018 05:33:15 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A18053F802; Mon, 30 Jul 2018 05:33:13 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 06/19] arm64: dts: allwinner: a64: Orange Pi Win: Add Ethernet node Date: Mon, 30 Jul 2018 13:31:24 +0100 Message-Id: <20180730123137.923-7-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_833747_BC0DFA9E X-CRM114-Status: GOOD ( 13.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win has the usual Gigabit PHY connected to the EMAC. Its power is controlled by GPIO PD14. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- .../boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index c9cabe987c19..0cadcd59edd9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -1,5 +1,6 @@ /* * Copyright (C) 2017 Jagan Teki + * Copyright (C) 2017-2018 Samuel Holland * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual @@ -51,6 +52,7 @@ compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -58,6 +60,17 @@ stdout-path = "serial0:115200n8"; }; + reg_gmac_3v3: gmac-3v3 { + compatible = "regulator-fixed"; + regulator-name = "gmac-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + enable-active-high; + gpio = <&pio 3 14 GPIO_ACTIVE_HIGH>; /* PD14 */ + status = "okay"; + }; + reg_usb1_vbus: usb1-vbus { compatible = "regulator-fixed"; regulator-name = "usb1-vbus"; @@ -74,6 +87,22 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_gmac_3v3>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; From patchwork Mon Jul 30 12:31:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA626A800 for ; Mon, 30 Jul 2018 12:35:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D65A8290F3 for ; Mon, 30 Jul 2018 12:35:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAB7D29106; Mon, 30 Jul 2018 12:35:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B803D29321 for ; Mon, 30 Jul 2018 12:35:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ytqKIQAFt90vBRCf8dLG0mmKatNqKRQDCzlrcw6gQOU=; b=DzhJoNXTxbjdK1DygWiFZ4AFHE MLtWrB6oTGQNRHrq8DxEMdzZvXltk/eOxiWBl5RQB81c/u9gNMfJuaGrIOpm5+94nDB/dBfe7MVbV 3H2LV9za8lsWI/nNXUXqlVrDrqDPBhituE4swOCbBJxfm1NtrIHvW8/TGJSYxVjUx3ZRWoEKXnlul LruZm+1OPvtx/6WfozS1jQTkM+5EIKz0A+kpKPpWnmqauH/D1zrnYZh9B6rHBO1mGOp4cp7W0/nxY /1YJomMQLRQtwSkV7Pr1uzJg9xjXLDlgV1nkcm1JFje7NKmsKDPq976hggKswrWKk2TNZFPntw3cx t6yvUU2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7OU-00021G-TF; Mon, 30 Jul 2018 12:35:22 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mc-0007pf-SC for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E0B1A15AD; Mon, 30 Jul 2018 05:33:17 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E1D243F802; Mon, 30 Jul 2018 05:33:15 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 07/19] arm64: dts: allwinner: a64: Orange Pi Win: Add UARTs Date: Mon, 30 Jul 2018 13:31:25 +0100 Message-Id: <20180730123137.923-8-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_963152_C61AAC01 X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win exposes several UARTs on header pins, and connects one to the on-board WiFi/Bluetooth chip. Add the pinmux definitions to the UART nodes, but keep them disabled. Enable the UART1, which is wired to the Bluetooth chip, and add a serdev node. There is no binding for the BT8723 yet, so leave this mostly empty for now. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- .../boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 0cadcd59edd9..e9a5640076ad 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -54,6 +54,10 @@ aliases { ethernet0 = &emac; serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; }; chosen { @@ -237,12 +241,41 @@ vcc-hdmi-supply = <®_dldo1>; }; +/* On debug connector */ &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; +/* Bluetooth */ +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +}; + +/* On Pi-2 connector, RTS/CTS optional */ +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + status = "disabled"; +}; + +/* On Pi-2 connector, RTS/CTS optional */ +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; + status = "disabled"; +}; + +/* On Pi-2 connector (labeled for SPI1), RTS/CTS optional */ +&uart4 { + pinctrl-names = "default"; + pinctrl-0 = <&uart4_pins>; + status = "disabled"; +}; + &usb_otg { dr_mode = "otg"; status = "okay"; From patchwork Mon Jul 30 12:31:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549003 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 548C614E0 for ; Mon, 30 Jul 2018 12:35:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44AF0296BD for ; Mon, 30 Jul 2018 12:35:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 327C829A04; Mon, 30 Jul 2018 12:35:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D09F229B28 for ; Mon, 30 Jul 2018 12:35:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=NsbfRS6EbIN7LCOgaPpmNPn0xKAR4E6+X9UPyg1lnhA=; b=rAqyC7vSfTK7cC8hkDXWPktxIH 6KHIo3h9Jwi0PUewndCZweKDiNa6nrFzCYR957FfB6q8AZwrHlFnFQxc/xLW4CDkdEp8beO9jkSUl iI3E/oNVJqDEIqebNtPYZWO2Pntd5ZArXVE9fyGMgOA69ZOTvz3aILVXsQRIlLWIMaS/CEWOwqHcg 5tz8QKETuAAFneuQJ9b+LaQhjXsj3S1PK5iznMaNooxIa2K+ljq90egcqmB1bPWcSXugF4qfdX4px 4thKG2IlhrCNQRELbAUsSqAeoArMeHdbNmdggjL+0rBUv/CXKjB65szOqA0A+VN8QKK+dVGuazz2J RgMnGyXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7O4-0001LH-3v; Mon, 30 Jul 2018 12:34:56 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mc-0007sC-S9 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:36 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2B8C1ED1; Mon, 30 Jul 2018 05:33:20 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2BEF53F802; Mon, 30 Jul 2018 05:33:18 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 08/19] arm64: dts: allwinner: a64: Orange Pi Win: Add serdev BT node Date: Mon, 30 Jul 2018 13:31:26 +0100 Message-Id: <20180730123137.923-9-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_719728_554E89C3 X-CRM114-Status: GOOD ( 14.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Orange Pi Win has the RTL8723BS WiFi/Bluetooth chip soldered on the board, with the Bluetooth part connected to UART1. At the moment there is no mainline driver for the BT part yet, although there is one in development. However as this does not include a DT binding, we just go with an empty stub for now to denote that the BT chip is on that UART. This can later be filled with the right properties. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index e9a5640076ad..87c32635085b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -253,6 +253,9 @@ pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; status = "okay"; + + rtl8723bs-bt { + }; }; /* On Pi-2 connector, RTS/CTS optional */ From patchwork Mon Jul 30 12:31:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10548999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DCCED14E0 for ; Mon, 30 Jul 2018 12:34:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB651290AB for ; Mon, 30 Jul 2018 12:34:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFFC8290FE; Mon, 30 Jul 2018 12:34:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6D846290AB for ; Mon, 30 Jul 2018 12:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=MllIBWVdIZKoWu7sliDt0hdJlcQFDhDqPlJzSFHKDtA=; b=JF7t5AA85J5LeYG+ps4ygG/WKc KDKi+rsWnHwlHQEFTASDbPZ3Wz9pD5FE9dWvfFWWM1Jdq8CJVA+wHDxGwgnSQgoIZiSTWdZfBgkLI 4fO6zdERmkJBMNizvaxdTn39Cg4kQbHFuKJWAVDoDKOrUn4N999p0qZ4YTNXjNRzPXxO+/B5ZboBh usZjGHbPCXh/L5wuTWZVnK6qJCtW62CbSvatsAoEka7GxvsqoEVk5CbHPvO2IX1NRaeJVbcyv8uNx xH9f+QUpfh+XdK2Ab0WIsZ10SGErNBhTaIcRnyCxBNg58H90shko6S+ztquRL1zg2FZVVjfdVK1mO Mz5Bxrxw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Nf-0000nz-Hq; Mon, 30 Jul 2018 12:34:31 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mc-0007vB-SE for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:32 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6DA451684; Mon, 30 Jul 2018 05:33:22 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6BE363F802; Mon, 30 Jul 2018 05:33:20 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 09/19] arm64: dts: allwinner: a64: Orange Pi Win: Add LED node Date: Mon, 30 Jul 2018 13:31:27 +0100 Message-Id: <20180730123137.923-10-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_897376_86504771 X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win has a green status LED, add the DT node for it. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 87c32635085b..8e2b8ab9e149 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -64,6 +64,15 @@ stdout-path = "serial0:115200n8"; }; + leds { + compatible = "gpio-leds"; + + status { + label = "orangepi:green:status"; + gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + }; + }; + reg_gmac_3v3: gmac-3v3 { compatible = "regulator-fixed"; regulator-name = "gmac-3v3"; From patchwork Mon Jul 30 12:31:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549045 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39CBF13B8 for ; Mon, 30 Jul 2018 12:49:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A03E299E6 for ; Mon, 30 Jul 2018 12:49:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15F80297C5; Mon, 30 Jul 2018 12:49:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BCD8F299DF for ; Mon, 30 Jul 2018 12:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=l7NZNZaf4XlY39+/qA4Z5rsZDP9+sY+DejffqJlu8es=; b=Fgz151PeCh9RyI0GRFKjjqHXlW OCe3CDRRG19CKNH0HO1JVjfO1g87kq8J7lODimewnbTYiPLZuHyR3euuok8oI4912lYwC1s921fnk Vywfzk+kOxHjZnDCxzftRhfD9VeoRmSZKl4iK9KBOwR/9oQG6C/ZEa0QOLMpybMkyziso7n93PETH HqRey3V0FLAsrgNQC7TPIgotpYJsNgxyfFIkv4udAsnEe2AOCq+ovucGB/bfWqGUaV6eHPcnnOxPP n7Wpne+ugqbQU6PpEyY9zSsmD4cRQ2A9wQ+Rf2qMrUoOZISCC5NrfnmZyssLo6r+27lxdIBxs1oL7 D6DiDrDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7cZ-0000hv-Eo; Mon, 30 Jul 2018 12:49:55 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mc-0007yS-S7 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD7861713; Mon, 30 Jul 2018 05:33:24 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AD9233FACB; Mon, 30 Jul 2018 05:33:22 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 10/19] arm64: dts: allwinner: a64: Orange Pi Win: Add SDIO node Date: Mon, 30 Jul 2018 13:31:28 +0100 Message-Id: <20180730123137.923-11-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_837273_CD7C7073 X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win features a soldered WiFi chip on the board, connected via the SDIO interface. Add the required DT nodes. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- .../arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 8e2b8ab9e149..1cb4d3611c6c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -94,6 +94,11 @@ gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* PD7 */ status = "okay"; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ + }; }; &ehci1 { @@ -126,6 +131,17 @@ status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo2>; + vqmmc-supply = <®_dldo4>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + &ohci1 { status = "okay"; }; From patchwork Mon Jul 30 12:31:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD24713BB for ; Mon, 30 Jul 2018 12:35:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABE0D290F3 for ; Mon, 30 Jul 2018 12:35:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A05CE29181; Mon, 30 Jul 2018 12:35:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4E6EF290F3 for ; Mon, 30 Jul 2018 12:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=MmM4oMZx5bvyoqTXmh+BeR/hefgvYcMtyi38L27DCmo=; b=ThOaUZbkPID65xWjHRalM7TIjg ygiZNBz8+WUF8yW59xHmcKNDoeoX5mfdEuSRt88kI470cT0Sx6QeUuHmYkoHNqdfQjVmja1nQP/5Y cVNVVM/eifpGuPJPL6zFJcLLx1XYftusxOrc7uU5vWLr7eYbtHETvyLHJQPGSkKJIn7zXt/ALK1xQ ewJ4+77Nt3SaARxxZg3E86NZkkDyIc4UY/B06fUClX7WDUx4Tq8w3QcO++OGqbuMU7wh9iMXJb1oU ram2Uh7ANMfdIDnwK7hs4RHJiF60HMRTBVr8pdjmGXcob83hlwp1KYRPXn0LGzjYKXHDJmdK/8J50 fBvkV38Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7OH-0001ex-8g; Mon, 30 Jul 2018 12:35:09 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Md-00082n-95 for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EE110168F; Mon, 30 Jul 2018 05:33:26 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EFCF23F802; Mon, 30 Jul 2018 05:33:24 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 11/19] arm64: dts: allwinner: a64: Orange Pi Win: Add SPI flash node Date: Mon, 30 Jul 2018 13:31:29 +0100 Message-Id: <20180730123137.923-12-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053327_963818_373B070C X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win comes with 2 MB SPI flash, add the node. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 1cb4d3611c6c..3f9c5c8b0264 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -266,6 +266,18 @@ vcc-hdmi-supply = <®_dldo1>; }; +&spi0 { + status = "okay"; + + spi-flash@0 { + compatible = "mxicy,mx25l1606e", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <80000000>; + m25p,fast-read; + status = "okay"; + }; +}; + /* On debug connector */ &uart0 { pinctrl-names = "default"; From patchwork Mon Jul 30 12:31:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549017 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 81E0714E0 for ; Mon, 30 Jul 2018 12:37:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7086529343 for ; Mon, 30 Jul 2018 12:37:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6465C29613; Mon, 30 Jul 2018 12:37:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14D8729547 for ; Mon, 30 Jul 2018 12:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xkmMcFi8SPFVgnU8XbXuwX0rBQIOQ4ow4snN4N9Uu9A=; b=qrrqK6s7CQ6JNSlS9p9HvNIa6D RO0zxzbJ0JPHYGOJXqqFsQR6RqnwaFUX7wEIjbRlrD9cN7Ul+qc0x+mWMaR5dMiUHUtESbNu5OxMX 2ev/5it+HjPXEXuJy4+8VRsHkJ2v0kWoULMnlCYot/t7QAoOanZ5HD837LzBy+q98qCI2023RpfAv uDOeoTo91NBBF+lhjunrgrL4wY8wdvTnQTMiTvajNg7sIU60GbxCkKFs6fRDY89yf7WeDZ9O6wqaM EEPZcAuk+1usGpUUq8nBoIVmppRAYDx8QtVT6a40eqfsbwHNnMmQpPV86NujE6UboadxjdNHqibXF yalKEZHA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7QA-0004tQ-LG; Mon, 30 Jul 2018 12:37:06 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mv-0008W5-Lw for linux-arm-kernel@bombadil.infradead.org; Mon, 30 Jul 2018 12:33:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dRzsAvaiVfr9R3UsDuqhoyAhkvJDmydHsUR107RaX3U=; b=GXhe7olPUPRaZrJ/u0yble1Hr uJyl200xqXWmohycZArj/ZrwquWScT/6lCDN9fivdb3qgqggnjcqOJb7u61hI+1KCfFB/7zEZfIhU 4BEmuVH5Zn3VTDjTHRIpHR/3gPwb6XkV++i0xKa5DCfIVWQh6r7V4DziDa2LwHzV1lFiTIUUlq62/ sHZXdpLtuNDY4/Zg30jfP18NucNX0GDt03QdDbdAt5x3+YtygqJ85k5dAUlBkU9StWg4F5+Y5tGz/ CSHLf93RlcS/vYwbHUFAy4QjIU0Xf2EWMogtmG490LkJdU9H9e/ewhIuPbjggIZ1HOomh8p8CgGz/ WG33IOttg==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Ms-0005wo-IK for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:43 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 399071AC1; Mon, 30 Jul 2018 05:33:29 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 39A343F802; Mon, 30 Jul 2018 05:33:27 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 12/19] arm64: dts: allwinner: a64: Orange Pi Win: Adjust CSI power rails Date: Mon, 30 Jul 2018 13:31:30 +0100 Message-Id: <20180730123137.923-13-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_083342_688167_7C37900B X-CRM114-Status: GOOD ( 13.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Samuel Holland The Orange Pi Win board uses the AXP's ALDO1 power rail to drive the VCC-CSI line, which, according to the schematic, needs to be set to 2.8V. Also the ELDO3 power rail is connected to the CSI, with somewhat unclear voltage requirements. Add this regulator and allow the voltage to be set between 1.5V and 1.8V, which are the voltages mentioned in the schematic. Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 3f9c5c8b0264..63812576449f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -160,9 +160,8 @@ #include "axp803.dtsi" ®_aldo1 { - regulator-always-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; regulator-name = "afvcc-csi"; }; @@ -240,6 +239,12 @@ regulator-name = "cpvdd"; }; +®_eldo3 { + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1800000>; + regulator-name = "dvdd-csi"; +}; + ®_fldo1 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; From patchwork Mon Jul 30 12:31:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E66CE13B8 for ; Mon, 30 Jul 2018 12:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D10EB29B9F for ; Mon, 30 Jul 2018 12:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF0AF29AED; Mon, 30 Jul 2018 12:50:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6389C29BA6 for ; Mon, 30 Jul 2018 12:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6Spbe1T4+T6e/aQVhqH8lQbupw9z9TocOS2W9osjg8E=; b=RSMtP1KAFZE4OmHCrD5QMpEjU7 rnWhejpzBoD3v2AJiaXFrJg2Sx8q0lfbYbEov/ntISF7hUO8thRsGXLRM1rTOFK1xq6WnID38HSFI H7galgHmk8lm0gF4kS3wQ+QgM+OMbGpYlUOgabcr6/6X4CCsiNTJg5yjvvGe5CDciWkUdkC+katNi B9uQa5PNiduW7ShOL9+D5yJcdEhcicLe8f+ZgEUAf/6PpHUmRkRm65DmWvmy6+IgMGR8vRgr2j1VU xApznnYKfxdXnPJghAQl6zrZ97/pkP40ocEVtgREWXBuWPW9NQlTZHsGrEbdCZtTMFsSyooJXNomq mI+D7BVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7cj-0000yN-RX; Mon, 30 Jul 2018 12:50:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7ca-0000YW-Pv for linux-arm-kernel@bombadil.infradead.org; Mon, 30 Jul 2018 12:49:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tFVrUlPoGP8SlHucPt3wxhy/+cAjhAGVyJWa2CVYIgs=; b=EjiEiD0/bcvGmFnqn+IBcWzAQ hPMP6tbIHkddRBFClHCOJlhw3ImG8misiBNAlIS+9e4hjAAwUy6dfCBxBuz8sKxn2vIbmzur0STeU kiDZG6fj5EvCIZ8JCpZi+KRXgbwOoZs5N89lECIgLPF5lAIlciSKKjgmyadjLrnc8HQMt//3h/NZ9 0t6bm9kUGaGYKezfdmATQqtbi9TpGfjI1OjG46jUC7XLfnrCoy0F525JQbfcguFsHrYWh9OXjoNe2 a7ZEV77HYlyW+NILHKgovuidT5jh8aiQLGmXoF6WWTfg/ph4YJKzEK/L5pkvAfsqshQeIx0kAQpGi huIYSESHQ==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mt-0003ne-3R for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 86AA51B96; Mon, 30 Jul 2018 05:33:31 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A5103F802; Mon, 30 Jul 2018 05:33:29 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 13/19] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Date: Mon, 30 Jul 2018 13:31:31 +0100 Message-Id: <20180730123137.923-14-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_133343_370939_4B007F7E X-CRM114-Status: GOOD ( 12.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Olinuxino board uses DDR3L chips which are supposed to be driven with 1.35V. The reset default of the AXP is properly set to 1.36V. While technically the chips can also run at 1.5 volts, changing the voltage on the fly while booting Linux is asking for trouble. Also running at a lower voltage saves power. So fix the DCDC5 value to match the actual board design. Signed-off-by: Andre Przywara Tested-by: Martin Lucina --- arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index 3f531393eaee..b3f186434f36 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -142,10 +142,14 @@ /* DCDC3 is polyphased with DCDC2 */ +/* + * The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal + * 1.35V that the PMIC can drive. + */ ®_dcdc5 { regulator-always-on; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; + regulator-min-microvolt = <1360000>; + regulator-max-microvolt = <1360000>; regulator-name = "vcc-ddr3"; }; From patchwork Mon Jul 30 12:31:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549049 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 01D9D13B8 for ; Mon, 30 Jul 2018 12:50:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E499E29A9E for ; Mon, 30 Jul 2018 12:50:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D676D29ABA; Mon, 30 Jul 2018 12:50:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52BC929A9E for ; Mon, 30 Jul 2018 12:50:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=BhnRQ8wceyfLeGRTk2krBEErHQcdpG07wT96kVJ0GKs=; b=TUgcD5JBo/VCZRKEofPN0Pv92U FNj3dqf2dS8OyL/VKoF2T5NDt3q/QDRwSR/jVN/httUBbDkdNpSzoJmgXHnLJDVU5Gc4BSr/4xLQ4 q3F8s4R4W0A3SmJvxYVduYbgvTLpGI2VCBNEzEJq49WBkpY+j5yb+A2HseTGkOUgaPUKtU1sXjMFZ ffCe+ss1TW8yuCNTnuMjl0yr79FV8V9gshFZcJ0ay2ZHVvLP7g825t+ggIh9j7QKKx3HF3fgXrvMZ We9/T3Mv7Lmx3ryhm60PRxPLjusKW21bdU3NKQuZaHjJdj6hqfI2fk9Ds4+fRJNdx+FTE8exahDvx ZHwHPw6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7ce-0000n0-74; Mon, 30 Jul 2018 12:50:00 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mj-0007vB-Rw for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:38 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CA6741684; Mon, 30 Jul 2018 05:33:33 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C900A3F802; Mon, 30 Jul 2018 05:33:31 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 14/19] arm64: dts: allwinner: a64: Olinuxino: add Ethernet nodes Date: Mon, 30 Jul 2018 13:31:32 +0100 Message-Id: <20180730123137.923-15-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053334_547240_CDECDC2D X-CRM114-Status: GOOD ( 11.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the DT nodes required to enable the Gigabit Ethernet on the board. The PHY is powered by the always-on power rail VDD_SYS_3.3V (DCDC1). Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index b3f186434f36..26075b9a76e3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -51,6 +51,7 @@ compatible = "olimex,a64-olinuxino", "allwinner,sun50i-a64"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -64,6 +65,22 @@ }; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dcdc1>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; From patchwork Mon Jul 30 12:31:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549019 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C593B14E0 for ; Mon, 30 Jul 2018 12:38:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B378C298BF for ; Mon, 30 Jul 2018 12:38:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A752F29906; Mon, 30 Jul 2018 12:38:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 25F66298E4 for ; Mon, 30 Jul 2018 12:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=t4HPcUWIRyLaPhuIhHhskWdyB3mMOk2JTnd4YZsM0+U=; b=ddDDhQO0UtW4cKMp0yD9lzGYGi 1oTzJU1cFuarFk1IyQV5krfVzJx2wsxgcgZ/qWLqc57Fo5S4Z6fMSY/BrdNx3UVwmeePVnjKpebux 05uR44mdqi3RN5lRGI6IGpZdCZeKyNrnY8ud2wPyOzQc6uOK4pVzaAwkeMdG/Zi/Dlfhs4ZJs2TWW aEPjxbwiure32Dd3dvgr9NT2ds+ql5Bbq38EMeK5QNFwzRHEmJmMH0lBJjAHPaRvQWV8k1C/MXYAm rbKmPzuyJuAWCJkpiMyTb4+H7tL7bE20w8qjnXZVhmCoR5GVjyFEHi13FFvzUoC6e9fEnz1QwJ05d DF2sZaeA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Ru-0005RB-3E; Mon, 30 Jul 2018 12:38:54 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mx-0008W5-6t for linux-arm-kernel@bombadil.infradead.org; Mon, 30 Jul 2018 12:33:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d2L/yFVLo9dhqSbFpqCVIrUSVdP0e2GNgQ96yWuhQxE=; b=YDvTSPfiIh/wn4lcYJ6tX798j h36yeDeuuWFh2LKikclCIT33h9l4rSSbuKAKm+v3OqCsP0GOhwwi7X3JzZsihyZ3h3OxfGp/ZGn0o CHMyetngL0WGp6A3MUsUD0Nzv0oJnPjl2RMfKZXTp87t/6JKmv1y6kdLlPBpMInML04zcQf3In2jY YCp1VG8XVzxcfYnopamCGLdTDueIbuOYcV+ngMYSmDJ1SIsTjTp1PROIBvfUHCrqxoIO0IYAHEG8q rRUCbxd1IU7BoMTptdpR3TgbbKj2XdOQimPKY+mZLBBYYyrAXpyOmkBbQt82zQ3gWxdkgxBQgoSV8 bHkViLYoQ==; Received: from foss.arm.com ([217.140.101.70]) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mt-0005ws-2G for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 15BB41993; Mon, 30 Jul 2018 05:33:36 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1674B3F802; Mon, 30 Jul 2018 05:33:33 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 15/19] arm64: dts: allwinner: a64: Olinuxino: enable USB Date: Mon, 30 Jul 2018 13:31:33 +0100 Message-Id: <20180730123137.923-16-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_083343_203566_F2296AFE X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Olinuxino has two USB sockets: USB0 is connected to a micro B socket. As it has the ID pin wired and the VBUS line connected to the PMIC, we describe it as a proper OTG socket, which switches between host and device automatically. USB1 is connected to a normal USB A socket. PG9 enables the power line, so add the required regulator as well. Signed-off-by: Andre Przywara --- .../boot/dts/allwinner/sun50i-a64-olinuxino.dts | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index 26075b9a76e3..a1c2f06ed474 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -59,12 +59,31 @@ stdout-path = "serial0:115200n8"; }; + reg_usb1_vbus: usb1-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb1-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + enable-active-high; + gpio = <&pio 6 9 GPIO_ACTIVE_HIGH>; /* PG9 */ + status = "okay"; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ }; }; +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + &emac { pinctrl-names = "default"; pinctrl-0 = <&rgmii_pins>; @@ -109,6 +128,14 @@ }; }; +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -117,6 +144,7 @@ reg = <0x3a3>; interrupt-parent = <&r_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ }; }; @@ -201,6 +229,11 @@ regulator-name = "vcc-wifi-io"; }; +®_drivevbus { + regulator-name = "usb0-vbus"; + status = "okay"; +}; + ®_eldo1 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -244,3 +277,15 @@ pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + status = "okay"; + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ + usb0_vbus-supply = <®_drivevbus>; + usb1_vbus-supply = <®_usb1_vbus>; +}; From patchwork Mon Jul 30 12:31:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 363AA14E0 for ; Mon, 30 Jul 2018 12:36:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 251BC29181 for ; Mon, 30 Jul 2018 12:36:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18D0C29547; Mon, 30 Jul 2018 12:36:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9604429181 for ; Mon, 30 Jul 2018 12:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DahsRA/msfuIY1gbwKLSwrWiXGwqTZBz5sa5A1JzZzw=; b=s6RoCDoCdPLdVFN4eBp6UflA3H eJnmt/cod5TKhRBbm3SProyWkidSf4YBfechfNZFuARHWCr2S1Xjr3sdAvSNV6Euw9FWWnFvcAen6 uaa9Nsvj0L4I/I7buMOm38XYHUbf+gQsHdfx7DkyGX7H7m46HAYqd4OF6iHTXIgjcIZgtstmM4DWe rSsA8uJEgi8TP98v2MfpJaVgqkvXOs+ni8NQ9JijwXN34lXnwczqArPhHxS3Tjivt7cu6yG6qOR6W NiUe2Wde4SYO9+WLyIoFCeQmgv9p/v6lON5AZ5iNXe4BmxFeAEyoAwgXIv3aagxQqt9v565Wn9xtK BSfUIEVw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Pn-0004KO-86; Mon, 30 Jul 2018 12:36:43 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mo-00082n-Dj for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:42 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 54684ED1; Mon, 30 Jul 2018 05:33:38 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 54FEE3F802; Mon, 30 Jul 2018 05:33:36 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 16/19] arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage Date: Mon, 30 Jul 2018 13:31:34 +0100 Message-Id: <20180730123137.923-17-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053338_972397_B831372A X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP According to the NanoPi-A64 schematics, DCDC1 is connected to a voltage rail named "VDD_SYS_3.3V". All users seem to expect 3.3V here: the Ethernet PHY, the uSD card slot, the camera interface and the GPIO pins on the headers. Fix up the voltage on the regulator to lift it up to 3.3V. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index 98dbff19f5cc..5caba225b4f7 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -125,9 +125,9 @@ ®_dcdc1 { regulator-always-on; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-name = "vcc-3v"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-3v3"; }; ®_dcdc2 { From patchwork Mon Jul 30 12:31:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 70F5913BB for ; Mon, 30 Jul 2018 12:36:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 613D12958A for ; Mon, 30 Jul 2018 12:36:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55467295C4; Mon, 30 Jul 2018 12:36:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 007A429547 for ; Mon, 30 Jul 2018 12:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=C2DnJ7Ln7kNncAKKxjR2NnmrLYiEGcvndlSjNBti3qI=; b=bThlGgdoadDYkdaCfY52l/9PFc +wpiEA4sA5MD3NtLB+wJDh5kfQ/t7DtJ0oRyRn6QHiYT6KGnl5zU4bM3zOP87yCnI9IPW5IPbACBW A2qnB8xPjIjnfn4c/F+67YKS57NipRcRu1MmqWEip7L14Dmf45ik6+J96ywudb7IzGtr1/uNlD0tg elr5pCG5F5H2ilYp0O6GUG6lt9JPpHhPXpN3GMaMXexSsmO4Brl81VQiP+DL2dL/zTRWMH44rtKA3 QLbCibLXwM1sI0RA5TkeHpwv08EppfeT7zPrI4qKz8k6V9x/lCawuBjhpMfUvFaj8cJqGcnOgHLKX 99nZLLRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7PR-0003hh-Fu; Mon, 30 Jul 2018 12:36:21 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7N0-0008QT-QH for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:53 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 955DD15AD; Mon, 30 Jul 2018 05:33:40 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 940873F802; Mon, 30 Jul 2018 05:33:38 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 17/19] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet Date: Mon, 30 Jul 2018 13:31:35 +0100 Message-Id: <20180730123137.923-18-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053351_038052_4A8F412F X-CRM114-Status: GOOD ( 13.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The NanoPi-A64 has the usual Realtek Gbit PHY connected to the EMAC, so add the respective nodes to the DT. The PHY is powered by the VDD_SYS_3.3V line, which is always on. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index 5caba225b4f7..1eba1324e5b9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -51,6 +51,7 @@ compatible = "friendlyarm,nanopi-a64", "allwinner,sun50i-a64"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -67,6 +68,15 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dcdc1>; + status = "okay"; +}; + /* i2c1 connected with gpio headers like pine64, bananapi */ &i2c1 { pinctrl-names = "default"; @@ -78,6 +88,13 @@ bias-pull-up; }; +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; From patchwork Mon Jul 30 12:31:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6416013BB for ; Mon, 30 Jul 2018 12:37:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5262329343 for ; Mon, 30 Jul 2018 12:37:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46299295C4; Mon, 30 Jul 2018 12:37:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E4E8929547 for ; Mon, 30 Jul 2018 12:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=CTPazFGyDjIP2QveFEylMboXnNG5OCQmc3OPKIcviJc=; b=BOOrp8lzK+yr7zY9ecJuEtke8d GjkItix68bD/jM3DEDjQGa7gF5JfcrX36lBQcORKmJ2ud23xK+Ot+sPD/0Z8FY7e4xRvGmUnXwuYD qxBTut3aMYlKwkoRKj3YVRPLPWjFqs1TNBWsFzCSnezT7e90dkOgBLYRGUFSXm6WEEs+oq2yjVRTj ffKosStQP4hkjoRVxIsADzt4DXYcQzGjozYoN7bAkisGc70K4RQ7MrsY3Sqi5buwUCDoPSTz/69ed eBsYFjGx+JSEdxZoKuEX5fqbTeKb3aBc9Af32pZMw1NOI6Qc/lpPfU11PQ+1S6zpve7yNdGvtkPvp r522gwGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Pz-0004eA-MR; Mon, 30 Jul 2018 12:36:55 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Ms-00082n-TP for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D4580ED1; Mon, 30 Jul 2018 05:33:42 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D57DF3F802; Mon, 30 Jul 2018 05:33:40 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 18/19] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi chip Date: Mon, 30 Jul 2018 13:31:36 +0100 Message-Id: <20180730123137.923-19-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_053343_077291_7A142D18 X-CRM114-Status: GOOD ( 13.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The NanoPi-A64 has an on-board WiFi chip, connected to the usual MMC1 SDIO interface. The AXP power line is the always-on VDD_SYS_3.3V, but it uses pin L2 to enable the regulator. As the actual WiFi driver is not in mainline Linux, it doesn't have a compatible string, so we omit this from the node. Add the respective nodes to the DT to make it usable. Signed-off-by: Andre Przywara --- .../boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index 1eba1324e5b9..5e3dc2666d0f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -58,6 +58,11 @@ chosen { stdout-path = "serial0:115200n8"; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &ehci0 { @@ -105,6 +110,24 @@ status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dcdc1>; + vqmmc-supply = <®_dldo4>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + rtl8189etv: wifi@1 { + reg = <1>; + interrupt-parent = <&r_pio>; + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ + interrupt-names = "host-wake"; + }; +}; + &ohci0 { status = "okay"; }; From patchwork Mon Jul 30 12:31:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10549009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C7FB13BB for ; Mon, 30 Jul 2018 12:36:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C47A290F3 for ; Mon, 30 Jul 2018 12:36:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 302E429321; Mon, 30 Jul 2018 12:36:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CDD22290F3 for ; Mon, 30 Jul 2018 12:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=fovvs920FRMnR30o9DiPLEpWftA5aMEFxh9qxVRvtoI=; b=a/iPSUZ1gykhlG7C79IquHT70X 2LaKVi17Ae98rgxiigazC/DnF4q3ZDyveRqvajeyHiZy5/c2Mc98+385IdroIgMOlEjfkbKJkVVn0 im3Vma7/Vn/Niwt7jM+71sMHpTPcQxhyGP52Pxc/DpjKLbwjbF0MgG3NcL5lmjeLxa2nZKvETexuB 24zSbSs/r5CkKXDhmSnsMtsOKZpf7can+MwC3lqIm97dXHOU8Vf37B/q3yOBZkUdb/mp74ppwyf6Y UzvFa/SPmfoMbiYDmoAQuVg4O7wzCWRomDZzjmR4xJrLWcEezMTfQkqQd5arVl/zFdCe3a8KOa8xJ iEDfXAEg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7PH-0003Qe-Co; Mon, 30 Jul 2018 12:36:11 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7My-0008W5-Mh for linux-arm-kernel@bombadil.infradead.org; Mon, 30 Jul 2018 12:33:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yyB6434gcrwnvdropAqgv9ibGz56SQkZOykEE6aNBDQ=; b=yDKIaryIOg/hGsHlETZnW9wc/ LcdHkkl+lUueKnOfDTOJABwfNceFW0ujI7UYqiYcpSiZpRl5H+DCA4g/G9wUsxtTdHzqJQSrKZuwx qgcO5zA3HBUfRyBNPlHpBrqlDHlDVYAc/2w9NsBI1xV5Dp/Mp325WK5e9JTLWPLQRvNPoIrAvhVGj KCpbvqpDHfjp93KWSpmikc/iZFkwCv8VC8QQRdNgMvy17jmrGXj/3+3q6VtqmHR0kL/1hw5SNOWMv 77MP/lqubcBgAG7KZUTmAsMyfDt0/czs5TS0VwbEUgYs6jiT61HoB2gksGlE5KyaWIpxWEZPouMi6 OlMHEtXQw==; Received: from foss.arm.com ([217.140.101.70]) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk7Mv-0005ws-7Z for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 12:33:45 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1F80F168F; Mon, 30 Jul 2018 05:33:45 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2021E3F802; Mon, 30 Jul 2018 05:33:42 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v3 19/19] arm64: dts: allwinner: a64: NanoPi-A64: Add blue status LED Date: Mon, 30 Jul 2018 13:31:37 +0100 Message-Id: <20180730123137.923-20-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180730123137.923-1-andre.przywara@arm.com> References: <20180730123137.923-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180730_083345_347599_8A3D934B X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Holland , Stefan Mavrodiev , linux-sunxi@googlegroups.com, Icenowy Zheng , Martin Lucina , Jagan Teki , linux-arm-kernel@lists.infradead.org, Sergey Suloev MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Beside the non-controllable green power LED, the NanoPi-A64 features a blue "status" LED, connected to PD24. Add the device tree node to make it usable. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index 5e3dc2666d0f..feb8c7e51623 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -59,6 +59,15 @@ stdout-path = "serial0:115200n8"; }; + leds { + compatible = "gpio-leds"; + + blue { + label = "nanopi-a64:blue:status"; + gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */ + }; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */