public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/1] Enable Bluetooth on qcs6490-rb3gen2 board
@ 2024-12-23 13:56 Janaki Ramaiah Thota
  2024-12-23 13:57 ` [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties Janaki Ramaiah Thota
  0 siblings, 1 reply; 8+ messages in thread
From: Janaki Ramaiah Thota @ 2024-12-23 13:56 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao
  Cc: quic_mohamull, quic_hbandi, quic_anubhavg, linux-bluetooth,
	devicetree, linux-kernel

- Patch 1/1 Update the wcn6750 required properties in bindings.

----
Changes from v5:
* Update the wcn6750 required properties in bindings.
* Link to v5: https://lore.kernel.org/linux-arm-msm/20241209103455.9675-1-quic_janathot@quicinc.com/

Changes from v4:
* Added reviewed tag by Krzysztof in p1
* Updated the p2 commit message with sw_ctrl and wifi-enable are
  handled in wifi FW.
* Added blank line between the nodes in p2
* Placed the structures in proper order in p4
* Link to v4: https://lore.kernel.org/all/20241204131706.20791-1-quic_janathot@quicinc.com/

Changes from v3:
* Defined the PMU node and used the its output to power up BT
* Used power sequencer for wcn wcn6750 module
* Split the patch to multiple as per subtree
* Add description of the PMU of the WCN6750 module
* Include separate UART state node for sleep pin configuarion
* Link to v3: https://lore.kernel.org/linux-arm-msm/20241022104600.3228-1-quic_janathot@quicinc.com/

Changes from v2:
* Sorted nodes alphabetically
* Link to v2: https://lore.kernel.org/linux-arm-msm/20241010105107.30118-1-quic_janathot@quicinc.com/

Changes from v1:
* Corrected the board name in subject
* Link to v1: https://lore.kernel.org/linux-arm-msm/20241009111436.23473-1-quic_janathot@quicinc.com/
Janaki Ramaiah Thota (1):
  dt-bindings: bluetooth: update the wcn6750 required properties

 .../bindings/net/bluetooth/qualcomm-bluetooth.yaml           | 5 -----
 1 file changed, 5 deletions(-)

-- 



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-23 13:56 [PATCH v6 0/1] Enable Bluetooth on qcs6490-rb3gen2 board Janaki Ramaiah Thota
@ 2024-12-23 13:57 ` Janaki Ramaiah Thota
  2024-12-24  9:16   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Janaki Ramaiah Thota @ 2024-12-23 13:57 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao
  Cc: quic_mohamull, quic_hbandi, quic_anubhavg, linux-bluetooth,
	devicetree, linux-kernel

Drop the inputs from the host and instead expect the Bluetooth node to
consume the outputs of the internal PMU.

Signed-off-by: Janaki Ramaiah Thota <quic_janathot@quicinc.com>
---
 .../bindings/net/bluetooth/qualcomm-bluetooth.yaml           | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
index 7bb68311c609..6906e1742d6c 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
@@ -154,16 +154,11 @@ allOf:
               - qcom,wcn6750-bt
     then:
       required:
-        - enable-gpios
-        - swctrl-gpios
-        - vddio-supply
         - vddaon-supply
-        - vddbtcxmx-supply
         - vddrfacmn-supply
         - vddrfa0p8-supply
         - vddrfa1p7-supply
         - vddrfa1p2-supply
-        - vddasd-supply
   - if:
       properties:
         compatible:
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-23 13:57 ` [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties Janaki Ramaiah Thota
@ 2024-12-24  9:16   ` Krzysztof Kozlowski
  2024-12-24 11:51     ` Janaki Ramaiah Thota
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-24  9:16 UTC (permalink / raw)
  To: Janaki Ramaiah Thota
  Cc: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao, quic_mohamull, quic_hbandi, quic_anubhavg,
	linux-bluetooth, devicetree, linux-kernel

On Mon, Dec 23, 2024 at 07:27:00PM +0530, Janaki Ramaiah Thota wrote:

Subject: everything is an update... say something useful, e.g. use PMU
abstraction for WCN6750

> Drop the inputs from the host and instead expect the Bluetooth node to
> consume the outputs of the internal PMU.

On which device?

But anyway I have doubts this is correct. enable GPIO is a pin going
from the host, not from PMU.

> 
> Signed-off-by: Janaki Ramaiah Thota <quic_janathot@quicinc.com>
> ---
>  .../bindings/net/bluetooth/qualcomm-bluetooth.yaml           | 5 -----
>  1 file changed, 5 deletions(-)
> 

I don't understand why this is v6 of previous patchset. There was no
such patch before.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-24  9:16   ` Krzysztof Kozlowski
@ 2024-12-24 11:51     ` Janaki Ramaiah Thota
  2024-12-24 13:27       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Janaki Ramaiah Thota @ 2024-12-24 11:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao, quic_mohamull, quic_hbandi, quic_anubhavg,
	linux-bluetooth, devicetree, linux-kernel



On 12/24/2024 2:46 PM, Krzysztof Kozlowski wrote:
> On Mon, Dec 23, 2024 at 07:27:00PM +0530, Janaki Ramaiah Thota wrote:
> 
> Subject: everything is an update... say something useful, e.g. use PMU
> abstraction for WCN6750
> 

Sure will correct it in next patch.

>> Drop the inputs from the host and instead expect the Bluetooth node to
>> consume the outputs of the internal PMU.
> 
> On which device?
> 

It is for BT module wcn6750 attached on qcs6490-rb3gen2 board.
will update same on next commit message.

> But anyway I have doubts this is correct. enable GPIO is a pin going
> from the host, not from PMU.
> 

Yes you are correct, enable GPIO is out pin of host, but here updated 
the entries required for Bluetooth node from PMU, not from host to PMU.

>>
>> Signed-off-by: Janaki Ramaiah Thota <quic_janathot@quicinc.com>
>> ---
>>   .../bindings/net/bluetooth/qualcomm-bluetooth.yaml           | 5 -----
>>   1 file changed, 5 deletions(-)
>>
> 
> I don't understand why this is v6 of previous patchset. There was no
> such patch before.
> 

Just to maintain the previous patch series history named as v6.
Updated the cover letter with previous v5 history:
https://lore.kernel.org/linux-arm-msm/20241209103455.9675-1-quic_janathot@quicinc.com/

Thanks,
Janakiram

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-24 11:51     ` Janaki Ramaiah Thota
@ 2024-12-24 13:27       ` Krzysztof Kozlowski
  2024-12-26  6:11         ` Janaki Ramaiah Thota
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-24 13:27 UTC (permalink / raw)
  To: Janaki Ramaiah Thota
  Cc: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao, quic_mohamull, quic_hbandi, quic_anubhavg,
	linux-bluetooth, devicetree, linux-kernel

On 24/12/2024 12:51, Janaki Ramaiah Thota wrote:
> 
> 
> On 12/24/2024 2:46 PM, Krzysztof Kozlowski wrote:
>> On Mon, Dec 23, 2024 at 07:27:00PM +0530, Janaki Ramaiah Thota wrote:
>>
>> Subject: everything is an update... say something useful, e.g. use PMU
>> abstraction for WCN6750
>>
> 
> Sure will correct it in next patch.
> 
>>> Drop the inputs from the host and instead expect the Bluetooth node to
>>> consume the outputs of the internal PMU.
>>
>> On which device?
>>
> 
> It is for BT module wcn6750 attached on qcs6490-rb3gen2 board.
> will update same on next commit message.
> 
>> But anyway I have doubts this is correct. enable GPIO is a pin going
>> from the host, not from PMU.
>>
> 
> Yes you are correct, enable GPIO is out pin of host, but here updated 
> the entries required for Bluetooth node from PMU, not from host to PMU.

Hm? No, you removed for example enable-gpios, which is input from the
host. Sorry, I don't understand the reason behind this patch and commit
msg does not help me there.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-24 13:27       ` Krzysztof Kozlowski
@ 2024-12-26  6:11         ` Janaki Ramaiah Thota
  2024-12-27  7:05           ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Janaki Ramaiah Thota @ 2024-12-26  6:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao, quic_mohamull, quic_hbandi, quic_anubhavg,
	linux-bluetooth, devicetree, linux-kernel



On 12/24/2024 6:57 PM, Krzysztof Kozlowski wrote:
> On 24/12/2024 12:51, Janaki Ramaiah Thota wrote:
>>
>>
>> On 12/24/2024 2:46 PM, Krzysztof Kozlowski wrote:
>>> On Mon, Dec 23, 2024 at 07:27:00PM +0530, Janaki Ramaiah Thota wrote:
>>>
>>> Subject: everything is an update... say something useful, e.g. use PMU
>>> abstraction for WCN6750
>>>
>>
>> Sure will correct it in next patch.
>>
>>>> Drop the inputs from the host and instead expect the Bluetooth node to
>>>> consume the outputs of the internal PMU.
>>>
>>> On which device?
>>>
>>
>> It is for BT module wcn6750 attached on qcs6490-rb3gen2 board.
>> will update same on next commit message.
>>
>>> But anyway I have doubts this is correct. enable GPIO is a pin going
>>> from the host, not from PMU.
>>>
>>
>> Yes you are correct, enable GPIO is out pin of host, but here updated
>> the entries required for Bluetooth node from PMU, not from host to PMU.
> 
> Hm? No, you removed for example enable-gpios, which is input from the
> host. Sorry, I don't understand the reason behind this patch and commit
> msg does not help me there.
> 

We are migrating to powerseq for the WCN6750. As per Dmitry’s 
suggestion, we are now using the on-chip PMU, which necessitates the 
removal of some entries that are not mandatory to avoid binding errors. 
For example, the enable GPIO is now handled by the PMU with property 
bt-enable-gpios, as shown in the patch linked below
https://lore.kernel.org/linux-arm-msm/20241209103455.9675-3-quic_janathot@quicinc.com/

Thanks,
Janakiram

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-26  6:11         ` Janaki Ramaiah Thota
@ 2024-12-27  7:05           ` Krzysztof Kozlowski
  2024-12-27 10:46             ` Janaki Ramaiah Thota
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-27  7:05 UTC (permalink / raw)
  To: Janaki Ramaiah Thota
  Cc: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao, quic_mohamull, quic_hbandi, quic_anubhavg,
	linux-bluetooth, devicetree, linux-kernel

On 26/12/2024 07:11, Janaki Ramaiah Thota wrote:
> 
> 
> On 12/24/2024 6:57 PM, Krzysztof Kozlowski wrote:
>> On 24/12/2024 12:51, Janaki Ramaiah Thota wrote:
>>>
>>>
>>> On 12/24/2024 2:46 PM, Krzysztof Kozlowski wrote:
>>>> On Mon, Dec 23, 2024 at 07:27:00PM +0530, Janaki Ramaiah Thota wrote:
>>>>
>>>> Subject: everything is an update... say something useful, e.g. use PMU
>>>> abstraction for WCN6750
>>>>
>>>
>>> Sure will correct it in next patch.
>>>
>>>>> Drop the inputs from the host and instead expect the Bluetooth node to
>>>>> consume the outputs of the internal PMU.
>>>>
>>>> On which device?
>>>>
>>>
>>> It is for BT module wcn6750 attached on qcs6490-rb3gen2 board.
>>> will update same on next commit message.
>>>
>>>> But anyway I have doubts this is correct. enable GPIO is a pin going
>>>> from the host, not from PMU.
>>>>
>>>
>>> Yes you are correct, enable GPIO is out pin of host, but here updated
>>> the entries required for Bluetooth node from PMU, not from host to PMU.
>>
>> Hm? No, you removed for example enable-gpios, which is input from the
>> host. Sorry, I don't understand the reason behind this patch and commit
>> msg does not help me there.
>>
> 
> We are migrating to powerseq for the WCN6750. As per Dmitry’s 
> suggestion, we are now using the on-chip PMU, which necessitates the 
> removal of some entries that are not mandatory to avoid binding errors. 
> For example, the enable GPIO is now handled by the PMU with property 
> bt-enable-gpios, as shown in the patch linked below
> https://lore.kernel.org/linux-arm-msm/20241209103455.9675-3-quic_janathot@quicinc.com/
I don't understand why this patch is separate from the others. Entire
context is missing and nothing gets explained in commit msg.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties
  2024-12-27  7:05           ` Krzysztof Kozlowski
@ 2024-12-27 10:46             ` Janaki Ramaiah Thota
  0 siblings, 0 replies; 8+ messages in thread
From: Janaki Ramaiah Thota @ 2024-12-27 10:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Balakrishna Godavarthi,
	Rocky Liao, quic_mohamull, quic_hbandi, quic_anubhavg,
	linux-bluetooth, devicetree, linux-kernel



On 12/27/2024 12:35 PM, Krzysztof Kozlowski wrote:
> On 26/12/2024 07:11, Janaki Ramaiah Thota wrote:
>>
>>
>> On 12/24/2024 6:57 PM, Krzysztof Kozlowski wrote:
>>> On 24/12/2024 12:51, Janaki Ramaiah Thota wrote:
>>>>
>>>>
>>>> On 12/24/2024 2:46 PM, Krzysztof Kozlowski wrote:
>>>>> On Mon, Dec 23, 2024 at 07:27:00PM +0530, Janaki Ramaiah Thota wrote:
>>>>>
>>>>> Subject: everything is an update... say something useful, e.g. use PMU
>>>>> abstraction for WCN6750
>>>>>
>>>>
>>>> Sure will correct it in next patch.
>>>>
>>>>>> Drop the inputs from the host and instead expect the Bluetooth node to
>>>>>> consume the outputs of the internal PMU.
>>>>>
>>>>> On which device?
>>>>>
>>>>
>>>> It is for BT module wcn6750 attached on qcs6490-rb3gen2 board.
>>>> will update same on next commit message.
>>>>
>>>>> But anyway I have doubts this is correct. enable GPIO is a pin going
>>>>> from the host, not from PMU.
>>>>>
>>>>
>>>> Yes you are correct, enable GPIO is out pin of host, but here updated
>>>> the entries required for Bluetooth node from PMU, not from host to PMU.
>>>
>>> Hm? No, you removed for example enable-gpios, which is input from the
>>> host. Sorry, I don't understand the reason behind this patch and commit
>>> msg does not help me there.
>>>
>>
>> We are migrating to powerseq for the WCN6750. As per Dmitry’s
>> suggestion, we are now using the on-chip PMU, which necessitates the
>> removal of some entries that are not mandatory to avoid binding errors.
>> For example, the enable GPIO is now handled by the PMU with property
>> bt-enable-gpios, as shown in the patch linked below
>> https://lore.kernel.org/linux-arm-msm/20241209103455.9675-3-quic_janathot@quicinc.com/
> I don't understand why this patch is separate from the others. Entire
> context is missing and nothing gets explained in commit msg.
> 
> Best regards,
> Krzysztof

Thanks for the reply Krzysztof,

* Initially sent the below patch which enables Bluetooth for the 
qcs6490-rb3gen2 board.
  
https://lore.kernel.org/linux-arm-msm/20241009111436.23473-1-quic_janathot@quicinc.com/

* Then Dmitry recommended implementing pwrseq to enable/disable 
Bluetooth for the wcn6750 Bluetooth module.

* Then we sent the below patches with pwrseq in v5:
   - [PATCH v5 1/4] regulator: dt-bindings: qcom,qca6390-pmu: document 
wcn6750-pmu
   - [PATCH v5 2/4] arm64: dts: qcom: qcs6490-rb3gen: add and enable BT node
   - [PATCH v5 3/4] Bluetooth: hci_qca: use the power sequencer for wcn6750
   - [PATCH v5 4/4] power: sequencing: qcom-wcn: add support for the

   [PATCH v5 1/4] and [PATCH v5 4/4] were reviewed and got merged.
   [PATCH v5 2/4] and [PATCH v5 3/4] received Reviewed-by: Dmitry 
Baryshkov <dmitry.baryshkov@linaro.org>

* But we got the following warning messages for [PATCH v5 2/4] from Rob 
Herring (Arm) bot:
   New warnings running 'make CHECK_DTBS=y qcom/qcs6490-rb3gen2.dtb' for 
20241209103455.9675-1-quic_janathot@quicinc.com:

   ```
   arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: bluetooth: 
'enable-gpios' is a required property
     from schema $id: 
http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
   arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: bluetooth: 
'swctrl-gpios' is a required property
     from schema $id: 
http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
   arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: bluetooth: 
'vddio-supply' is a required property
     from schema $id: 
http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
   arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: bluetooth: 
'vddbtcxmx-supply' is a required property
     from schema $id: 
http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
   arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: bluetooth: 
'vddasd-supply' is a required property
     from schema $id: 
http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml#
   arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb: pinctrl@f100000: 
Unevaluated properties are not allowed ('qup_uart7_sleep' was unexpected)
     from schema $id: 
http://devicetree.org/schemas/pinctrl/qcom,sc7280-pinctrl.yaml#
   ```

We got these warnings because the binding file `qualcomm-bluetooth.yaml` 
was not updated as per the new bluetooth node entries in P2,
so we removed the entries from the required property for the Bluetooth 
node and sent it as v6 PATCH-1.

We will update the commit message as below in v7:

```
[PATCH v7 1/1] dt-bindings: bluetooth: Utilize PMU abstraction for WCN6750

We are now using the on-chip PMU node for power sequencing to manage the
enable/disable functionality of Bluetooth. Consequently, the inputs
previously marked as required under the Bluetooth node can be removed.

For instance, the enable GPIO is now managed by the PMU node with the
property bt-enable-gpios, as shown in the following patch:
https://lore.kernel.org/linux-arm-msm/20241209103455.9675-3-quic_janathot@quicinc.com/
```

Best regards,
Janakiram




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-27 10:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-23 13:56 [PATCH v6 0/1] Enable Bluetooth on qcs6490-rb3gen2 board Janaki Ramaiah Thota
2024-12-23 13:57 ` [PATCH v6 1/1] dt-bindings: bluetooth: update the wcn6750 required properties Janaki Ramaiah Thota
2024-12-24  9:16   ` Krzysztof Kozlowski
2024-12-24 11:51     ` Janaki Ramaiah Thota
2024-12-24 13:27       ` Krzysztof Kozlowski
2024-12-26  6:11         ` Janaki Ramaiah Thota
2024-12-27  7:05           ` Krzysztof Kozlowski
2024-12-27 10:46             ` Janaki Ramaiah Thota

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox