Skip to content

drivers: led: AIROC LED driver #90914

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

Closed

Conversation

jlbwoods
Copy link
Contributor

LED driver utilizing the GPIO pins on top of the AIROC Wireless driver.

Notes:

@simonguinot
Copy link
Collaborator

Hi @jlbwoods. Please include the DT binding patch (#90917) into this PR.

LED driver utilizing the GPIO pins on top of the AIROC Wireless driver.

Add AIROC LED driver to the DTS bindings in the LED section.

Signed-off-by: John Lin <[email protected]>
@jlbwoods jlbwoods force-pushed the pr_drivers_led_airoc branch from b63c192 to 9def04f Compare May 31, 2025 18:33
@github-actions github-actions bot added the platform: Infineon Infineon Technologies AG label May 31, 2025
@github-actions github-actions bot requested review from ifyall, npal-cy and talih0 May 31, 2025 18:33
@jlbwoods
Copy link
Contributor Author

Hi @jlbwoods. Please include the DT binding patch (#90917) into this PR.

Sure! It is done. How do I remove the DT binding PR? #90917

@simonguinot
Copy link
Collaborator

Hi @jlbwoods. Please include the DT binding patch (#90917) into this PR.

Sure! It is done. How do I remove the DT binding PR? #90917

You can just close the PR.

Copy link

default y
depends on DT_HAS_INFINEON_AIROC_LEDS_ENABLED
depends on NETWORKING
depends on WIFI
Copy link
Member

Choose a reason for hiding this comment

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

The CYW43439 should be a multi functional device (MFD), so it is strange to explicitly select WIFI here, but it can't be helped under the current circumstances.
The fact that the drivers are not neatly separated, so I worry about the exclusion of LED operation from WiFi operation, but will this be no problem?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@soburi, can you clarify what you mean by MFD? I looked in the Zephyr documentation, and while 'mfd' shows up multiple times, its never defined.

Copy link
Member

@soburi soburi Jun 2, 2025

Choose a reason for hiding this comment

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

@ifyall
https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/mfd

MFD is a placeholder-like definition for a device that has multiple functions.
Because it is a placeholder, it does not have any functions aware of the user, but it may contain common definitions. Semaphores for mutual exclusion may also be placed here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, so a little bit more understanding (I guess). The CYW43439 does not have an LED. It provides Wi-Fi and BLE radio support to be controlled by a host MCU. Some modules the CYW43439 have been mounted on have additional hardware, including an LED.

So, I don't think this PR is correctly representing things. I believe @thedjnK is closer to reality.

If there is an MFD in here somewhere, would it then be the explicit modules (such as Murata's Type 1YN)?

Comment on lines +4 to +5
config LED_AIROC
bool "Infineon AIROC LED driver"
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this really an LED driver? Isn't it just a GPIO driver?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I started out with GPIO driver, but I do not have detailed info regarding the GPIO specs on the AIROC chip. So, I created a LED driver that encapsulates that one particular GPIO pin (the Pico W LED light) on top of the AIROC WiFi driver.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@jlbwoods, so isn't this a Pico specific driver then? There isn't an AIROC LED, so there shouldn't be an AIROC LED driver.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right! So, what should I name the LED driver then? What about led_pico_w and LED_PICO_W since this particular setup only applies to Pico W.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created new PR using led_pico_w as the namespace: #91613
Please take a look again. Thank you!
Closing this PR.

@jlbwoods
Copy link
Contributor Author

Created new PR using led_pico_w as the namespace: #91613

@jlbwoods jlbwoods closed this Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LED Label to identify LED subsystem platform: Infineon Infineon Technologies AG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants