From patchwork Sun Sep 1 12:21: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: 13786412 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 83504CA101E for ; Sun, 1 Sep 2024 12:33:39 +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=xhI56pgcnxtBEEx+nynof3inTrYjDZ/FBIpYm72ZYDw=; b=if/S3Aq5wIRCPC6Iop3obU5AUc AUawG2bXQy+YICIXxu7yJ0shaB+lLyd/7nn3G1IEWZh+F60MP+BCozRkZPXtGDuyH83ivnQOUGVjf GeXhq+NFmyCTW66zRjwpSkGGeU4T1MoK89ou6A1NnQmUKt44dboCL3Jhb7k8z4TXPKRoxjeeTwHT/ svSExKwhp/SKvaskmtcfpESa9PGZ0jYC3r7XkciBtB3JWjmmjgdtGHxYFEciaFlELtdfMsleNW2aO BWcw6K52LOCPiMGI5DH3PP7cM8dJMdL7RhB6CSFg6J9yahjoXXQouEEbMcCfpxofW+LPbdxohQ/fO gFRORAlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjlp-0000000Bd46-1k98; Sun, 01 Sep 2024 12:33:29 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjaO-0000000BYdT-46M4 for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 12:21:44 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-42bc19e94bdso11650285e9.3 for ; Sun, 01 Sep 2024 05:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725193299; x=1725798099; 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=xhI56pgcnxtBEEx+nynof3inTrYjDZ/FBIpYm72ZYDw=; b=hp6HQODd6RZQ4p1bRXEN9jdgEfLHfr4L6JRcuggc9dinByX7S8eX3Mn65z6zkk0r3P rAr0xM36EwVKbBeH7sI1IOlTKl7DnqPJiyi/nvysnlGMFyOWaJuEVL+TvZ5vFX8jGl+9 p1cWG+Xo5x4Wb6yJ8ZrmZa/aDyO7jAjwFk8oldJjmgFkeguy/9yLBr4fE5BGUGVBDYBI asZB9CWfONNjdXuSF0/p+pIIXLpoTZMBvPCGRYzzhY+JWLoKzntGWn0mt2aqAmmhsbNN N8YE4PBBwtWOlBMkCti8ymYB7e+oDaPiDNVZhOaIRQNFLf6Umv/9G622I5M/YF5e8TY4 zpMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725193299; x=1725798099; 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=xhI56pgcnxtBEEx+nynof3inTrYjDZ/FBIpYm72ZYDw=; b=FDIn6pq28C6ge2IbkPH01ENx8OWJIvvBtZ5VaPBQWr1zLU/Y453ArMXgq0QLb8nMyn 1xrsJODAM+CRSKNfewSnBYIOKXRAC6D/sKszXHbJ17T9AXOD4uhISXaX1CcZpHxkFb4V dR6KOa918IJiIWCfk1Bz0xtlaW/pWHyJGxDYGpWsytFKX1Kh2O3ccR7Yfi/igt6VF5dq 9gsteQFLJ6wH1MiJp1PtqJY6eDGtDUVwyWr45w8HZM0uC81W9Y39a6Ag8zfzE0RGm/CF ZgFV+Ow+5y4rctImOGdK8gfdqcm+O+Mm3b1v5+C9LUR3jnIqYy6amyXfLX7z9eJt7EAJ f9zw== X-Forwarded-Encrypted: i=1; AJvYcCXx9yePLC7mFlpKG2EsNUJEccwfDzsGU3QE+CFG+bYdttj0MjVkLNYNWTDpoRXDo+WZ7wTc0c741unN05zTRxy4@lists.infradead.org X-Gm-Message-State: AOJu0YwG5p37SL3bXfn3aDBw7wqZw6Py9IOAwc1VJMfr5w8iJ7w3Fese vXYKEEZeHL659leYOrqlmMLKb9DZ57AvupkGNYh+pdejl/FgO7gQ X-Google-Smtp-Source: AGHT+IG9qppS9UCh5CXrPVKTFU/i2TeP8Pocpu057YLijcm21jrSyQQkkzKiA/23MWwK3Yk1gwRtYA== X-Received: by 2002:a05:600c:3b25:b0:426:6320:7ddf with SMTP id 5b1f17b1804b1-42bb01fb0fbmr83228275e9.35.1725193298464; Sun, 01 Sep 2024 05:21:38 -0700 (PDT) Received: from morpheus.home.roving-it.com.com (8.c.1.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::1c8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42baf1b0c18sm121363695e9.37.2024.09.01.05.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2024 05:21:38 -0700 (PDT) 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 2/3] arm64: dts: allwinner: a64: Add WiFi/BT header on SoPine Date: Sun, 1 Sep 2024 13:21:30 +0100 Message-ID: <20240901122135.1389702-2-pbrobinson@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240901122135.1389702-1-pbrobinson@gmail.com> References: <20240901122135.1389702-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_052141_074805_5F18B3C2 X-CRM114-Status: GOOD ( 13.17 ) 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";