Message ID | 1445628721-10483-6-git-send-email-bhupesh.sharma@freescale.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Saturday 24 October 2015 01:01:54 Bhupesh Sharma wrote: > Update the definition of the Layerscape PCI compatible string to add > support for LS2080A, as the controller on LS2080A is different from > LS1021A SoC. > > While at it, move the clock related properties in the Designware PCIe > controller bindings to 'optional' set of properties. > > Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@freescale.com> > --- > .../devicetree/bindings/pci/designware-pcie.txt | 10 +++++----- > .../devicetree/bindings/pci/layerscape-pci.txt | 14 ++++++++++++-- > 2 files changed, 17 insertions(+), 7 deletions(-) > This one depends on a patch that is in Bjorn's PCI tree but not yet in mainline. Please add my 'Acked-by: Arnd Bergmann <arnd@arndb.de>' and submit it to Bjorn so he can apply the patch on top of the other one. Arnd
On Fri, Oct 23, 2015 at 3:28 PM, Arnd Bergmann <arnd@arndb.de> wrote: > On Saturday 24 October 2015 01:01:54 Bhupesh Sharma wrote: >> Update the definition of the Layerscape PCI compatible string to add >> support for LS2080A, as the controller on LS2080A is different from >> LS1021A SoC. >> >> While at it, move the clock related properties in the Designware PCIe >> controller bindings to 'optional' set of properties. >> >> Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> >> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@freescale.com> >> --- >> .../devicetree/bindings/pci/designware-pcie.txt | 10 +++++----- >> .../devicetree/bindings/pci/layerscape-pci.txt | 14 ++++++++++++-- >> 2 files changed, 17 insertions(+), 7 deletions(-) >> > > This one depends on a patch that is in Bjorn's PCI tree but not > yet in mainline. > > Please add my 'Acked-by: Arnd Bergmann <arnd@arndb.de>' and submit it to > Bjorn so he can apply the patch on top of the other one. I applied this for v4.4. I split it into two because the DesignWare patch doesn't look related to the Layerscape patch. Bjorn
diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt index 0036ab3..576218a 100644 --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt @@ -14,11 +14,6 @@ Required properties: - interrupt-map-mask and interrupt-map: standard PCI properties to define the mapping of the PCIe interface to interrupt numbers. -- clocks: Must contain an entry for each entry in clock-names. - See ../clocks/clock-bindings.txt for details. -- clock-names: Must include the following entries: - - "pcie" - - "pcie_bus" Optional properties: - num-lanes: number of lanes to use (this property should be specified unless @@ -27,3 +22,8 @@ Optional properties: - bus-range: PCI bus numbers covered (it is recommended for new devicetrees to specify this property, to keep backwards compatibility a range of 0x00-0xff is assumed if not present) +- clocks: Must contain an entry for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - "pcie" + - "pcie_bus" diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt index 6286f04..ac7e07e 100644 --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt @@ -1,10 +1,20 @@ Freescale Layerscape PCIe controller -This PCIe host controller is based on the Synopsis Designware PCIe IP +This PCIe host controller is based on the Synopsys Designware PCIe IP and thus inherits all the common properties defined in designware-pcie.txt. +This controller derives its clocks from the Reset Configuration Word (RCW) +which is used to describe the PLL settings at the time of chip-reset. + +Also as per the available Reference Manuals, there is no specific 'version' +register available in the Freescale PCIe controller register set, +which can allow determining the underlying Designware PCIe controller version +information. + Required properties: -- compatible: should contain the platform identifier such as "fsl,ls1021a-pcie" +- compatible: should contain the platform identifier such as: + "fsl,ls1021a-pcie", "snps,dw-pcie" + "fsl,ls2080a-pcie", "snps,dw-pcie" - reg: base addresses and lengths of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property.