Thread (5 messages) 5 messages, 4 authors, 2015-09-10

RE: [PATCH v2 04/10] doc/bindings: Update PCIe devicetree binding documentation for LS2080A

From: Lian M.H. <hidden>
Date: 2015-09-10 01:52:59
Also in: linux-arm-kernel, linux-clk

Hi Leo and Bergmann,

Please see my comments inline.
-----Original Message-----
From: pku.leo@gmail.com [mailto:pku.leo@gmail.com] On Behalf Of Li Yang
Sent: Thursday, September 10, 2015 7:50 AM
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org; devicetree@vger.kernel.org; Mark
Rutland [off-list ref]; Sharma Bhupesh-B45370
[off-list ref]; Catalin.Marinas@arm.com;
olof@lixom.net; will.deacon@arm.com; Lian Minghuan-B31939
[off-list ref]; marc.zyngier@arm.com; Bhupesh SHARMA
[off-list ref]; linux-clk@vger.kernel.org
Subject: Re: [PATCH v2 04/10] doc/bindings: Update PCIe devicetree binding
documentation for LS2080A

On Wed, Sep 9, 2015 at 4:07 AM, Arnd Bergmann [off-list ref] wrote:
quoted
On Tuesday 08 September 2015 15:06:16 Li Yang wrote:
quoted
On Mon, Sep 7, 2015 at 6:32 AM, Arnd Bergmann [off-list ref] wrote:
quoted
On Friday 04 September 2015 12:27:46 Bhupesh Sharma wrote:
quoted
@@ -4,7 +4,8 @@ This PCIe host controller is based on the Synopsis
Designware PCIe IP  and thus inherits all the common properties
defined in designware-pcie.txt.
quoted
quoted
quoted
quoted
 Required properties:
-- compatible: should contain the platform identifier such as
"fsl,ls1021a-pcie"
quoted
quoted
quoted
quoted
+- compatible: should contain the platform identifier such as
+"fsl,ls1021a-pcie",
+  "fsl,ls2080a-pcie".
 - reg: base addresses and lengths of the PCIe controller
 - interrupts: A list of interrupt outputs of the controller. Must contain
an
quoted
quoted
quoted
quoted
   entry for each entry in the interrupt-names property.
Are the two PCIe hosts mutually compatible? If they are, you should
mandate one of the strings as the base model for identification,
with the additional model being optional for identification of the specific
SoC.
quoted
quoted
It seems that controllers on these chips are not exactly the same.
They will get different driver data by matching the compatible
strings.  Probably we could define a more generic compatible string,
such as "fsl,layerscape-pcie" or "fsl,ls-pcie".
quoted
It would also be good to add a string with the specific version
number of the designware PCIe block that is being used there.
The binding has mentioned to reference the designware-pcie.txt.  But
it might be more clear to mention the designware compatible string
"snps,dw-pcie" again in the compatible part.  Currently there is no
version number defined in the designware-pcie binding.  It might be
hard to get this information for some SoCs.
For most of them, the information is available and then it should be
added. Obviously if you can't find it out, it's hard to guess and you
have to leave it out for that particular chip.
Actually I don't know any approach to get the version number of the
designware block used.  Maybe they are actually using the same version of
the IP block, and the differences in the driver are actually caused by the
differences in SoC integration.
quoted
A lot of devices also have some internal version register that you can
read out.
There doesn't seem to be this kind of register for the PCIe block.
[Lian Minghuan-B31939]  Yes. There is no register to show PCIe block version according to reference manual.
I agree that differences in the driver are caused by the differences in SoC integration.
Minghuan,

Please correct me if you know more. :)

Regards,
Leo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help