Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: bluetooth: hci: Separate ST SPI vendor driver from spi.c #67258

Merged
merged 5 commits into from
Jan 10, 2024

Conversation

HoZHel
Copy link
Collaborator

@HoZHel HoZHel commented Jan 5, 2024

Separate ST HCI SPI Bluetooth driver from spi.c to make the Zephyr driver simpler and allow future extension for ST vendor code.
This restructuring has been mentioned by @JordanYates and other people to simplify the code since SPI is not standardized by Bluetooth and it exists in several vendor specific flavors. [see also #66544].

Changes have been tested on 96b_carbon, disco_l475_iot1, b_l4s5i_iot01a,
stm32l562e_dk, x_nucleo_idb05a1, sensortile_box, and sensortile_box_pro boards.

HoZHel added 4 commits January 5, 2024 18:14
Include zephyr,bt-hci-spi.yaml in both ST HCI SPI yaml files.

Signed-off-by: Ali Hozhabri <[email protected]>
Copy ST specific SPI protocol code from spi.c to a vendor specific file.

Signed-off-by: Ali Hozhabri <[email protected]>
Remove ST vendor code from spi.c.

Update CMakeLists to select ST vendor file for ST BlueNRG devices.

Signed-off-by: Ali Hozhabri <[email protected]>
Update dts files to use ST vendor specific HCI SPI Bluetooth driver.

Remove unnecessary GPIO bias for output pins.

Signed-off-by: Ali Hozhabri <[email protected]>
Add support for handling ST Proprietary extended event.

Signed-off-by: Ali Hozhabri <[email protected]>
@HoZHel HoZHel marked this pull request as ready for review January 8, 2024 15:11
@zephyrbot zephyrbot added platform: STM32 ST Micro STM32 area: Shields Shields (add-on boards) area: Devicetree Binding PR modifies or adds a Device Tree binding area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth labels Jan 8, 2024
Copy link
Collaborator

@jori-nordic jori-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still works on nRF devices.
I'll rebase #67437 when this is merged.

@carlescufi carlescufi merged commit a87a42d into zephyrproject-rtos:main Jan 10, 2024
34 checks passed
@HoZHel HoZHel deleted the hci_spi_st branch January 10, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth area: Devicetree Binding PR modifies or adds a Device Tree binding area: Shields Shields (add-on boards) platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants