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

title: TI DM8168 USB PHY

maintainers:
  - Tony Lindgren <tony@atomide.com>

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

  reg:
    maxItems: 1

  reg-names:
    items:
      - const: phy

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: refclk

  '#phy-cells':
    const: 0

  syscon:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle for the syscon node to access misc registers.

required:
  - compatible
  - reg
  - reg-names
  - clocks
  - clock-names
  - '#phy-cells'
  - syscon

additionalProperties: false

examples:
  - |
    usb-phy@20 {
        compatible = "ti,dm8168-usb-phy";
        reg = <0x20 0x8>;
        reg-names = "phy";
        clocks = <&main_fapll 6>;
        clock-names = "refclk";
        #phy-cells = <0>;
        syscon = <&scm_conf>;
    };
