xref: /freebsd/sys/contrib/device-tree/Bindings/phy/sunplus,sp7021-usb2-phy.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27ef62cebSEmmanuel Vadot# Copyright (C) Sunplus Co., Ltd. 2021
37ef62cebSEmmanuel Vadot%YAML 1.2
47ef62cebSEmmanuel Vadot---
5*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/sunplus,sp7021-usb2-phy.yaml#
6*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
77ef62cebSEmmanuel Vadot
87ef62cebSEmmanuel Vadottitle: Sunplus SP7021 USB 2.0 PHY Controller
97ef62cebSEmmanuel Vadot
107ef62cebSEmmanuel Vadotmaintainers:
117ef62cebSEmmanuel Vadot  - Vincent Shih <vincent.sunplus@gmail.com>
127ef62cebSEmmanuel Vadot
137ef62cebSEmmanuel Vadotproperties:
147ef62cebSEmmanuel Vadot  compatible:
157ef62cebSEmmanuel Vadot    const: sunplus,sp7021-usb2-phy
167ef62cebSEmmanuel Vadot
177ef62cebSEmmanuel Vadot  reg:
187ef62cebSEmmanuel Vadot    items:
197ef62cebSEmmanuel Vadot      - description: UPHY register region
207ef62cebSEmmanuel Vadot      - description: MOON4 register region
217ef62cebSEmmanuel Vadot
227ef62cebSEmmanuel Vadot  reg-names:
237ef62cebSEmmanuel Vadot    items:
247ef62cebSEmmanuel Vadot      - const: phy
257ef62cebSEmmanuel Vadot      - const: moon4
267ef62cebSEmmanuel Vadot
277ef62cebSEmmanuel Vadot  clocks:
287ef62cebSEmmanuel Vadot    maxItems: 1
297ef62cebSEmmanuel Vadot
307ef62cebSEmmanuel Vadot  resets:
317ef62cebSEmmanuel Vadot    maxItems: 1
327ef62cebSEmmanuel Vadot
337ef62cebSEmmanuel Vadot  "#phy-cells":
347ef62cebSEmmanuel Vadot    const: 0
357ef62cebSEmmanuel Vadot
367ef62cebSEmmanuel Vadot  nvmem-cell-names:
377ef62cebSEmmanuel Vadot    description: names corresponding to the nvmem cells of disconnect voltage
387ef62cebSEmmanuel Vadot    const: disc_vol
397ef62cebSEmmanuel Vadot
407ef62cebSEmmanuel Vadot  nvmem-cells:
417ef62cebSEmmanuel Vadot    description: nvmem cell address of disconnect voltage
427ef62cebSEmmanuel Vadot    maxItems: 1
437ef62cebSEmmanuel Vadot
447ef62cebSEmmanuel Vadot  sunplus,disc-vol-addr-off:
457ef62cebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
467ef62cebSEmmanuel Vadot    description: the otp address offset of disconnect voltage
477ef62cebSEmmanuel Vadot
487ef62cebSEmmanuel Vadotrequired:
497ef62cebSEmmanuel Vadot  - compatible
507ef62cebSEmmanuel Vadot  - reg
517ef62cebSEmmanuel Vadot  - reg-names
527ef62cebSEmmanuel Vadot  - clocks
537ef62cebSEmmanuel Vadot  - resets
547ef62cebSEmmanuel Vadot  - "#phy-cells"
557ef62cebSEmmanuel Vadot  - nvmem-cell-names
567ef62cebSEmmanuel Vadot  - nvmem-cells
577ef62cebSEmmanuel Vadot  - sunplus,disc-vol-addr-off
587ef62cebSEmmanuel Vadot
597ef62cebSEmmanuel VadotadditionalProperties: false
607ef62cebSEmmanuel Vadot
617ef62cebSEmmanuel Vadotexamples:
627ef62cebSEmmanuel Vadot  - |
637ef62cebSEmmanuel Vadot    sp_uphy0: usb-phy@9c004a80 {
647ef62cebSEmmanuel Vadot      compatible = "sunplus,sp7021-usb2-phy";
657ef62cebSEmmanuel Vadot      reg = <0x9c004a80 0x80>, <0x9c000248 0x10>;
667ef62cebSEmmanuel Vadot      reg-names = "phy", "moon4";
677ef62cebSEmmanuel Vadot      clocks = <&clkc 0x3d>;
687ef62cebSEmmanuel Vadot      resets = <&rstc 0x2d>;
697ef62cebSEmmanuel Vadot      #phy-cells = <0>;
707ef62cebSEmmanuel Vadot      nvmem-cell-names = "disc_vol";
717ef62cebSEmmanuel Vadot      nvmem-cells = <&disc_vol>;
727ef62cebSEmmanuel Vadot      sunplus,disc-vol-addr-off = <0>;
737ef62cebSEmmanuel Vadot    };
74