aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorPhil Edworthy <phil.edworthy@renesas.com>2015-11-03 11:19:26 -0500
committerBjorn Helgaas <bhelgaas@google.com>2015-11-25 12:53:31 -0500
commit8d598cabf50d837e69ebd6fc86aec5550df2b3a2 (patch)
tree3d97cca9da99eed090fd75ae89560c65135cdb80 /Documentation
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
PCI: rcar: Allow DT to override default window settings
If the DTB specifies dma-ranges, use those values. Otherwise, default to the values that were previously hardcoded into the driver. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt b/Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt
index 7fab84b33531..891463cb09c2 100644
--- a/Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt
+++ b/Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt
@@ -24,6 +24,11 @@ Required properties:
24- interrupt-map-mask: standard property that helps to define the interrupt 24- interrupt-map-mask: standard property that helps to define the interrupt
25 mapping. 25 mapping.
26 26
27Optional properties:
28- dma-ranges: a single range for the inbound memory region. If not supplied,
29 defaults to 1GiB at 0x40000000. Note there are hardware restrictions on the
30 allowed combinations of address and size.
31
27Example SoC configuration: 32Example SoC configuration:
28 33
29 pci0: pci@ee090000 { 34 pci0: pci@ee090000 {
@@ -38,6 +43,7 @@ Example SoC configuration:
38 #address-cells = <3>; 43 #address-cells = <3>;
39 #size-cells = <2>; 44 #size-cells = <2>;
40 #interrupt-cells = <1>; 45 #interrupt-cells = <1>;
46 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>;
41 interrupt-map-mask = <0xff00 0 0 0x7>; 47 interrupt-map-mask = <0xff00 0 0 0x7>;
42 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH 48 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
43 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH 49 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH