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

Back-port I2C ATR (Address translator) #2536

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Back-port I2C ATR (Address translator) #2536

wants to merge 2 commits into from

Commits on Jul 8, 2024

  1. i2c: add I2C Address Translator (ATR) support

    An ATR is a device that looks similar to an i2c-mux: it has an I2C
    slave "upstream" port and N master "downstream" ports, and forwards
    transactions from upstream to the appropriate downstream port. But it
    is different in that the forwarded transaction has a different slave
    address. The address used on the upstream bus is called the "alias"
    and is (potentially) different from the physical slave address of the
    downstream chip.
    
    Add a helper file (just like i2c-mux.c for a mux or switch) to allow
    implementing ATR features in a device driver. The helper takes care or
    adapter creation/destruction and translates addresses at each transaction.
    
    Signed-off-by: Luca Ceresoli <[email protected]>
    Signed-off-by: Tomi Valkeinen <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Acked-by: Wolfram Sang <[email protected]>
    lucaceresoli authored and btogorean committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    18a8198 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1ba890 View commit details
    Browse the repository at this point in the history