Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: rcar: Add gen2 fallback compatibility string for pci-rcar-gen2

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>
Acked-by: Rob Herring <robh@kernel.org>

authored by

Simon Horman and committed by
Bjorn Helgaas
3517652f e015f88c

+10 -2
+9 -2
Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt
··· 8 8 Required properties: 9 9 - compatible: "renesas,pci-r8a7790" for the R8A7790 SoC; 10 10 "renesas,pci-r8a7791" for the R8A7791 SoC; 11 - "renesas,pci-r8a7794" for the R8A7794 SoC. 11 + "renesas,pci-r8a7794" for the R8A7794 SoC; 12 + "renesas,pci-rcar-gen2" for a generic R-Car Gen2 compatible device 13 + 14 + 15 + When compatible with the generic version, nodes must list the 16 + SoC-specific version corresponding to the platform first 17 + followed by the generic version. 18 + 12 19 - reg: A list of physical regions to access the device: the first is 13 20 the operational registers for the OHCI/EHCI controllers and the 14 21 second is for the bridge configuration and control registers. ··· 39 32 Example SoC configuration: 40 33 41 34 pci0: pci@ee090000 { 42 - compatible = "renesas,pci-r8a7790"; 35 + compatible = "renesas,pci-r8a7790", "renesas,pci-rcar-gen2"; 43 36 clocks = <&mstp7_clks R8A7790_CLK_EHCI>; 44 37 reg = <0x0 0xee090000 0x0 0xc00>, 45 38 <0x0 0xee080000 0x0 0x1100>;
+1
drivers/pci/host/pci-rcar-gen2.c
··· 430 430 } 431 431 432 432 static struct of_device_id rcar_pci_of_match[] = { 433 + { .compatible = "renesas,pci-rcar-gen2", }, 433 434 { .compatible = "renesas,pci-r8a7790", }, 434 435 { .compatible = "renesas,pci-r8a7791", }, 435 436 { .compatible = "renesas,pci-r8a7794", },