xref: /freebsd/sys/contrib/device-tree/Bindings/phy/rockchip,rk3399-emmc-phy.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/rockchip,rk3399-emmc-phy.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: Rockchip EMMC PHY
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Heiko Stuebner <heiko@sntech.de>
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotproperties:
13*0e8011faSEmmanuel Vadot  compatible:
14*0e8011faSEmmanuel Vadot    const: rockchip,rk3399-emmc-phy
15*0e8011faSEmmanuel Vadot
16*0e8011faSEmmanuel Vadot  reg:
17*0e8011faSEmmanuel Vadot    maxItems: 1
18*0e8011faSEmmanuel Vadot
19*0e8011faSEmmanuel Vadot  clocks:
20*0e8011faSEmmanuel Vadot    maxItems: 1
21*0e8011faSEmmanuel Vadot
22*0e8011faSEmmanuel Vadot  clock-names:
23*0e8011faSEmmanuel Vadot    const: emmcclk
24*0e8011faSEmmanuel Vadot
25*0e8011faSEmmanuel Vadot  drive-impedance-ohm:
26*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
27*0e8011faSEmmanuel Vadot    description:
28*0e8011faSEmmanuel Vadot      Specifies the drive impedance in Ohm.
29*0e8011faSEmmanuel Vadot    enum: [33, 40, 50, 66, 100]
30*0e8011faSEmmanuel Vadot    default: 50
31*0e8011faSEmmanuel Vadot
32*0e8011faSEmmanuel Vadot  rockchip,enable-strobe-pulldown:
33*0e8011faSEmmanuel Vadot    type: boolean
34*0e8011faSEmmanuel Vadot    description: |
35*0e8011faSEmmanuel Vadot      Enable internal pull-down for the strobe
36*0e8011faSEmmanuel Vadot      line.  If not set, pull-down is not used.
37*0e8011faSEmmanuel Vadot
38*0e8011faSEmmanuel Vadot  rockchip,output-tapdelay-select:
39*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
40*0e8011faSEmmanuel Vadot    description:
41*0e8011faSEmmanuel Vadot      Specifies the phyctrl_otapdlysec register.
42*0e8011faSEmmanuel Vadot    default: 0x4
43*0e8011faSEmmanuel Vadot    maximum: 0xf
44*0e8011faSEmmanuel Vadot
45*0e8011faSEmmanuel Vadot  "#phy-cells":
46*0e8011faSEmmanuel Vadot    const: 0
47*0e8011faSEmmanuel Vadot
48*0e8011faSEmmanuel Vadotrequired:
49*0e8011faSEmmanuel Vadot  - compatible
50*0e8011faSEmmanuel Vadot  - reg
51*0e8011faSEmmanuel Vadot  - "#phy-cells"
52*0e8011faSEmmanuel Vadot
53*0e8011faSEmmanuel VadotadditionalProperties: false
54*0e8011faSEmmanuel Vadot
55*0e8011faSEmmanuel Vadotexamples:
56*0e8011faSEmmanuel Vadot  - |
57*0e8011faSEmmanuel Vadot    phy@f780 {
58*0e8011faSEmmanuel Vadot      compatible = "rockchip,rk3399-emmc-phy";
59*0e8011faSEmmanuel Vadot      reg = <0xf780 0x20>;
60*0e8011faSEmmanuel Vadot      clocks = <&sdhci>;
61*0e8011faSEmmanuel Vadot      clock-names = "emmcclk";
62*0e8011faSEmmanuel Vadot      drive-impedance-ohm = <50>;
63*0e8011faSEmmanuel Vadot      #phy-cells = <0>;
64*0e8011faSEmmanuel Vadot    };
65