From patchwork Thu Oct 27 15:08:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 619297 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AD17FA3741 for ; Thu, 27 Oct 2022 15:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235900AbiJ0PIm (ORCPT ); Thu, 27 Oct 2022 11:08:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235875AbiJ0PIh (ORCPT ); Thu, 27 Oct 2022 11:08:37 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C006718F0E9; Thu, 27 Oct 2022 08:08:33 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id D77B232007F9; Thu, 27 Oct 2022 11:08:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 27 Oct 2022 11:08:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1666883311; x=1666969711; bh=vC4EJLdx4T Hqc58ycxGM/foR8da3d1iXJ0tw75QGCxM=; b=P4Y9IkypgiQFH2P4QbCJdfibEw sym3gHqN0WnfXFlua3ywxKU52tv24gAQHkiBixMnfw8O+W9aRZHCXe+NgH5g0I6w RWa9HTZinjcSImobmPGJXvFIWa18gv7y/iEyClKj3VHav3S5ZcrGcDEf3rLPZJ// wKMIpJkgQL8xlLh5z9R84M+jKIWVezwXQFCo18xfC3X7u4PODu4C5X0IjghdxXW0 qPUAFwuR0WEUEEyNvcCBsgNaojSpm+1a0QpdioYRmypCTYbw1Erz2V3nL0/PiY4t n44/QY75bwlCLRt7PTrEREx/b07a2B3IeqO7E5c+0jspMtPLNShQ03RVBwqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1666883311; x=1666969711; bh=vC4EJLdx4THqc58ycxGM/foR8da3d1iXJ0t w75QGCxM=; b=oTLERddpI5B6yecHwlVQA4APnAUOMqQTVdRSHvmsFIOJ2QJZxBd aXJVIVQW4yCr5CBYu3FuhOknknE5lVWe8gDOOySWUOfE+n2pQHBNoGY7S+CjEiTF BB+T/l4sKsFjMoK+hNDpZoAowH64wP/2FtAsHgDrIXr6M74DYqcvDFaBROmST33Z K9R+27oGvA4FyA0Nj3ZnkxXqvx/VmVTb7gPCwRqw4aih8fwuEj0iO9xt8r44w/nj /TM4l7eRpFK8shYF04EJkghdYn6MW+TlF445rh8rMFHFgFDcocn1EqKpsLcCPjYI KmGCdO1r64hFBpkY4rVuV9O/K66hUu+q/fA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeggdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epgfegudffudelfeeugedtjeeugeehueffudevveegveektdfhueehueeufeelheevnecu ffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Oct 2022 11:08:26 -0400 (EDT) From: Sven Peter To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Sven Peter , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Krzysztof Kozlowski , Paolo Abeni , Rob Herring , Hector Martin , Alyssa Rosenzweig , asahi@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/7] Broadcom/Apple Bluetooth driver for Apple Silicon Date: Thu, 27 Oct 2022 17:08:15 +0200 Message-Id: <20221027150822.26120-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, v1: https://lore.kernel.org/asahi/20220801103633.27772-1-sven@svenpeter.dev/ v2: https://lore.kernel.org/asahi/20220907170935.11757-1-sven@svenpeter.dev/ v3: https://lore.kernel.org/asahi/20220919164834.62739-1-sven@svenpeter.dev/ Here's v4 of the Apple/Broadcom Bluetooth series. Not many changes this time: I rebased on 6.1, added Rob's r-b tags and fixed bcm4377_send_ptb for newer firmware versions where that command claims to fail but is still sent by macOS. Best, Sven Sven Peter (7): dt-bindings: net: Add generic Bluetooth controller dt-bindings: net: Add Broadcom BCM4377 family PCIe Bluetooth arm64: dts: apple: t8103: Add Bluetooth controller Bluetooth: hci_event: Ignore reserved bits in LE Extended Adv Report Bluetooth: Add quirk to disable extended scanning Bluetooth: Add quirk to disable MWS Transport Configuration Bluetooth: hci_bcm4377: Add new driver for BCM4377 PCIe boards .../devicetree/bindings/net/bluetooth.txt | 5 - .../net/bluetooth/bluetooth-controller.yaml | 29 + .../net/bluetooth/brcm,bcm4377-bluetooth.yaml | 81 + .../{ => bluetooth}/qualcomm-bluetooth.yaml | 6 +- .../bindings/soc/qcom/qcom,wcnss.yaml | 8 +- MAINTAINERS | 2 + arch/arm64/boot/dts/apple/t8103-j274.dts | 4 + arch/arm64/boot/dts/apple/t8103-j293.dts | 4 + arch/arm64/boot/dts/apple/t8103-j313.dts | 4 + arch/arm64/boot/dts/apple/t8103-j456.dts | 4 + arch/arm64/boot/dts/apple/t8103-j457.dts | 4 + arch/arm64/boot/dts/apple/t8103-jxxx.dtsi | 8 + drivers/bluetooth/Kconfig | 12 + drivers/bluetooth/Makefile | 1 + drivers/bluetooth/hci_bcm4377.c | 2514 +++++++++++++++++ include/net/bluetooth/hci.h | 21 + include/net/bluetooth/hci_core.h | 4 +- net/bluetooth/hci_event.c | 2 +- net/bluetooth/hci_sync.c | 2 + 19 files changed, 2700 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/bluetooth.txt create mode 100644 Documentation/devicetree/bindings/net/bluetooth/bluetooth-controller.yaml create mode 100644 Documentation/devicetree/bindings/net/bluetooth/brcm,bcm4377-bluetooth.yaml rename Documentation/devicetree/bindings/net/{ => bluetooth}/qualcomm-bluetooth.yaml (96%) create mode 100644 drivers/bluetooth/hci_bcm4377.c