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

Add a strict_gpiod option #6117

Merged
merged 6 commits into from
Apr 22, 2024
Merged

Commits on Apr 19, 2024

  1. ARM: dts: rp1: Add a gpio-ranges property

    gpio-ranges declares a relationship between pinctrl and GPIO
    controllers. It is required for "strict" mode to work.
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    pelwell committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    16338d3 View commit details
    Browse the repository at this point in the history
  2. pinctrl: bcm2835: Add strict_gpiod module parameter

    Setting strict_gpiod to Y makes libgpiod and the gpiod utilities behave
    as documented, i.e. pins are returned to being GPIO inputs when they are
    released.
    drivers/pinctrl/bcm/pinctrl-bcm2835.c
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    pelwell committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    0c92311 View commit details
    Browse the repository at this point in the history
  3. pinctrl: rp1: Add strict_gpiod module parameter

    Setting strict_gpiod to Y makes libgpiod and the gpiod utilities behave
    as documented, i.e. pins are returned to being GPIO inputs when they are
    released.
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    pelwell committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    f28e9dc View commit details
    Browse the repository at this point in the history
  4. ARM: dts: Add strict_gpiod dtparam

    Setting strict_gpiod disables the GPIO output persistence, such that
    pins are returned to being inputs when they are released. Note that
    this applies to the GPIO/pinctrl driver for the user-facing GPIOs,
    not the SoC GPIOs on Pi 5.
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    pelwell committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    3c77f5f View commit details
    Browse the repository at this point in the history
  5. overlays: README: Sort the dtparam names

    There are enough dtparams now that not having them in alphabetical
    order makes them hard to find.
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    pelwell committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    2e661e1 View commit details
    Browse the repository at this point in the history
  6. overlays: README: Document the strict_gpiod dtparam

    Describe the function of the strict_gpiod dtparam.
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    pelwell committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    8546dd0 View commit details
    Browse the repository at this point in the history