From patchwork Sat Nov 5 15:33:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 621838 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F268DC4332F for ; Sat, 5 Nov 2022 15:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229987AbiKEPdm (ORCPT ); Sat, 5 Nov 2022 11:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbiKEPdk (ORCPT ); Sat, 5 Nov 2022 11:33:40 -0400 Received: from stravinsky.debian.org (stravinsky.debian.org [IPv6:2001:41b8:202:deb::311:108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E58C76B; Sat, 5 Nov 2022 08:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Type:Content-ID:Content-Description; bh=XqHpqs8kOpAGqjTe6Cxdek+b0q7L48oS3swMyp4A1Kg=; b=TWjb1YEmfOpNLBpw6cgQaAq34G LIBBrziYiG1Xpv7XNw4i866DsRfc5iFQ+azH8216/o0adKnnxz8HX0Oxsxul6GI3lPm91rMM3Kwky ZZaNeyCIWKtIm/zSpCGG7gKhFuz4stZcaHDaQE0GR1JfmfZoUnlJZ+1M0BrijmtbQTbpIh/Cdggww 7FS24JSOfJUa3xjJ2Vc7yd5xpAlX4Sv3AtbbJSZ82dJgdxDlHIqUCRH6bAuu5fLE5PzOzDwP686OL IU+3D6iy2Dc1kL+4jVt2MsmY8hnjCJtCa44J5vEmkdNRbepglDpU83KxI2whrB0IbZyLNT/hcP5vU SU/L3v+g==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1orLAp-004CNe-Po; Sat, 05 Nov 2022 15:33:30 +0000 From: Bastian Germann To: Samuel Holland Cc: Vasily Khoruzhick , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Bastian Germann Subject: [PATCH v2 1/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook Date: Sat, 5 Nov 2022 16:33:19 +0100 Message-Id: <20221105153319.19345-2-bage@debian.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221105153319.19345-1-bage@debian.org> References: <20221105153319.19345-1-bage@debian.org> MIME-Version: 1.0 X-Debian-User: bage Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Vasily Khoruzhick Pinebook has an RTL8723CS WiFi + BT chip. BT is connected to UART1 and uses PL5 as device wake GPIO and PL6 as host wake GPIO. Enable it in the device tree. Signed-off-by: Vasily Khoruzhick Signed-off-by: Bastian Germann Reviewed-by: Samuel Holland --- .../boot/dts/allwinner/sun50i-a64-pinebook.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 620cb3ef5f6c..50ed2e9f10ed 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -406,6 +406,20 @@ &uart0 { status = "okay"; }; +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723cs-bt"; + device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */ + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ + host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + }; +}; + &usb_otg { dr_mode = "host"; };