From: Tony Lindgren <tony@atomide.com>
To: Christina Quast <cquast@hanoverdisplays.com>
Cc: "bcousson@baylibre.com" <bcousson@baylibre.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"mpfj@newflow.co.uk" <mpfj@newflow.co.uk>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] ARM: dts: am335x: Replaced register offsets with defines
Date: Thu, 14 Mar 2019 09:12:33 -0700 [thread overview]
Message-ID: <20190314161233.GD19425@atomide.com> (raw)
In-Reply-To: <4FA4A861EC9F6744BE8446EF2CDFAFE11FF8885D@mail.hanover.local>
* Christina Quast <cquast@hanoverdisplays.com> [190314 16:03]:
> On 14/03/2019 16:05, Tony Lindgren wrote:
> > * Christina Quast <cquast@hanoverdisplays.com> [190313 14:28]:
> >> The defines are taken from dt-bindings/pinctrl/am335x.h
> >>
> >> Updated AM33XX_IOPAD to take three instead of two parameters:
> >> AM33XX_IOPAD(register_offset, pin_direction_pullups, mux_mode)
> > Thanks that works great for making things work eventually
> > with #pinctrl-cells = <2> :)
> >
> >> + AM33XX_IOPAD(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0) /* uart1_rxd */
> >> + AM33XX_IOPAD(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE0) /* uart1_txd *
> > Since it sounds like you're modifying these with a script,
> Who would do such a change by hand, anyways? That's too error-prone!
Right :)
> > just leave out any nop comments while at it where the comment
> > is just the pad name already there in the new register
> > define. Some comments might need to be preserved, but my
> > guess is that they're mostly just the pad name.
> >
> > And I suggest you split this change to a seprate patch
> > for each board so in case of trouble we can revert the
> > changes for a single board if needed.
> Is it really useful to have a change per board? Once the AM33XX_IOPAD
> macro is changed and takes 3 arguments instead of 2, the old boards will
> not compile anymore anyways.
That's a good point. How about use some different name for
the new macro? Something like AM33XX_PADCONF maybe?
Note that there is a huge number of out-of-tree board specific
dts files for various devices. So let's also keep the old
macro for now. We could make produce a warning, then we can
drop it later on few merge cycles later.
Regards,
Tony
next prev parent reply other threads:[~2019-03-14 16:12 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-13 14:27 [PATCH 0/2] ARM: dts: am335x: Replace numeric pinmux address with macro defines Christina Quast
2019-03-13 14:27 ` Christina Quast
2019-03-13 14:27 ` [PATCH 1/2] " Christina Quast
2019-03-13 14:27 ` Christina Quast
2019-03-14 14:59 ` Tony Lindgren
2019-03-13 14:27 ` [PATCH 2/2] ARM: dts: am335x: Replaced register offsets with defines Christina Quast
2019-03-13 14:27 ` Christina Quast
2019-03-14 15:05 ` Tony Lindgren
2019-03-14 16:02 ` Christina Quast
2019-03-14 16:12 ` Tony Lindgren [this message]
2019-04-02 16:09 ` [PATCH v2 0/6] ARM: dts: am335x: Replace numeric pinmux address with macro defines Christina Quast
2019-04-02 16:09 ` [PATCH v2 1/6] ARM: dts: am33xx: Added macros for numeric pinmux addresses Christina Quast
2019-04-06 6:06 ` Rob Herring
2019-04-06 11:30 ` Adam Ford
2019-04-06 16:42 ` Tony Lindgren
2019-04-02 16:09 ` [PATCH v2 2/6] ARM: dts: am33xx: Added AM33XX_PADCONF macro Christina Quast
2019-04-06 6:06 ` Rob Herring
2019-04-02 16:09 ` [PATCH v2 3/6] ARM: dts: am335x: bone-common: Replaced register offsets with defines Christina Quast
2019-04-02 16:09 ` [PATCH v2 4/6] ARM: dts: am335x: boneblack-common: " Christina Quast
2019-04-02 16:09 ` [PATCH v2 5/6] ARM: dts: am335x: boneblack-wireless: " Christina Quast
2019-04-02 16:09 ` [PATCH v2 6/6] ARM: dts: am335x: pocketbeagle: " Christina Quast
2019-04-08 17:04 ` [PATCH v2 0/6] ARM: dts: am335x: Replace numeric pinmux address with macro defines Tony Lindgren
-- strict thread matches above, loose matches on Subject: below --
2018-04-30 11:20 [PATCH 0/2] Add macro defines for AM335x Christina Quast
2018-04-30 11:20 ` [PATCH 2/2] ARM: dts: am335x: Replaced register offsets with defines Christina Quast
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=20190314161233.GD19425@atomide.com \
--to=tony@atomide.com \
--cc=bcousson@baylibre.com \
--cc=cquast@hanoverdisplays.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mpfj@newflow.co.uk \
--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 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.