From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>,
Simon Horman <horms@verge.net.au>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Linux-sh list <linux-sh@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Eduardo Valentin <eduardo.valentin@ti.com>,
Linux PM list <linux-pm@vger.kernel.org>
Subject: Re: [PATCH 05/13] thermal: rcar: Document SoC-specific bindings
Date: Wed, 6 Aug 2014 09:09:04 +0200 [thread overview]
Message-ID: <CAMuHMdV1PcH-Xcn9Qkc0GoLv7vg7roXfXh1f++Sn3bycAcsKww@mail.gmail.com> (raw)
In-Reply-To: <878un2lat1.wl%kuninori.morimoto.gx@gmail.com>
Hi Morimoto-san,
On Wed, Aug 6, 2014 at 2:30 AM, Kuninori Morimoto
<kuninori.morimoto.gx@gmail.com> wrote:
>> >> > > Required properties:
>> >> > > -- compatible : "renesas,rcar-thermal"
>> >> > > +- compatible : "renesas,thermal-<soctype>", "renesas,rcar-thermal"
>> >> > > + as fallback.
>> >> > > + Examples with soctypes are:
>> >> > > + - "renesas,thermal-r8a73a4" (R-Mobile AP6)
>> >> > > + - "renesas,thermal-r8a7779" (R-Car H1)
>> >> > > + - "renesas,thermal-r8a7790" (R-Car H2)
>> >> > > + - "renesas,thermal-r8a7791" (R-Car M2)
>> >> > > - reg : Address range of the thermal registers.
>> >> > > The 1st reg will be recognized as common register
>> >> > > if it has "interrupts".
> (snip)
>> One important thing to note in my patch description is "some of which
>> are already in use.".
>>
>> $ git grep renesas,thermal -- arch/arm/boot/ | cat
>> arch/arm/boot/dts/r8a7790.dtsi: compatible =
>> "renesas,thermal-r8a7790", "renesas,rcar-thermal";
>> arch/arm/boot/dts/r8a7791.dtsi: compatible =
>> "renesas,thermal-r8a7791", "renesas,rcar-thermal";
>> $
>>
>> So these 2 should be added to the documentation for sure.
>> Adding the 2 others, and adding them to the respective DTSes (cfr. the
>> other patches in the series) doesn't hurt, and will help if an incompatibility
>> ever arises.
>>
>> (I assume the driver works with the other DTSes that already claim to have
>> a device compatible with "renesas,rcar-thermal").
>
> I reconsidered about this.
> Actually, I'm still wondering about this approach
> because driver side doesn't have SoC specific matching table.
> Of course SoC-specific name in .compatible can be backup plan for us,
> but, we don't know it is 100% true.
> (we might have new driver for some specific SoC, like R-Car DMA driver ?)
>
> Adding to SoC specific compatible name in SoC side DTSes are no problem,
> it can be backup plan.
> but, we can't say 100% true that <driver>.txt has SoC specific name list.
> because, driver doesn't care about it today, and we don't know the future
If the SoC-specific name is used in a DTS, it must[*] be documented in the
bindings. Checkpatch.pl checks for that.
[*] The only exception is devices for which no driver exists yet. But then the
bindings are preliminary and in limbo.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2014-08-06 7:09 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-09 12:23 [PATCH 00/13] ARM: shmobile: DT bindings and DTS updates Geert Uytterhoeven
2014-07-09 12:23 ` [PATCH 01/13] of: Add vendor prefix for Sitronix Geert Uytterhoeven
2014-07-09 12:23 ` [PATCH 02/13] irqchip: renesas-intc-irqpin: Document SoC-specific bindings Geert Uytterhoeven
2014-07-11 9:06 ` Simon Horman
2014-07-09 12:23 ` [PATCH 03/13] irqchip: renesas-irqc: Add DT binding documentation Geert Uytterhoeven
2014-07-11 9:07 ` Simon Horman
2014-07-09 12:23 ` [PATCH 04/13] mmc: tmio-mmc: Add renesas,sdhi-r8a7791 to " Geert Uytterhoeven
2014-07-09 12:31 ` Ulf Hansson
2014-07-09 12:23 ` [PATCH 05/13] thermal: rcar: Document SoC-specific bindings Geert Uytterhoeven
2014-07-11 9:13 ` Simon Horman
2014-07-15 14:48 ` Zhang Rui
2014-07-16 2:16 ` Kuninori Morimoto
2014-07-18 7:46 ` Simon Horman
2014-07-18 9:11 ` Kuninori Morimoto
2014-08-05 8:57 ` Geert Uytterhoeven
2014-08-06 0:30 ` Kuninori Morimoto
2014-08-06 7:09 ` Geert Uytterhoeven [this message]
2014-07-09 12:23 ` [PATCH 06/13] sh-pfc: Add renesas,pfc-r8a7791 to binding documentation Geert Uytterhoeven
2014-07-09 12:52 ` Laurent Pinchart
2014-07-10 9:25 ` Linus Walleij
2014-07-09 12:23 ` [PATCH 07/13] ARM: shmobile: r8a73a4 dtsi: Add SoC-specific irqc compatible property Geert Uytterhoeven
2014-07-11 9:15 ` Simon Horman
2014-07-09 12:23 ` [PATCH 08/13] ARM: shmobile: r8a73a4 dtsi: Add SoC-specific thermal " Geert Uytterhoeven
2014-07-11 9:15 ` Simon Horman
2014-07-09 12:23 ` [PATCH 09/13] ARM: shmobile: r8a7779 " Geert Uytterhoeven
2014-07-11 9:16 ` Simon Horman
2014-07-09 12:23 ` [PATCH 10/13] [RFC] ARM: dts: Add shmobile platform device tree bindings documentation Geert Uytterhoeven
2014-07-11 9:17 ` Simon Horman
2014-07-11 14:26 ` Geert Uytterhoeven
2014-07-11 15:09 ` Simon Horman
2014-07-09 12:23 ` [PATCH 11/13] [RFC] mmc: tmio-mmc: Add support for SDHI on new R-Car Gen2 SoCs Geert Uytterhoeven
2014-07-11 9:19 ` Simon Horman
2014-07-09 12:23 ` [PATCH 12/13] [RFC] thermal: rcar: Add binding docs for " Geert Uytterhoeven
2014-07-11 9:21 ` Simon Horman
2014-07-11 9:23 ` Simon Horman
2014-07-09 12:23 ` [PATCH 13/13] [RFC] irqchip: renesas-irqc: " Geert Uytterhoeven
2014-07-11 9:24 ` Simon Horman
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=CAMuHMdV1PcH-Xcn9Qkc0GoLv7vg7roXfXh1f++Sn3bycAcsKww@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=devicetree@vger.kernel.org \
--cc=eduardo.valentin@ti.com \
--cc=geert+renesas@glider.be \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=rui.zhang@intel.com \
/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
all inboxes | Powered by JetHome®