Re: Assigning fixed numbers to i2c buses via ACPI code

Andy Shevchenko
2025-02-12T11:08:14Z

On Wed, Feb 12, 2025 at 11:18:44AM +0300, Konstantin Aladyshev wrote:
> Hello!
>
> Is it possible to assign fixed numbers to i2c buses via ACPI code?
>
> In DTS code it is done via aliases
> (https://docs.kernel.org/i2c/i2c-sysfs.html#caveat).
>
> For example:
> ```
> aliases {
> i2c20 = &imux20;
> }
>
> &i2c1 {
> status = "okay";
>
> i2c-mux@77 {
> ...
> imux20: i2c@0 {
> ...
> }
> ...
> }
> }
> ```
>
> Is it possible to do something like that in ACPI code?

Why? What the problem do you actually have?