From patchwork Thu Jan 26 07:43:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13116725 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 DABFBC05027 for ; Thu, 26 Jan 2023 07:45:52 +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=14nwkqKpRZO9bgawn1xoU0k35+0WaM20a6cuRCWbZKE=; b=PJvQ1mLepXg9ww /h7oqvxCZ6Jai1yl2Ym/Mx57tSC5Y08swGZhqZHBzhPJUVFMrodAWJRkjz0s+Aq+yY3bxoeE7aMgo lWdOT+xR4WBpquENDk189P3vH8xQbVUZKr15xSSM1JfBskh/jxmPmRsUlWdv7CG4o2DrAzup5on2L azB1aSEgC8TQZzGG7RVK4mhgHhtGZf19F1PZF3Wndv+kUlnEOSSJBwV2Csv8mmiDEsgNU4a7DmHQc OW5k7+Y6sACNGt/1FuwVMJWQAbO/1PMgueBg1GseTZj8WyyHe7APTKIvEPVlnfB0C7OdmM9Z2ZSdJ tp5tnW1B9uCT3lRC7Ezw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKwwD-009sAm-Ci; Thu, 26 Jan 2023 07:44:49 +0000 Received: from smtp-out-06.comm2000.it ([212.97.32.74]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKwwA-009s8c-FD for linux-arm-kernel@lists.infradead.org; Thu, 26 Jan 2023 07:44:48 +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-06.comm2000.it (Postfix) with ESMTPSA id 0B1D85611D4; Thu, 26 Jan 2023 08:44:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailserver.it; s=mailsrv; t=1674719072; bh=3G/SbvmzPiZfuAmwVmCOJNiD9b1gSTVCAfILv/DUq/Y=; h=From:To:Cc:Subject:Date; b=bJrxRTYwMAnf3nRk/ayrKGhxD4Hi4mfUPVGG6LkhC43P7HzfszYSEqNX+/OlyPGAM 5uQtQsqiauEmeOoXyg3/fwtMuG/G6HsKZ5HXVkHY/4FionmiTJVjgCtZ9fJB0+RcRX WeTu48ANFMU6y/MAtAMUFx4Wuek8MTmWl3D7D744yHMqcxJIn6SyTwzDk+kMTYJHX9 rriQfFH+uXAt9GDCv/gRIYxNwVh88d7CUL7tESPqUuF2ptc8H/q053DnlqeXvQqAic YhI7JBUcytJclhzXksDv1NO7AOuS7hQibAxrPyHtDkvZOZFntQe44KPTNWBaEat7/3 x7IVRz8jrQq0w== 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 v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Date: Thu, 26 Jan 2023 08:43:51 +0100 Message-Id: <20230126074356.431306-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-20230125_234446_695830_6B06B347 X-CRM114-Status: GOOD ( 12.68 ) 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. 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 | 92 +++++++++++++++++-- 3 files changed, 106 insertions(+), 11 deletions(-)