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

api: gpio: Clean up GPIO dt-bindings flags #12651

Closed
wants to merge 6 commits into from

Commits on Jan 23, 2019

  1. drivers: gpio: fix misuse of u8_t where bool is intended

    GPIO configuration flags will move and some that used to be in the low
    8 bits are now higher, resulting in implicit constant conversion
    overflows.  Use a boolean data type to hold boolean values.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
    pabigot authored and mnkp committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    24a785b View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2019

  1. api: gpio: Clean up GPIO dt-bindings flags

    This commit makes following changes to GPIO dt-bindings flags:
    - Added GPIO_DIR_OUT_LOW, GPIO_DIR_OUT_HIGH flags to initialize output
      in low or high state.
    - Added GPIO_ACTIVE_LOW, GPIO_ACTIVE_HIGH to indicate pin active state.
    - Added GPIO_OPEN_DRAIN, GPIO_OPEN_SOURCE to configure single ended pin
      driving mode.
    - reworked GPIO_INT_* flags to configure pin interrupts.
    - following flags were deprecated: GPIO_DS_DISCONNECT_*, GPIO_INT,
      GPIO_INT_ACTIVE_*, GPIO_INT_DOUBLE_EDGE, GPIO_INT_DEBOUNCE,
      GPIO_POL_*.
    
    Fixes zephyrproject-rtos#10339
    
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
    mnkp committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    05344a0 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2019

  1. boards: update .dts files to use new gpio.h bindings

    New gpio.h DT bindings are based on Linux implementation. Old,
    deprecated GPIO flags have been changed to the current equivalent.
    - added GPIO_ACTIVE_LOW, GPIO_ACTIVE_HIGH to indicate pin active state
    - GPIO_INT_ACTIVE_LOW changed to GPIO_INT_LOW
    - GPIO_INT_ACTIVE_HIGH changed to GPIO_INT_HIGH
    
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
    mnkp committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    d026c6e View commit details
    Browse the repository at this point in the history
  2. samples: blinky: Add support for DT GPIO flags

    Update gpio_pin_configure() to take into account GPIO flags defined by
    the devicetree.
    
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
    mnkp committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    70fbbe9 View commit details
    Browse the repository at this point in the history
  3. drivers: gpio_gecko: update to use new GPIO flags

    GPIO flags have been updated to match Linux implementation. Added open
    drain, open source output configuration. Support for GPIO_ACTIVE_*
    flags.
    
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
    mnkp committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    5877649 View commit details
    Browse the repository at this point in the history
  4. drivers: gpio_sam: update to use new GPIO flags

    GPIO flags have been updated to match Linux implementation. Support
    for GPIO_ACTIVE_*, GPIO_OUTPUT_INIT_* flags.
    
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
    mnkp committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    c19c884 View commit details
    Browse the repository at this point in the history