xref: /freebsd/sys/contrib/device-tree/Bindings/phy/img,pistachio-usb-phy.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/img,pistachio-usb-phy.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Imagination Pistachio USB PHY
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Andrew Bresticker <abrestic@chromium.org>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotproperties:
13*833e5d42SEmmanuel Vadot  compatible:
14*833e5d42SEmmanuel Vadot    const: img,pistachio-usb-phy
15*833e5d42SEmmanuel Vadot
16*833e5d42SEmmanuel Vadot  clocks:
17*833e5d42SEmmanuel Vadot    maxItems: 1
18*833e5d42SEmmanuel Vadot
19*833e5d42SEmmanuel Vadot  clock-names:
20*833e5d42SEmmanuel Vadot    items:
21*833e5d42SEmmanuel Vadot      - const: usb_phy
22*833e5d42SEmmanuel Vadot
23*833e5d42SEmmanuel Vadot  '#phy-cells':
24*833e5d42SEmmanuel Vadot    const: 0
25*833e5d42SEmmanuel Vadot
26*833e5d42SEmmanuel Vadot  phy-supply:
27*833e5d42SEmmanuel Vadot    description: USB VBUS supply. Must supply 5.0V.
28*833e5d42SEmmanuel Vadot
29*833e5d42SEmmanuel Vadot  img,refclk:
30*833e5d42SEmmanuel Vadot    description:
31*833e5d42SEmmanuel Vadot      Reference clock source for the USB PHY. See
32*833e5d42SEmmanuel Vadot      <dt-bindings/phy/phy-pistachio-usb.h> for valid values.
33*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
34*833e5d42SEmmanuel Vadot
35*833e5d42SEmmanuel Vadot  img,cr-top:
36*833e5d42SEmmanuel Vadot    description: CR_TOP syscon phandle.
37*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
38*833e5d42SEmmanuel Vadot
39*833e5d42SEmmanuel Vadotrequired:
40*833e5d42SEmmanuel Vadot  - compatible
41*833e5d42SEmmanuel Vadot  - clocks
42*833e5d42SEmmanuel Vadot  - clock-names
43*833e5d42SEmmanuel Vadot  - '#phy-cells'
44*833e5d42SEmmanuel Vadot  - img,refclk
45*833e5d42SEmmanuel Vadot  - img,cr-top
46*833e5d42SEmmanuel Vadot
47*833e5d42SEmmanuel VadotadditionalProperties: false
48*833e5d42SEmmanuel Vadot
49*833e5d42SEmmanuel Vadotexamples:
50*833e5d42SEmmanuel Vadot  - |
51*833e5d42SEmmanuel Vadot    #include <dt-bindings/phy/phy-pistachio-usb.h>
52*833e5d42SEmmanuel Vadot    #include <dt-bindings/clock/pistachio-clk.h>
53*833e5d42SEmmanuel Vadot
54*833e5d42SEmmanuel Vadot    usb-phy {
55*833e5d42SEmmanuel Vadot        compatible = "img,pistachio-usb-phy";
56*833e5d42SEmmanuel Vadot        clocks = <&clk_core CLK_USB_PHY>;
57*833e5d42SEmmanuel Vadot        clock-names = "usb_phy";
58*833e5d42SEmmanuel Vadot        #phy-cells = <0>;
59*833e5d42SEmmanuel Vadot        phy-supply = <&usb_vbus>;
60*833e5d42SEmmanuel Vadot        img,refclk = <REFCLK_CLK_CORE>;
61*833e5d42SEmmanuel Vadot        img,cr-top = <&cr_top>;
62*833e5d42SEmmanuel Vadot    };
63