linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: l.stach@pengutronix.de (Lucas Stach)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] arm64: add support for i.MX8M EVK board
Date: Thu, 25 Jan 2018 19:03:17 +0100	[thread overview]
Message-ID: <1516903397.6411.42.camel@pengutronix.de> (raw)
In-Reply-To: <2e5f5ec08b3165cb84115c12f9ddbd9e@codeaurora.org>

Am Donnerstag, den 25.01.2018, 21:03 +0800 schrieb Dong Aisheng:
> On 2018-01-25 19:09, Lucas Stach wrote:
> > Am Donnerstag, den 25.01.2018, 18:49 +0800 schrieb Dong Aisheng:
> > > On 2018-01-25 18:31, Lucas Stach wrote:
> > > > Am Donnerstag, den 25.01.2018, 18:10 +0800 schrieb?
> > > > aisheng.dong at codeaurora.org:
> > 
> > [...]
> > > AFAIK we switched to generic pinconfig since MX7ULP as
> > > maintainer?
> > > > > won't
> > > > > access old binding pinctrl drivers.
> > > > 
> > > > I'm not convinced that the generic pinconf is good fit. For
> > > > pingroups
> > > > with different configs for some of the pins, like the example
> > > > above, we
> > > > would need to split things into multiple DT nodes. This really
> > > > hurts
> > > > readability, so I'm not going to switch to the generic stuff
> > > > without
> > > > some really convincing arguments.
> > > > 
> > > 
> > > Per my understanding, based on the last discussion with Linus W,
> > > we?
> > > actually did this in order to increase the readability that 1)
> > > user?
> > > does
> > > not need?to see the 'ugly' unreadable raw data and refer to
> > > reference
> > > manual 2)?unified generic binding format which already exist in
> > > kernel
> > > and used by many platforms.
> > > 
> > > Actually MXS platform already used it for many years in a similar
> > > way.
> > > So IMHO a little hurt to add another node for different pad
> > > setting?
> > > in?
> > > the same group won't be enough reason to stop switching to
> > > generic?
> > > config.
> > > 
> > > Does it make sense?
> > 
> > I know that Linus W is pushing for this common pinconf thing in the
> > name of readability. It's just that I don't think it's such a clear
> > win.
> > 
> > After all you still need to look into the reference manual or
> > binding
> > to see which values in the common binding correspond to a specific
> > drive/pull strength, etc.
> > 
> 
> User don't need to look into reference manual and they don't need to
> compose the 'ulgy' raw data which is the most tough thing.
> 
> With generic binding, it probably can saving ~80% pad setting effort
> by refer to the defined generic config properties.
> And things can be even better when the reference code is already
> there
> as user becomes know which property supported.
> 
> > On the other hand it really bloats the DT description of the pin
> > configuration. If you want to look at an (IMHO) bad example, go
> > look at
> > the Tegra DTs. The Tegra pincontrol implements the "separate
> > properties
> > for each pinconf option" that is pushed by Linus W. This bloated
> > the DT
> > description to the point that no-one is able/willing to write those
> > descriptions anymore and the only viable way to get them is to
> > auto-
> > generate them from some spreadsheets. Not really what I would call
> > an
> > readable...
> > 
> 
> I wonder the worst case you're worrying whether exist in reality.
> Take imx6qdl-sabresd as an example, about half of pingroups having
> the?
> same
> pad setting while others have two different settings at most.
> That means it may not bloat the device tree too much.
> 
> > Maybe I'm a little stubborn when it comes to this topic, but at
> > Pengutronix we see a lot of customer designs where we need to come
> > up
> > with the board DT. Bloating each one of those and making the work
> > of
> > the developers harder in the name of a readability win that I just
> > don't see doesn't sound like something I want to support. :)
> > 
> 
> Hmm.. In contrast, what i feel currently is that it may ease the
> using?of pad setting, not make it harder. Not sure if i overlooked
> something.
> 
> Let's listen to Shawn and Linus W if they have some comments.

While I'm still unconvinced that the generic binding actually adds any
value, I'll go and see how converting the MX8M pinctrl will look on a
real board.

This will delay rev 2 of this series a bit, but I hope to have
something to send out tomorrow.

Regards,
Lucas

  reply	other threads:[~2018-01-25 18:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-17 18:32 [PATCH 1/4] ARM64: add basic Kconfig symbols for i.MX8 Lucas Stach
2018-01-17 18:32 ` [PATCH 2/4] arm64: add basic DTS for i.MX8MQ Lucas Stach
2018-01-22 11:51   ` Arnd Bergmann
2018-01-22 11:57   ` Fabio Estevam
2018-01-22 14:47   ` Shawn Guo
2018-01-22 15:11     ` Arnd Bergmann
2018-01-22 17:50       ` Lucas Stach
2018-01-23  1:40         ` Shawn Guo
2018-01-23 10:36   ` Shawn Guo
2018-01-23 13:23     ` Lucas Stach
2018-01-25  9:48       ` aisheng.dong at codeaurora.org
2018-01-25 10:27         ` Lucas Stach
2018-01-25 12:34           ` Dong Aisheng
2018-02-02  7:27         ` Shawn Guo
2018-01-29 17:45   ` Rob Herring
2018-01-29 17:55   ` Rob Herring
2018-01-29 18:00     ` Lucas Stach
2018-01-30 14:55       ` Rob Herring
2018-01-17 18:32 ` [PATCH 3/4] arm64: add support for i.MX8M EVK board Lucas Stach
2018-01-22 11:58   ` Fabio Estevam
2018-01-23 10:39   ` Shawn Guo
2018-01-25 10:10     ` aisheng.dong at codeaurora.org
2018-01-25 10:31       ` Lucas Stach
2018-01-25 10:49         ` Dong Aisheng
2018-01-25 11:09           ` Lucas Stach
2018-01-25 13:03             ` Dong Aisheng
2018-01-25 18:03               ` Lucas Stach [this message]
2018-01-26  3:06                 ` A.s. Dong
2018-01-24 14:47   ` Baruch Siach
2018-01-25  9:52     ` Baruch Siach
2018-01-29 17:52   ` Rob Herring
2018-01-17 18:32 ` [PATCH 4/4] MAINTAINERS: add i.MX8 DT path to i.MX architecture Lucas Stach
2018-01-22 11:58   ` Fabio Estevam
2018-01-22 11:53 ` [PATCH 1/4] ARM64: add basic Kconfig symbols for i.MX8 Fabio Estevam

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=1516903397.6411.42.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).