devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
@ 2023-01-26  7:43 Francesco Dolcini
  2023-01-26  7:43 ` [PATCH v2 1/5] dt-bindings: bluetooth: marvell: add 88W8997 Francesco Dolcini
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Francesco Dolcini @ 2023-01-26  7:43 UTC (permalink / raw)
  To: netdev, devicetree, linux-kernel, linux-bluetooth,
	Marcel Holtmann, Luiz Augusto von Dentz, linux-arm-kernel
  Cc: Francesco Dolcini, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Johan Hedberg,
	Sascha Hauer, Shawn Guo, Pengutronix Kernel Team, Fabio Estevam

From: Francesco Dolcini <francesco.dolcini@toradex.com>

Add serdev support for the 88W8997 from NXP (previously Marvell). It includes
support for changing the baud rate. The command to change the baud rate is
taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth
interfaces) from NXP.

v2:
 - Fix the subject as pointed out by Krzysztof. Thanks!
 - Fix indentation in marvell-bluetooth.yaml
 - Fix compiler warning for kernel builds without CONFIG_OF enabled

Stefan Eichenberger (5):
  dt-bindings: bluetooth: marvell: add 88W8997
  dt-bindings: bluetooth: marvell: add max-speed property
  Bluetooth: hci_mrvl: use maybe_unused macro for device tree ids
  Bluetooth: hci_mrvl: Add serdev support for 88W8997
  arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4

 .../bindings/net/marvell-bluetooth.yaml       | 20 +++-
 .../dts/freescale/imx8mp-verdin-wifi.dtsi     |  5 +
 drivers/bluetooth/hci_mrvl.c                  | 92 +++++++++++++++++--
 3 files changed, 106 insertions(+), 11 deletions(-)

-- 
2.25.1


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

* [PATCH v2 1/5] dt-bindings: bluetooth: marvell: add 88W8997
  2023-01-26  7:43 [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
@ 2023-01-26  7:43 ` Francesco Dolcini
  2023-01-26  7:43 ` [PATCH v2 2/5] dt-bindings: bluetooth: marvell: add max-speed property Francesco Dolcini
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Francesco Dolcini @ 2023-01-26  7:43 UTC (permalink / raw)
  To: netdev, devicetree, linux-kernel, linux-bluetooth,
	Marcel Holtmann, Luiz Augusto von Dentz
  Cc: Stefan Eichenberger, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Johan Hedberg, Sascha Hauer, Krzysztof Kozlowski,
	Francesco Dolcini

From: Stefan Eichenberger <stefan.eichenberger@toradex.com>

Update the documentation with the device tree binding for the Marvell
88W8997 bluetooth device.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
v2:
 - removed redundant "DT binding" from commit message title
 - add acked-by Krzysztof
---
 Documentation/devicetree/bindings/net/marvell-bluetooth.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml b/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
index 309ef21a1e37..83b64ed730f5 100644
--- a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
@@ -15,7 +15,9 @@ maintainers:
 
 properties:
   compatible:
-    const: mrvl,88w8897
+    enum:
+      - mrvl,88w8897
+      - mrvl,88w8997
 
 required:
   - compatible
-- 
2.25.1


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

* [PATCH v2 2/5] dt-bindings: bluetooth: marvell: add max-speed property
  2023-01-26  7:43 [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
  2023-01-26  7:43 ` [PATCH v2 1/5] dt-bindings: bluetooth: marvell: add 88W8997 Francesco Dolcini
@ 2023-01-26  7:43 ` Francesco Dolcini
  2023-01-26 10:03   ` Krzysztof Kozlowski
  2023-01-26  7:43 ` [PATCH v2 5/5] arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4 Francesco Dolcini
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Francesco Dolcini @ 2023-01-26  7:43 UTC (permalink / raw)
  To: netdev, devicetree, linux-kernel, linux-bluetooth,
	Marcel Holtmann, Luiz Augusto von Dentz
  Cc: Stefan Eichenberger, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Johan Hedberg, Sascha Hauer, Francesco Dolcini

From: Stefan Eichenberger <stefan.eichenberger@toradex.com>

The 88W8997 bluetooth module supports setting the max-speed property.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
v2: fixed indentation
---
 .../bindings/net/marvell-bluetooth.yaml          | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml b/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
index 83b64ed730f5..516c63ad165a 100644
--- a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
@@ -19,9 +19,25 @@ properties:
       - mrvl,88w8897
       - mrvl,88w8997
 
+  max-speed:
+    description: see Documentation/devicetree/bindings/serial/serial.yaml
+
 required:
   - compatible
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: mrvl,88w8997
+    then:
+      properties:
+        max-speed: true
+    else:
+      properties:
+        max-speed: false
+
 additionalProperties: false
 
 examples:
-- 
2.25.1


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

* [PATCH v2 5/5] arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4
  2023-01-26  7:43 [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
  2023-01-26  7:43 ` [PATCH v2 1/5] dt-bindings: bluetooth: marvell: add 88W8997 Francesco Dolcini
  2023-01-26  7:43 ` [PATCH v2 2/5] dt-bindings: bluetooth: marvell: add max-speed property Francesco Dolcini
@ 2023-01-26  7:43 ` Francesco Dolcini
  2023-02-10  8:39 ` [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
  2023-02-15 21:20 ` patchwork-bot+bluetooth
  4 siblings, 0 replies; 10+ messages in thread
From: Francesco Dolcini @ 2023-01-26  7:43 UTC (permalink / raw)
  To: netdev, devicetree, linux-kernel, linux-bluetooth,
	Marcel Holtmann, Luiz Augusto von Dentz, linux-arm-kernel,
	Shawn Guo
  Cc: Stefan Eichenberger, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Johan Hedberg, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Francesco Dolcini

From: Stefan Eichenberger <stefan.eichenberger@toradex.com>

Use the serdev feature to load the driver for the 88W8997 bluetooth
driver.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
v2: no changes
---
 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi
index 36289c175e6e..ef94f9a57e20 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi
@@ -65,6 +65,11 @@ &uart4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_bt_uart>;
 	status = "okay";
+
+	bluetooth {
+		compatible = "mrvl,88w8997";
+		max-speed = <921600>;
+	};
 };
 
 /* On-module Wi-Fi */
-- 
2.25.1


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

* Re: [PATCH v2 2/5] dt-bindings: bluetooth: marvell: add max-speed property
  2023-01-26  7:43 ` [PATCH v2 2/5] dt-bindings: bluetooth: marvell: add max-speed property Francesco Dolcini
@ 2023-01-26 10:03   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-01-26 10:03 UTC (permalink / raw)
  To: Francesco Dolcini, netdev, devicetree, linux-kernel,
	linux-bluetooth, Marcel Holtmann, Luiz Augusto von Dentz
  Cc: Stefan Eichenberger, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Johan Hedberg, Sascha Hauer, Francesco Dolcini

On 26/01/2023 08:43, Francesco Dolcini wrote:
> From: Stefan Eichenberger <stefan.eichenberger@toradex.com>
> 
> The 88W8997 bluetooth module supports setting the max-speed property.
> 
> Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> ---


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
  2023-01-26  7:43 [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
                   ` (2 preceding siblings ...)
  2023-01-26  7:43 ` [PATCH v2 5/5] arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4 Francesco Dolcini
@ 2023-02-10  8:39 ` Francesco Dolcini
  2023-02-10 18:52   ` Luiz Augusto von Dentz
  2023-02-15 21:20 ` patchwork-bot+bluetooth
  4 siblings, 1 reply; 10+ messages in thread
From: Francesco Dolcini @ 2023-02-10  8:39 UTC (permalink / raw)
  To: linux-bluetooth, Marcel Holtmann, Luiz Augusto von Dentz,
	Johan Hedberg
  Cc: netdev, devicetree, linux-kernel, linux-arm-kernel,
	Francesco Dolcini, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Sascha Hauer,
	Shawn Guo, Pengutronix Kernel Team, Fabio Estevam

Hello all,

On Thu, Jan 26, 2023 at 08:43:51AM +0100, Francesco Dolcini wrote:
> From: Francesco Dolcini <francesco.dolcini@toradex.com>
> 
> Add serdev support for the 88W8997 from NXP (previously Marvell). It includes
> support for changing the baud rate. The command to change the baud rate is
> taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth
> interfaces) from NXP.

Just a gently ping on this series, patches 1,2 with DT binding changes
are reviewed/acked, patch 5 with the DTS change should just be on hold
till patches 1-4 are merged.

No feedback on patches 4 (and 3), with the BT serdev driver code
changes, any plan on those?

Thanks a lot!
Francesco


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

* Re: [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
  2023-02-10  8:39 ` [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
@ 2023-02-10 18:52   ` Luiz Augusto von Dentz
  2023-02-10 19:04     ` Francesco Dolcini
  0 siblings, 1 reply; 10+ messages in thread
From: Luiz Augusto von Dentz @ 2023-02-10 18:52 UTC (permalink / raw)
  To: Francesco Dolcini
  Cc: linux-bluetooth, Marcel Holtmann, Johan Hedberg, netdev,
	devicetree, linux-kernel, linux-arm-kernel, Francesco Dolcini,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Sascha Hauer, Shawn Guo,
	Pengutronix Kernel Team, Fabio Estevam

Hi Francesco,

On Fri, Feb 10, 2023 at 12:40 AM Francesco Dolcini <francesco@dolcini.it> wrote:
>
> Hello all,
>
> On Thu, Jan 26, 2023 at 08:43:51AM +0100, Francesco Dolcini wrote:
> > From: Francesco Dolcini <francesco.dolcini@toradex.com>
> >
> > Add serdev support for the 88W8997 from NXP (previously Marvell). It includes
> > support for changing the baud rate. The command to change the baud rate is
> > taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth
> > interfaces) from NXP.
>
> Just a gently ping on this series, patches 1,2 with DT binding changes
> are reviewed/acked, patch 5 with the DTS change should just be on hold
> till patches 1-4 are merged.
>
> No feedback on patches 4 (and 3), with the BT serdev driver code
> changes, any plan on those?

bots have detected errors on these changes

> Thanks a lot!
> Francesco
>


-- 
Luiz Augusto von Dentz

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

* Re: [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
  2023-02-10 18:52   ` Luiz Augusto von Dentz
@ 2023-02-10 19:04     ` Francesco Dolcini
  2023-02-10 19:30       ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 10+ messages in thread
From: Francesco Dolcini @ 2023-02-10 19:04 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Francesco Dolcini, linux-bluetooth, Marcel Holtmann,
	Johan Hedberg, netdev, devicetree, linux-kernel, linux-arm-kernel,
	Francesco Dolcini, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Sascha Hauer,
	Shawn Guo, Pengutronix Kernel Team, Fabio Estevam

On Fri, Feb 10, 2023 at 10:52:43AM -0800, Luiz Augusto von Dentz wrote:
> Hi Francesco,
> 
> On Fri, Feb 10, 2023 at 12:40 AM Francesco Dolcini <francesco@dolcini.it> wrote:
> >
> > Hello all,
> >
> > On Thu, Jan 26, 2023 at 08:43:51AM +0100, Francesco Dolcini wrote:
> > > From: Francesco Dolcini <francesco.dolcini@toradex.com>
> > >
> > > Add serdev support for the 88W8997 from NXP (previously Marvell). It includes
> > > support for changing the baud rate. The command to change the baud rate is
> > > taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth
> > > interfaces) from NXP.
> >
> > Just a gently ping on this series, patches 1,2 with DT binding changes
> > are reviewed/acked, patch 5 with the DTS change should just be on hold
> > till patches 1-4 are merged.
> >
> > No feedback on patches 4 (and 3), with the BT serdev driver code
> > changes, any plan on those?
> 
> bots have detected errors on these changes

From what I can understand from this point of view v2 is fine, the error
was in v1, if I'm wrong just let me know.

Said that I'll do the change you asked regarding __hci_cmd_sync_status
and send a v3.

Thanks,
Francesco


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

* Re: [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
  2023-02-10 19:04     ` Francesco Dolcini
@ 2023-02-10 19:30       ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 10+ messages in thread
From: Luiz Augusto von Dentz @ 2023-02-10 19:30 UTC (permalink / raw)
  To: Francesco Dolcini, Tedd Ho-Jeong An
  Cc: linux-bluetooth, Marcel Holtmann, Johan Hedberg, netdev,
	devicetree, linux-kernel, linux-arm-kernel, Francesco Dolcini,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Sascha Hauer, Shawn Guo,
	Pengutronix Kernel Team, Fabio Estevam

Hi Francesco,

On Fri, Feb 10, 2023 at 11:04 AM Francesco Dolcini <francesco@dolcini.it> wrote:
>
> On Fri, Feb 10, 2023 at 10:52:43AM -0800, Luiz Augusto von Dentz wrote:
> > Hi Francesco,
> >
> > On Fri, Feb 10, 2023 at 12:40 AM Francesco Dolcini <francesco@dolcini.it> wrote:
> > >
> > > Hello all,
> > >
> > > On Thu, Jan 26, 2023 at 08:43:51AM +0100, Francesco Dolcini wrote:
> > > > From: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > >
> > > > Add serdev support for the 88W8997 from NXP (previously Marvell). It includes
> > > > support for changing the baud rate. The command to change the baud rate is
> > > > taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth
> > > > interfaces) from NXP.
> > >
> > > Just a gently ping on this series, patches 1,2 with DT binding changes
> > > are reviewed/acked, patch 5 with the DTS change should just be on hold
> > > till patches 1-4 are merged.
> > >
> > > No feedback on patches 4 (and 3), with the BT serdev driver code
> > > changes, any plan on those?
> >
> > bots have detected errors on these changes
>
> From what I can understand from this point of view v2 is fine, the error
> was in v1, if I'm wrong just let me know.
>
> Said that I'll do the change you asked regarding __hci_cmd_sync_status
> and send a v3.

Great, for some reason your set is not being tested by our CI though,
@Tedd Ho-Jeong An do you know why?

> Thanks,
> Francesco
>


-- 
Luiz Augusto von Dentz

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

* Re: [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
  2023-01-26  7:43 [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
                   ` (3 preceding siblings ...)
  2023-02-10  8:39 ` [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
@ 2023-02-15 21:20 ` patchwork-bot+bluetooth
  4 siblings, 0 replies; 10+ messages in thread
From: patchwork-bot+bluetooth @ 2023-02-15 21:20 UTC (permalink / raw)
  To: Francesco Dolcini
  Cc: netdev, devicetree, linux-kernel, linux-bluetooth, marcel,
	luiz.dentz, linux-arm-kernel, francesco.dolcini, davem, edumazet,
	kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, johan.hedberg,
	s.hauer, shawnguo, kernel, festevam

Hello:

This series was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Thu, 26 Jan 2023 08:43:51 +0100 you wrote:
> From: Francesco Dolcini <francesco.dolcini@toradex.com>
> 
> Add serdev support for the 88W8997 from NXP (previously Marvell). It includes
> support for changing the baud rate. The command to change the baud rate is
> taken from the user manual UM11483 Rev. 9 in section 7 (Bring-up of Bluetooth
> interfaces) from NXP.
> 
> [...]

Here is the summary with links:
  - [v2,1/5] dt-bindings: bluetooth: marvell: add 88W8997
    https://git.kernel.org/bluetooth/bluetooth-next/c/f48823aa0c4f
  - [v2,2/5] dt-bindings: bluetooth: marvell: add max-speed property
    https://git.kernel.org/bluetooth/bluetooth-next/c/d7303dce9fcb
  - [v2,3/5] Bluetooth: hci_mrvl: use maybe_unused macro for device tree ids
    https://git.kernel.org/bluetooth/bluetooth-next/c/e275614465ec
  - [v2,4/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997
    (no matching commit)
  - [v2,5/5] arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4
    (no matching commit)

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2023-02-15 21:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-26  7:43 [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
2023-01-26  7:43 ` [PATCH v2 1/5] dt-bindings: bluetooth: marvell: add 88W8997 Francesco Dolcini
2023-01-26  7:43 ` [PATCH v2 2/5] dt-bindings: bluetooth: marvell: add max-speed property Francesco Dolcini
2023-01-26 10:03   ` Krzysztof Kozlowski
2023-01-26  7:43 ` [PATCH v2 5/5] arm64: dts: imx8mp-verdin: add 88W8997 serdev to uart4 Francesco Dolcini
2023-02-10  8:39 ` [PATCH v2 0/5] Bluetooth: hci_mrvl: Add serdev support for 88W8997 Francesco Dolcini
2023-02-10 18:52   ` Luiz Augusto von Dentz
2023-02-10 19:04     ` Francesco Dolcini
2023-02-10 19:30       ` Luiz Augusto von Dentz
2023-02-15 21:20 ` patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).