From patchwork Mon Feb 13 12:09:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13138349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A04AAC64ED6 for ; Mon, 13 Feb 2023 12:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=C+79y0ab4nSIiceRh1AiqK54vtrDm9Hx/rQWWET3dbE=; b=a+f0f8ZIyZNZeN smgZU9E/1Cq6TUnZayhv32gXUe0h9DV2BTmacSjtKtSSii+QlKLMTb55P2XW44osAMImueLrD8EaM TqyPgvB3Y0S77da57m8VPNsQFVFN8873V3o9u0Z+aHeqarmg6yeOUKyQIVvRNi4XTJoQcKYUVu/5j seGnUTfCOQgreqjcJ1wU3Ju9MmQqGueIyNd/hc5u/7nU3TZB5WgpC4I8iTbi8uJFClx3xjbOuZHtx BtcIfRA8yU2MBvqPjy/amErWl21CZqat5JIawLyom6PH5j7FhoSs9NvKME/rkieGAhQtPVoK3SPQk cPk3z+frmLFKDLVwS2Sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRXeR-00EZam-Sk; Mon, 13 Feb 2023 12:09:43 +0000 Received: from smtp-out-12.comm2000.it ([212.97.32.82]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRXeO-00EZZV-0F for linux-arm-kernel@lists.infradead.org; Mon, 13 Feb 2023 12:09:42 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: francesco@dolcini.it) by smtp-out-12.comm2000.it (Postfix) with ESMTPSA id 149BCBA1877; Mon, 13 Feb 2023 13:09:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailserver.it; s=mailsrv; t=1676290172; bh=GbEIxLl6y8dz6WJwUG7aLe6/sMDkURLygpPDcrzPJAE=; h=From:To:Cc:Subject:Date; b=y/cHB2uJ4HGW62nr/5wsuGo+YWegiqYd/CqAUlvQ0/VbjdVKGfGFjX+3gweoDCigd cdtdM7vjfFjtnnlIm/IcmM6gNp+BKkNeW3pBeTzOTuVvWUN9K7Fl81f9xbAjAe+q3Q JSeE1GjreZYhAtV6zOLkK9Wq138anu6uOyOd9ciXiuWaBLm8oaXnGjmK6QnEQ7Fwr9 ctfvDVf5K3TfKpUsbDmIcFzPQ7cKmj3FpmJuJl9D3OLPoLIT3pP7vPd9HhgnvvGD6P A0BEVZ8eXOm07OllpJG/e+usO9VbSdGMPHuUBPiQHFva8kZY15h9ga0IpjIDZvOCKF NKiTlM6ngEAwQ== From: Francesco Dolcini To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, Marcel Holtmann , Luiz Augusto von Dentz , linux-arm-kernel@lists.infradead.org Cc: Francesco Dolcini , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Johan Hedberg , Sascha Hauer , Shawn Guo , Pengutronix Kernel Team , Fabio Estevam Subject: [PATCH v3 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Date: Mon, 13 Feb 2023 13:09:21 +0100 Message-Id: <20230213120926.8166-1-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230213_040940_237518_48CF478C X-CRM114-Status: GOOD ( 12.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Francesco Dolcini Add serdev support for the 88W8997 from NXP (previously Marvell). It includes support for changing the baud rate. The command to change the baud rate is taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth interfaces) from NXP. v3: - Use __hci_cmd_sync_status instead of __hci_cmd_sync v2: - Fix the subject as pointed out by Krzysztof. Thanks! - Fix indentation in marvell-bluetooth.yaml - Fix compiler warning for kernel builds without CONFIG_OF enabled Stefan Eichenberger (5): dt-bindings: bluetooth: marvell: add 88W8997 dt-bindings: bluetooth: marvell: add max-speed property Bluetooth: hci_mrvl: use maybe_unused macro for device tree ids Bluetooth: hci_mrvl: Add serdev support for 88W8997 arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4 .../bindings/net/marvell-bluetooth.yaml | 20 ++++- .../dts/freescale/imx8mp-verdin-wifi.dtsi | 5 ++ drivers/bluetooth/hci_mrvl.c | 90 ++++++++++++++++--- 3 files changed, 104 insertions(+), 11 deletions(-)