Skip to content

Conversation

@ThreeEights
Copy link
Contributor

Added support for SPI to the Infineon AIROC WiFi driver (drivers/wifi/infineon). Includes support for 3-wire SPI required by the Raspberry Pi Pico W.

Configuration for the Pico W is updated to activate the WiFi chip on that board.

Copy link
Member

@parthitce parthitce left a comment

Choose a reason for hiding this comment

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

split the changes. bindings, driver and consumer

@ThreeEights ThreeEights force-pushed the airoc-spi-wifi branch 2 times, most recently from 6b1db29 to f41933d Compare September 23, 2024 15:44
@ThreeEights
Copy link
Contributor Author

@parthitce - You wrote "split the changes. bindings, driver and consumer". Do you mean create 3 separate pull requests? Or do you mean something else?

@parthitce
Copy link
Member

@parthitce - You wrote "split the changes. bindings, driver and consumer". Do you mean create 3 separate pull requests? Or do you mean something else?

No, split into multiple commits in this PR

@ThreeEights
Copy link
Contributor Author

ThreeEights commented Sep 24, 2024

@parthitce - I divided this into 3 commits as you requested. Please let me know if these meet your expectations.

Unfortunately, these changes depend on a pull request for modules/hal/infineon, which is still being reviewed by Infineon. I'll keep following that change so this can proceed. That change is done - the new commit is [7b420b9], now part of this pull request).

@zephyrbot
Copy link

zephyrbot commented Sep 30, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_infineon zephyrproject-rtos/hal_infineon@88d2529 zephyrproject-rtos/hal_infineon@a9b75e0 (master) zephyrproject-rtos/[email protected]

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Copy link
Contributor

@ajf58 ajf58 left a comment

Choose a reason for hiding this comment

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

LGTM.

All my comments/suggestions have been answered and/or corrected. I spotted a couple of tiny tweaks (sorry I didn't spot them earlier), but definitely should not blocker such a significant improvement to in-tree functionality for this board.

@jukkar
Copy link
Member

jukkar commented Dec 3, 2024

@parthitce @npal-cy please re-review

Copy link
Member

@parthitce parthitce left a comment

Choose a reason for hiding this comment

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

CI failures needs to be addressed. Otherwise LGTM

@ThreeEights
Copy link
Contributor Author

@parthitce - Thank you!

@ifyall
Copy link
Contributor

ifyall commented Dec 5, 2024

@ThreeEights, I am just waiting on some functional tests from my team on the existing Wi-Fi support with this change. Once that is done and is passing, I will approve.

Ian

@ThreeEights
Copy link
Contributor Author

@ifyall - Thanks!

Additional bindings to configure SPI support.

Added new DTS option for data/IRQ sharing
Clarify default in driver DTS binding

Signed-off-by: Steve Boylan <[email protected]>
Added support for SPI in 4-wire and 3-wire configurations to
the Infineon AIROC WiFi driver (drivers/wifi/infineon).

Review changes:
Move DT_DRV_COMPAT to common header file
Correct board-specific preprocessor lines
Removed AIROC_MAP_COUNTRY_CODE
Move Pico W configuration details to devicetree
Use pinctrl to manage shared data/interrupt GPIO
Clean up bus selection in Kconfig.airoc
Make SDIO and SPI bus struct independent
Replace LOG_DBG with LOG_ERR
Remove functionally duplicate operation
Remove spurious Kconfig option
Minor cleanup in CMakeLists.txt

Signed-off-by: Steve Boylan <[email protected]>
Configure the Raspberry Pi Pico W for WiFi.
Move Pico W configuration details to devicetree
Add pinctrl configurations for data/interrupt sharing
Make memory config selectable
Align devicetree with Linux ordering

Signed-off-by: Steve Boylan <[email protected]>
Adds custom HAL support for SPI

Signed-off-by: Steve Boylan <[email protected]>
@jukkar
Copy link
Member

jukkar commented Dec 9, 2024

ping @npal-cy please take a look

@npal-cy
Copy link
Contributor

npal-cy commented Dec 10, 2024

ping @npal-cy please take a look

I am going to do some tests today, before merge...

@fabiobaltieri fabiobaltieri assigned npal-cy and unassigned jukkar Dec 10, 2024
@kartben kartben merged commit 95969f5 into zephyrproject-rtos:main Dec 10, 2024
29 checks passed
@kartben
Copy link
Contributor

kartben commented Dec 10, 2024

Yay!!! Thanks for the hard work @ThreeEights!

@ThreeEights
Copy link
Contributor Author

@ifyall @npal-cy @yonsch @parthitce @kartben @jukkar @soburi @ajf58 - Thanks for all your help making this clean and functional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drivers: wifi: Infineon AIROC: Add SPI support

9 participants