mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rob Herring (Arm)" <robh@kernel.org>
To: "Alexis Lothoré" <alexis.lothore@bootlin.com>
Cc: linux-wireless@vger.kernel.org, linux-bluetooth@vger.kernel.org,
	 Ajay Singh <ajay.kathat@microchip.com>,
	Simon Horman <horms@kernel.org>,
	 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Kalle Valo <kvalo@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
	 linux-arm-kernel@lists.infradead.org,
	 Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Alexandre Belloni <alexandre.belloni@bootlin.com>,
	 Nicolas Ferre <nicolas.ferre@microchip.com>,
	 Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	 Paolo Abeni <pabeni@redhat.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Eric Dumazet <edumazet@google.com>, Marek Vasut <marex@denx.de>,
	 Claudiu Beznea <claudiu.beznea@tuxon.dev>,
	 Marcel Holtmann <marcel@holtmann.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 "David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org
Subject: Re: [PATCH 00/12] bluetooth: hci_wilc: add new bluetooth driver
Date: Wed, 12 Feb 2025 16:08:53 -0600	[thread overview]
Message-ID: <173939808305.598743.2426492109317429179.robh@kernel.org> (raw)
In-Reply-To: <20250212-wilc3000_bt-v1-0-9609b784874e@bootlin.com>


On Wed, 12 Feb 2025 16:46:19 +0100, Alexis Lothoré wrote:
> Hello,
> 
> WILC3000 ([1]) is a combo chip exposing 802.11b/g/n and Bluetooth 5.
> Support for the wlan part has recently been integrated upstream ([2]) in
> the existing wilc1000 driver. This new series aims to bring support for
> the bluetooth side.
> 
> The WILC3000 chip is controlled through a SDIO or SPI bus for the wlan
> part (similarly to wilc1000), and uses standard HCI commands over a UART
> bus for the bluetooth operations. This work is based on the code
> available in the vendor kernel ([3]), in which bluetooth is managed
> directly in the wireless driver, and relies on user to trigger the
> hardware configuration (chardev manipulations + hciattach). The series
> brings a new dedicated bluetooth driver to support the bluetooth feature
> from the chip, without relying on the user to perform the device
> bringup. However, getting completely rid of the wlan driver dependency
> is not possible: it is still needed for early BT CPU configuration and
> BT firmware download, so the new driver still have a dependency of the
> wlan one, with an approach similar to the one used by the rsi driver.
> 
> - Patch 1 brings the new dt binding
> - Patch 2-9 prepares the wlan side, either by exposing the needed
>   functions to initialize BT, or by mitigating behavior which would
>   prevent BT and WLAN from runnning in parallel
> - Patch 10 brings the new bluetooth driver
> - Patch 11 updates the device tree description for sama5d27_wlsom1_ek
>   board (which I used to validate this series) to use the new driver
> - Patch 12 adds a new entry for this driver in the MAINTAINERS files
> 
> This series has been tested with WILC3000 both in SDIO mode (with the
> chip embedded on the sama5d27_wlsom1_ek) and SPI mode (custom wiring on
> an SPI on the same eval board, with a WILC3000-SD).
> 
> Since this works needs new code in both the existing wlan driver and the
> new driver, I have included both linux-wireless and bluetooth mailing
> lists, while keeping the entire series for clarity, but let me know if
> you want to proceed differently.
> 
> [1] https://www.microchip.com/en-us/product/atwilc3000
> [2] https://lore.kernel.org/linux-wireless/20241004114551.40236-1-marex@denx.de/
> [3] https://github.com/linux4microchip/linux/tree/linux-6.6-mchp/drivers/net/wireless/microchip/wilc1000
> 
> ---
> Alexis Lothoré (12):
>       dt-bindings: bluetooth: describe wilc 3000 bluetooth chip
>       wifi: wilc1000: add a read-modify-write API for registers accesses
>       wifi: wilc1000: add lock to prevent concurrent firmware startup
>       wifi: wilc1000: allow to use acquire/release bus in other parts of driver
>       wifi: wilc1000: do not depend on power save flag to wake up chip
>       wifi: wilc1000: remove timeout parameter from set_power_mgmt
>       wifi: wilc1000: reorganize makefile objs into sorted list
>       wifi: wilc1000: add basic functions to allow bluetooth bringup
>       wifi: wilc1000: disable firmware power save if bluetooth is in use
>       bluetooth: hci_wilc: add wilc hci driver
>       ARM: dts: at91-sama5d27_wlsom1: update bluetooth chip description
>       MAINTAINERS: add entry for new wilc3000 bluetooth driver
> 
>  .../net/bluetooth/microchip,wilc3000-bt.yaml       |  41 +++
>  MAINTAINERS                                        |   7 +
>  .../boot/dts/microchip/at91-sama5d27_wlsom1.dtsi   |   8 +
>  .../boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts |  10 -
>  drivers/bluetooth/Kconfig                          |  13 +
>  drivers/bluetooth/Makefile                         |   3 +-
>  drivers/bluetooth/hci_uart.h                       |   1 +
>  drivers/bluetooth/hci_wilc.c                       | 333 ++++++++++++++++++++
>  drivers/net/wireless/microchip/wilc1000/Kconfig    |   3 +
>  drivers/net/wireless/microchip/wilc1000/Makefile   |  11 +-
>  drivers/net/wireless/microchip/wilc1000/bt.c       | 345 +++++++++++++++++++++
>  drivers/net/wireless/microchip/wilc1000/cfg80211.c |   7 +-
>  drivers/net/wireless/microchip/wilc1000/hif.c      |   2 +-
>  drivers/net/wireless/microchip/wilc1000/hif.h      |   2 +-
>  drivers/net/wireless/microchip/wilc1000/netdev.c   |  14 +
>  drivers/net/wireless/microchip/wilc1000/netdev.h   |   5 +
>  drivers/net/wireless/microchip/wilc1000/sdio.c     | 101 ++++--
>  drivers/net/wireless/microchip/wilc1000/spi.c      |  43 +++
>  drivers/net/wireless/microchip/wilc1000/wlan.c     | 154 ++++-----
>  drivers/net/wireless/microchip/wilc1000/wlan.h     |  23 ++
>  include/net/wilc.h                                 |  19 ++
>  21 files changed, 996 insertions(+), 149 deletions(-)
> ---
> base-commit: 95f6f2d73dc40ab53a94756689ce5cfd2f23361a
> change-id: 20240828-wilc3000_bt-fa452f2a93ad
> 
> Best regards,
> --
> Alexis Lothoré, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


New warnings running 'make CHECK_DTBS=y for arch/arm/boot/dts/microchip/' for 20250212-wilc3000_bt-v1-0-9609b784874e@bootlin.com:

arch/arm/boot/dts/microchip/at91-sama5d3_eds.dtb: nand-controller: #address-cells: 1 was expected
	from schema $id: http://devicetree.org/schemas/mtd/nand-controller.yaml#
arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dtb: serial@200: Unevaluated properties are not allowed ('bluetooth@0' was unexpected)
	from schema $id: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#






      parent reply	other threads:[~2025-02-12 22:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-12 15:46 Alexis Lothoré
2025-02-12 15:46 ` [PATCH 01/12] dt-bindings: bluetooth: describe wilc 3000 bluetooth chip Alexis Lothoré
2025-02-13  9:25   ` Krzysztof Kozlowski
2025-02-13 15:25     ` Alexis Lothoré
2025-02-14  7:47       ` Krzysztof Kozlowski
2025-02-12 15:46 ` [PATCH 02/12] wifi: wilc1000: add a read-modify-write API for registers accesses Alexis Lothoré
2025-02-12 15:46 ` [PATCH 03/12] wifi: wilc1000: add lock to prevent concurrent firmware startup Alexis Lothoré
2025-02-12 15:46 ` [PATCH 04/12] wifi: wilc1000: allow to use acquire/release bus in other parts of driver Alexis Lothoré
2025-02-12 15:46 ` [PATCH 05/12] wifi: wilc1000: do not depend on power save flag to wake up chip Alexis Lothoré
2025-02-12 15:46 ` [PATCH 06/12] wifi: wilc1000: remove timeout parameter from set_power_mgmt Alexis Lothoré
2025-02-12 15:46 ` [PATCH 07/12] wifi: wilc1000: reorganize makefile objs into sorted list Alexis Lothoré
2025-02-12 15:46 ` [PATCH 08/12] wifi: wilc1000: add basic functions to allow bluetooth bringup Alexis Lothoré
2025-02-12 15:46 ` [PATCH 09/12] wifi: wilc1000: disable firmware power save if bluetooth is in use Alexis Lothoré
2025-02-16 16:07   ` Simon Horman
2025-02-12 15:46 ` [PATCH 10/12] bluetooth: hci_wilc: add wilc hci driver Alexis Lothoré
2025-02-12 16:14   ` Luiz Augusto von Dentz
2025-02-12 17:01     ` Alexis Lothoré
2025-02-13  9:24   ` Krzysztof Kozlowski
2025-02-13 15:30     ` Alexis Lothoré
2025-02-12 15:46 ` [PATCH 11/12] ARM: dts: at91-sama5d27_wlsom1: update bluetooth chip description Alexis Lothoré
2025-02-12 15:46 ` [PATCH 12/12] MAINTAINERS: add entry for new wilc3000 bluetooth driver Alexis Lothoré
2025-02-12 22:08 ` Rob Herring (Arm) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=173939808305.598743.2426492109317429179.robh@kernel.org \
    --to=robh@kernel.org \
    --cc=ajay.kathat@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=alexis.lothore@bootlin.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kvalo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=marex@denx.de \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=pabeni@redhat.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®