From patchwork Sat Mar 9 15:39:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Summers X-Patchwork-Id: 10845991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 70235922 for ; Sat, 9 Mar 2019 15:40:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 599CF2A568 for ; Sat, 9 Mar 2019 15:40:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AB5C2C3FB; Sat, 9 Mar 2019 15:40:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E7EB52A568 for ; Sat, 9 Mar 2019 15:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CnahXBfXPZuh6peE1tzMOoKX90aD7volW7P74VF3idI=; b=t9/eklypllvJBN mxT0k+G+QyPxH4I8ZdTZnhuNf21/XMlPfA8u9EWExXqTFgd1uWkFA3KKHqTfuh0SquyGgRLRVR9CI vwzHHJ8rZyVXp6mqDe2wqGTllhnmoIvd2iORBXMHoUhEn24POba0vLbmkC+U7cBGUQzIcWzjWV+Wz SmytCCceb3n94T0meobeNkib3daT4E8E0Mleyoo1VEKn7Wis8ncj7DioZttVYwUnN8Pc/2VQB1U1D 9jZmCz7SrAMa8OmvQnCp4kkr1ZhXJptJL8600SpLG5kUXntwfiLImwJ3VgoXerCiqiv3tbBKM2OsY 5G6kCm62S/DvTuZS2j1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2e56-00045Y-IV; Sat, 09 Mar 2019 15:40:12 +0000 Received: from avasout02.plus.net ([212.159.14.17]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2e4b-00034B-Vr for linux-arm-kernel@lists.infradead.org; Sat, 09 Mar 2019 15:39:43 +0000 Received: from localhost.localdomain ([87.114.146.246]) by smtp with ESMTP id 2e4PhIi6Rx6b62e4YhgA0R; Sat, 09 Mar 2019 15:39:40 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=T4GiscCQ c=1 sm=1 tr=0 a=DwUJrZpGRQ5ePevJMiNdYw==:117 a=DwUJrZpGRQ5ePevJMiNdYw==:17 a=OLL_FvSJAAAA:8 a=ViPa0ciWmgWNDZ-_SmcA:9 a=1p1MZfBn9Gu4pFza:21 a=f5_gGt5-OF2vyWa9:21 a=pUjmoVUizdcA:10 a=6X9rrcGS-_EA:10 a=oIrB72frpwYPwTMnlWqB:22 From: David Summers To: heiko@sntech.de, robh+dt@kernel.org, frowand.list@gmail.com, marcel@holtmann.org, johan.hedberg@gmail.com, anarsoul@gmail.com Subject: [PATCH v3 3/3] arm: dts: rk3288-tinker.dtsi: Add outline Bluetooth support Date: Sat, 9 Mar 2019 15:39:23 +0000 Message-Id: <20190309153923.22806-3-beagleboard@davidjohnsummers.uk> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190309153923.22806-1-beagleboard@davidjohnsummers.uk> References: <20190217121513.22965-1-beagleboard@davidjohnsummers.uk> <20190309153923.22806-1-beagleboard@davidjohnsummers.uk> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJtJjEwUSKCMwIOGX7XlW4wETRaqOYoLI/OT5+Lbs9zhgJjeqKL44cGLEILuabuFiHWxYPSw7hK2aRwX8y9eD2ETztNKJYWfIvkFoQ5yjpjov9s4SW0h J/OwsFiW8r2ToexXd0gLbxtPpe4Lj/l5A3hiGjsfX5/fu/viuf4QMQ6Ko91USV1iUDSjluT6tuPn7Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190309_073942_318832_6E9A2C10 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, linux-bluetooth@vger.kernel.org, David Summers , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch is an outline for bluetooth on the ASUS Tinker Board (S). Bluetooth is provided my RTL8723BS on these machine, and this is wired into UART0. Here this is performed as a SerDev device. Now as presented, this does not give functioning bluetooth. The updates needed to the device driver: https://www.spinics.net/lists/linux-bluetooth/msg78661.html Haven't yet been accepted. So this device tree hook doesn't yet have "realtek,rtl8723bs-bt" compatible flag. It is however still submitted as a patch, as it sets the UART up correctly. And so basic communciation can be had with the device. This has been confirmed by Tony McKahan @ Armbian, in particular that the CTS/RTS is needed. When Vasily patch is accepted, this will be added as a minor patch on top of this patch; as this patch gives the pins needed. The one oddity, is the RESET pin, it is labeled this way on the schematic. However the hci_h5.c driver calls this ENABLE. Here we have stuck with the schematic name. Signed-off-by: David Summers --- arch/arm/boot/dts/rk3288-tinker.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-tinker.dtsi b/arch/arm/boot/dts/rk3288-tinker.dtsi index 0ffab1b7c940..d29f5b34d7e6 100644 --- a/arch/arm/boot/dts/rk3288-tinker.dtsi +++ b/arch/arm/boot/dts/rk3288-tinker.dtsi @@ -486,6 +486,17 @@ &uart0 { status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>; + + bluetooth { + clocks = <&rk808 RK808_CLKOUT1>; + reset-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>; + device-wake-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; + host-wake-gpios = <&gpio4 RK_PD7 GPIO_ACTIVE_HIGH>; + vcc-18-supply = <&vcc_18>; + vcc-io-supply = <&vcc_io>; + }; }; &uart1 {