Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3240662ioo; Tue, 24 May 2022 17:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKhq25KrS6CSbLkaWHlQkFaf52JkP3G7qLj3SeOIQJIKB03n3vtxid8AeH6gDpDc+XjCTW X-Received: by 2002:a05:6402:1941:b0:413:2b7e:676e with SMTP id f1-20020a056402194100b004132b7e676emr32279741edz.114.1653437916430; Tue, 24 May 2022 17:18:36 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb20-20020a170907961400b006df76385c76si9034102ejc.278.2022.05.24.17.17.53; Tue, 24 May 2022 17:18:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234692AbiEXVkU convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 May 2022 17:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233528AbiEXVkS (ORCPT ); Tue, 24 May 2022 17:40:18 -0400 Received: from sender11-of-o53.zoho.eu (sender11-of-o53.zoho.eu [31.186.226.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55D2B7C17D for ; Tue, 24 May 2022 14:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653427343; cv=none; d=zohomail.eu; s=zohoarc; b=kqM4+zIYq7/2DiNmY1b/2BUBM7CawdxeHcYf2GLk1PZ3EwHkzorjAsqoQa9il+fnqqrFtkHi1QLzQrdqtHUQeEeK5+bYmp2Tbw5Y0NX5Ire1Iavm4lZHDWZtcsCiMmkTpsGt4nr7cdTNAAG9LwgSSKFhKefrH6BT2poKaBKBSZg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1653427343; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=p78ImhfqTFopguatUP5w6vRv8Q5bGiDPqYuQUSvDOYo=; b=N78zQsuV7d3OmTg7HQwYpF2M6PEkJraykhYRvjXZvNGjklgzOs0FMDoOxReAN9Ia3JaisU9qFc47uE4DAwNP7EyAzckycdibreXlGIWBhv0DlOG+pQNuBzgM/zan3+VYdUFNbW3qpMXDDpPiUPBDSZDLQT+QqLTzwZo4M/orsVs= ARC-Authentication-Results: i=1; mx.zohomail.eu; spf=pass smtp.mailfrom=hostmaster@neglo.de; dmarc=pass header.from= Received: from localhost.localdomain (port-92-194-239-176.dynamic.as20676.net [92.194.239.176]) by mx.zoho.eu with SMTPS id 1653427342834591.1104242641796; Tue, 24 May 2022 23:22:22 +0200 (CEST) From: Bastian Germann To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Marcel Holtmann , Johan Hedberg , "David S . Miller" , Jakub Kicinski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org Cc: Vasily Khoruzhick , Bastian Germann Message-ID: <20220524212155.16944-4-bage@debian.org> Subject: [PATCH v2 3/3] arm64: allwinner: a64: enable Bluetooth On Pinebook Date: Tue, 24 May 2022 23:21:54 +0200 X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220524212155.16944-1-bage@debian.org> References: <20220524212155.16944-1-bage@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=utf8 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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, 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 [add uart-has-rtscts] 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 63571df24da4..70d823f8c837 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"; }; -- 2.36.1