summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt
diff options
context:
space:
mode:
authorPhil Edworthy <phil.edworthy@renesas.com>2015-11-03 19:19:26 +0300
committerBjorn Helgaas <bhelgaas@google.com>2015-11-25 20:53:31 +0300
commit8d598cabf50d837e69ebd6fc86aec5550df2b3a2 (patch)
tree3d97cca9da99eed090fd75ae89560c65135cdb80 /Documentation/devicetree/bindings/pci/pci-rcar-gen2.txt
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
downloadlinux-8d598cabf50d837e69ebd6fc86aec5550df2b3a2.tar.xz
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/devicetree/bindings/pci/pci-rcar-gen2.txt')
-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:
- interrupt-map-mask: standard property that helps to define the interrupt
mapping.
+Optional properties:
+- dma-ranges: a single range for the inbound memory region. If not supplied,
+ defaults to 1GiB at 0x40000000. Note there are hardware restrictions on the
+ allowed combinations of address and size.
+
Example SoC configuration:
pci0: pci@ee090000 {
@@ -38,6 +43,7 @@ Example SoC configuration:
#address-cells = <3>;
#size-cells = <2>;
#interrupt-cells = <1>;
+ dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>;
interrupt-map-mask = <0xff00 0 0 0x7>;
interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH