public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 08/20] ARM: dts: sun4i: Change LRADC node names to avoid warnings
Date: Fri, 6 Oct 2017 11:26:35 +0200	[thread overview]
Message-ID: <20171006092635.eeynkeoxgbj3c27f@flea> (raw)
In-Reply-To: <CAGb2v65LTUN4a=BzB7hgE7g=4qH6bFLp3WyWJxPrPoVXp0seVw@mail.gmail.com>

On Thu, Oct 05, 2017 at 03:52:29PM +0000, Chen-Yu Tsai wrote:
> On Thu, Oct 5, 2017 at 6:49 PM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > One of the usage of the LRADC is to implement buttons. The bindings define
> > that we should have one subnode per button, with their associated voltage
> > as a property.
> >
> > However, there was no reg property but we still used the voltage associated
> > to the button as the unit-address, which eventually generated warnings in
> > DTC.
> >
> > Rename the node names to avoid those warnings.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> >  arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts  |  6 +++---
> >  arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts |  4 ++--
> >  arch/arm/boot/dts/sun4i-a10-gemei-g9.dts         |  6 +++---
> >  arch/arm/boot/dts/sun4i-a10-inet1.dts            |  6 +++---
> >  arch/arm/boot/dts/sun4i-a10-inet97fv2.dts        | 10 +++++-----
> >  arch/arm/boot/dts/sun4i-a10-inet9f-rev03.dts     | 10 +++++-----
> >  arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts |  4 ++--
> >  7 files changed, 23 insertions(+), 23 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts b/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
> > index 4978e46ca620..b2dbdac19c0f 100644
> > --- a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
> > +++ b/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
> > @@ -98,21 +98,21 @@
> >         vref-supply = <&reg_vcc3v0>;
> >         status = "okay";
> >
> > -       button at 800 {
> > +       button-800 {
> 
> I think 800mV-button would be better, i.e. have the "generic"
> part of the name as a suffix.

It would go against most of the convention that we have everywhere
else for framebuffers, pin muxings, or even regular node names that
start with the class, and then have the most specific part.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171006/09fef6eb/attachment.sig>

  reply	other threads:[~2017-10-06  9:26 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 10:49 [PATCH 00/20] sunxi: Cleanup DT warnings for the A10 and A80 Maxime Ripard
2017-10-05 10:49 ` [PATCH 01/20] ARM: dts: sunxi: Remove leading zeros from unit-addresses Maxime Ripard
2017-10-05 15:22   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 02/20] ARM: dts: axp209: Rename usb_power_supply node to avoid warnings Maxime Ripard
2017-10-05 15:22   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 03/20] ARM: dts: sun4i: Change framebuffer node names " Maxime Ripard
2017-10-05 15:23   ` Chen-Yu Tsai
2017-10-05 15:24     ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 04/20] ARM: dts: sun4i: Change clock " Maxime Ripard
2017-10-05 15:23   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 05/20] ARM: dts: sun4i: Change pinctrl nodes to avoid warning Maxime Ripard
2017-10-05 15:29   ` Chen-Yu Tsai
2017-10-06  8:45     ` Maxime Ripard
2017-10-05 10:49 ` [PATCH 06/20] ARM: dts: sun4i: Provide default muxing for relevant controllers Maxime Ripard
2017-10-05 15:32   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 07/20] ARM: dts: sun4i: Remove skeleton and memory to avoid warnings Maxime Ripard
2017-10-05 15:43   ` Chen-Yu Tsai
2017-10-06  8:47     ` Maxime Ripard
2017-10-06 10:59       ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 08/20] ARM: dts: sun4i: Change LRADC node names " Maxime Ripard
2017-10-05 15:52   ` Chen-Yu Tsai
2017-10-06  9:26     ` Maxime Ripard [this message]
2017-10-05 10:49 ` [PATCH 09/20] ARM: dts: sun4i: Remove SoC node unit-name " Maxime Ripard
2017-10-05 15:44   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 10/20] ARM: dts: sun4i: Rename thermal nodes " Maxime Ripard
2017-10-05 15:44   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 11/20] ARM: dts: sun4i: Remove all useless pinctrl nodes Maxime Ripard
2017-10-05 15:48   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 12/20] ARM: dts: sun4i: Remove underscores from nodes names Maxime Ripard
2017-10-05 15:49   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 13/20] ARM: dts: sun4i: Remove gpio-keys warnings Maxime Ripard
2017-10-05 15:51   ` Chen-Yu Tsai
2017-10-06  9:27     ` Maxime Ripard
2017-10-06 10:25       ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 14/20] ARM: dts: sun9i: Remove skeleton to avoid warnings Maxime Ripard
2017-10-05 15:51   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 15/20] ARM: dts: sun9i: Rename pinctrl nodes " Maxime Ripard
2017-10-05 15:54   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 16/20] ARM: dts: sun9i: Remove GPIO " Maxime Ripard
2017-10-05 15:53   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 17/20] ARM: dts: sun9i: optimus: Remove card detect pull-up Maxime Ripard
2017-10-05 15:53   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 18/20] ARM: dts: sun9i: cubieboard4: " Maxime Ripard
2017-10-05 15:53   ` Chen-Yu Tsai
2017-10-05 10:49 ` [PATCH 19/20] ARM: dts: sun9i: Change node names to remove underscores Maxime Ripard
2017-10-05 15:56   ` Chen-Yu Tsai
2017-10-06  9:34     ` Maxime Ripard
2017-10-05 10:49 ` [PATCH 20/20] " Maxime Ripard
2017-10-05 15:59   ` Chen-Yu Tsai
2017-10-06  9:34     ` 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=20171006092635.eeynkeoxgbj3c27f@flea \
    --to=maxime.ripard@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.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