Re: [PATCH v2 1/2] dt-bindings: gpio: add gpio-aggregator binding
From: Linus Walleij
Date: Fri Feb 20 2026 - 03:37:30 EST
On Fri, Feb 20, 2026 at 9:17 AM Herve Codina <herve.codina@xxxxxxxxxxx> wrote:
> With nexus, you cannot translate &spi0.
>
> Also nexus works well when an index is involved. In other word, it works
> well with phandle with args.
>
> i2c-bus = <&i2c0>;
>
> In this kind of of definition, no index are present. With nexus node, this
> looks like
>
> i2c-bus = <&nexus>;
>
> How to handle multiple i2c busses with nexus node?
Can't you just use the foo-n suffix trick from the pinctrl etc?
my_nexus: nexus {
gpio-map = <...>;
interrupt-map = <...>;
nexus_i2c0: i2c-bus-0 = <&i2c4>;
nexus_i2c1: i2c-bus-1 = <&i2c6>;
nexus_i2c2: i2c-bus-3 = <&i2c8>;
};
&nexus_i2c1 {
sensor@4c {
....
};
};
Maybe it's not as elegant but I think it could work?
Yours,
Linus Walleij