Re: [PATCH v2 1/2] dt-bindings: gpio: add gpio-aggregator binding

From: Geert Uytterhoeven

Date: Fri Feb 20 2026 - 04:16:42 EST


Hi Linus,

On Fri, 20 Feb 2026 at 09:35, Linus Walleij <linusw@xxxxxxxxxx> wrote:
> 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?

Wasn't that already solved using i2c-parent, cfr. the connectors
discussion at last ELC-E?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds