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 required changes for zmk power domain support #8

Open
wants to merge 7 commits into
base: v3.0.0+zmk-fixes
Choose a base branch
from

Commits on May 3, 2022

  1. Configuration menu
    Copy the full SHA
    f52a946 View commit details
    Browse the repository at this point in the history
  2. pm: device: Dynamically add a device to a power domain

    Add API to add devices to a power domain in runtime. The number of
    devices that can be added is defined in build time.
    
    The script gen_handles.py will check the number defined in
    `CONFIG_PM_DEVICE_POWER_DOMAIN_DYNAMIC` to resize the handles vector,
    adding empty slots in the supported sector to be used later.
    
    Signed-off-by: Flavio Ceolin <[email protected]>
    Flavio Ceolin authored and infused-kim committed May 3, 2022
    Configuration menu
    Copy the full SHA
    0da7cd6 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2022

  1. Configuration menu
    Copy the full SHA
    da7f2ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    526e7fb View commit details
    Browse the repository at this point in the history

Commits on May 5, 2022

  1. Added proper turning on and off of pins

    Removed configure lines
    infused-kim committed May 5, 2022
    Configuration menu
    Copy the full SHA
    aa17db3 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2022

  1. pm: Added pm_device_action_str

    Added log to pd_gpio_pm_action
    infused-kim committed May 7, 2022
    Configuration menu
    Copy the full SHA
    b659ac0 View commit details
    Browse the repository at this point in the history
  2. Power Domain GPIO: Ensure init doesn’t fail if pin configuration fails

    When a power domain is connected to another power domain,`pd_gpio_init` attempts to configure the gpio pin to `GPIO_DISCONNECTED`.
    
    But if that failed, the init function returned -EIO, which caused the device to be marked as not initialized / ready.
    
    This meant that it couldn’t be retrieved through `device_get_binding()`.
    infused-kim committed May 7, 2022
    Configuration menu
    Copy the full SHA
    f5c43dc View commit details
    Browse the repository at this point in the history