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

boards: rd_rw612_bga: Rename LED to "virtual" #78500

Merged

Conversation

decsny
Copy link
Member

@decsny decsny commented Sep 16, 2024

There is not a real LED on this board, it's just a pin header, rename the led node to prevent confusion from green_led to virtual_led.

EmilioCBen
EmilioCBen previously approved these changes Sep 16, 2024
danieldegrasse
danieldegrasse previously approved these changes Sep 16, 2024
mmahadevan108
mmahadevan108 previously approved these changes Sep 16, 2024
@danieldegrasse
Copy link
Collaborator

Looks like this is blocked by #78415

@mmahadevan108
Copy link
Collaborator

@decsny , can you take a look at the CI failures.

@decsny
Copy link
Member Author

decsny commented Sep 18, 2024

@decsny , can you take a look at the CI failures.

as daniel mentioned, it's the issue being fixed in #78415 and reported in #78649

@mmahadevan108
Copy link
Collaborator

@decsny Need a rebase?

Copy link
Member

@henrikbrixandersen henrikbrixandersen left a comment

Choose a reason for hiding this comment

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

If no LED is present on the board, why even have this node?

@dleach02
Copy link
Member

dleach02 commented Sep 20, 2024

If no LED is present on the board, why even have this node?

So blinky can still be built and run on the board with a test fixture to the pin header to verify operation.

dleach02
dleach02 previously approved these changes Sep 20, 2024
@henrikbrixandersen
Copy link
Member

So blinky can still be built and run on the board with a test fixture to the pin header to verify operation.

Blinky is a sample, not a test. GPIOs should be tested with the tests/drivers/gpio test suites. Including a "virtual" LED for being able to blink a non-existing LED provides no value, but can greatly confuse end-users (is there an LED? Isn't there an LED? Is this how I configure non-LED GPIOs in the devicetree?).

@decsny
Copy link
Member Author

decsny commented Sep 20, 2024

So blinky can still be built and run on the board with a test fixture to the pin header to verify operation.

Blinky is a sample, not a test. GPIOs should be tested with the tests/drivers/gpio test suites. Including a "virtual" LED for being able to blink a non-existing LED provides no value, but can greatly confuse end-users (is there an LED? Isn't there an LED? Is this how I configure non-LED GPIOs in the devicetree?).

yes, blinky is not useful to test GPIO rigorously from a true validation perspective of people maintaining the gpio drivers on the OS side or an upstream board. That's not the goal of this definition ...

We provided this definition of the "led" for convenience, as sometimes our customers just want a sample that toggles a GPIO, and blinky does that, LED on the board or not.

@decsny
Copy link
Member Author

decsny commented Oct 4, 2024

@henrikbrixandersen at the very least, what is currently in tree makes less sense as there is definitely no green LED, so what is your actual change request

@henrikbrixandersen
Copy link
Member

@henrikbrixandersen at the very least, what is currently in tree makes less sense as there is definitely no green LED, so what is your actual change request

I suggest removing the fake LED altogether.

There is no LED on this board.

Signed-off-by: Declan Snyder <[email protected]>
@decsny decsny force-pushed the fix/rd_rw612_led_name branch from 278be54 to 7bd07f7 Compare October 7, 2024 18:17
@decsny
Copy link
Member Author

decsny commented Oct 7, 2024

@henrikbrixandersen after lengthy and impassioned internal discussion, I confirmed we can remove the fake LED from the board definition.

@decsny decsny requested a review from EmilioCBen October 7, 2024 18:20
@henrikbrixandersen
Copy link
Member

@henrikbrixandersen after lengthy and impassioned internal discussion, I confirmed we can remove the fake LED from the board definition.

I am sorry to have caused this, but I am happy with your decision.

@henrikbrixandersen henrikbrixandersen merged commit e8bb2d6 into zephyrproject-rtos:main Oct 14, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants