From nobody Fri Dec 19 07:49:56 2025 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 BAC7FC4167B for ; Thu, 7 Dec 2023 09:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378494AbjLGJNC (ORCPT ); Thu, 7 Dec 2023 04:13:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235161AbjLGJMj (ORCPT ); Thu, 7 Dec 2023 04:12:39 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B48F1725 for ; Thu, 7 Dec 2023 01:12:12 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40b397793aaso3875725e9.0 for ; Thu, 07 Dec 2023 01:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701940331; x=1702545131; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kNLG30CN2zegE/M7jl95INA4rCvQrv07QBb0d7Gkeww=; b=CQ5OKXtBgoLI7WRNq+gepaxQthGmLKGMx/xDCrEKKseT6EmHhNOF1vEOQLq2E9WTOP MKu0hz6n9mKExAoQ4PqKoFynIwUdWJg9vgrMA1WUn2566fcgBFrPPbZLVFSE7QVdaCGw DASzFHMY05UvH7Bh0+qnv50ZQoX1ec4Dy0evFsX4GfltgaC3ZNfrHgDV16GLJgLyN4DD kuhEpFoXt4Btqsl9kroFcOhC6mZxdNJj7VUgC3g+Fi3Jx/WJj962PuljGcoXuzufHJgb +wlD9p5igrvKvDmiFS8dNvnsqlF20MoeYZ34bP9c5keQsE9xvV+GFyXHdtC7+p+zjvXk HG1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701940331; x=1702545131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kNLG30CN2zegE/M7jl95INA4rCvQrv07QBb0d7Gkeww=; b=j102IX4P4XaC2RorKgdsmqhO+dPXGGLu93iS3qu6HTbsusWBHISDK+/lre0SwQMyWc Cn5Y2PDC0qBxYzzDYe1UO+2IdWGaT6KEOSAfvdqNieR+ne09CMFl+NGTfkcN25VGqrEL CBzXTrpYQF5jXy6u7LfvBs2T3lqJnyUEZmAZ3gPwR2BlN7N3XyNhdZusmL2XfPKHCukJ X4rN+yTZVYvMlnV0LgZpD7xrx4k1RvnCHar3yHUN7Ms6p/SoDJXP/VW/fv1ZuuPwPyWr OdB/e0zUhsGhwo3x7KTzf+WEXQQkVEsTo7DAGezrpF1FLG2kP0rSSYf+MRfpbonKNFzp Lj6g== X-Gm-Message-State: AOJu0YzahHF7e5LpTgvMkmmJNTx77uFSihSruT/hi+zW+unDaliAe9m+ rA5pIXoqqTI9W+74hulfiByJSg== X-Google-Smtp-Source: AGHT+IErPK+hX/Ij8xcH1pt2rolGWBmbdJU42c/YHeF/TrT7Ywo/oD5Kt5AujnyiPUZWxwdSbkeY5w== X-Received: by 2002:a05:600c:3553:b0:40b:27b4:b4eb with SMTP id i19-20020a05600c355300b0040b27b4b4ebmr2418920wmq.4.1701940330981; Thu, 07 Dec 2023 01:12:10 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:de32:8b0f:dc9a:4dce]) by smtp.gmail.com with ESMTPSA id y3-20020adff6c3000000b0033334c3acb6sm896009wrp.98.2023.12.07.01.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:12:10 -0800 (PST) From: Bartosz Golaszewski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Alex Elder , Srini Kandagatla , Bjorn Andersson Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 1/3] dt-bindings: net: bluetooth: qualcomm: fix a typo Date: Thu, 7 Dec 2023 10:12:00 +0100 Message-Id: <20231207091202.19231-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231207091202.19231-1-brgl@bgdev.pl> References: <20231207091202.19231-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski Spell supply correctly. Signed-off-by: Bartosz Golaszewski --- .../devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluet= ooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-blueto= oth.yaml index eba2f3026ab0..ba8205f88e5f 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.ya= ml +++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.ya= ml @@ -69,7 +69,7 @@ properties: description: VDD_RFA_CMN supply regulator handle =20 vddrfa0p8-supply: - description: VDD_RFA_0P8 suppply regulator handle + description: VDD_RFA_0P8 supply regulator handle =20 vddrfa1p7-supply: description: VDD_RFA_1P7 supply regulator handle --=20 2.40.1 From nobody Fri Dec 19 07:49:56 2025 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 74469C4167B for ; Thu, 7 Dec 2023 09:13:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378560AbjLGJNG (ORCPT ); Thu, 7 Dec 2023 04:13:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235332AbjLGJMj (ORCPT ); Thu, 7 Dec 2023 04:12:39 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B031723 for ; Thu, 7 Dec 2023 01:12:14 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40c2718a768so7373345e9.0 for ; Thu, 07 Dec 2023 01:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701940332; x=1702545132; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P8Iep3f8IbW9XJUviPCyqs/DBfreAlewexDEpMRvmDo=; b=BTbq9mDEYAiL+96ZzZApuWxeAFQS2d2PpPPZocNBP0JD1fGNZctkJM+Qj8Hep/dnbz Lc8KXrR9os6zyQ9D991DGCHLU/XwG+OIcguXabvTEjJLRYgmeCbsBG7QlNdyPVRnOE27 sJuWfLTZZs7uuS8Qw6RvsLx84MhJfKXfqferDtHQIxvX/eB/3pQNlWdBpcmQqCtarYFL JCawR9jdlfgBc1WrKTXzPWrbgyv3HUe3/eWi8pjsoLf23NGGRTMSUDFP981F9tdEppAr 6XITsS241i+2TXYOM+k8lcuFj9h8PVgd1ZbaXtwr4ywbdBb/Wahceqh3zfMIA7aFTxQt GmCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701940332; x=1702545132; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P8Iep3f8IbW9XJUviPCyqs/DBfreAlewexDEpMRvmDo=; b=EDQonEufAKaEROE27w/neQpkucFHShWMKY9xT+t/MdGyYtt03Eak9aDv4iWyF/E4EP YT0ONGxQmcTXa8K0ws+8cdT3A1E8dgVr+iGsMfRxvu5XILWbENwbFx3Yz+cmK4GEMo7c QE5p58z8o34BY7lR5k7FJD0G7Al8XEeKs0v8ysxCcIRUiGOv8EbBT6ehcpA0m7es6SSt s9tEhNbYD7Pm8pj/Yl4l6Guz5PL5RH+PIDWTTw9W+pRMUWgmfNj2FeeDD5AFkip4zec1 up9SWlsJTYxzZh1I5h1ysD2/e1D7B7DvSk8CWiSeU7GbpXhU9g/Jabv0hL9A4I0iTIIV NTqQ== X-Gm-Message-State: AOJu0Yy44Fnx6k/lc+8tkZkiAm7v34FajRJe46H8hR0PCZupkpUIEAFY LRuv/LDZeOflZJxj7yUkdcGGHg== X-Google-Smtp-Source: AGHT+IH20Zn1uTIOUuW+48Vx0oVF0nDTgMGZyFOdUjShve7iw+aZCG1zm/jU7hRgv5pnJr3guxbQ8Q== X-Received: by 2002:a05:600c:3b1f:b0:40b:2a18:f1be with SMTP id m31-20020a05600c3b1f00b0040b2a18f1bemr1427841wms.1.1701940332105; Thu, 07 Dec 2023 01:12:12 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:de32:8b0f:dc9a:4dce]) by smtp.gmail.com with ESMTPSA id y3-20020adff6c3000000b0033334c3acb6sm896009wrp.98.2023.12.07.01.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:12:11 -0800 (PST) From: Bartosz Golaszewski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Alex Elder , Srini Kandagatla , Bjorn Andersson Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 2/3] dt-bindings: net: bluetooth: qualcomm: add regulators for QCA6390 Date: Thu, 7 Dec 2023 10:12:01 +0100 Message-Id: <20231207091202.19231-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231207091202.19231-1-brgl@bgdev.pl> References: <20231207091202.19231-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski Add regulator properties for QCA6390 that are missing from the bindings and enforce required properties for this model as well. Signed-off-by: Bartosz Golaszewski --- .../net/bluetooth/qualcomm-bluetooth.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluet= ooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-blueto= oth.yaml index ba8205f88e5f..861663f280eb 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.ya= ml +++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.ya= ml @@ -65,12 +65,21 @@ properties: vddbtcxmx-supply: description: VDD_BT_CXMX supply regulator handle =20 + vddpmu-supply: + description: VDD_PMU supply regulator handle + vddrfacmn-supply: description: VDD_RFA_CMN supply regulator handle =20 vddrfa0p8-supply: description: VDD_RFA_0P8 supply regulator handle =20 + vddrfa0p9-supply: + description: VDD_RFA_0P9 supply regulator handle + + vddrfa1p3-supply: + description: VDD_RFA1P3 supply regulator handle + vddrfa1p7-supply: description: VDD_RFA_1P7 supply regulator handle =20 @@ -180,6 +189,21 @@ allOf: - vddrfa0p8-supply - vddrfa1p2-supply - vddrfa1p9-supply + - if: + properties: + compatible: + contains: + enum: + - qcom,qca6390-bt + then: + required: + - enable-gpios + - vddio-supply + - vddpmu-supply + - vddaon-supply + - vddrfa0p9-supply + - vddrfa1p3-supply + - vddrfa1p9-supply =20 examples: - | --=20 2.40.1 From nobody Fri Dec 19 07:49:56 2025 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 66CDBC4167B for ; Thu, 7 Dec 2023 09:13:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378644AbjLGJNJ (ORCPT ); Thu, 7 Dec 2023 04:13:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235174AbjLGJMj (ORCPT ); Thu, 7 Dec 2023 04:12:39 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25878172B for ; Thu, 7 Dec 2023 01:12:15 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40b2ad4953cso10075465e9.0 for ; Thu, 07 Dec 2023 01:12:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701940333; x=1702545133; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=abIGam56kSZ3DhSDuEO3BjQb5HXWW5MMfEQ3kw2b1bA=; b=NUWxowhsMgLiuMreM/JfPoF26hF9hNWz1eKHez7UJrpbNzRFYPqmxs9o8vI9dOaO/7 lU7aSIjQH8z5bUabkqqE6rHOYOouLQiRtdFjEKgknz9Nef+2RimeEwBKf6nSyT6bbRPa 66gKuDlvx/ozQncRf1OFY8NmHY3cINfSv8C/LqClbTc2c5NGsk2nuLrQKSMnkvWSSmcK PRaw1ufVLFi+qhoJQwRpmAz/4Tc0G1oQJV7fdwGitT9fm7XMqJczogIrdEXZArWPnWNR nvGZCex9xmgU66Oxnu52SbB60nlC9FfRoRWRDousEuYcC0QL309Icmj8/iIOvL0uS4IA LZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701940333; x=1702545133; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=abIGam56kSZ3DhSDuEO3BjQb5HXWW5MMfEQ3kw2b1bA=; b=h5ivCjdgM2uZ0Hq0Gifx1UE3Agu+EfLnEg7lqmupMY1Hb7vUbX/Y0X8H2rS0X/eOZT 1Mu9lhLsgaU3ykQVIqRV6CbaUz8wtr7/JZPidAVimu+EHb9L4CHgR6bgr+owWxgE53+n yZOKxxJQ2uswp65DoLQSQf5fTMBNkzYsQO54rCt4RXrN22n9N/OHXgjSem6mRFmUkmSP oqAhu6TW+LhYw1LA+o51TuyritqECe2oCdoBZFJAZaJfFiES8uM35cnTTsX0C25nnLZ2 vAzmnA3VoxjtShLZhGoy9JKDvH2P2Q/cPCugkaEgQAxPSXSNLYSvXdYcuwonFOyR0XAt t6kQ== X-Gm-Message-State: AOJu0YwVz0O0RhwHbvJ5ZXvcwI8ZGLKgtU+G0eLiKKY4kjihCX0j2hK2 iT8LDhk6yvThl0GIR+VNhAp47g== X-Google-Smtp-Source: AGHT+IFPy6rDPC84jLuaSGV9bgwyFSV/vFR4KlGp8lebRYr+5pOBmJ32Bs+S3ip1jKFNvcx/lCuWyQ== X-Received: by 2002:a7b:ca4c:0:b0:40c:2c2d:78da with SMTP id m12-20020a7bca4c000000b0040c2c2d78damr154975wml.170.1701940333379; Thu, 07 Dec 2023 01:12:13 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:de32:8b0f:dc9a:4dce]) by smtp.gmail.com with ESMTPSA id y3-20020adff6c3000000b0033334c3acb6sm896009wrp.98.2023.12.07.01.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:12:12 -0800 (PST) From: Bartosz Golaszewski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Alex Elder , Srini Kandagatla , Bjorn Andersson Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 3/3] Bluetooth: qca: run the power-on/off sequence for QCA6390 too Date: Thu, 7 Dec 2023 10:12:02 +0100 Message-Id: <20231207091202.19231-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231207091202.19231-1-brgl@bgdev.pl> References: <20231207091202.19231-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski The Bluetooth module on QCA6390 needs to be powered-on by enabling the relevant regulators and driving the enable GPIO high. We can reuse the power sequence for the WNC models if we add the list of required regulators to the OF match data. Signed-off-by: Bartosz Golaszewski --- drivers/bluetooth/hci_qca.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 35f74f209d1f..b27be08a1f6f 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1788,6 +1788,7 @@ static int qca_power_on(struct hci_dev *hdev) case QCA_WCN6750: case QCA_WCN6855: case QCA_WCN7850: + case QCA_QCA6390: ret =3D qca_regulator_init(hu); break; =20 @@ -2044,7 +2045,15 @@ static const struct qca_device_data qca_soc_data_qca= 2066 __maybe_unused =3D { =20 static const struct qca_device_data qca_soc_data_qca6390 __maybe_unused = =3D { .soc_type =3D QCA_QCA6390, - .num_vregs =3D 0, + .vregs =3D (struct qca_vreg []) { + { "vddio", 20000 }, + { "vddaon", 100000 }, + { "vddpmu", 1250000 }, + { "vddrfa0p9", 200000 }, + { "vddrfa1p3", 400000 }, + { "vddrfa1p9", 400000 }, + }, + .num_vregs =3D 6, }; =20 static const struct qca_device_data qca_soc_data_wcn6750 __maybe_unused = =3D { @@ -2129,6 +2138,7 @@ static void qca_power_shutdown(struct hci_uart *hu) =20 case QCA_WCN6750: case QCA_WCN6855: + case QCA_QCA6390: gpiod_set_value_cansleep(qcadev->bt_en, 0); msleep(100); qca_regulator_disable(qcadev); @@ -2276,6 +2286,7 @@ static int qca_serdev_probe(struct serdev_device *ser= dev) case QCA_WCN6750: case QCA_WCN6855: case QCA_WCN7850: + case QCA_QCA6390: qcadev->bt_power =3D devm_kzalloc(&serdev->dev, sizeof(struct qca_power), GFP_KERNEL); @@ -2386,6 +2397,7 @@ static void qca_serdev_remove(struct serdev_device *s= erdev) case QCA_WCN6750: case QCA_WCN6855: case QCA_WCN7850: + case QCA_QCA6390: if (power->vregs_on) { qca_power_shutdown(&qcadev->serdev_hu); break; --=20 2.40.1