xref: /freebsd/sys/contrib/device-tree/Bindings/phy/mediatek,hdmi-phy.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot# Copyright (c) 2020 MediaTek
35def4c47SEmmanuel Vadot%YAML 1.2
45def4c47SEmmanuel Vadot---
55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/mediatek,hdmi-phy.yaml#
65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75def4c47SEmmanuel Vadot
8*8bab661aSEmmanuel Vadottitle: MediaTek High Definition Multimedia Interface (HDMI) PHY
95def4c47SEmmanuel Vadot
105def4c47SEmmanuel Vadotmaintainers:
115def4c47SEmmanuel Vadot  - Chun-Kuang Hu <chunkuang.hu@kernel.org>
125def4c47SEmmanuel Vadot  - Philipp Zabel <p.zabel@pengutronix.de>
135def4c47SEmmanuel Vadot  - Chunfeng Yun <chunfeng.yun@mediatek.com>
145def4c47SEmmanuel Vadot
155def4c47SEmmanuel Vadotdescription: |
165def4c47SEmmanuel Vadot  The HDMI PHY serializes the HDMI encoder's three channel 10-bit parallel
175def4c47SEmmanuel Vadot  output and drives the HDMI pads.
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadotproperties:
205def4c47SEmmanuel Vadot  $nodename:
215def4c47SEmmanuel Vadot    pattern: "^hdmi-phy@[0-9a-f]+$"
225def4c47SEmmanuel Vadot
235def4c47SEmmanuel Vadot  compatible:
242eb4d8dcSEmmanuel Vadot    oneOf:
252eb4d8dcSEmmanuel Vadot      - items:
262eb4d8dcSEmmanuel Vadot          - enum:
275def4c47SEmmanuel Vadot              - mediatek,mt7623-hdmi-phy
282eb4d8dcSEmmanuel Vadot          - const: mediatek,mt2701-hdmi-phy
292eb4d8dcSEmmanuel Vadot      - const: mediatek,mt2701-hdmi-phy
302eb4d8dcSEmmanuel Vadot      - const: mediatek,mt8173-hdmi-phy
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  reg:
335def4c47SEmmanuel Vadot    maxItems: 1
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  clocks:
365def4c47SEmmanuel Vadot    items:
375def4c47SEmmanuel Vadot      - description: PLL reference clock
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot  clock-names:
405def4c47SEmmanuel Vadot    items:
415def4c47SEmmanuel Vadot      - const: pll_ref
425def4c47SEmmanuel Vadot
435def4c47SEmmanuel Vadot  clock-output-names:
445def4c47SEmmanuel Vadot    items:
455def4c47SEmmanuel Vadot      - const: hdmitx_dig_cts
465def4c47SEmmanuel Vadot
475def4c47SEmmanuel Vadot  "#phy-cells":
485def4c47SEmmanuel Vadot    const: 0
495def4c47SEmmanuel Vadot
505def4c47SEmmanuel Vadot  "#clock-cells":
515def4c47SEmmanuel Vadot    const: 0
525def4c47SEmmanuel Vadot
535def4c47SEmmanuel Vadot  mediatek,ibias:
545def4c47SEmmanuel Vadot    description:
555def4c47SEmmanuel Vadot      TX DRV bias current for < 1.65Gbps
565def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
575def4c47SEmmanuel Vadot    minimum: 0
585def4c47SEmmanuel Vadot    maximum: 63
595def4c47SEmmanuel Vadot    default: 0xa
605def4c47SEmmanuel Vadot
615def4c47SEmmanuel Vadot  mediatek,ibias_up:
625def4c47SEmmanuel Vadot    description:
635def4c47SEmmanuel Vadot      TX DRV bias current for >= 1.65Gbps
645def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
655def4c47SEmmanuel Vadot    minimum: 0
665def4c47SEmmanuel Vadot    maximum: 63
675def4c47SEmmanuel Vadot    default: 0x1c
685def4c47SEmmanuel Vadot
695def4c47SEmmanuel Vadotrequired:
705def4c47SEmmanuel Vadot  - compatible
715def4c47SEmmanuel Vadot  - reg
725def4c47SEmmanuel Vadot  - clocks
735def4c47SEmmanuel Vadot  - clock-names
745def4c47SEmmanuel Vadot  - clock-output-names
755def4c47SEmmanuel Vadot  - "#phy-cells"
765def4c47SEmmanuel Vadot  - "#clock-cells"
775def4c47SEmmanuel Vadot
785def4c47SEmmanuel VadotadditionalProperties: false
795def4c47SEmmanuel Vadot
805def4c47SEmmanuel Vadotexamples:
815def4c47SEmmanuel Vadot  - |
825def4c47SEmmanuel Vadot    #include <dt-bindings/clock/mt8173-clk.h>
835def4c47SEmmanuel Vadot    hdmi_phy: hdmi-phy@10209100 {
845def4c47SEmmanuel Vadot        compatible = "mediatek,mt8173-hdmi-phy";
855def4c47SEmmanuel Vadot        reg = <0x10209100 0x24>;
865def4c47SEmmanuel Vadot        clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>;
875def4c47SEmmanuel Vadot        clock-names = "pll_ref";
885def4c47SEmmanuel Vadot        clock-output-names = "hdmitx_dig_cts";
895def4c47SEmmanuel Vadot        mediatek,ibias = <0xa>;
905def4c47SEmmanuel Vadot        mediatek,ibias_up = <0x1c>;
915def4c47SEmmanuel Vadot        #clock-cells = <0>;
925def4c47SEmmanuel Vadot        #phy-cells = <0>;
935def4c47SEmmanuel Vadot    };
945def4c47SEmmanuel Vadot
955def4c47SEmmanuel Vadot...
96