From: Rodolfo Giometti <giometti@enneenne.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>,
Rob Herring <robh+dt@kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>
Subject: Re: [RFC v2 GPIO lines [was: GPIO User I/O]
Date: Mon, 20 Jul 2020 09:38:05 +0200 [thread overview]
Message-ID: <a80dda59-4037-e67b-d99c-7dcdcb44a8f4@enneenne.com> (raw)
In-Reply-To: <CAHp75Vc1ezuW9m8OCQUmEJoNVoD-Z3eWF=Lzcr2v32Br8Gr60w@mail.gmail.com>
On 19/07/2020 20:35, Andy Shevchenko wrote:
> On Thu, Jul 16, 2020 at 6:17 PM Rodolfo Giometti <giometti@enneenne.com> wrote:
>> On 16/07/2020 15:38, Linus Walleij wrote:
>
> ...
>
>> I see but this interface is not designed for such complex usage nor to compete
>> with the current character interface! It is designed to allow boards
>> manufactures to "describe" some I/O lines that are not used by any driver in the
>> device tree,
>
> Why are they not in firmware tables? Platform is a set of hardware
> that makes it so.
> If something is not in DT, then there is no possible way to know what
> is that line?
>
> Or in other words how does the OS know that the certain line is
> connected to a relay?
I'm sorry but I'm not sure to understand you.
I think that within the DT the board developer should describe his/her hardware
in the most detailed manner for drivers and, as last step, for the userspace.
The OS should only knows such IO lines whose are driver related while other ones
(such as a relay or a generic digital input such as a lock/unlock signal) should
be described for the userspace.
At the moment the only way to "describe" a digital output/input not related to
any driver is by using the led or uinput interface that are not designed for
such purposes! My suggestion is to give a proper/dedicated description of such
IO lines.
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti@enneenne.com
Linux Device Driver giometti@linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
next prev parent reply other threads:[~2020-07-20 7:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <01afcac0-bd34-3fd0-b991-a8b40d4b4561@enneenne.com>
[not found] ` <CACRpkdbX9T9EuN-nxkMPC=sN74PEdoLuWurNLdGCzZJwwFrdpQ@mail.gmail.com>
[not found] ` <1c4f1a83-835a-9317-3647-b55f6f39c0ba@enneenne.com>
[not found] ` <CACRpkdZPjJSryJc+RtYjRN=X7xKMcao5pYek1fUM2+sE9xgdFQ@mail.gmail.com>
[not found] ` <CAMuHMdUtguuu4FWU4nRS=pBUyEwKM1JZ8DYPdCQHXBYN0i_Frg@mail.gmail.com>
[not found] ` <87efe96c-3679-14d5-4d79-569b6c047b00@enneenne.com>
2020-07-07 7:41 ` [RFC] GPIO User I/O Geert Uytterhoeven
2020-07-07 9:56 ` Rodolfo Giometti
2020-07-09 14:11 ` [RFC] GPIO lines [was: GPIO User I/O] Rodolfo Giometti
2020-07-11 15:21 ` Linus Walleij
2020-07-13 14:20 ` Rodolfo Giometti
2020-07-13 21:26 ` Linus Walleij
2020-07-14 14:01 ` [RFC v2 " Rodolfo Giometti
2020-07-16 13:38 ` Linus Walleij
2020-07-16 15:15 ` Rodolfo Giometti
2020-07-19 18:35 ` Andy Shevchenko
2020-07-20 7:38 ` Rodolfo Giometti [this message]
2020-07-20 8:17 ` Linus Walleij
2021-04-26 8:44 ` Rodolfo Giometti
2021-04-26 8:48 ` Andy Shevchenko
2021-04-26 9:16 ` Rodolfo Giometti
2021-04-26 9:31 ` Linus Walleij
2021-04-26 9:43 ` Rodolfo Giometti
2021-04-26 10:12 ` Linus Walleij
2021-04-26 11:20 ` Rodolfo Giometti
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=a80dda59-4037-e67b-d99c-7dcdcb44a8f4@enneenne.com \
--to=giometti@enneenne.com \
--cc=andy.shevchenko@gmail.com \
--cc=bgolaszewski@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=robh+dt@kernel.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).