Skip to content

Conversation

@gmarull
Copy link
Member

@gmarull gmarull commented Dec 16, 2024

  • Add missing CONFIG_GPIO=y
  • Add/remove header if used/not used

A tiny step towards the removal of CONFIG_GPIO=y from all boards.

fabiobaltieri
fabiobaltieri previously approved these changes Dec 16, 2024
@gmarull gmarull force-pushed the gpio-missing-kconfig-samples branch from d9453d6 to 064ad1a Compare December 16, 2024 16:02
@gmarull gmarull requested a review from Thalley December 16, 2024 16:02
@gmarull gmarull force-pushed the gpio-missing-kconfig-samples branch 2 times, most recently from 9d8c0fb to 3e97354 Compare December 17, 2024 09:07
nordicjm
nordicjm previously approved these changes Dec 17, 2024
Copy link
Contributor

@Thalley Thalley left a comment

Choose a reason for hiding this comment

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

Changes LGTM

Some samples seem to optionally support GPIO but still has GPIO=y, but those are outside my area, so not sure whether these should be updated.

Will await with approval a bit

All samples using the GPIO API must enable the CONFIG_GPIO Kconfig
option.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Only include the header if using any of the GPIO API calls/
struct/defines.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add a new Kconfig option to control the behavior of led0. This option
also allows to select GPIO only when needed.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add a new Kconfig option to control the behavior of sw0. If enabled, sw0
button will be used for provisioning. This option also allows to select
GPIO.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add a new option to control led0 behavior. If enabled, led0 will be used
for blinking. This option also allows to select GPIO when needed.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add a new option to control the behavior of sw0. This option also allows
to select GPIO when needed.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add options to control the behavior of sw0/sw1. These options also allow
to select GPIO when needed.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add a new option to control usage of DT nodelabel board_power. This
option also allows to select GPIO when needed.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Kconfigs enabled functionality that requires GPIO, but they did not
select GPIO.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
@gmarull gmarull force-pushed the gpio-missing-kconfig-samples branch from 4d6fa8c to 8f79d1e Compare December 17, 2024 09:56
@kartben kartben merged commit 5504fef into zephyrproject-rtos:main Dec 18, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants