* [RFC PATCH] pcie-designware: DT documentation update to clarify DT properties
@ 2014-05-21 22:52 Murali Karicheri
2014-05-21 22:54 ` Karicheri, Muralidharan
0 siblings, 1 reply; 2+ messages in thread
From: Murali Karicheri @ 2014-05-21 22:52 UTC (permalink / raw)
To: jg1.han, xobs, devicetree, linux-doc, linux-kernel, arnd
Cc: Murali Karicheri, Mohit Kumar, Pratyush Anand, Richard Zhu,
Kishon Vijay Abraham I, Marek Vasut
Current documentation is not clear enough about the mandatory bindings
to be present in the device node of a snps,dw-pcie compatible pcie
controller. In some cases the property is not present in all drivers.
For example pcie_bus is specified as a clock, but only one of the driver
uses it. This patch attempts to make the documentation consistent with
current implementation so that it is clear enough for anyone who develops
a dw-pcie compatible pcie driver.
CC: Mohit Kumar <mohit.kumar@st.com>
CC: Jingoo Han <jg1.han@samsung.com>
CC: Pratyush Anand <pratyush.anand@st.com>
CC: Richard Zhu <r65037@freescale.com>
CC: Kishon Vijay Abraham I <kishon@ti.com>
CC: Marek Vasut <marex@denx.de>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
---
.../devicetree/bindings/pci/designware-pcie.txt | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt
index d6fae13..8b9dc52 100644
--- a/Documentation/devicetree/bindings/pci/designware-pcie.txt
+++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt
@@ -4,12 +4,14 @@ Required properties:
- compatible: should contain "snps,dw-pcie" to identify the
core, plus an identifier for the specific instance, such
as "samsung,exynos5440-pcie" or "fsl,imx6q-pcie".
-- reg: base addresses and lengths of the pcie controller,
- the phy controller, additional register for the phy controller.
+- reg: base addresses and lengths of the pcie controller.
+ index 0 - base address and length of RC's config space.
+ index 1 and above: additional registers for the PCI controller
+ that are specific to an implementation.
- interrupts: interrupt values for level interrupt,
pulse interrupt, special interrupt.
-- clocks: from common clock binding: handle to pci clock.
-- clock-names: from common clock binding: should be "pcie" and "pcie_bus".
+- clocks: from common clock binding: handle to list of pci clock.
+- clock-names: from common clock binding: pci clock names: "pcie"
- #address-cells: set to <3>
- #size-cells: set to <2>
- device_type: set to "pci"
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [RFC PATCH] pcie-designware: DT documentation update to clarify DT properties
2014-05-21 22:52 [RFC PATCH] pcie-designware: DT documentation update to clarify DT properties Murali Karicheri
@ 2014-05-21 22:54 ` Karicheri, Muralidharan
0 siblings, 0 replies; 2+ messages in thread
From: Karicheri, Muralidharan @ 2014-05-21 22:54 UTC (permalink / raw)
To: Karicheri, Muralidharan, jg1.han, xobs, devicetree, linux-doc,
linux-kernel, arnd, linux-pci
Cc: Mohit Kumar, Pratyush Anand, Richard Zhu, ABRAHAM, KISHON VIJAY,
Marek Vasut
>-----Original Message-----
>From: Karicheri, Muralidharan
>Sent: Wednesday, May 21, 2014 6:52 PM
>To: jg1.han@samsung.com; xobs@kosagi.com; devicetree@vger.kernel.org; linux-
>doc@vger.kernel.org; linux-kernel@vger.kernel.org; arnd@arndb.de
>Cc: Karicheri, Muralidharan; Mohit Kumar; Pratyush Anand; Richard Zhu; ABRAHAM,
>KISHON VIJAY; Marek Vasut
>Subject: [RFC PATCH] pcie-designware: DT documentation update to clarify DT properties
>
>Current documentation is not clear enough about the mandatory bindings to be present in
>the device node of a snps,dw-pcie compatible pcie controller. In some cases the property is
>not present in all drivers.
>For example pcie_bus is specified as a clock, but only one of the driver uses it. This patch
>attempts to make the documentation consistent with current implementation so that it is
>clear enough for anyone who develops a dw-pcie compatible pcie driver.
>
>CC: Mohit Kumar <mohit.kumar@st.com>
>CC: Jingoo Han <jg1.han@samsung.com>
>CC: Pratyush Anand <pratyush.anand@st.com>
>CC: Richard Zhu <r65037@freescale.com>
>CC: Kishon Vijay Abraham I <kishon@ti.com>
>CC: Marek Vasut <marex@denx.de>
>
>Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
>---
> .../devicetree/bindings/pci/designware-pcie.txt | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
>diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt
>b/Documentation/devicetree/bindings/pci/designware-pcie.txt
>index d6fae13..8b9dc52 100644
>--- a/Documentation/devicetree/bindings/pci/designware-pcie.txt
>+++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt
>@@ -4,12 +4,14 @@ Required properties:
> - compatible: should contain "snps,dw-pcie" to identify the
> core, plus an identifier for the specific instance, such
> as "samsung,exynos5440-pcie" or "fsl,imx6q-pcie".
>-- reg: base addresses and lengths of the pcie controller,
>- the phy controller, additional register for the phy controller.
>+- reg: base addresses and lengths of the pcie controller.
>+ index 0 - base address and length of RC's config space.
>+ index 1 and above: additional registers for the PCI controller
>+ that are specific to an implementation.
> - interrupts: interrupt values for level interrupt,
> pulse interrupt, special interrupt.
>-- clocks: from common clock binding: handle to pci clock.
>-- clock-names: from common clock binding: should be "pcie" and "pcie_bus".
>+- clocks: from common clock binding: handle to list of pci clock.
>+- clock-names: from common clock binding: pci clock names: "pcie"
> - #address-cells: set to <3>
> - #size-cells: set to <2>
> - device_type: set to "pci"
>--
>1.7.9.5
+ Adding to the pci list.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-21 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21 22:52 [RFC PATCH] pcie-designware: DT documentation update to clarify DT properties Murali Karicheri
2014-05-21 22:54 ` Karicheri, Muralidharan
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®