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 support for generic i2c-mux base-nr property #6038

Merged
merged 2 commits into from
Mar 14, 2024

Commits on Mar 14, 2024

  1. i2c: mux: Add support for generic base-nr property

    i2c_mux_add_adapter takes a force_nr parameter that allows an explicit
    bus number to be associated with a channel. However, only i2c-mux-reg
    and i2c-mux-gpio make use of it.
    
    To help with situations where it is desirable to have a fixed, known
    base address for the channels of a mux, create a "base-nr" property.
    When force_nr is 0 and base-nr is set and non-zero, form a force_nr
    value from the sum of base-nr and the channel ID.
    
    Signed-off-by: Phil Elwell <[email protected]>
    pelwell committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    02d180a View commit details
    Browse the repository at this point in the history
  2. overlays: i2c-mux: Add 'base' parameter

    Add a 'base' parameter to set an explicit bus number for the channels,
    where the requested bus number is base + channel ID.
    
    Signed-off-by: Phil Elwell <[email protected]>
    pelwell committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    f0652ac View commit details
    Browse the repository at this point in the history