From patchwork Fri Oct 7 23:45:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 613430 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 B5C56C433F5 for ; Sat, 8 Oct 2022 00:11:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbiJHAL0 (ORCPT ); Fri, 7 Oct 2022 20:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiJHALZ (ORCPT ); Fri, 7 Oct 2022 20:11:25 -0400 Received: from stravinsky.debian.org (stravinsky.debian.org [IPv6:2001:41b8:202:deb::311:108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E0B5BBE1C for ; Fri, 7 Oct 2022 17:11:24 -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=eR+NXbMh3/vLaZ91+a3etBbDh8A2NsKZ4EZHQPgJfxk=; b=VzuxhddR0YEMAAoajLtBWxOyP4 9HRXlm0qE7NhJuFgdRaQJThTd+aC5EVn7KWv0xmjjrPXNh4P70/DdhOzFAjDFKv82Q00mh1xybNmI Au6kx7bg3r8xo+KeK8V7wy7k2NvYelMVEnWr1lHHWqHpgu/Wh5ckk/qWhoCe7S9aiGpl9h6yZEYRf /V1M5clEGT5yM5rSSHqicw6cyq/qqdeHR8cdc2WOQYP2pGfZWko1jvtL1Iyvzm5ZF5gxpQZF2kC5N B8wS3whsSA0hf5oY30PXLI4M27ukv2EEXTgBSuP6DJcNe4RyGu4ZS87PelRxrQTqxeWgdtCq1fK6q coJ+CP/A==; 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 1ogx3K-000AIf-2o; Fri, 07 Oct 2022 23:46:49 +0000 From: Bastian Germann To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Vasily Khoruzhick , Bastian Germann Subject: [PATCH 1/1] arm64: allwinner: a64: enable Bluetooth on Pinebook Date: Sat, 8 Oct 2022 01:45:53 +0200 Message-Id: <20221007234553.12328-2-bage@debian.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221007234553.12328-1-bage@debian.org> References: <20221007234553.12328-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. The I2C controlling signals are connected to R_I2C bus. Enable it in the device tree. Signed-off-by: Vasily Khoruzhick Signed-off-by: Bastian Germann --- .../boot/dts/allwinner/sun50i-a64-pinebook.dts | 13 +++++++++++++ 1 file changed, 13 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..19ba87c411ed 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -406,6 +406,19 @@ &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 */ + host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + }; +}; + &usb_otg { dr_mode = "host"; };