PCI: rcar: Add support for R-Car H3 to pcie-rcar
[deliverable/linux.git] / Documentation / devicetree / bindings / pci / pci-rcar-gen2.txt
CommitLineData
d47b62f4
BD
1Renesas AHB to PCI bridge
2-------------------------
3
4This is the bridge used internally to connect the USB controllers to the
5AHB. There is one bridge instance per USB port connected to the internal
6OHCI and EHCI controllers.
7
8Required properties:
9- compatible: "renesas,pci-r8a7790" for the R8A7790 SoC;
de24c18c
SS
10 "renesas,pci-r8a7791" for the R8A7791 SoC;
11 "renesas,pci-r8a7794" for the R8A7794 SoC.
d47b62f4
BD
12- reg: A list of physical regions to access the device: the first is
13 the operational registers for the OHCI/EHCI controllers and the
14 second is for the bridge configuration and control registers.
15- interrupts: interrupt for the device.
16- clocks: The reference to the device clock.
17- bus-range: The PCI bus number range; as this is a single bus, the range
18 should be specified as the same value twice.
19- #address-cells: must be 3.
20- #size-cells: must be 2.
21- #interrupt-cells: must be 1.
22- interrupt-map: standard property used to define the mapping of the PCI
23 interrupts to the GIC interrupts.
24- interrupt-map-mask: standard property that helps to define the interrupt
25 mapping.
26
8d598cab
PE
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
d47b62f4
BD
32Example SoC configuration:
33
34 pci0: pci@ee090000 {
35 compatible = "renesas,pci-r8a7790";
36 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
37 reg = <0x0 0xee090000 0x0 0xc00>,
38 <0x0 0xee080000 0x0 0x1100>;
39 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
40 status = "disabled";
41
42 bus-range = <0 0>;
43 #address-cells = <3>;
44 #size-cells = <2>;
45 #interrupt-cells = <1>;
8d598cab 46 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>;
d47b62f4
BD
47 interrupt-map-mask = <0xff00 0 0 0x7>;
48 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
49 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
50 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
51
52 pci@0,1 {
53 reg = <0x800 0 0 0 0>;
54 device_type = "pci";
55 phys = <&usbphy 0 0>;
56 phy-names = "usb";
57 };
58
59 pci@0,2 {
60 reg = <0x1000 0 0 0 0>;
61 device_type = "pci";
62 phys = <&usbphy 0 0>;
63 phy-names = "usb";
64 };
65 };
66
67Example board setup:
68
69&pci0 {
70 status = "okay";
71 pinctrl-0 = <&usb0_pins>;
72 pinctrl-names = "default";
73};
This page took 0.102105 seconds and 5 git commands to generate.