diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2015-12-02 17:51:39 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-12-09 13:28:22 -0500 |
commit | a37b3eafe8e9cbe7c7754bc6003c125b23749554 (patch) | |
tree | 595ad7cc7ba8967c2de0cf500087a4a7c44d5bc4 | |
parent | 3517652fda51bfeea3768ba05819744c8ac57d9e (diff) |
PCI: rcar: Add gen2 fallback compatibility string for pcie-rcar
Add fallback compatibility string for R-Car Gen 2 family. This is in
keeping with the fallback scheme being adopted wherever appropriate for
drivers for Renesas SoCs.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | Documentation/devicetree/bindings/pci/rcar-pci.txt | 15 | ||||
-rw-r--r-- | drivers/pci/host/pcie-rcar.c | 1 |
2 files changed, 12 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/pci/rcar-pci.txt b/Documentation/devicetree/bindings/pci/rcar-pci.txt index ab2e75f59518..558fe528ae19 100644 --- a/Documentation/devicetree/bindings/pci/rcar-pci.txt +++ b/Documentation/devicetree/bindings/pci/rcar-pci.txt | |||
@@ -1,9 +1,16 @@ | |||
1 | * Renesas RCar PCIe interface | 1 | * Renesas RCar PCIe interface |
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | - compatible: should contain one of the following | 4 | compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC; |
5 | "renesas,pcie-r8a7779", "renesas,pcie-r8a7790", "renesas,pcie-r8a7791", | 5 | "renesas,pcie-r8a7790" for the R8A7790 SoC; |
6 | "renesas,pcie-r8a7795" | 6 | "renesas,pcie-r8a7791" for the R8A7791 SoC; |
7 | "renesas,pcie-r8a7795" for the R8A7795 SoC; | ||
8 | "renesas,pcie-rcar-gen2" for a generic R-Car Gen2 compatible device. | ||
9 | |||
10 | When compatible with the generic version, nodes must list the | ||
11 | SoC-specific version corresponding to the platform first | ||
12 | followed by the generic version. | ||
13 | |||
7 | - reg: base address and length of the pcie controller registers. | 14 | - reg: base address and length of the pcie controller registers. |
8 | - #address-cells: set to <3> | 15 | - #address-cells: set to <3> |
9 | - #size-cells: set to <2> | 16 | - #size-cells: set to <2> |
@@ -26,7 +33,7 @@ Example: | |||
26 | SoC specific DT Entry: | 33 | SoC specific DT Entry: |
27 | 34 | ||
28 | pcie: pcie@fe000000 { | 35 | pcie: pcie@fe000000 { |
29 | compatible = "renesas,pcie-r8a7791"; | 36 | compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2"; |
30 | reg = <0 0xfe000000 0 0x80000>; | 37 | reg = <0 0xfe000000 0 0x80000>; |
31 | #address-cells = <3>; | 38 | #address-cells = <3>; |
32 | #size-cells = <2>; | 39 | #size-cells = <2>; |
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 0c819a00e8ce..5c2962646b17 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c | |||
@@ -915,6 +915,7 @@ static int rcar_pcie_parse_map_dma_ranges(struct rcar_pcie *pcie, | |||
915 | 915 | ||
916 | static const struct of_device_id rcar_pcie_of_match[] = { | 916 | static const struct of_device_id rcar_pcie_of_match[] = { |
917 | { .compatible = "renesas,pcie-r8a7779", .data = rcar_pcie_hw_init_h1 }, | 917 | { .compatible = "renesas,pcie-r8a7779", .data = rcar_pcie_hw_init_h1 }, |
918 | { .compatible = "renesas,pcie-rcar-gen2", .data = rcar_pcie_hw_init }, | ||
918 | { .compatible = "renesas,pcie-r8a7790", .data = rcar_pcie_hw_init }, | 919 | { .compatible = "renesas,pcie-r8a7790", .data = rcar_pcie_hw_init }, |
919 | { .compatible = "renesas,pcie-r8a7791", .data = rcar_pcie_hw_init }, | 920 | { .compatible = "renesas,pcie-r8a7791", .data = rcar_pcie_hw_init }, |
920 | { .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init }, | 921 | { .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init }, |