12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22eb4d8dcSEmmanuel Vadot%YAML 1.2
32eb4d8dcSEmmanuel Vadot---
42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/display/imx/fsl,imx6-hdmi.yaml#
52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
72eb4d8dcSEmmanuel Vadottitle: Freescale i.MX6 DWC HDMI TX Encoder
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadotmaintainers:
102eb4d8dcSEmmanuel Vadot  - Philipp Zabel <p.zabel@pengutronix.de>
112eb4d8dcSEmmanuel Vadot
122eb4d8dcSEmmanuel Vadotdescription: |
132eb4d8dcSEmmanuel Vadot  The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP
142eb4d8dcSEmmanuel Vadot  with a companion PHY IP.
152eb4d8dcSEmmanuel Vadot
162eb4d8dcSEmmanuel VadotallOf:
172eb4d8dcSEmmanuel Vadot  - $ref: ../bridge/synopsys,dw-hdmi.yaml#
182eb4d8dcSEmmanuel Vadot
192eb4d8dcSEmmanuel Vadotproperties:
202eb4d8dcSEmmanuel Vadot  compatible:
212eb4d8dcSEmmanuel Vadot    enum:
222eb4d8dcSEmmanuel Vadot      - fsl,imx6dl-hdmi
232eb4d8dcSEmmanuel Vadot      - fsl,imx6q-hdmi
242eb4d8dcSEmmanuel Vadot
252eb4d8dcSEmmanuel Vadot  reg-io-width:
262eb4d8dcSEmmanuel Vadot    const: 1
272eb4d8dcSEmmanuel Vadot
282eb4d8dcSEmmanuel Vadot  clocks:
292eb4d8dcSEmmanuel Vadot    maxItems: 2
302eb4d8dcSEmmanuel Vadot
312eb4d8dcSEmmanuel Vadot  clock-names:
322eb4d8dcSEmmanuel Vadot    maxItems: 2
332eb4d8dcSEmmanuel Vadot
342eb4d8dcSEmmanuel Vadot  ddc-i2c-bus:
352eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
362eb4d8dcSEmmanuel Vadot    description:
372eb4d8dcSEmmanuel Vadot      The HDMI DDC bus can be connected to either a system I2C master or the
382eb4d8dcSEmmanuel Vadot      functionally-reduced I2C master contained in the DWC HDMI. When connected
392eb4d8dcSEmmanuel Vadot      to a system I2C master this property contains a phandle to that I2C
402eb4d8dcSEmmanuel Vadot      master controller.
412eb4d8dcSEmmanuel Vadot
422eb4d8dcSEmmanuel Vadot  gpr:
432eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
442eb4d8dcSEmmanuel Vadot    description:
452eb4d8dcSEmmanuel Vadot      phandle to the iomuxc-gpr region containing the HDMI multiplexer control
462eb4d8dcSEmmanuel Vadot      register.
472eb4d8dcSEmmanuel Vadot
482eb4d8dcSEmmanuel Vadot  ports:
492eb4d8dcSEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
502eb4d8dcSEmmanuel Vadot    description: |
512eb4d8dcSEmmanuel Vadot      This device has four video ports, corresponding to the four inputs of the
522eb4d8dcSEmmanuel Vadot      HDMI multiplexer. Each port shall have a single endpoint.
532eb4d8dcSEmmanuel Vadot
542eb4d8dcSEmmanuel Vadot    properties:
552eb4d8dcSEmmanuel Vadot      port@0:
562eb4d8dcSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
572eb4d8dcSEmmanuel Vadot        description: First input of the HDMI multiplexer
582eb4d8dcSEmmanuel Vadot
592eb4d8dcSEmmanuel Vadot      port@1:
602eb4d8dcSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
612eb4d8dcSEmmanuel Vadot        description: Second input of the HDMI multiplexer
622eb4d8dcSEmmanuel Vadot
632eb4d8dcSEmmanuel Vadot      port@2:
642eb4d8dcSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
652eb4d8dcSEmmanuel Vadot        description: Third input of the HDMI multiplexer
662eb4d8dcSEmmanuel Vadot
672eb4d8dcSEmmanuel Vadot      port@3:
682eb4d8dcSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
692eb4d8dcSEmmanuel Vadot        description: Fourth input of the HDMI multiplexer
702eb4d8dcSEmmanuel Vadot
712eb4d8dcSEmmanuel Vadot    anyOf:
722eb4d8dcSEmmanuel Vadot      - required:
732eb4d8dcSEmmanuel Vadot          - port@0
742eb4d8dcSEmmanuel Vadot      - required:
752eb4d8dcSEmmanuel Vadot          - port@1
762eb4d8dcSEmmanuel Vadot      - required:
772eb4d8dcSEmmanuel Vadot          - port@2
782eb4d8dcSEmmanuel Vadot      - required:
792eb4d8dcSEmmanuel Vadot          - port@3
802eb4d8dcSEmmanuel Vadot
812eb4d8dcSEmmanuel Vadotrequired:
822eb4d8dcSEmmanuel Vadot  - compatible
832eb4d8dcSEmmanuel Vadot  - reg
842eb4d8dcSEmmanuel Vadot  - clocks
852eb4d8dcSEmmanuel Vadot  - clock-names
862eb4d8dcSEmmanuel Vadot  - gpr
872eb4d8dcSEmmanuel Vadot  - interrupts
882eb4d8dcSEmmanuel Vadot  - ports
892eb4d8dcSEmmanuel Vadot
90*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false
912eb4d8dcSEmmanuel Vadot
922eb4d8dcSEmmanuel Vadotexamples:
932eb4d8dcSEmmanuel Vadot  - |
942eb4d8dcSEmmanuel Vadot    #include <dt-bindings/clock/imx6qdl-clock.h>
952eb4d8dcSEmmanuel Vadot
962eb4d8dcSEmmanuel Vadot    hdmi: hdmi@120000 {
972eb4d8dcSEmmanuel Vadot        reg = <0x00120000 0x9000>;
982eb4d8dcSEmmanuel Vadot        interrupts = <0 115 0x04>;
992eb4d8dcSEmmanuel Vadot        gpr = <&gpr>;
1002eb4d8dcSEmmanuel Vadot        clocks = <&clks IMX6QDL_CLK_HDMI_IAHB>,
1012eb4d8dcSEmmanuel Vadot                 <&clks IMX6QDL_CLK_HDMI_ISFR>;
1022eb4d8dcSEmmanuel Vadot        clock-names = "iahb", "isfr";
1032eb4d8dcSEmmanuel Vadot
1042eb4d8dcSEmmanuel Vadot        ports {
1052eb4d8dcSEmmanuel Vadot            #address-cells = <1>;
1062eb4d8dcSEmmanuel Vadot            #size-cells = <0>;
1072eb4d8dcSEmmanuel Vadot
1082eb4d8dcSEmmanuel Vadot            port@0 {
1092eb4d8dcSEmmanuel Vadot                reg = <0>;
1102eb4d8dcSEmmanuel Vadot
1112eb4d8dcSEmmanuel Vadot                hdmi_mux_0: endpoint {
1122eb4d8dcSEmmanuel Vadot                    remote-endpoint = <&ipu1_di0_hdmi>;
1132eb4d8dcSEmmanuel Vadot                };
1142eb4d8dcSEmmanuel Vadot            };
1152eb4d8dcSEmmanuel Vadot
1162eb4d8dcSEmmanuel Vadot            port@1 {
1172eb4d8dcSEmmanuel Vadot                reg = <1>;
1182eb4d8dcSEmmanuel Vadot
1192eb4d8dcSEmmanuel Vadot                hdmi_mux_1: endpoint {
1202eb4d8dcSEmmanuel Vadot                    remote-endpoint = <&ipu1_di1_hdmi>;
1212eb4d8dcSEmmanuel Vadot                };
1222eb4d8dcSEmmanuel Vadot            };
1232eb4d8dcSEmmanuel Vadot        };
1242eb4d8dcSEmmanuel Vadot    };
1252eb4d8dcSEmmanuel Vadot
1262eb4d8dcSEmmanuel Vadot...
127