Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10336766rwr; Fri, 12 May 2023 07:00:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Lo9kNO059YKQh9bzK6x7zei1+sfOhubD8zDdq6C/6n6tQecp350BSNq3POoxZ9p6Z4hYo X-Received: by 2002:a05:6a21:33a8:b0:103:ee82:dc92 with SMTP id yy40-20020a056a2133a800b00103ee82dc92mr7596917pzb.60.1683900026436; Fri, 12 May 2023 07:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683900026; cv=none; d=google.com; s=arc-20160816; b=QSlssEJa5BT+QKpkgWZtlvIx35hZmCeFzJ3hEvrZKwuRW9IPblZt6Mem4jtcAPbTzO 9d+UIF8TQE+m4kc0RTy1sGKXmrWIY1eRoCncmLL0GVXzytcCjZYG7e2WsNifU0ke3c/b 9XtUlW2ILIMP3w3/cRWJTM7d+//Fl4jxMB5rXWA6Z7wFd4hLslbgKVvgIQEO872+FSgw qbm+yECYkAOA2kb5YlGc+oXnZcF13Grn3XcWQK0xbBXl7gxIjz2sntoq1jCnMYN7Ot2y 3BTEmUgQvVYnJBCBdHz6QIOOqXTnJ9GRxTrPH76AwTo4ILYr3MuqzQ0DnNDs0LyxEsBk IRAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=s/KFs/2B7m9MZiz0WLTsjGkrH/SBAUtK2lt6sIgh0XA=; b=ypTmnnTlOeyYZBEPvTis8ncXtmGtD5qaYOGWpF0HPOQXO6MnJw6MCLdeE+ZaaOz3/X ndcfRBkGyMOW+gLMcD1JuUChWD1SZ1O510EYh+eQ4KhXZr3F78hfWGzHgev+FZopgZ2h Cy9oL4rlvv6hVxA2PZaB2Wdzg44U5okAZOQ71BSdC/2bJRo56Nn0oLLyOWVLPYlMkbp6 Y9yplsCR00jBin33yGdZwk39N2dNkKLU+CpNfm9MvrlM/LQVJFxm+UvW1G7Zl/xaDLy/ RRKYr/lv+Pann1EOkTxa+mvxXnR+JABLWQHTtofsYEvC3YfTvj3MWRI+EkyXn0fsjChn 80uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=j8Qzw0Lo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a63340f000000b00527d158ec6dsi9063156pga.406.2023.05.12.07.00.14; Fri, 12 May 2023 07:00:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@fairphone.com header.s=fair header.b=j8Qzw0Lo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241252AbjELN7B (ORCPT + 99 others); Fri, 12 May 2023 09:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241351AbjELN65 (ORCPT ); Fri, 12 May 2023 09:58:57 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 343345FD3 for ; Fri, 12 May 2023 06:58:54 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-965ac4dd11bso1979195966b.2 for ; Fri, 12 May 2023 06:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1683899932; x=1686491932; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=s/KFs/2B7m9MZiz0WLTsjGkrH/SBAUtK2lt6sIgh0XA=; b=j8Qzw0Lowk/cxZNFBonlAujktmiNhfOIJJVOfo680Kzh/5Av8OSb/w7fykhFtPAaT/ dmtk7+vfzCj6deZEfAtwVWGYBTW2yYJxVxgSXGm0ps69GH93iTzYAjNtu2h3LqW0ULjb xs7947lefsb43rbw1Y4vZ/LJ/mzF59vj3Iesg7bs5UWAD2LVZRo7OY1cgpqZALLuiUve ZmExppHvF5NaXX5OxXybJxpYHpMEodMGrASNNDS4mX8zPuuxkGSC1BfAYREnuMWg9+Ci KUHcXu/yTSMzsA8TT35GrWpi2BL3W3BHIlM20Gly4oHhugLl/s3JpXn3/BJlZxWr4PN2 HpiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683899932; x=1686491932; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s/KFs/2B7m9MZiz0WLTsjGkrH/SBAUtK2lt6sIgh0XA=; b=HdavxgkicsdiVnjjWgrJBVvnYA+FXAk3LkAyuvqErGie+VcKmY8UAsPFNt2FiTbrkG OGn9P/sW6gm45T5dPVchtg+Gou1u6NfPUDOUTjNHpL/VkgWqIaNbz9nU9A5nZDreYArP /9ckAGnaMhpzjuIaKAFXEmvSsNfxjxFl3z2buT230+6KaTwm0mlUcagVZIk4reF8/9Ir O+TNjiGTJPH8QKDU3mklPux3svdRzIGU3+XXBaLWT29Jwehh0GqZAEllBTA6S3XCrVPY xTWNeOy2nYmTRXE/2N4e8H5bI0FMhZzhca2P6Hhds5u4m8OwnSB8JjwyKidrfFv2fyzq VfAw== X-Gm-Message-State: AC+VfDy+1SvK4m5zxr/ehNt76bwqbuhWiTrQgnCf2B07JQd2PWzMY0RB OMDNIYulmkb63I9mRIodh8Xa3g== X-Received: by 2002:a17:907:9686:b0:966:65ee:beb7 with SMTP id hd6-20020a170907968600b0096665eebeb7mr18927481ejc.71.1683899932573; Fri, 12 May 2023 06:58:52 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id mc27-20020a170906eb5b00b00966330021e9sm5399061ejb.47.2023.05.12.06.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:58:52 -0700 (PDT) From: Luca Weiss Subject: [PATCH v2 0/4] Add WCN3988 Bluetooth support for Fairphone 4 Date: Fri, 12 May 2023 15:58:22 +0200 Message-Id: <20230421-fp4-bluetooth-v2-0-3de840d5483e@fairphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAP5FXmQC/3WNQQ6CMBBFr2Jm7ZihJYKuvIdh0dbBToItaYFoC He3snf5XvL/WyFzEs5wPayQeJEsMRRQxwM4b8KTUR6FQZHSVKsK+7FGO8w8xTh5tPpsiNvGXlw LZWNNZrTJBOfLKszDUOSYuJf3Hrl3hb3kKabP3lyqn/13v1RISLUm1qZhMurWG0mjj4FPLr6g2 7btC86hTjbDAAAA To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Andy Gross , Bjorn Andersson , Konrad Dybcio , Conor Dooley Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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-kernel@vger.kernel.org Add support in the btqca/hci_qca driver for the WCN3988 and add it to the sm7225 Fairphone 4 devicetree. Devicetree patches go via Qualcomm tree, the rest via their respective trees. -- Previously with the RFC version I've had problems before with Bluetooth scanning failing like the following: [bluetooth]# scan on Failed to start discovery: org.bluez.Error.InProgress [ 202.371374] Bluetooth: hci0: Opcode 0x200b failed: -16 This appears to only happen with driver built-in (=y) when the supported local commands list doesn't get updated in the Bluetooth core and use_ext_scan() returning false. I'll try to submit this separately since this now works well enough with =m. But in both cases (=y, =m) it's behaving a bit weirdly before (re-)setting the MAC address with "sudo btmgmt public-addr fo:oo:ba:ar" Signed-off-by: Luca Weiss --- Changes in v2: - Add pinctrl & 'tlmm 64' irq to uart node - Pick up tags - Link to v1: https://lore.kernel.org/r/20230421-fp4-bluetooth-v1-0-0430e3a7e0a2@fairphone.com --- Luca Weiss (4): dt-bindings: net: qualcomm: Add WCN3988 Bluetooth: btqca: Add WCN3988 support arm64: dts: qcom: sm6350: add uart1 node arm64: dts: qcom: sm7225-fairphone-fp4: Add Bluetooth .../bindings/net/bluetooth/qualcomm-bluetooth.yaml | 2 + arch/arm64/boot/dts/qcom/sm6350.dtsi | 63 +++++++++++++ arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 103 +++++++++++++++++++++ drivers/bluetooth/btqca.c | 13 ++- drivers/bluetooth/btqca.h | 12 ++- drivers/bluetooth/hci_qca.c | 12 +++ 6 files changed, 201 insertions(+), 4 deletions(-) --- base-commit: f2fe50eb7ca6b7bc6c63745f5c26f7c6022fcd4a change-id: 20230421-fp4-bluetooth-b36a0e87b9c8 Best regards, -- Luca Weiss