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

title: TI AM335x USB PHY

maintainers:
  - Sebastian Andrzej Siewior <bigeasy@linutronix.de>

properties:
  compatible:
    const: ti,am335x-usb-phy

  reg:
    maxItems: 1

  reg-names:
    const: phy

  ti,ctrl_mod:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Reference to the reset module node.

  "#phy-cells":
    const: 0

  vcc-supply:
    description: Phandle to the regulator that provides power to the PHY.

required:
  - compatible
  - reg
  - reg-names
  - ti,ctrl_mod
  - "#phy-cells"

additionalProperties: false

examples:
  - |
    usb-phy@47401300 {
        compatible = "ti,am335x-usb-phy";
        reg = <0x47401300 0x100>;
        reg-names = "phy";
        ti,ctrl_mod = <&ctrl_mod>;
        #phy-cells = <0>;
    };