brintos

brintos / linux-shallow public Read only

0
0
Text · 4.7 KiB · 065b750 Raw
191 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/pci/renesas,pci-rcar-gen2.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas AHB to PCI bridge8 9maintainers:10  - Marek Vasut <marek.vasut+renesas@gmail.com>11  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>12 13description: |14  This is the bridge used internally to connect the USB controllers to the15  AHB. There is one bridge instance per USB port connected to the internal16  OHCI and EHCI controllers.17 18properties:19  compatible:20    oneOf:21      - items:22          - enum:23              - renesas,pci-r8a7742      # RZ/G1H24              - renesas,pci-r8a7743      # RZ/G1M25              - renesas,pci-r8a7744      # RZ/G1N26              - renesas,pci-r8a7745      # RZ/G1E27              - renesas,pci-r8a7790      # R-Car H228              - renesas,pci-r8a7791      # R-Car M2-W29              - renesas,pci-r8a7793      # R-Car M2-N30              - renesas,pci-r8a7794      # R-Car E231          - const: renesas,pci-rcar-gen2 # R-Car Gen2 and RZ/G132      - items:33          - enum:34              - renesas,pci-r9a06g032     # RZ/N1D35          - const: renesas,pci-rzn1       # RZ/N136 37  reg:38    items:39      - description: Operational registers for the OHCI/EHCI controllers.40      - description: Bridge configuration and control registers.41 42  interrupts:43    maxItems: 144 45  clocks:46    minItems: 147    maxItems: 348 49  clock-names:50    minItems: 151    maxItems: 352 53  resets:54    maxItems: 155 56  power-domains:57    maxItems: 158 59  bus-range:60    description: |61      The PCI bus number range; as this is a single bus, the range62      should be specified as the same value twice.63 64  dma-ranges:65    description: |66      A single range for the inbound memory region. If not supplied,67      defaults to 1GiB at 0x40000000. Note there are hardware restrictions on68      the allowed combinations of address and size.69    maxItems: 170 71patternProperties:72  '^usb@[0-1],0$':73    type: object74 75    description:76      This a USB controller PCI device77 78    properties:79      reg:80        description:81          Identify the correct bus, device and function number in the82          form <bdf 0 0 0 0>.83 84        items:85          minItems: 586          maxItems: 587 88      phys:89        description:90          Reference to the USB phy91        maxItems: 192 93      phy-names:94        maxItems: 195 96    required:97      - reg98      - phys99      - phy-names100 101    unevaluatedProperties: false102 103required:104  - compatible105  - reg106  - interrupts107  - interrupt-map108  - interrupt-map-mask109  - clocks110  - power-domains111  - bus-range112  - "#address-cells"113  - "#size-cells"114  - "#interrupt-cells"115 116allOf:117  - $ref: /schemas/pci/pci-host-bridge.yaml#118 119  - if:120      properties:121        compatible:122          contains:123            enum:124              - renesas,pci-rzn1125    then:126      properties:127        clocks:128          items:129            - description: Internal bus clock (AHB) for HOST130            - description: Internal bus clock (AHB) Power Management131            - description: PCI clock for USB subsystem132        clock-names:133          items:134            - const: hclkh135            - const: hclkpm136            - const: pciclk137      required:138        - clock-names139    else:140      properties:141        clocks:142          items:143            - description: Device clock144        clock-names:145          items:146            - const: pclk147      required:148        - resets149 150unevaluatedProperties: false151 152examples:153  - |154    #include <dt-bindings/interrupt-controller/arm-gic.h>155    #include <dt-bindings/clock/r8a7790-cpg-mssr.h>156    #include <dt-bindings/power/r8a7790-sysc.h>157 158    pci@ee090000  {159        compatible = "renesas,pci-r8a7790", "renesas,pci-rcar-gen2";160        device_type = "pci";161        reg = <0xee090000 0xc00>,162              <0xee080000 0x1100>;163        clocks = <&cpg CPG_MOD 703>;164        power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;165        resets = <&cpg 703>;166        interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;167 168        bus-range = <0 0>;169        #address-cells = <3>;170        #size-cells = <2>;171        #interrupt-cells = <1>;172        ranges = <0x02000000 0 0xee080000 0xee080000 0 0x00010000>;173        dma-ranges = <0x42000000 0 0x40000000 0x40000000 0 0x40000000>;174        interrupt-map-mask = <0xf800 0 0 0x7>;175        interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,176                        <0x0800 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,177                        <0x1000 0 0 2 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;178 179        usb@1,0 {180            reg = <0x800 0 0 0 0>;181            phys = <&usb0 0>;182            phy-names = "usb";183        };184 185        usb@2,0 {186            reg = <0x1000 0 0 0 0>;187            phys = <&usb0 0>;188            phy-names = "usb";189        };190    };191