From: Rob Herring <robh@kernel.org>
To: Robert Marko <robert.marko@sartura.hr>
Cc: Lee Jones <lee.jones@linaro.org>,
Linus Walleij <linus.walleij@linaro.org>,
brgl@bgdev.pl, Philipp Zabel <p.zabel@pengutronix.de>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
devicetree <devicetree@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
skhan@linuxfoundation.org, Luka Perkov <luka.perkov@sartura.hr>
Subject: Re: [PATCH v10 5/6] dt-bindings: mfd: Add Delta TN48M CPLD drivers bindings
Date: Fri, 4 Mar 2022 15:47:16 -0600 [thread overview]
Message-ID: <YiKI5LDWaxvlc9m5@robh.at.kernel.org> (raw)
In-Reply-To: <CA+HBbNHComN9kgFp1Xr4mdedwYjDMbSUkw+6_KAe8+O4hrtvKQ@mail.gmail.com>
On Thu, Mar 03, 2022 at 01:41:13PM +0100, Robert Marko wrote:
> On Wed, Mar 2, 2022 at 10:39 PM Rob Herring <robh@kernel.org> wrote:
> >
> > On Wed, Mar 02, 2022 at 08:47:32AM +0000, Lee Jones wrote:
> > > On Mon, 31 Jan 2022, Robert Marko wrote:
> > >
> > > > Add binding documents for the Delta TN48M CPLD drivers.
> > > >
> > > > Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> > >
> > > This is missing a DT review.
> >
> > How about this one[1]?
> >
> > Rob
> >
> > [1] https://lore.kernel.org/all/20210719225906.GA2769608@robh.at.kernel.org/
>
> Hi Rob,
> Thanks for reaching out.
>
> As you can see the bindings have evolved since v6,
> GPIO driver now only uses 2 distinct compatibles.
Fundamentally, it hasn't really changed.
There's 2 main issues. First, I don't see the need for any child nodes.
This would be sufficient:
cpld@41 {
compatible = "delta,tn48m-cpld";
reg = <0x41>;
#reset-cells = <1>;
#gpio-cells = <2>;
gpio-controller;
};
You only need child nodes if the sub-blocks have their own resources or
are widely reused in different configurations.
The 2nd issue is whether GPIOs are even GPIOs at all. I don't recall
that Linus ever agreed.
Both issues kind of boil down to is there even more that 1 variation of
this h/w where you have differing connections? AFAICT, Delta tn48m is a
pretty specific device and I would guess something implemented in a CPLD
is likely to change on every board design. At least that's my experience
with 'board level logic'.
Rob
next prev parent reply other threads:[~2022-03-04 21:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-31 13:30 [PATCH v10 0/6] Add Delta TN48M CPLD support Robert Marko
2022-01-31 13:30 ` [PATCH v10 1/6] mfd: simple-mfd-i2c: " Robert Marko
2022-01-31 13:30 ` [PATCH v10 2/6] gpio: Add Delta TN48M CPLD GPIO driver Robert Marko
2022-02-08 9:18 ` Bartosz Golaszewski
2022-01-31 13:30 ` [PATCH v10 3/6] dt-bindings: reset: Add Delta TN48M Robert Marko
2022-01-31 13:30 ` [PATCH v10 4/6] reset: Add Delta TN48M CPLD reset controller Robert Marko
2022-01-31 13:30 ` [PATCH v10 5/6] dt-bindings: mfd: Add Delta TN48M CPLD drivers bindings Robert Marko
2022-03-02 8:47 ` Lee Jones
2022-03-02 21:39 ` Rob Herring
2022-03-03 9:19 ` Lee Jones
2022-03-03 12:41 ` Robert Marko
2022-03-04 21:47 ` Rob Herring [this message]
2022-03-17 10:19 ` Robert Marko
2022-01-31 13:30 ` [PATCH v10 6/6] MAINTAINERS: Add Delta Networks TN48M CPLD drivers Robert Marko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YiKI5LDWaxvlc9m5@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luka.perkov@sartura.hr \
--cc=p.zabel@pengutronix.de \
--cc=robert.marko@sartura.hr \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.