[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_Jsq+6ruu23UrwJ=NUUrh-9R_E5tKREv1AyU24op_uUigpNg@mail.gmail.com>
Date: Wed, 4 Sep 2024 09:46:20 -0500
From: Rob Herring <robh@...nel.org>
To: Ayush Singh <ayush@...gleboard.org>
Cc: Michael Walle <mwalle@...nel.org>, Mark Brown <broonie@...nel.org>,
Vaishnav M A <vaishnav@...gleboard.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Derek Kiernan <derek.kiernan@....com>,
Dragan Cvetic <dragan.cvetic@....com>, Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Nishanth Menon <nm@...com>,
Vignesh Raghavendra <vigneshr@...com>, Tero Kristo <kristo@...nel.org>, Andrew Lunn <andrew@...n.ch>,
jkridner@...gleboard.org, robertcnelson@...gleboard.org,
linux-spi@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v5 1/7] dt-bindings: connector: Add mikrobus-connector
On Sat, Aug 31, 2024 at 1:11 PM Ayush Singh <ayush@...gleboard.org> wrote:
>
> >> But here you can have subnodes, no? These could then be just
> >> enumerated as usual.
> >>
> >> &mikrobus_board {
> >> mikrobus_gpio: gpio {
> >> gpio-controller;
> >> #gpio-cells = <1>;
> >> };
> >>
> >> spi {
> >> cs-gpios = <&mikrobus_gpio 1>;
> >>
> >> spi@0 {
> >> compatible = "mydevice";
> >> reg = <0>;
> >> };
> >> };
> >> };
> >>
>
> Hi, I am now working on an approach for mikroBUS based on the apprach
> described here: [1]
>
>
> I am thinking of the gpio-controller approach you seem to have used
> here. So I wanted to inquire if there already exists a gpio-controller
> driver that can create a proxy controller that forwards stuff to the
> underlying actual controller.
gpio-map is what you are looking for. It's documented in the DT spec.
It was created exactly for this purpose of remapping GPIO lines on a
connector.
Rob
Powered by blists - more mailing lists