From patchwork Sat Dec 29 11:55:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Summers X-Patchwork-Id: 10744793 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 6FEE06C5 for ; Sat, 29 Dec 2018 11:56:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5427D289D5 for ; Sat, 29 Dec 2018 11:56:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4147728A9C; Sat, 29 Dec 2018 11:56:40 +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 4FE4B289D5 for ; Sat, 29 Dec 2018 11:56:39 +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: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:In-Reply-To:References: List-Owner; bh=4XIBYIpJZnmmUdCHjTFFAzBc/zvwkZtCKtHoKQVLF5c=; b=JR+Ql2ckKRMoTB rxSTP40f7b312rZvsLRuL23n/I99gvYADuZ+5QHzotWH/WQ9OdloVu8hshS/gecoajKDismhC3b/S KFj+bCyXp7hQFQ6lJs56fQkN8JHiddH68qgnhw9hZ3D3F+yak0Ueli5zQgeK+3j9dUeB8HS85a9yG Y65TvanuPOe3phwBN4vDD9LT9cGnDe0e1T9wZc3IvC55FalBYANcjOjmUyniGfp+IWZTpwbeWK2M3 cSG2GXSmNHfU6hI440w/HXjjD5uaYqa3ReNIm80vsMu+4bkl5ntvnuRL+WSm6X8vVssaqWsPDJ/WE EPPgMoIqj9QBpAVBI6ug==; 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 1gdDEK-0001La-6H; Sat, 29 Dec 2018 11:56:36 +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 1gdDEH-00019l-4S for linux-arm-kernel@lists.infradead.org; Sat, 29 Dec 2018 11:56:34 +0000 Received: from localhost.localdomain ([87.112.196.180]) by smtp with ESMTPA id dDDAgftdex6b6dDDLgdY8I; Sat, 29 Dec 2018 11:55:36 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=T4GiscCQ c=1 sm=1 tr=0 a=Y1wGFK3FhPvFCcGACwKsaA==:117 a=Y1wGFK3FhPvFCcGACwKsaA==:17 a=sjixkyzJrpERljILJL8A:9 a=CutxRP_YRTV_cuNQ:21 a=L3cMPTktaLIlAMl3:21 X-AUTH: davidjohnsummers@:2500 From: David Summers To: Marcel Holtmann Subject: [PATCH] bluetooth: realtek: devicetree: Add device tree description to bluetooth rtl drivers Date: Sat, 29 Dec 2018 11:55:13 +0000 Message-Id: <20181229115513.31153-1-beagleboard@davidjohnsummers.uk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfGWpfgDJGq/6Z5PCdvCotcAdq6D36LMqkjmgO9tSI/Merg8Tr39DLUW5/8RjSw33DUOtMFgKPdQNufLbw1eTC1cFvXNt9YeT5NpU0QF0tIiC6XuqPInT +HLpzIWGUGiZuNsDvA3oCx9JiFyVMt1xzez8XVidsi6ROocCjqrgFYNB/Inl8Icgq2wW7n5oF/j7Pmkc7pX3/t2lq2Clrg8vRmQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181229_035633_321278_64092C84 X-CRM114-Status: GOOD ( 11.44 ) 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: mark.rutland@arm.com, Johan Hedberg , David Summers , linux-bluetooth@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.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 add the relevent device tree handles to the bluetooth driver for serial realtek devices. Specifically it takes all devices listed in btrtk.c identifes from the realtek web site which are serial devices (this invariably means devices that end with and "s" in the device name). Most of these devices are dual wifi and bluetooth, with wifi on and sdio connection, and bluetooth on a serial uart. As these two interfaces will need independent listings in the device tree, the nodes here have "-bluetooth" added. The only exception is the rtl8761atv device, which is bluetooth only - and only has a uart interface. Can devicetree people revive the naming scheme used here, and confirm it is acceptable. Marcel, if the device tree people are happy can you apply to the bluetooth tree. Thanks, David. Signed-off-by: David Summers --- drivers/bluetooth/hci_h5.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index 8eede1197cd2..61c9e729efc1 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c @@ -925,6 +925,20 @@ static struct h5_vnd rtl_vnd = { }; #endif +#ifdef CONFIG_OF +static const struct of_device_id h5_of_match[] = { + { .compatible = "realtek,rtl8723as-bluetoooth"}, + { .compatible = "realtek,rtl8723bs-bluetoooth"}, + { .compatible = "realtek,rtl8723ds-bluetoooth"}, + { .compatible = "realtek,rtl8761atv"}, + { .compatible = "realtek,rtl8821as-bluetoooth"}, + { .compatible = "realtek,rtl8821cs-bluetoooth"}, + { .compatible = "realtek,rtl8822bs-bluetoooth"}, + { } +}; +MODULE_DEVICE_TABLE(of, h5_of_match); +#endif + #ifdef CONFIG_ACPI static const struct acpi_device_id h5_acpi_match[] = { #ifdef CONFIG_BT_HCIUART_RTL