From patchwork Fri Dec 20 12:00:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13916673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B052E77188 for ; Fri, 20 Dec 2024 12:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0PSZeHHkCW6wlnu9PsCgTdp/ZEwb0V+NyqcmEQUOdns=; b=zz8Syga96hue8pl4RIlwFSre56 sAjhm98qPqSZ6y0ExaIDMRMWjyghLJIAR93lLOTinyhID7bJIujkhb0WFGGsg/g6UIhir9lWFJBEY JSzN7SvjimO2ryHwujH1pSa0kHevw1Zmt2wokbUwgUKCTnHyn7hOZj0vrEBcezEtHkushSfAY8xpe usfKsYQgmYms5yAlOxmyOCJ8kTHOSCI1Rab/UrkO+XNzAAA9k+qoBzjsu+6kKzuC1QelQ4cEH39o4 goofnHK3+x3F8noqJBo1wueORydp//oHY9XGFWLMnGbxsMZ0Dd10YznpvJir6zEsREMRV2YheoopG 5H5CWjmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tObii-00000004qZB-1kgM; Fri, 20 Dec 2024 12:03:04 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tObgS-00000004qHP-0iXz for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 12:00:45 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-385f07cd1a4so1222573f8f.1 for ; Fri, 20 Dec 2024 04:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734696042; x=1735300842; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0PSZeHHkCW6wlnu9PsCgTdp/ZEwb0V+NyqcmEQUOdns=; b=kXnj30nzgKltEKrXGQ/ejT3tyw9c03CYACL1seWkvEaLXMiJfqbFdDUMUEX4xHqX0B 1UpMM/y/jJgXOFNLPV6tRsmT2DnHXjcLbSqp0YSknpn7lKT+q5+hD0KX8PEIP/L2t0DV 0Ga25YWpUNufV1gxylbL8v1Ub2ANzXoY25yWi/2kohavY8/tOSvswJp8R+mNlhU9bN0P 9ND0vfY8xzE20gr8H6A3ghEzH+dEdz8HDuV1pLcNWInffjxkcrAJgr92T4eLMzqU7zBy KXrT1hMvThCDpsx0leK602Ca3nmahZc6CmgpGrXOyjQIMe5DMb2kfTpJ/KrUBmeKiP8d AU7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734696042; x=1735300842; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0PSZeHHkCW6wlnu9PsCgTdp/ZEwb0V+NyqcmEQUOdns=; b=MoqnaRCkcS14s9ibG9LyPUd29Jah/3kp0JosyWYIs+jT+5gi2NoIg44mNerA+vRc1H Y4XpKCixs98DZmuU03ooO70F2Nq9tnBhHzBH+qwbCK4A+k28652UzY5J8qz/jwxJ3tqy Q8C05YRvH021n0GyOoeOX4ReXt0t/u16j6Zu2OhQ4FO7rNX1hASi3X9YayK5gmNeNqWM CkXyLdrWpsHdOxcuxpCQtctnZ8T+hbcrQgCBBG3iFLrkHu7VsqOPL+ipKqjr3QtoJSsH NmbiwNErPqj+rwofBoYYzo3yrfTXOk9tObm6aZARIk8FGIEUtIGxFFcr3EpGQrsbRJZO rsoA== X-Forwarded-Encrypted: i=1; AJvYcCVB/o9wg5+aFqqxPraURzLgJxR+zcEJcZQE9dAPgIRZb1EGraTrHpzH3/Ld4lM6V9tjSS/veK6R5qhfVgoFXKGp@lists.infradead.org X-Gm-Message-State: AOJu0YzMFt2MQowhBFv+z4el8Ml8GQOsXWIqnewYjM3cZLc6zUpVL48q 8DeaYw+r6XiKMgV+1RJvBgQocKwWBFawHxCiIJfPX2x0MTD2skwf X-Gm-Gg: ASbGnctcV/ikfsdKyticZxvGU8q66PKl5gU5f2vWtunasJJZzID16wIpBazT4WUm7xi pCYKuLFTQ5sc+b0aqYGOoeSpkMpDnt9/+hKXn3V+ZYd1g2Fk1FWreGP/4rVzi9bc8HNLFl254S4 4huAVDAvNXQg5+t539sXz49kduteiW0T8oW+UOFI+Pg1tbpnTvkVd+voiuSAA8GSpc4Pi+vXhKD En37sh2xwWNy5U4VexcGIGVeYhiMCfRxVUr/ootrnX/xnFknoYB+sY9a8K827OsRVBNALQ/gq0y QhaI/orrBeiSTpZjANXxT/2BCfpEE6KO7q7vlHPoS1H5SjQ98iHH0v7UCFEKSQ== X-Google-Smtp-Source: AGHT+IHmWsMA9nW1lsPiSxNBhMagfaDdRvhKKxRsgc2zMuwWmMdOEPQP3bdm0aS3GFPGO5WQ8QG6Pw== X-Received: by 2002:a5d:6d84:0:b0:386:45e9:fc8a with SMTP id ffacd0b85a97d-38a221e1dfemr2502314f8f.5.1734696042080; Fri, 20 Dec 2024 04:00:42 -0800 (PST) Received: from cypher.localdomain (e.b.8.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::8be]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-38a1c8b830csm3921038f8f.108.2024.12.20.04.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 04:00:41 -0800 (PST) From: Peter Robinson To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Peter Robinson Subject: [PATCH v2 1/2] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 Date: Fri, 20 Dec 2024 12:00:30 +0000 Message-ID: <20241220120038.3137248-2-pbrobinson@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241220120038.3137248-1-pbrobinson@gmail.com> References: <20241220120038.3137248-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_040044_208897_CBAD72A5 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds all the pin mappings on the WiFi/BT header on the original Pine64. They're disabled by default as the modules don't ship by default. This includes, where they haven't been already, UART1 for BT and mmc1 for WiFi. Signed-off-by: Peter Robinson --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 09e71fd60785..f04f0f1badc4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -35,6 +35,11 @@ hdmi_con_in: endpoint { }; }; }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &codec { @@ -124,6 +129,17 @@ &mmc0 { status = "okay"; }; +/* On Wifi/BT connector */ +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo4>; + vqmmc-supply = <®_eldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; +}; + &ohci0 { status = "okay"; }; @@ -286,6 +302,7 @@ &uart0 { &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "disabled"; }; From patchwork Fri Dec 20 12:00:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13916674 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA191E77188 for ; Fri, 20 Dec 2024 12:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7c+9If8W7Xl+w31iRvENBg3VUkO/76wew21FGkaNGXY=; b=lMiRhUzzUdLZLm9mops8Vj6kKN r1u2MMmTvc+785P7SyRWwdFMgwPFZgQL24MrksZJkzhmp3S7guMt5k7SDxy+bzE4vAnmF11fUdQVF RYWNHUgCdw8LQLc5470m9DWAx0kWcreEqi405o+cXEnBinfY0qSvg8QXHGzUMzjRTGG7xeO6VoXs4 QvDP+TJvAhn6VaD23qfuTjkmYDZ38gfi0T1gQaOuP9bOieuDCnfVDy7XpF0r2rsf3Yo8IAWpKjPf4 kfjtyQ38rNchKw380LLOORMZDwJd9ai3VcxKUHjjb4kwIDXqGbG50PQOv3+SiwpSEgarjN43XhWdN DlekEjbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tObjq-00000004qls-08cM; Fri, 20 Dec 2024 12:04:14 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tObgS-00000004qHQ-1dVP for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 12:00:45 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-385e0e224cbso1036081f8f.2 for ; Fri, 20 Dec 2024 04:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734696043; x=1735300843; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7c+9If8W7Xl+w31iRvENBg3VUkO/76wew21FGkaNGXY=; b=F2nw+VzEtvjJPEcOw93kIuZbkuQf38yuGsj3UQfkNooFLksuZPiKcn/r+iCyQOFUX+ ziLQ843Svi9ZWQqxG3LOmyWoAq6h9E4Eka6GoIw5freUSqnDxO1J03Vi1bYXzjdhOrFf usinVy8+IeQAEp+yDNntIzp70fRNL5/qjBKtQ3IFo1ZqoTp2+rEQmupJ6HJhgCMzSOhV eBwVEgu0AkdAwUyw3biGuG+nYGWNk4qfCYnCTQ7gTqYSA0BZgMJyE+Rx/7PKZo+wM9gQ BTccRiq22NgO+Lmo1jnqjTKpKV842LNuY3u3a2eemFHQ3DTRx6X8QaQyQEX5soZ1Migo d7Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734696043; x=1735300843; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7c+9If8W7Xl+w31iRvENBg3VUkO/76wew21FGkaNGXY=; b=RyOu+cFPJNiqzKIhBKSCqQWJwIt2eK26yZ5yC0VAjT5UsGZQ37fvseIiwT0CSGjlGG BGEIBqHNRdhnUZ8QzCSO1Cz3tC+oajKv2fZ93+XnCS7UIhvD68MpotxG9xmxrM4GCq7V cKw2eFNTDXpjOxKOtRrOvbtq+sj0dLStRTgeFcvRjfw0lT2c9DcchG2IY6KpA3DgChcZ WCoM1MiyX3pWKPOeVgO7/zQbdfsXyrL70pVrmvl1ycx19Se/VPx7spOjoNx50yB3JbQl P+s8sl6zuuGvpDAa1MYek30Ftmosndsm0/lgDbvjuhjGsWLtPVBZG83mLfgFyPGA84kt 8eXg== X-Forwarded-Encrypted: i=1; AJvYcCUwkt1xJ28XTdj0ttr8BclEU4vseyERyR70lkIpwLJWucJlpvYyHJl+MSUPxBIcK8YE86nUO0sffbC+x8HGBgXe@lists.infradead.org X-Gm-Message-State: AOJu0YylNxyQx7Zo/o3dU8wNX2yfTqOyfnEUrJal83IrnxuElDC8DiZI EaKGq+pqKVRT/nihiZb3WLhWlHhtO1bDtRIPvmT6jYM68opZItDS X-Gm-Gg: ASbGnctPXVXj3MRdTyi3pHpvgKCU1uzX+gjIwaYKVNo8wf9EKazWK/u+dmmz3G4uKlc cqIORR4/vOpf8Wscx5Oswa4yE4S6Qmi0nfEoSvUfe464kmtvkNa93aEnh2fyZJqrXhkmZLGvPUI NkOGGxrDR4aB//cJFzq0ax5pYQ23Zd5mJSradaXTCjFdaPgS2Ud68xOzsyHajBMC0XOwBxtmZdC S0XBelBjN48SnYsk8AwqXCrfEwiDJ5QLx1tpHqrfjf+3j4zoTyXwu51XuLEdZ0QpUfdDBhJ9ThZ H4l4YmWfnygF7dfgkdGnD2dOXrgyLOORN0sJ1so+dPB6hX/HCfSqBhoty7F9mA== X-Google-Smtp-Source: AGHT+IE2c5XLJyzNR1zhyXkJ+darIKZUZG1iPFBT6zdD9tb9k+0R145WUAU3upIKBqOszM+jPqMnSg== X-Received: by 2002:a5d:59ac:0:b0:386:2fc8:ef86 with SMTP id ffacd0b85a97d-38a221fac08mr2551293f8f.14.1734696042701; Fri, 20 Dec 2024 04:00:42 -0800 (PST) Received: from cypher.localdomain (e.b.8.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::8be]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-38a1c8b830csm3921038f8f.108.2024.12.20.04.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 04:00:42 -0800 (PST) From: Peter Robinson To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Peter Robinson Subject: [PATCH v2 2/2] arm64: dts: allwinner: a64: Add WiFi/BT header on SoPine Date: Fri, 20 Dec 2024 12:00:31 +0000 Message-ID: <20241220120038.3137248-3-pbrobinson@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241220120038.3137248-1-pbrobinson@gmail.com> References: <20241220120038.3137248-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_040044_424744_CA76ABDA X-CRM114-Status: GOOD ( 11.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds all the pin mappings on the WiFi/BT header on the SoPine baseboard/A64-LTS. They're disabled by default as the modules don't ship by default. This includes, where they haven't been already, UART1 for BT and mmc1 for WiFi. Signed-off-by: Peter Robinson --- .../allwinner/sun50i-a64-sopine-baseboard.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index be2347c8f267..752d2aae8465 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -42,6 +42,11 @@ reg_vcc1v8: vcc1v8 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &ac_power_supply { @@ -103,6 +108,17 @@ ext_rgmii_phy: ethernet-phy@1 { }; }; +/* On Wifi/BT connector */ +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo4>; + vqmmc-supply = <®_eldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; +}; + &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; @@ -175,6 +191,14 @@ &uart0 { status = "okay"; }; +/* On Wifi/BT connector, with RTS/CTS */ +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "disabled"; +}; + /* On Pi-2 connector */ &uart2 { pinctrl-names = "default";