From: Magnus Damm <magnus.damm@gmail.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Cc: Simon Horman <horms@verge.net.au>,
Wolfram Sang <wsa@the-dreams.de>,
Linux-SH <linux-sh@vger.kernel.org>,
Linux-I2C <linux-i2c@vger.kernel.org>
Subject: Re: [PATCH 1/5] i2c: rcar: add renesas,i2c-rcar-gen1/gen2 in DT compatible
Date: Thu, 07 Aug 2014 03:55:01 +0000 [thread overview]
Message-ID: <CANqRtoSu2cZyY2YELUzPF86UAz+=TFtBYsnmotpNDEh9FEhp1Q@mail.gmail.com> (raw)
In-Reply-To: <8738d9kojw.wl%kuninori.morimoto.gx@gmail.com>
Hi Morimoto-san,
On Thu, Aug 7, 2014 at 11:43 AM, Kuninori Morimoto
<kuninori.morimoto.gx@gmail.com> wrote:
>
> Hi Simon
>
>> At our face-to-face meeting in Montpellier we discussed the
>> idea of generation bindings. And my recollection is that Magnus
>> and I had strong reservations about declaring what generation compatibility
>> is without it being explicitly stated in hardware documentation.
>>
>> From observation we can say that the i2c controllers on r8a7778 and r8a7779
>> appear to be compatible. But can we say that in fact they are in fact
>> compatible hardware. That they are different hardware instances of a common
>> i2c controller whose name may or may not be is known to us? If not
>> I do not think that using a common binding describes the hardware,
>> which is the intention of DT bindings.
>>
>> A second problem is the using the generation as a name. Assuming the
>> answer to the above question is yes can we further say with certainty
>> that all variants of Gen1 SoCs that currently exist or will exist in the
>> future are compatible? If not then using Gen1 as the name does not seem
>> to accurately describe the hardware.
>
> This is the reason why SoC side have multi compatible name ?
> My understanding is that, generation compatibility support
> common feature, SoC compatibility support specific feature.
>
> compatible = "renesas,i2c-r8a7790", renesas,i2c-rcar-gen2"
>
> If r8a7790 has special feature, then, it match to first compatible name
> (or it can have special property)
> If it is same as other Gen2, then, it can match to 2nd name.
The problem is that "gen2" is not something that is pre-defined. As
you may have noticed earlier, new SoCs keep on coming and even though
they may be part of "gen2" they may or may not be compatible with the
"gen2" compatible string. So based on that, if we use the SoC part
number in the compatible string we at least know what the support
status is.
> HW doesn't have IP specific version, but latest datasheet
> is indicating all H2/M2/E2/V2.
> And, from HW team point of view, they don't want to create
> same name but multi feature IP in same generation.
> Creating and Testing new IP needs too much time / money / paper work.
So I agree that sharing hardware makes sense from a resource saving
point of view. However in reality there may be smaller differences
between devices used for each version within the generation though.
Now, if we could get the hardware version number from the device team
somehow....
Thanks,
/ magnus
next prev parent reply other threads:[~2014-08-07 3:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 4:39 [PATCH 0/5] i2c: rcar: add renesas,i2c-rcar-gen1/gen2 in DT compatible Kuninori Morimoto
[not found] ` <87silaw7t2.wl%kuninori.morimoto.gx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-06 4:40 ` [PATCH 1/5] " Kuninori Morimoto
[not found] ` <87r40uw7rp.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-08-07 0:18 ` Simon Horman
2014-08-07 0:36 ` Kuninori Morimoto
[not found] ` <8761i5kuel.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-08-07 1:10 ` Simon Horman
[not found] ` <20140807011025.GA3284-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2014-08-07 2:43 ` Kuninori Morimoto
2014-08-07 3:55 ` Magnus Damm [this message]
[not found] ` <CANqRtoSu2cZyY2YELUzPF86UAz+=TFtBYsnmotpNDEh9FEhp1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-07 5:19 ` Kuninori Morimoto
2014-08-07 5:58 ` Magnus Damm
2014-08-07 8:34 ` Kuninori Morimoto
2014-09-19 17:18 ` Wolfram Sang
2014-09-22 2:04 ` Simon Horman
2014-08-06 4:40 ` [PATCH 2/5] ARM: shmobile: r8a7778: add generation level compatible for i2c Kuninori Morimoto
2014-08-06 19:04 ` [PATCH 0/5] i2c: rcar: add renesas,i2c-rcar-gen1/gen2 in DT compatible Wolfram Sang
2014-08-06 4:40 ` [PATCH 3/5] ARM: shmobile: r8a7779: add generation level compatible for i2c Kuninori Morimoto
2014-08-06 4:40 ` [PATCH 4/5] ARM: shmobile: r8a7790: " Kuninori Morimoto
2014-08-06 4:40 ` [PATCH 5/5] ARM: shmobile: r8a7791: " Kuninori Morimoto
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='CANqRtoSu2cZyY2YELUzPF86UAz+=TFtBYsnmotpNDEh9FEhp1Q@mail.gmail.com' \
--to=magnus.damm@gmail.com \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=wsa@the-dreams.de \
/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).