brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · ce2c228 Raw
75 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/phy/mediatek,mt7628-usbphy.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Mediatek/Ralink USB PHY8 9maintainers:10  - Sergio Paracuellos <sergio.paracuellos@gmail.com>11 12properties:13  compatible:14    enum:15      - mediatek,mt7620-usbphy16      - mediatek,mt7628-usbphy17      - ralink,rt3352-usbphy18 19  reg:20    maxItems: 121 22  "#phy-cells":23    const: 024 25  ralink,sysctl:26    description:27      phandle to a ralink syscon register region.28    $ref: /schemas/types.yaml#/definitions/phandle29 30  resets:31    items:32      - description: USB Host reset controller33      - description: USB Device reset controller34 35  reset-names:36    items:37      - const: host38      - const: device39 40required:41  - compatible42  - "#phy-cells"43  - ralink,sysctl44  - resets45  - reset-names46 47allOf:48  - if:49      properties:50        compatible:51          contains:52            const: mediatek,mt7628-usbphy53    then:54      required:55        - reg56    else:57      properties:58        reg: false59 60additionalProperties: false61 62examples:63  - |64    phy@10120000 {65      compatible = "mediatek,mt7628-usbphy";66      reg = <0x10120000 0x1000>;67      #phy-cells = <0>;68      ralink,sysctl = <&sysc>;69      resets = <&rstctrl 22>,70               <&rstctrl 25>;71      reset-names = "host", "device";72    };73 74...75