From patchwork Mon Jan 21 20:39:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Summers X-Patchwork-Id: 1028913 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=davidjohnsummers.uk Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43k3Wy0g8Xz9s7h for ; Tue, 22 Jan 2019 07:47:26 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbfAUUrZ (ORCPT ); Mon, 21 Jan 2019 15:47:25 -0500 Received: from avasout04.plus.net ([212.159.14.19]:57113 "EHLO avasout04.plus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbfAUUrZ (ORCPT ); Mon, 21 Jan 2019 15:47:25 -0500 X-Greylist: delayed 450 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Jan 2019 15:47:19 EST Received: from localhost.localdomain ([87.112.42.170]) by smtp with ESMTP id lgMBgPXkRAOoylgMMgBlmF; Mon, 21 Jan 2019 20:39:54 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=Rdm+9Wlv c=1 sm=1 tr=0 a=mWDk6ZswF0UwtwIMZFE8gw==:117 a=mWDk6ZswF0UwtwIMZFE8gw==:17 a=WaJYZbQPnuN-YhsSyc4A:9 a=u-giGDfNQ2kGiz5w:21 a=tviL4In-nHg2R7vb:21 From: David Summers To: robh+dt@kernel.org, mark.rutland@arm.com, marcel@holtmann.org, johan.hedberg@gmail.com Cc: David Summers , linux-bluetooth@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 2/2] dt-bindings: Create the file for Realtek Bluetooth serial devices Date: Mon, 21 Jan 2019 20:39:28 +0000 Message-Id: <20190121203928.32723-2-beagleboard@davidjohnsummers.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121203928.32723-1-beagleboard@davidjohnsummers.uk> References: <20190121203928.32723-1-beagleboard@davidjohnsummers.uk> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfDVgFQ8g9haL9E7xXyvFq/UdCthbxeAqlvuGoeSkTve9KuxPMN1BfIPhO3ok/9GV8l0gQKbLq6Bsi6PSTfDNasG7nsNIBYFwm7+hiNJOuOUi/jBmCiL7 STKu+9QPcfmiOFLxqcWByVuF9TOMW8mSF0FjBQunuOXmKFapiid2eo/6ro63zTyIKeBa7NiX5ihLq2omlZMyF+NQU3y4rEg1R7g= Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org With the changes requested by Marcel Holtmann and Rob Herring. Capitalisation as requested. Signed-off-by: David Summers --- .../bindings/net/realtek-bluetooth-serial.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/realtek-bluetooth-serial.txt diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth-serial.txt b/Documentation/devicetree/bindings/net/realtek-bluetooth-serial.txt new file mode 100644 index 000000000000..2eddde1a0cf1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/realtek-bluetooth-serial.txt @@ -0,0 +1,32 @@ +Realtek Bluetooth devices connected via a UART. +These devices typically also have a WI-FI connected via SDIO - the +compatible described here is used just for referencing the Bluetooth. + +- compatible: should be "realtek,-bt" + except for "realtek,trl8761atv" - which only has a serial Bluetooth connection + "realtek,rtl8723as-bt" + "realtek,rtl8723bs-bt" + "realtek,rtl8723ds-bt" + "realtek,rtl8761atv" + "realtek,rtl8821as-bt" + "realtek,rtl8821cs-bt" + "realtek,rtl8822bs-bt" + +Example: + +&uart0 { + status = "okay"; + pinctrl-0 = <&uart0_xfer>, <&uart0_cts>; + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>; + pinctrl-names = "default","rts_gpio"; + pinctrl-0 = <&uart0_rts>; + pinctrl-1 = <&uart0_gpios>; + BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; + BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>; + BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>; + }; +}; + +this ensures that the Bluetooth device is tied to the correct uart.