[EXT] Re: [PATCH v8 3/4] gpio: rpmsg: add generic rpmsg GPIO driver
Andrew Lunn
andrew at lunn.ch
Tue Feb 24 14:22:56 PST 2026
> > > + remote_cm33{
> > > + rpmsg {
> > > + rpmsg-io-channel {
> > > + #address-cells = <1>;
> > > + #size-cells = <0>;
> > > +
> > > + gpio at 0 {
> > > + compatible = "rpmsg-gpio";
> > > + reg = <0>;
> > > + gpio-controller;
> > > + #gpio-cells = <2>;
> > > + #interrupt-cells = <2>;
> > > + interrupt-controller;
> > > + };
> > > + gpio at 1 {
> > > + compatible = "rpmsg-gpio";
> > > + reg = <1>;
> > > + gpio-controller;
> > > + #gpio-cells = <2>;
> > > + #interrupt-cells = <2>;
> > > + interrupt-controller;
> > > + };
> Then how would you distinguish gpio at 0 from gpio at 1 on the CM33 RPMSG bus in the example above?
> They are running on the same transport.
Doesn't reg indicate the channel number? gpio at 0 is on rpmsg channel
0. gpio at 1 is on channel 1? The reg value gets filled into struct
rpmsg_channel_info when the endpoints are created?
Andrew
More information about the linux-arm-kernel
mailing list