-
Notifications
You must be signed in to change notification settings - Fork 7.9k
shields: devicetree: use arduino-header-r3.h constants in all shields #95320
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
base: main
Are you sure you want to change the base?
Conversation
b45b5be
to
6027e05
Compare
e079ee8
to
5824a3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR converts shield device tree overlays to use symbolic GPIO pin constants from arduino-header-r3.h instead of numeric pin values, making the shield configurations less error-prone and easier to maintain.
- Adds include for arduino-header-r3.h header to shield overlay files
- Replaces numeric GPIO pin references with named constants (e.g.,
16
becomesARDUINO_HEADER_R3_D10
) - Updates multi-line GPIO configurations to use proper line continuation formatting
Reviewed Changes
Copilot reviewed 67 out of 67 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
x_nucleo_wb05kn1_spi.overlay | Updates BLE shield to use symbolic pin constants for CS, reset, and IRQ GPIOs |
x_nucleo_iks4a1/*.overlay | Updates sensor shield variants to use symbolic pin constants for interrupt GPIOs |
x_nucleo_iks02a1/*.overlay | Updates sensor shield variants to use symbolic pin constants for data ready GPIOs |
x_nucleo_iks01a*.overlay | Updates sensor shield variants to use symbolic pin constants for interrupt/data ready GPIOs |
x_nucleo_idb05a1/*.overlay | Updates BLE shield to use symbolic pin constants for CS, reset, and IRQ GPIOs |
x_nucleo_eeprma2/*.overlay | Updates EEPROM shield to use symbolic pin constants for write protect and CS GPIOs |
x_nucleo_bnrg2a1/*.overlay | Updates BLE shield to use symbolic pin constants for CS, reset, and IRQ GPIOs |
waveshare_epaper/*.overlay | Updates e-paper display shields to use symbolic pin constants for DC, reset, and busy GPIOs |
wnc_m14a2a/*.overlay | Updates cellular modem shield to use symbolic pin constants for control GPIOs |
st7789v_generic/*.overlay | Updates display shields to use symbolic pin constants for DC, reset, and CS GPIOs |
st7735r/*.overlay | Updates display shield to use symbolic pin constants for DC, reset, and CS GPIOs |
ssd1306/*.overlay | Updates OLED display shield to use symbolic pin constants for data/command GPIO |
sparkfun_sara_r4/*.overlay | Updates cellular modem shield to use symbolic pin constants for power and reset GPIOs |
semtech_sx12*/*.overlay | Updates LoRa shields to use symbolic pin constants for reset, DIO, and control GPIOs |
Additional shields | Similar updates for ethernet, sensor, display, ADC, DAC, and other shield types |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
9dc2061
to
776f205
Compare
Make shield overlays less error prone and easier to maintain by switching to GPIO pin constants defined in arduino-header-r3.h. Signed-off-by: Benjamin Cabé <[email protected]>
Add mention of ARDUINO_HEADER_R3_* constants in binding description for the Arduino Uno (R3) header. Signed-off-by: Benjamin Cabé <[email protected]>
9579164
to
a63cb86
Compare
Add a Doxygen group for the GPIO pin headers macros and initially document Arduino Uno (R3) header pin constants. Signed-off-by: Benjamin Cabé <[email protected]>
a63cb86
to
a656b21
Compare
|
Make shield overlays less error prone and easier to maintain by switching to GPIO pin constants defined in arduino-header-r3.h.
Also start adding Doxygen docs for documenting available constants for common pin headers (see https://builds.zephyrproject.io/zephyr/pr/95320/docs/doxygen/html/group__devicetree-gpio-pin-headers.html)