xref: /freebsd/sys/contrib/device-tree/Bindings/phy/mediatek,hdmi-phy.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot# Copyright (c) 2020 MediaTek
3*5def4c47SEmmanuel Vadot%YAML 1.2
4*5def4c47SEmmanuel Vadot---
5*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/mediatek,hdmi-phy.yaml#
6*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*5def4c47SEmmanuel Vadot
8*5def4c47SEmmanuel Vadottitle: MediaTek High Definition Multimedia Interface (HDMI) PHY binding
9*5def4c47SEmmanuel Vadot
10*5def4c47SEmmanuel Vadotmaintainers:
11*5def4c47SEmmanuel Vadot  - Chun-Kuang Hu <chunkuang.hu@kernel.org>
12*5def4c47SEmmanuel Vadot  - Philipp Zabel <p.zabel@pengutronix.de>
13*5def4c47SEmmanuel Vadot  - Chunfeng Yun <chunfeng.yun@mediatek.com>
14*5def4c47SEmmanuel Vadot
15*5def4c47SEmmanuel Vadotdescription: |
16*5def4c47SEmmanuel Vadot  The HDMI PHY serializes the HDMI encoder's three channel 10-bit parallel
17*5def4c47SEmmanuel Vadot  output and drives the HDMI pads.
18*5def4c47SEmmanuel Vadot
19*5def4c47SEmmanuel Vadotproperties:
20*5def4c47SEmmanuel Vadot  $nodename:
21*5def4c47SEmmanuel Vadot    pattern: "^hdmi-phy@[0-9a-f]+$"
22*5def4c47SEmmanuel Vadot
23*5def4c47SEmmanuel Vadot  compatible:
24*5def4c47SEmmanuel Vadot    enum:
25*5def4c47SEmmanuel Vadot      - mediatek,mt2701-hdmi-phy
26*5def4c47SEmmanuel Vadot      - mediatek,mt7623-hdmi-phy
27*5def4c47SEmmanuel Vadot      - mediatek,mt8173-hdmi-phy
28*5def4c47SEmmanuel Vadot
29*5def4c47SEmmanuel Vadot  reg:
30*5def4c47SEmmanuel Vadot    maxItems: 1
31*5def4c47SEmmanuel Vadot
32*5def4c47SEmmanuel Vadot  clocks:
33*5def4c47SEmmanuel Vadot    items:
34*5def4c47SEmmanuel Vadot      - description: PLL reference clock
35*5def4c47SEmmanuel Vadot
36*5def4c47SEmmanuel Vadot  clock-names:
37*5def4c47SEmmanuel Vadot    items:
38*5def4c47SEmmanuel Vadot      - const: pll_ref
39*5def4c47SEmmanuel Vadot
40*5def4c47SEmmanuel Vadot  clock-output-names:
41*5def4c47SEmmanuel Vadot    items:
42*5def4c47SEmmanuel Vadot      - const: hdmitx_dig_cts
43*5def4c47SEmmanuel Vadot
44*5def4c47SEmmanuel Vadot  "#phy-cells":
45*5def4c47SEmmanuel Vadot    const: 0
46*5def4c47SEmmanuel Vadot
47*5def4c47SEmmanuel Vadot  "#clock-cells":
48*5def4c47SEmmanuel Vadot    const: 0
49*5def4c47SEmmanuel Vadot
50*5def4c47SEmmanuel Vadot  mediatek,ibias:
51*5def4c47SEmmanuel Vadot    description:
52*5def4c47SEmmanuel Vadot      TX DRV bias current for < 1.65Gbps
53*5def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
54*5def4c47SEmmanuel Vadot    minimum: 0
55*5def4c47SEmmanuel Vadot    maximum: 63
56*5def4c47SEmmanuel Vadot    default: 0xa
57*5def4c47SEmmanuel Vadot
58*5def4c47SEmmanuel Vadot  mediatek,ibias_up:
59*5def4c47SEmmanuel Vadot    description:
60*5def4c47SEmmanuel Vadot      TX DRV bias current for >= 1.65Gbps
61*5def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
62*5def4c47SEmmanuel Vadot    minimum: 0
63*5def4c47SEmmanuel Vadot    maximum: 63
64*5def4c47SEmmanuel Vadot    default: 0x1c
65*5def4c47SEmmanuel Vadot
66*5def4c47SEmmanuel Vadotrequired:
67*5def4c47SEmmanuel Vadot  - compatible
68*5def4c47SEmmanuel Vadot  - reg
69*5def4c47SEmmanuel Vadot  - clocks
70*5def4c47SEmmanuel Vadot  - clock-names
71*5def4c47SEmmanuel Vadot  - clock-output-names
72*5def4c47SEmmanuel Vadot  - "#phy-cells"
73*5def4c47SEmmanuel Vadot  - "#clock-cells"
74*5def4c47SEmmanuel Vadot
75*5def4c47SEmmanuel VadotadditionalProperties: false
76*5def4c47SEmmanuel Vadot
77*5def4c47SEmmanuel Vadotexamples:
78*5def4c47SEmmanuel Vadot  - |
79*5def4c47SEmmanuel Vadot    #include <dt-bindings/clock/mt8173-clk.h>
80*5def4c47SEmmanuel Vadot    hdmi_phy: hdmi-phy@10209100 {
81*5def4c47SEmmanuel Vadot        compatible = "mediatek,mt8173-hdmi-phy";
82*5def4c47SEmmanuel Vadot        reg = <0x10209100 0x24>;
83*5def4c47SEmmanuel Vadot        clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>;
84*5def4c47SEmmanuel Vadot        clock-names = "pll_ref";
85*5def4c47SEmmanuel Vadot        clock-output-names = "hdmitx_dig_cts";
86*5def4c47SEmmanuel Vadot        mediatek,ibias = <0xa>;
87*5def4c47SEmmanuel Vadot        mediatek,ibias_up = <0x1c>;
88*5def4c47SEmmanuel Vadot        #clock-cells = <0>;
89*5def4c47SEmmanuel Vadot        #phy-cells = <0>;
90*5def4c47SEmmanuel Vadot    };
91*5def4c47SEmmanuel Vadot
92*5def4c47SEmmanuel Vadot...
93