brintos

brintos / linux-shallow public Read only

0
0
Text · 3.3 KiB · ff62560 Raw
130 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/usb/renesas,rzv2m-usb3drd.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas RZ/V2M USB 3.1 DRD controller8 9maintainers:10  - Biju Das <biju.das.jz@bp.renesas.com>11 12description: |13  The RZ/V2{M, MA} USB3.1 DRD module supports the following functions14  * Role swapping function by the ID pin of the Micro-AB receptacle15  * Battery Charging Specification Revision 1.216 17properties:18  compatible:19    items:20      - enum:21          - renesas,r9a09g011-usb3drd  # RZ/V2M22          - renesas,r9a09g055-usb3drd  # RZ/V2MA23      - const: renesas,rzv2m-usb3drd24 25  reg:26    maxItems: 127 28  interrupts:29    items:30      - description: Dual Role Device (DRD)31      - description: Battery Charging32      - description: Global Purpose Input33 34  interrupt-names:35    items:36      - const: drd37      - const: bc38      - const: gpi39 40  clocks:41    items:42      - description: Peripheral AXI clock43      - description: APB clock44 45  clock-names:46    items:47      - const: axi48      - const: reg49 50  power-domains:51    maxItems: 152 53  resets:54    maxItems: 155 56  ranges: true57 58  '#address-cells':59    enum: [ 1, 2 ]60 61  '#size-cells':62    enum: [ 1, 2 ]63 64patternProperties:65  "^usb3peri@[0-9a-f]+$":66    type: object67    $ref: /schemas/usb/renesas,usb3-peri.yaml68 69  "^usb@[0-9a-f]+$":70    type: object71    $ref: renesas,usb-xhci.yaml#72 73required:74  - compatible75  - reg76  - interrupts77  - interrupt-names78  - clocks79  - clock-names80  - power-domains81  - resets82 83additionalProperties: false84 85examples:86  - |87    #include <dt-bindings/clock/r9a09g011-cpg.h>88    #include <dt-bindings/interrupt-controller/arm-gic.h>89 90    usb3drd: usb@85070400 {91        compatible = "renesas,r9a09g011-usb3drd", "renesas,rzv2m-usb3drd";92        reg = <0x85070400 0x100>;93        interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>,94                     <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>,95                     <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>;96        interrupt-names = "drd", "bc", "gpi";97        clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,98                 <&cpg CPG_MOD R9A09G011_USB_PCLK>;99        clock-names = "axi", "reg";100        power-domains = <&cpg>;101        resets = <&cpg R9A09G011_USB_DRD_RESET>;102        ranges;103        #address-cells = <1>;104        #size-cells = <1>;105 106        usb3host: usb@85060000 {107           compatible = "renesas,r9a09g011-xhci",108                        "renesas,rzv2m-xhci";109           reg = <0x85060000 0x2000>;110           interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;111           clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>,112                    <&cpg CPG_MOD R9A09G011_USB_PCLK>;113           clock-names = "axi", "reg";114           power-domains = <&cpg>;115           resets = <&cpg R9A09G011_USB_ARESETN_H>;116        };117 118        usb3peri: usb3peri@85070000 {119           compatible = "renesas,r9a09g011-usb3-peri",120                        "renesas,rzv2m-usb3-peri";121           reg = <0x85070000 0x400>;122           interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;123           clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,124                    <&cpg CPG_MOD R9A09G011_USB_PCLK>;125           clock-names = "axi", "reg";126           power-domains = <&cpg>;127           resets = <&cpg R9A09G011_USB_ARESETN_P>;128        };129    };130