[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZb4WZS8cd=nFz_J0GrBc5HJ8SMYtniB2W_Jpq_vtPTYQ@mail.gmail.com>
Date: Fri, 28 May 2021 11:07:49 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Dario Binacchi <dariobin@...ero.it>,
Tony Lindgren <tony@...mide.com>
Cc: Vladimir Zapolskiy <vz@...ia.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
Drew Fustini <drew@...gleboard.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>
Subject: Re: [PATCH v3 2/3] pinctrl: core: configure pinmux from pins debug file
On Thu, May 27, 2021 at 10:33 PM Dario Binacchi <dariobin@...ero.it> wrote:
> > Il 27/05/2021 21:57 Vladimir Zapolskiy <vz@...ia.com> ha scritto:
> > Unfortunately you continue to cling to the broken interface, while I see no
> > comments from you about asked to consider pin groups and pin group functions.
>
> Could you kindly explain to me, with some practical examples, what kind of interface
> would you implement ?
I am not fully understanding this discussion.
I get the feeling that this is caused by the early architectural decisions with
pinctrl-single to put all configuration of pin groups and functions per pin into
the device tree.
Tony specifically wanted this because what he gets from TI are some raw
ASIC data dumps from the designers, that he could make a script to process
into device tree rather than into .h files, and get this out of the kernel.
(As I remember it, Tony correct me if I'm wrong.)
This makes it hard to align some concepts of the pin control subsystem such
as functions and groups because pinctrl-single assume a 1-to-1 mapping
between one pin and one group, which in turn has a 1-to-many mapping
to functions.
Is the patch trying to debugfs around this somehow?
If this hack is only needed for pinctrl-single.c then it should be placed in
that driver, so Tony can review it and maintain it as applicable in that
driver's context only, not in the pinctrl core as it appears the general
applicability for other drivers is not there.
Would this really be useful for other drivers than pinctrl-single.c?
Yours,
Linus Walleij
Powered by blists - more mailing lists