From: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> To: "fixed-term.Oleksij.Rempel" <fixed-term.Oleksij.Rempel-V5te9oGctAVWk0Htik3J/w@public.gmane.org> Cc: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>, Oleksij Rempel <linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>, "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>, "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" <linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org> Subject: Re: [PATCH] arm: dts: sun7i-a20-bananapi: name the GPIO lines Date: Mon, 25 Jul 2016 15:27:55 +0200 [thread overview] Message-ID: <CACRpkdYnK=7C=F5hZUo-nYv6Z+Pb+eT7vm1e4hL8N-QgJnuLfg@mail.gmail.com> (raw) In-Reply-To: <5795A334.3000701-V5te9oGctAVWk0Htik3J/w@public.gmane.org> On Mon, Jul 25, 2016 at 7:27 AM, fixed-term.Oleksij.Rempel <fixed-term.Oleksij.Rempel-V5te9oGctAVWk0Htik3J/w@public.gmane.org> wrote: > On 22.07.2016 17:47, Chen-Yu Tsai wrote: >> On Fri, Jul 22, 2016 at 10:55 PM, Linus Walleij >> <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote: >>> "LED1" seems like the right name, if this is a GPIO used to drive >>> a LED. >> >> This is GPIO based. > > This was not clear to me, marking GPIO pin as peripheral, at moment of > writing and testing it was a allocated by led driver. Bit for example > IO-GCLK was free to use for GPIO :).. so do [] actually make sense? I would say if the hardware is used in GPIO mode, i.e. if the hardware registers of the GPIO block is written to activate the LED, then it is "LED1". If there would be a specific LED driver block that disables the GPIO block to be used for the same lines and have its registers elsewhere, it would be "[LED1]". So proper names "FOO" is for the case where the GPIO output is used as GPIO. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: linus.walleij@linaro.org (Linus Walleij) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm: dts: sun7i-a20-bananapi: name the GPIO lines Date: Mon, 25 Jul 2016 15:27:55 +0200 [thread overview] Message-ID: <CACRpkdYnK=7C=F5hZUo-nYv6Z+Pb+eT7vm1e4hL8N-QgJnuLfg@mail.gmail.com> (raw) In-Reply-To: <5795A334.3000701@de.bosch.com> On Mon, Jul 25, 2016 at 7:27 AM, fixed-term.Oleksij.Rempel <fixed-term.Oleksij.Rempel@de.bosch.com> wrote: > On 22.07.2016 17:47, Chen-Yu Tsai wrote: >> On Fri, Jul 22, 2016 at 10:55 PM, Linus Walleij >> <linus.walleij@linaro.org> wrote: >>> "LED1" seems like the right name, if this is a GPIO used to drive >>> a LED. >> >> This is GPIO based. > > This was not clear to me, marking GPIO pin as peripheral, at moment of > writing and testing it was a allocated by led driver. Bit for example > IO-GCLK was free to use for GPIO :).. so do [] actually make sense? I would say if the hardware is used in GPIO mode, i.e. if the hardware registers of the GPIO block is written to activate the LED, then it is "LED1". If there would be a specific LED driver block that disables the GPIO block to be used for the same lines and have its registers elsewhere, it would be "[LED1]". So proper names "FOO" is for the case where the GPIO output is used as GPIO. Yours, Linus Walleij
next prev parent reply other threads:[~2016-07-25 13:27 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-07-14 11:47 [PATCH] arm: dts: sun7i-a20-bananapi: name the GPIO lines Oleksij Rempel 2016-07-14 11:47 ` Oleksij Rempel [not found] ` <1468496825-4896-1-git-send-email-linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org> 2016-07-22 14:55 ` Linus Walleij 2016-07-22 14:55 ` Linus Walleij [not found] ` <CACRpkdZLG1Ffdiw3xkP4G0XBr=WDXg2Vbh2Xmgno1PTNhfZHfg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-07-22 15:47 ` Chen-Yu Tsai 2016-07-22 15:47 ` Chen-Yu Tsai 2016-07-25 5:27 ` fixed-term.Oleksij.Rempel 2016-07-25 5:27 ` fixed-term.Oleksij.Rempel [not found] ` <5795A334.3000701-V5te9oGctAVWk0Htik3J/w@public.gmane.org> 2016-07-25 13:27 ` Linus Walleij [this message] 2016-07-25 13:27 ` Linus Walleij [not found] ` <CACRpkdYnK=7C=F5hZUo-nYv6Z+Pb+eT7vm1e4hL8N-QgJnuLfg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-08-05 8:05 ` Oleksij Rempel 2016-08-05 8:05 ` Oleksij Rempel 2016-08-05 8:06 ` [PATCH v2] " Oleksij Rempel 2016-08-05 8:06 ` Oleksij Rempel [not found] ` <1470384404-6796-1-git-send-email-linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org> 2016-08-08 17:51 ` Linus Walleij 2016-08-08 17:51 ` Linus Walleij 2017-04-28 5:11 ` Oleksij Rempel 2017-04-28 5:11 ` Oleksij Rempel 2017-04-28 8:45 ` Linus Walleij 2017-04-28 8:45 ` Linus Walleij 2017-04-28 9:03 ` Oleksij Rempel 2017-04-28 9:03 ` Oleksij Rempel 2017-05-03 7:09 ` [PATCH v2 resend] " Oleksij Rempel 2017-05-03 7:09 ` Oleksij Rempel [not found] ` <1493795360-18629-1-git-send-email-linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org> 2017-05-04 14:56 ` Maxime Ripard 2017-05-04 14:56 ` Maxime Ripard
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='CACRpkdYnK=7C=F5hZUo-nYv6Z+Pb+eT7vm1e4hL8N-QgJnuLfg@mail.gmail.com' \ --to=linus.walleij-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=fixed-term.Oleksij.Rempel-V5te9oGctAVWk0Htik3J/w@public.gmane.org \ --cc=linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=wens-jdAy2FN1RRM@public.gmane.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: linkBe 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.