Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2783322rwb; Mon, 19 Sep 2022 09:52:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zEwwGBeTprb77DjcRzkxyvqcC2Ad9GR/GEpCss6TMqWUAORHwn5/LuSkWwzGVWKBVpOl/ X-Received: by 2002:a17:906:ef8c:b0:77c:7b35:8b04 with SMTP id ze12-20020a170906ef8c00b0077c7b358b04mr12838195ejb.573.1663606339616; Mon, 19 Sep 2022 09:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663606339; cv=none; d=google.com; s=arc-20160816; b=BaiNOZgdcAjKj4dp65AACh/CZXyBY2CbPqnC6u7h48p+kpEf36jm46foZFakcWdf8N qVxlOENfm+neMbTQQO5gOvfLrQvg95e709oND26a052yHPwGZkgJZW9TFVpMciaIT76y 60kMqsrW8i2hGXsuAarpuk1eD+ofj0Kof52QuJUtIqVIRhGI5z4hozKx6yI6EirZxQVt 7mRjcJQ8HJPS+Bfg2OYwqZkwo0NnUOnO0zNFNO45j9oZeJJz3UIwb0BZFflMYqyWsZZf w/UFAj1rd0GF6AdYWVeZSA4PymIv16ZDgTyufy5uQrDsj+JT2VYT0LfzxADazPvhbDZh QEhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=rvgpBluXZTaqb3vna+uXxT40xAPq8i61oRknfT3+QiA=; b=RPhaMZdtvvOrTgCmq781NSEltXqZCU/w9uYj6a3tZUrhjZAy5jO/IQ2QH4EbLkp1Iv UrBo0vjm+kykIty7t69GMr7IsZYolcGhRCD/+HO+/NFY+Oau/hzf/IX3POgyMFvgJTca HuYaQvMTj5N51OF/w4ZnshPjwmCqLMrPl+mcKZWVJK8053BZQfoxw+baJ/HaXNxSRaZn MqVwOUv+7Mz5iJrBWbCFv+gIF+3MtwsGa9ToNyARTkz7Ot2+RZili+vXXpGRxXIEWcWa PIwSgRa6FwkT6mn6CVYRTwz0qdNfMp9KGSBM0Jnro0T4dgzINAVSwomVghq+7SbmBz3i F+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=k1ff9CnK; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=W+b6OIYT; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i40-20020a0564020f2800b0045366941d4csi9083442eda.424.2022.09.19.09.51.25; Mon, 19 Sep 2022 09:52:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=k1ff9CnK; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=W+b6OIYT; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbiISQtg (ORCPT + 99 others); Mon, 19 Sep 2022 12:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiISQte (ORCPT ); Mon, 19 Sep 2022 12:49:34 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C823E9C; Mon, 19 Sep 2022 09:49:32 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 46B275C03E7; Mon, 19 Sep 2022 12:49:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 19 Sep 2022 12:49:29 -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=fm2; t=1663606169; x=1663692569; bh=rvgpBluXZT aqb3vna+uXxT40xAPq8i61oRknfT3+QiA=; b=k1ff9CnKfVsS4VBMjTqgBD4j3A UOLsHp2MPoE5fmyt0z9n6+RoCn0MmiSG/YSvY5HhOISkFjHCewYpCOJBgkshDEHD enmX86JToHyUpTX4Fa1IKtoWTimfTTIQsfwycclE7ZF0BwuYnKme9lDMMQJpvA0n h1j687PK2gaYht9qGgyiAoAdZjG4yE4MB+99h+QUH6tcKI9H1uaQNDdrCgWjTumZ aWJxD3bjWt2X00Ld9JfwpsmPm0OOLDVkQZpzZW63kJEk5YnCIRh9TWQHLW4n91rG RFcbZ3ZrE3SAr1nup2dPpDjogOZ7fm1dWOQzc2meg60rTN28xFwcTsgE1XCQ== 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=fm2; t= 1663606169; x=1663692569; bh=rvgpBluXZTaqb3vna+uXxT40xAPq8i61oRk nfT3+QiA=; b=W+b6OIYTxMsmoRsH9ArlYD2aTT7HrtURx/WHqUAA2Kgjuitw0Iw nKccfgoSmQ0gXx9aFuHrq85zmU4AjIDn5MCRk9VVVnO6vPvsjLXhO2om8zCmBBHL UReNvnsG6ynCjWc3Slu971dR6WAYxWnMOpo5uhFReUQR7QHdIELFvtUFoOE6u/b5 3/J+wiuu5w73B9I3pmtwNtVkJAqpDZGGwwBmlBMknjZ6v2rn1j7rYmFARqIyhM1z EIGvX6CCd+fUcS9kfT6lKLF6lTb9MKvLwHaGM26OnAu+837PmqClDhHfZcKAAYa9 MfymZbfeAgx9g0JgN9XVhe0O/UmeuSrgTSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvjedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcu rfgvthgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvg hrnhepgfegudffudelfeeugedtjeeugeehueffudevveegveektdfhueehueeufeelheev necuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Sep 2022 12:49:25 -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 v3 0/7] Broadcom/Apple Bluetooth driver for Apple Silicon Date: Mon, 19 Sep 2022 18:48:27 +0200 Message-Id: <20220919164834.62739-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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/ Here's v3 of the Apple/Broadcom Bluetooth series. Again most changes are to the device tree bindings. I've also included the changes to the dts files that I forgot for the last two versions. Additionally I had to introduce another quirk since these controllers also claim to support MWS Pattern Configuration but then simply disallow that command. This used to be silently ignored by the bluetooth core but fails during setup now since b82a26d8633cc89367fac75beb3ec33061bea44a. 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 Pattern 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 | 2513 +++++++++++++++++ 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, 2699 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 -- 2.25.1