brintos

brintos / linux-shallow public Read only

0
0
Text · 3.9 KiB · 666f013 Raw
140 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (C) 2020 Renesas Electronics Corp.3%YAML 1.24---5$id: http://devicetree.org/schemas/pci/rcar-pci-host.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Renesas R-Car PCIe Host9 10maintainers:11  - Marek Vasut <marek.vasut+renesas@gmail.com>12  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>13 14allOf:15  - $ref: /schemas/pci/pci-host-bridge.yaml#16 17properties:18  compatible:19    oneOf:20      - const: renesas,pcie-r8a7779       # R-Car H121      - items:22          - enum:23              - renesas,pcie-r8a7742      # RZ/G1H24              - renesas,pcie-r8a7743      # RZ/G1M25              - renesas,pcie-r8a7744      # RZ/G1N26              - renesas,pcie-r8a7790      # R-Car H227              - renesas,pcie-r8a7791      # R-Car M2-W28              - renesas,pcie-r8a7793      # R-Car M2-N29          - const: renesas,pcie-rcar-gen2 # R-Car Gen2 and RZ/G130      - items:31          - enum:32              - renesas,pcie-r8a774a1     # RZ/G2M33              - renesas,pcie-r8a774b1     # RZ/G2N34              - renesas,pcie-r8a774c0     # RZ/G2E35              - renesas,pcie-r8a774e1     # RZ/G2H36              - renesas,pcie-r8a7795      # R-Car H337              - renesas,pcie-r8a7796      # R-Car M3-W38              - renesas,pcie-r8a77961     # R-Car M3-W+39              - renesas,pcie-r8a77965     # R-Car M3-N40              - renesas,pcie-r8a77980     # R-Car V3H41              - renesas,pcie-r8a77990     # R-Car E342          - const: renesas,pcie-rcar-gen3 # R-Car Gen3 and RZ/G243 44  reg:45    maxItems: 146 47  interrupts:48    minItems: 349    maxItems: 350 51  clocks:52    maxItems: 253 54  clock-names:55    items:56      - const: pcie57      - const: pcie_bus58 59  power-domains:60    maxItems: 161 62  resets:63    maxItems: 164 65  phys:66    maxItems: 167 68  phy-names:69    const: pcie70 71  vpcie1v5-supply:72    description: The 1.5v regulator to use for PCIe.73 74  vpcie3v3-supply:75    description: The 3.3v regulator to use for PCIe.76 77  vpcie12v-supply:78    description: The 12v regulator to use for PCIe.79 80  iommu-map: true81  iommu-map-mask: true82 83required:84  - compatible85  - reg86  - interrupts87  - clocks88  - clock-names89  - power-domains90 91if:92  not:93    properties:94      compatible:95        contains:96          const: renesas,pcie-r8a777997then:98  required:99    - resets100 101unevaluatedProperties: false102 103examples:104  - |105    #include <dt-bindings/clock/r8a7791-cpg-mssr.h>106    #include <dt-bindings/interrupt-controller/arm-gic.h>107    #include <dt-bindings/power/r8a7791-sysc.h>108 109    soc {110        #address-cells = <2>;111        #size-cells = <2>;112 113        pcie: pcie@fe000000 {114            compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2";115            reg = <0 0xfe000000 0 0x80000>;116             #address-cells = <3>;117             #size-cells = <2>;118             bus-range = <0x00 0xff>;119             device_type = "pci";120             ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000>,121                      <0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000>,122                      <0x02000000 0 0x30000000 0 0x30000000 0 0x08000000>,123                      <0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;124             dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>,125                          <0x42000000 2 0x00000000 2 0x00000000 0 0x40000000>;126             interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,127                          <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,128                          <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;129             #interrupt-cells = <1>;130             interrupt-map-mask = <0 0 0 0>;131             interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;132             clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>;133             clock-names = "pcie", "pcie_bus";134             power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;135             resets = <&cpg 319>;136             vpcie3v3-supply = <&pcie_3v3>;137             vpcie12v-supply = <&pcie_12v>;138         };139    };140