|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +# Copyright (C) 2020 Renesas Electronics Corp. |
| 3 | +%YAML 1.2 |
| 4 | +--- |
| 5 | +$id: http://devicetree.org/schemas/pci/rcar-pci-host.yaml# |
| 6 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | + |
| 8 | +title: Renesas R-Car PCIe Host |
| 9 | + |
| 10 | +maintainers: |
| 11 | + |
| 12 | + - Yoshihiro Shimoda <[email protected]> |
| 13 | + |
| 14 | +allOf: |
| 15 | + - $ref: pci-bus.yaml# |
| 16 | + |
| 17 | +properties: |
| 18 | + compatible: |
| 19 | + oneOf: |
| 20 | + - items: |
| 21 | + - enum: |
| 22 | + - renesas,pcie-r8a7742 # RZ/G1H |
| 23 | + - renesas,pcie-r8a7743 # RZ/G1M |
| 24 | + - renesas,pcie-r8a7744 # RZ/G1N |
| 25 | + - renesas,pcie-r8a7790 # R-Car H2 |
| 26 | + - renesas,pcie-r8a7791 # R-Car M2-W |
| 27 | + - renesas,pcie-r8a7793 # R-Car M2-N |
| 28 | + - const: renesas,pcie-rcar-gen2 # R-Car Gen2 and RZ/G1 |
| 29 | + - items: |
| 30 | + - enum: |
| 31 | + - renesas,pcie-r8a774a1 # RZ/G2M |
| 32 | + - renesas,pcie-r8a774b1 # RZ/G2N |
| 33 | + - renesas,pcie-r8a774c0 # RZ/G2E |
| 34 | + - renesas,pcie-r8a7795 # R-Car H3 |
| 35 | + - renesas,pcie-r8a7796 # R-Car M3-W |
| 36 | + - renesas,pcie-r8a77961 # R-Car M3-W+ |
| 37 | + - renesas,pcie-r8a77980 # R-Car V3H |
| 38 | + - renesas,pcie-r8a77990 # R-Car E3 |
| 39 | + - const: renesas,pcie-rcar-gen3 # R-Car Gen3 and RZ/G2 |
| 40 | + |
| 41 | + reg: |
| 42 | + maxItems: 1 |
| 43 | + |
| 44 | + interrupts: |
| 45 | + minItems: 3 |
| 46 | + maxItems: 3 |
| 47 | + |
| 48 | + clocks: |
| 49 | + maxItems: 2 |
| 50 | + |
| 51 | + clock-names: |
| 52 | + items: |
| 53 | + - const: pcie |
| 54 | + - const: pcie_bus |
| 55 | + |
| 56 | + power-domains: |
| 57 | + maxItems: 1 |
| 58 | + |
| 59 | + resets: |
| 60 | + maxItems: 1 |
| 61 | + |
| 62 | + phys: |
| 63 | + maxItems: 1 |
| 64 | + |
| 65 | + phy-names: |
| 66 | + const: pcie |
| 67 | + |
| 68 | +required: |
| 69 | + - compatible |
| 70 | + - reg |
| 71 | + - interrupts |
| 72 | + - clocks |
| 73 | + - clock-names |
| 74 | + - power-domains |
| 75 | + - resets |
| 76 | + |
| 77 | +unevaluatedProperties: false |
| 78 | + |
| 79 | +examples: |
| 80 | + - | |
| 81 | + #include <dt-bindings/clock/r8a7791-cpg-mssr.h> |
| 82 | + #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 83 | + #include <dt-bindings/power/r8a7791-sysc.h> |
| 84 | +
|
| 85 | + soc { |
| 86 | + #address-cells = <2>; |
| 87 | + #size-cells = <2>; |
| 88 | +
|
| 89 | + pcie: pcie@fe000000 { |
| 90 | + compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2"; |
| 91 | + reg = <0 0xfe000000 0 0x80000>; |
| 92 | + #address-cells = <3>; |
| 93 | + #size-cells = <2>; |
| 94 | + bus-range = <0x00 0xff>; |
| 95 | + device_type = "pci"; |
| 96 | + ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000>, |
| 97 | + <0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000>, |
| 98 | + <0x02000000 0 0x30000000 0 0x30000000 0 0x08000000>, |
| 99 | + <0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>; |
| 100 | + dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>, |
| 101 | + <0x42000000 2 0x00000000 2 0x00000000 0 0x40000000>; |
| 102 | + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, |
| 103 | + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, |
| 104 | + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; |
| 105 | + #interrupt-cells = <1>; |
| 106 | + interrupt-map-mask = <0 0 0 0>; |
| 107 | + interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; |
| 108 | + clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>; |
| 109 | + clock-names = "pcie", "pcie_bus"; |
| 110 | + power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; |
| 111 | + resets = <&cpg 319>; |
| 112 | + }; |
| 113 | + }; |
0 commit comments