From: Joel A Fernandes <agnel.joel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Florian Vaussard <florian.vaussard-p8DiymsW2f8@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Linux OMAP List
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux ARM Kernel List
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH 4/4] ARM: dts: AM33XX: Use pinctrl constants
Date: Sun, 2 Jun 2013 12:43:23 -0500 [thread overview]
Message-ID: <CAD=GYpbYZwhSdTjSbskT2DxKjV5OJmAa4zZ5=MA4Kw0Zn3edBQ@mail.gmail.com> (raw)
In-Reply-To: <1370004142-30506-5-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1975 bytes --]
Hi Florian,
This is very cool.. :-)
On Fri, May 31, 2013 at 7:42 AM, Florian Vaussard
<florian.vaussard-p8DiymsW2f8@public.gmane.org>wrote:
> Using constants for pinctrl allows a better readability, and removes
> redundancy with comments.
>
> Signed-off-by: Florian Vaussard <florian.vaussard-p8DiymsW2f8@public.gmane.org>
> ---
> arch/arm/boot/dts/am335x-bone.dts | 18 +++++++++---------
> arch/arm/boot/dts/am335x-evm.dts | 28 ++++++++++++++--------------
> arch/arm/boot/dts/am335x-evmsk.dts | 26 +++++++++++++-------------
> arch/arm/boot/dts/am33xx.dtsi | 1 +
> 4 files changed, 37 insertions(+), 36 deletions(-)
>
> diff --git a/arch/arm/boot/dts/am335x-bone.dts
> b/arch/arm/boot/dts/am335x-bone.dts
> index 5bfb7dd..61d0793 100644
> --- a/arch/arm/boot/dts/am335x-bone.dts
> +++ b/arch/arm/boot/dts/am335x-bone.dts
> @@ -30,30 +30,30 @@
>
> user_leds_s0: user_leds_s0 {
> pinctrl-single,pins = <
> - 0x54 0x7 /* gpmc_a5.gpio1_21,
> OUTPUT | MODE7 */
> - 0x58 0x17 /* gpmc_a6.gpio1_22,
> OUTPUT_PULLUP | MODE7 */
> - 0x5c 0x7 /* gpmc_a7.gpio1_23,
> OUTPUT | MODE7 */
> - 0x60 0x17 /* gpmc_a8.gpio1_24,
> OUTPUT_PULLUP | MODE7 */
> + 0x54 (PIN_OUTPUT | MUX_MODE7) /*
> gpmc_a5.gpio1_21 */
> + 0x58 (PIN_OUTPUT | PULL_UP | MUX_MODE7) /*
> gpmc_a6.gpio1_22 */
> + 0x5c (PIN_OUTPUT | MUX_MODE7) /*
> gpmc_a7.gpio1_23 */
> + 0x60 (PIN_OUTPUT | PULL_UP | MUX_MODE7) /*
> gpmc_a8.gpio1_24 */
>
>
Does it make sense to also replace the pinmux offets with constants?
Removal of the comment would mean looking at the DTS one still has to go
back to the TRM to figure out what is the name for a particular offset.
Thanks,
Joel
[-- Attachment #1.2: Type: text/html, Size: 2607 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
prev parent reply other threads:[~2013-06-02 17:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-31 12:42 [PATCH 0/4] ARM: dts: AM3XXX: Use preprocessor for device trees Florian Vaussard
[not found] ` <1370004142-30506-1-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org>
2013-05-31 12:42 ` [PATCH 1/4] ARM: dts: AM3XXX: Use #include for all " Florian Vaussard
2013-05-31 12:42 ` [PATCH 2/4] ARM: dts: AM33XX: Use existing constants for GPIOs Florian Vaussard
2013-05-31 12:42 ` [PATCH 3/4] ARM: dts: AM33XX: Specific pinctrl header Florian Vaussard
2013-05-31 12:42 ` [PATCH 4/4] ARM: dts: AM33XX: Use pinctrl constants Florian Vaussard
[not found] ` <1370004142-30506-5-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org>
2013-06-02 17:43 ` Joel A Fernandes [this message]
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='CAD=GYpbYZwhSdTjSbskT2DxKjV5OJmAa4zZ5=MA4Kw0Zn3edBQ@mail.gmail.com' \
--to=agnel.joel-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=florian.vaussard-p8DiymsW2f8@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@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: 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).