From patchwork Mon Jan 1 20:42:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10139571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3D478601A1 for ; Mon, 1 Jan 2018 20:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FE9F28639 for ; Mon, 1 Jan 2018 20:43:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24A8A288D1; Mon, 1 Jan 2018 20:43:06 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 C6AD828639 for ; Mon, 1 Jan 2018 20:43:05 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=HFrMWENvGFZpUYDdtjmmZmqhJpIr+Zi+OAE/rRCsgMI=; b=P0tnvKockCGcUsny5UHLwpIQeI f2FUOdyuAsjGQy1RVTuQcEzEiuTZZAUpCIEMlPKhxUQgOP1q2aU72u0TOIy1Q6mdJt5tgCEWB5THw FSzRBXk6a5ftj5o0/2sjs6g3QCKFoCBv6fHjNh660O2kx9as23YPJKvQVoA/MC2XagBU1uLF65eYM DL2Y+4KEQRtS1Yxa8DFf5YfylpAFIKegooNAgsXw/Ml5JKi1taTiOCi5qN9O/QANjtcLukhplsr51 FDKTOgPM6ow5jvy9CKg5EO1ZtiWyAR8I1HMimmi9TFO1Dkz/3vtr92Fcts1ywAqmyC6b0T1Gnz3WV N88qcm4w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eW6v6-00038d-Em; Mon, 01 Jan 2018 20:42:52 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eW6uy-00032e-6Z for linux-amlogic@lists.infradead.org; Mon, 01 Jan 2018 20:42:45 +0000 Received: by mail-wm0-x242.google.com with SMTP id n138so58391906wmg.2 for ; Mon, 01 Jan 2018 12:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9XjFrTLNeRCofRuiExU8NGY3vtrW27PMrARSusdo570=; b=jh2MVqmuyWlBG0JOxE5tZmBgjIF4X7iC4tEM96ULWBb0juvfGuA7jdW5fO3AT67Cc5 zjUWQ2LsfnMFX3Pt8pGyR7Kv7hZ6vlO4KJhKe9Q/3f+aJU9iU5L32Guq0p94qZOFjhdf FMxEZm84xj38INoEIUIiIBtM18plPISah84uduntsidWyn6B4FjULzSV8Z29AwU2p8sN WGFcmDXxTthGTad7Rm8HiZdvw5mlq7ost16OndN6nN7DRXMeFT65gUL7iiguKFfZKqrt COWb7gq0FAqFHfKak0W9pJGqblZirVy+A3wiykgoA08mZ6CohofnsDkLNw7iTds70TAS uCtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9XjFrTLNeRCofRuiExU8NGY3vtrW27PMrARSusdo570=; b=uaWbXuZm1krw5ML+Xfl8USsTHP0YmDEJFh1Zt2azEdTnpLsq3x4UQmXR8+G/SmTy0V d1CCmcQnLEaHvVHeFL9WMQ5ME77xpPa4sumL3SjubN6NRp0VWSrsoWe2rYVGKUYJd3Ed HbK5EO2UzyY8lSD0gkfOIlJvFnEM9xl8sYYMGFpblg/ScnVK0s0WSLrx+sNHp8u+a7t8 1cIKkImzdKqJGIrhpiTv4ukHeubzN/B3sO65wCYxYouIUl6DWjh1ij72QHHzFOVTFwNI 7MFWG2iMwnU2jx8xGD8I2xRU6KNhte1oql7diBF6YrDmcnnEzLBbH6PBkjqyWGCtk6Hl /nuA== X-Gm-Message-State: AKGB3mJP3adKKBmJWOHQi9VsB4k8NIcuk+cNDrSfq/CcwU0vnG88qkrY oZ6NFhPRWKBl7XV0NcoSkw8= X-Google-Smtp-Source: ACJfBouahjQIplkrVpaw/CLrpLgWS4jSPnQsfc1PbGtZP0HBXfyT8IvneekrUb27lUtDzkr9MVZgsw== X-Received: by 10.28.34.10 with SMTP id i10mr36690115wmi.56.1514839352384; Mon, 01 Jan 2018 12:42:32 -0800 (PST) Received: from blackbox.darklights.net (p5DE386EE.dip0.t-ipconnect.de. [93.227.134.238]) by smtp.googlemail.com with ESMTPSA id c53sm57657032wrg.10.2018.01.01.12.42.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jan 2018 12:42:31 -0800 (PST) From: Martin Blumenstingl To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org Subject: [RFC v2 2/9] dt-bindings: net: bluetooth: add support for Realtek Bluetooth chips Date: Mon, 1 Jan 2018 21:42:10 +0100 Message-Id: <20180101204217.26165-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180101204217.26165-1-martin.blumenstingl@googlemail.com> References: <20180101204217.26165-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180101_124244_249976_1191DC90 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, johan.hedberg@gmail.com, gregkh@linuxfoundation.org, Martin Blumenstingl , gustavo@padovan.org, marcel@holtmann.org, johan@kernel.org, drake@endlessm.com, carlo@endlessm.com, jslaby@suse.com, linux-amlogic@lists.infradead.org, Larry.Finger@lwfinger.net MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the documentation for Bluetooth functionality of the Realtek RTL8723BS and RTL8723DS. Both are SDIO wifi chips with an additional Bluetooth module which is connected via UART to the host. Signed-off-by: Martin Blumenstingl --- .../devicetree/bindings/net/realtek-bluetooth.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/realtek-bluetooth.txt diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.txt b/Documentation/devicetree/bindings/net/realtek-bluetooth.txt new file mode 100644 index 000000000000..1491329c4cd1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.txt @@ -0,0 +1,41 @@ +Realtek Bluetooth Chips +----------------------- + +This documents the binding structure and common properties for serial +attached Realtek devices. + +Serial attached Realtek devices shall be a child node of the host UART +device the slave device is attached to. See ../serial/slave-device.txt +for more information + +Required properties: +- compatible: should contain one of the following: + * "realtek,rtl8723bs-bluetooth" + * "realtek,rtl8723ds-bluetooth" + +Optional properties: +- realtek,config-data: Bluetooth chipset configuration data which is + needed for communication (it typically contains + board specific settings like the baudrate and + whether flow-control is used). + This is an array of u8 values. +- enable-gpios: GPIO specifier, used to enable/disable the BT module +- reset-gpios: GPIO specifier, used to reset the BT module + + +Example: + +&uart { + ... + + bluetooth { + compatible = "realtek,rtl8723bs-bluetooth"; + enable-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; + realtek,config-data = /bits/ 8 < + 0x55 0xab 0x23 0x87 0x29 0x00 0xf4 0x00 0x01 0x01 0xf6 0x00 + 0x02 0x81 0x00 0xfa 0x00 0x02 0x12 0x80 0x0c 0x00 0x10 0x02 + 0x80 0x92 0x04 0x50 0xc5 0xea 0x19 0xe1 0x1b 0xfd 0xaf 0x5f + 0x01 0xa4 0x0b 0xd9 0x00 0x01 0x0f 0xe4 0x00 0x01 0x08>; + }; +};