brintos

brintos / linux-shallow public Read only

0
0
Text · 3.3 KiB · 2b3430c Raw
164 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/samsung,exynos-dwc3.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Samsung Exynos SoC USB 3.0 DWC3 Controller8 9maintainers:10  - Krzysztof Kozlowski <krzk@kernel.org>11 12properties:13  compatible:14    enum:15      - google,gs101-dwusb316      - samsung,exynos5250-dwusb317      - samsung,exynos5433-dwusb318      - samsung,exynos7-dwusb319      - samsung,exynos850-dwusb320 21  '#address-cells':22    const: 123 24  clocks:25    minItems: 126    maxItems: 427 28  clock-names:29    minItems: 130    maxItems: 431 32  ranges: true33 34  '#size-cells':35    const: 136 37  vdd10-supply:38    description: 1.0V power supply39 40  vdd33-supply:41    description: 3.0V/3.3V power supply42 43patternProperties:44  "^usb@[0-9a-f]+$":45    $ref: snps,dwc3.yaml#46    description: Required child node47 48required:49  - compatible50  - '#address-cells'51  - clocks52  - clock-names53  - ranges54  - '#size-cells'55  - vdd10-supply56  - vdd33-supply57 58allOf:59  - if:60      properties:61        compatible:62          contains:63            const: google,gs101-dwusb364    then:65      properties:66        clocks:67          minItems: 468          maxItems: 469        clock-names:70          items:71            - const: bus_early72            - const: susp_clk73            - const: link_aclk74            - const: link_pclk75 76  - if:77      properties:78        compatible:79          contains:80            const: samsung,exynos5250-dwusb381    then:82      properties:83        clocks:84          minItems: 185          maxItems: 186        clock-names:87          items:88            - const: usbdrd3089 90  - if:91      properties:92        compatible:93          contains:94            const: samsung,exynos5433-dwusb395    then:96      properties:97        clocks:98          minItems: 499          maxItems: 4100        clock-names:101          items:102            - const: aclk103            - const: susp_clk104            - const: phyclk105            - const: pipe_pclk106 107  - if:108      properties:109        compatible:110          contains:111            const: samsung,exynos7-dwusb3112    then:113      properties:114        clocks:115          minItems: 3116          maxItems: 3117        clock-names:118          items:119            - const: usbdrd30120            - const: usbdrd30_susp_clk121            - const: usbdrd30_axius_clk122 123  - if:124      properties:125        compatible:126          contains:127            const: samsung,exynos850-dwusb3128    then:129      properties:130        clocks:131          minItems: 2132          maxItems: 2133        clock-names:134          items:135            - const: bus_early136            - const: ref137 138additionalProperties: false139 140examples:141  - |142    #include <dt-bindings/clock/exynos5420.h>143    #include <dt-bindings/interrupt-controller/arm-gic.h>144 145    usb@12000000 {146        compatible = "samsung,exynos5250-dwusb3";147        #address-cells = <1>;148        #size-cells = <1>;149        ranges = <0x0 0x12000000 0x10000>;150        clocks = <&clock CLK_USBD300>;151        clock-names = "usbdrd30";152        vdd33-supply = <&ldo9_reg>;153        vdd10-supply = <&ldo11_reg>;154 155        usb@0 {156            compatible = "snps,dwc3";157            reg = <0x0 0x10000>;158            interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;159            phys = <&usbdrd_phy0 0>, <&usbdrd_phy0 1>;160            phy-names = "usb2-phy", "usb3-phy";161            snps,dis_u3_susphy_quirk;162        };163    };164