# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/aspeed,ast2700-usb3-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ASPEED AST2700 USB 3.2 PHY

maintainers:
  - Ryan Chen <ryan_chen@aspeedtech.com>

properties:
  compatible:
    const: aspeed,ast2700-usb3-phy

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  resets:
    maxItems: 1

  '#phy-cells':
    const: 0

required:
  - compatible
  - reg
  - clocks
  - resets
  - '#phy-cells'

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/aspeed,ast2700-scu.h>
    #include <dt-bindings/reset/aspeed,ast2700-scu.h>

    usb-phy@12010000 {
        compatible = "aspeed,ast2700-usb3-phy";
        reg = <0x12010000 0xc0>;
        clocks = <&syscon0 SCU0_CLK_GATE_PORTAUSB2CLK>;
        resets = <&syscon0 SCU0_RESET_PORTA_PHY3>;
        #phy-cells = <0>;
    };