From patchwork Sun Sep 1 12:21:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13786411 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 E0A27CA101E for ; Sun, 1 Sep 2024 12:33:36 +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: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:In-Reply-To:References:List-Owner; bh=S3QqO1DNWoq6azA2+M6iG5kCR4SnEiL6Nm4BqEihvJE=; b=UYr4u9DUepXd5nyyTVcxCfafVV rP+RVOm/SV6Y20bJ3a3OENEgT3vfU1LYu1lr1XXPK/TI6iXL8AVfU1eoCTl6wsZngpoIIj3hnMZuC uE2pYXEvxPUQkd1/6g2cItmUkOgctAZfh01SPuRGLp4tJMI8qzXFR3Z4Pw5zedQitTGpHjDkNw9fV yfmLiJmDa2P79ytNG+GSp/MpRsMWnP23KyzZxVpM49NRQaJhvwWDiDE10RTKGPdwcf2GlPwTh7JfA V9NamGFcvXNjB7dC+fEzi6WZWfFUs7Aa/sIdX/BOcr2vqlHzf2IDKXkp1RIs0xFsvBJ0R2rdYyKbd veMK3FIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjlo-0000000Bd3g-2iF5; Sun, 01 Sep 2024 12:33:28 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjaO-0000000BYdE-2eTe for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 12:21:43 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42bac9469e8so27734835e9.3 for ; Sun, 01 Sep 2024 05:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725193298; x=1725798098; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S3QqO1DNWoq6azA2+M6iG5kCR4SnEiL6Nm4BqEihvJE=; b=DFUD0zHqF8MSdKKpH1bcUU7AFDEMdKPJnEokN9tGzEml8wUgD8g0bDUljlyNM9xq6X OsbGrAD/X6aErGXCBuZHguckx8XV/aPhjvi2vUHQK7kb37VDV9x03axYPXNGXz6S63tL S86d1n5uH84VV4EoD+wTy/0sgOqgmZuCkou27EGVdStv3D301pWpKczSRFetLEzno/WF qIiQXz7Sp0F2RWmIAwe6uP4Q8CWE3xRYH7UY1FU2FMg9Bw0InSFkOdP6Tx3np3+tF3vu jYPClYSyzSyz1JXyi2k7WzobmTvYI9g2jtITzUFSdUgwIN/EIs8VUoCEBwsftRRNZHCE U/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725193298; x=1725798098; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S3QqO1DNWoq6azA2+M6iG5kCR4SnEiL6Nm4BqEihvJE=; b=Potfj+oqXQlQpBxGqnX14NTVgmhuYhz9jkZz+9fJHKxIcHrLsKW73Spp7kRSXqsPg0 wLPDQSD9+soRBiX5B3fWPt0jWmg0wuJnKFjT/Ydn41khX3gH8/1cZmr9e62+/WEU+BvF nWCIzPklgdK8xaT/zUTzTmHUeuxVvducNlB+ushEDAHkHVu5hCPU6UC2FwIjIS1s8RX3 HjXt6FlilNJgNHr4QVt0myNp2Tl1inMQeIU3n/+8SfvriQNKc7XS6Q7RfkySGdflD+Eb XlyoAs5ug4uuCDLRmcaUOokXmLpWAoCkeQbuuGh239uTs45Q6PjYGkmGahHq7DfsHsny GIpQ== X-Forwarded-Encrypted: i=1; AJvYcCWrFmO5CaibEiCH8ao4nB9ZhGIIT1NqrKq8Oe0imhqcjbQiG726LeYnED8NpEDjvRBvqVxwJQd6sWk41V5jSlqV@lists.infradead.org X-Gm-Message-State: AOJu0YwX6vyuK6OoVbOTZAqNN77JBbPsU5AuUV5Dy+dBcqC1UasCQYHB nCo5Ab9X/fc53naP4mPzOiMn6NGhvXVCyvkl8V2waWGU9OzUCNbT X-Google-Smtp-Source: AGHT+IHrFigHK4m4sNfpXR7aEdiOm4KSC59yNn0eiFWD1Uc+I8s/Uk57fGk+MERhoR/1tLQHxgz+tQ== X-Received: by 2002:a05:600c:1c91:b0:426:5440:854a with SMTP id 5b1f17b1804b1-42c82f4844emr5021875e9.1.1725193297737; Sun, 01 Sep 2024 05:21:37 -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:37 -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 1/3] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 Date: Sun, 1 Sep 2024 13:21:29 +0100 Message-ID: <20240901122135.1389702-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_052140_695034_BFA7668A X-CRM114-Status: GOOD ( 12.73 ) 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 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"; From patchwork Sun Sep 1 12:21: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: 13786413 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 E1986C54FC6 for ; Sun, 1 Sep 2024 12:33:40 +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=+MyPRlLasNmrOw4DOrVnxaytxIdGW4v/OBVoaI+Igts=; b=X5a2pfcDJWr+4WqCHY61IkCRWy kE1SgMjSOOz9nOXyW3PSPbvT7GWPEiM840fcovP+6vJuqONJ/nqrff5Nan0VPrV9rLjzmnU3Uj9N/ yYUsiWBFO6kgXhBS2ZFQ+SNejzIBvJPeEt+lSIP9MebLADPZ0gpimu+tPhJM3BvomLdedhgLWy0Fq j1MlyCHaXqAXXjYrZVpo/5pK9gD79IdaYVYtBn3c3rfCudWYvti7B8EmWr5+3IZl/vko73KVX0Mts CnlCL+JktSyIb/lO13CRjgSwc3Qjr7Sp+TPmnSNrz/mdtLThvBxZ+TNJFSvCnoLC1c7Vod8dueWQJ 9XIfnGMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjlq-0000000Bd4d-00ZK; Sun, 01 Sep 2024 12:33:30 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjaP-0000000BYdf-31kl for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 12:21:44 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42bbbff40bbso18323795e9.2 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=1725193300; x=1725798100; 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=+MyPRlLasNmrOw4DOrVnxaytxIdGW4v/OBVoaI+Igts=; b=kOu0PRtoRmCEP3gCLagNyoZ1/SvntXbgq5X6M2djobuLto90ejrdA+9Ex8Xe3lypW2 VN9zOPBR5h/79y+IwqS14MEc/L9mbblBJOB1rixr5zT2F/qLQ2Gma0VuOP/yeYWMM3Ft XdGbKfZEQvpJprW9gYAO3z5OejlzHc0pQB/agw5bqAeQ74uRcZqzGPm4me+2t/VObZxL iJ9g59Ji/52BB7VlPcTEVRpgCVsEjmdiq2fxTWvygTtdLf22TGZskyETOZBqeWtz6QIn I/G1/QxKPXjOHdUJupRB1YovQutmm3WeOIifQxsAOg8lUoGHDn19ihMsWHtrr0p7Rywo Z6CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725193300; x=1725798100; 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=+MyPRlLasNmrOw4DOrVnxaytxIdGW4v/OBVoaI+Igts=; b=E4bWSnUVxjq5rJINzudfc1B57chqM6Hax3n3ZFIbdxE92S8WR3s6wGZUO7KN5AZJxt ET/8aHIiAEprXa3ElgqEtXc9qO6zMfkCzkKUfFQpj60PFCXzA/C8CvER3LYskDl3c+Of 1Jl8JzIV8sQH8sVAWjnsVg602ba5haLroJfc7DJcDgyUc/VntSan7xFuGJrdnjJ6zdfl /7mQPqvNFi+fZ6bM1l2xyv2CFp/osxVyI9peaaNONgHaMIrI5jSX3jPM0YflTpbbVTgp LnZwLebDjGbbwcRlE/AEm2cWIOkS2wMmTPIH16FXFjIpxTGxxFETlUvD2v61QLF/DeCa 5Xjw== X-Forwarded-Encrypted: i=1; AJvYcCXbymb0pnwLaKBJ3G+gz94W73F66qku74xEX38P2MpF8I3ranoEB13o8oElR8m7Vx80kKbOzAxG5PvukbruiPm1@lists.infradead.org X-Gm-Message-State: AOJu0Yy5s0RWSDZYvOH/z4VXpA9AkK4RPCskNph1FWLSc89o4tCfQ3ut 3VXWt2PyBVsCZhCwcKvACF4muXc92il2mZepBmRbaQAdre2/NHx/ X-Google-Smtp-Source: AGHT+IGxEwCIMs1vckP44Y0ObbyoNuVEf9RE6EeOjE/Zxr5ZsSmV+fTP4u6C/LtxynfdDXIfD/jxqA== X-Received: by 2002:adf:a448:0:b0:374:c61a:69b8 with SMTP id ffacd0b85a97d-374c61a6a38mr972561f8f.15.1725193299078; Sun, 01 Sep 2024 05:21:39 -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.38 (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 3/3] arm64: dts: allwinner: a64: Add WiFi/BT on Pine64 Date: Sun, 1 Sep 2024 13:21:31 +0100 Message-ID: <20240901122135.1389702-3-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_780486_E20B71DB X-CRM114-Status: GOOD ( 13.25 ) 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 Enable the rtl8723bs WiFi/BT modules on the Pine64. Signed-off-by: Peter Robinson --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index f04f0f1badc4..1d514859e664 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -138,6 +138,14 @@ &mmc1 { mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; + status = "okay"; + + rtl8723bs: wifi@1 { + reg = <1>; + interrupt-parent = <&r_pio>; + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ + interrupt-names = "host-wake"; + }; }; &ohci0 { @@ -303,7 +311,14 @@ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; uart-has-rtscts; - status = "disabled"; + status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ + }; }; /* On Pi-2 connector */