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 */