xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/fsl,imx8mp-hdmi-tx.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/fsl,imx8mp-hdmi-tx.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: Freescale i.MX8MP DWC HDMI TX Encoder
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel Vadotmaintainers:
10*01950c46SEmmanuel Vadot  - Lucas Stach <l.stach@pengutronix.de>
11*01950c46SEmmanuel Vadot
12*01950c46SEmmanuel Vadotdescription:
13*01950c46SEmmanuel Vadot  The i.MX8MP HDMI transmitter is a Synopsys DesignWare
14*01950c46SEmmanuel Vadot  HDMI 2.0a TX controller IP.
15*01950c46SEmmanuel Vadot
16*01950c46SEmmanuel VadotallOf:
17*01950c46SEmmanuel Vadot  - $ref: /schemas/display/bridge/synopsys,dw-hdmi.yaml#
18*01950c46SEmmanuel Vadot
19*01950c46SEmmanuel Vadotproperties:
20*01950c46SEmmanuel Vadot  compatible:
21*01950c46SEmmanuel Vadot    enum:
22*01950c46SEmmanuel Vadot      - fsl,imx8mp-hdmi-tx
23*01950c46SEmmanuel Vadot
24*01950c46SEmmanuel Vadot  reg-io-width:
25*01950c46SEmmanuel Vadot    const: 1
26*01950c46SEmmanuel Vadot
27*01950c46SEmmanuel Vadot  clocks:
28*01950c46SEmmanuel Vadot    maxItems: 4
29*01950c46SEmmanuel Vadot
30*01950c46SEmmanuel Vadot  clock-names:
31*01950c46SEmmanuel Vadot    items:
32*01950c46SEmmanuel Vadot      - const: iahb
33*01950c46SEmmanuel Vadot      - const: isfr
34*01950c46SEmmanuel Vadot      - const: cec
35*01950c46SEmmanuel Vadot      - const: pix
36*01950c46SEmmanuel Vadot
37*01950c46SEmmanuel Vadot  power-domains:
38*01950c46SEmmanuel Vadot    maxItems: 1
39*01950c46SEmmanuel Vadot
40*01950c46SEmmanuel Vadot  ports:
41*01950c46SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
42*01950c46SEmmanuel Vadot
43*01950c46SEmmanuel Vadot    properties:
44*01950c46SEmmanuel Vadot      port@0:
45*01950c46SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
46*01950c46SEmmanuel Vadot        description: Parallel RGB input port
47*01950c46SEmmanuel Vadot
48*01950c46SEmmanuel Vadot      port@1:
49*01950c46SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
50*01950c46SEmmanuel Vadot        description: HDMI output port
51*01950c46SEmmanuel Vadot
52*01950c46SEmmanuel Vadot    required:
53*01950c46SEmmanuel Vadot      - port@0
54*01950c46SEmmanuel Vadot      - port@1
55*01950c46SEmmanuel Vadot
56*01950c46SEmmanuel Vadotrequired:
57*01950c46SEmmanuel Vadot  - compatible
58*01950c46SEmmanuel Vadot  - reg
59*01950c46SEmmanuel Vadot  - clocks
60*01950c46SEmmanuel Vadot  - clock-names
61*01950c46SEmmanuel Vadot  - interrupts
62*01950c46SEmmanuel Vadot  - power-domains
63*01950c46SEmmanuel Vadot  - ports
64*01950c46SEmmanuel Vadot
65*01950c46SEmmanuel VadotunevaluatedProperties: false
66*01950c46SEmmanuel Vadot
67*01950c46SEmmanuel Vadotexamples:
68*01950c46SEmmanuel Vadot  - |
69*01950c46SEmmanuel Vadot    #include <dt-bindings/clock/imx8mp-clock.h>
70*01950c46SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
71*01950c46SEmmanuel Vadot    #include <dt-bindings/power/imx8mp-power.h>
72*01950c46SEmmanuel Vadot
73*01950c46SEmmanuel Vadot    hdmi@32fd8000 {
74*01950c46SEmmanuel Vadot        compatible = "fsl,imx8mp-hdmi-tx";
75*01950c46SEmmanuel Vadot        reg = <0x32fd8000 0x7eff>;
76*01950c46SEmmanuel Vadot        interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
77*01950c46SEmmanuel Vadot        clocks = <&clk IMX8MP_CLK_HDMI_APB>,
78*01950c46SEmmanuel Vadot                 <&clk IMX8MP_CLK_HDMI_REF_266M>,
79*01950c46SEmmanuel Vadot                 <&clk IMX8MP_CLK_32K>,
80*01950c46SEmmanuel Vadot                 <&hdmi_tx_phy>;
81*01950c46SEmmanuel Vadot        clock-names = "iahb", "isfr", "cec", "pix";
82*01950c46SEmmanuel Vadot        power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_HDMI_TX>;
83*01950c46SEmmanuel Vadot        reg-io-width = <1>;
84*01950c46SEmmanuel Vadot        ports {
85*01950c46SEmmanuel Vadot           #address-cells = <1>;
86*01950c46SEmmanuel Vadot           #size-cells = <0>;
87*01950c46SEmmanuel Vadot           port@0 {
88*01950c46SEmmanuel Vadot             reg = <0>;
89*01950c46SEmmanuel Vadot
90*01950c46SEmmanuel Vadot             hdmi_tx_from_pvi: endpoint {
91*01950c46SEmmanuel Vadot               remote-endpoint = <&pvi_to_hdmi_tx>;
92*01950c46SEmmanuel Vadot             };
93*01950c46SEmmanuel Vadot          };
94*01950c46SEmmanuel Vadot
95*01950c46SEmmanuel Vadot          port@1 {
96*01950c46SEmmanuel Vadot            reg = <1>;
97*01950c46SEmmanuel Vadot              hdmi_tx_out: endpoint {
98*01950c46SEmmanuel Vadot                remote-endpoint = <&hdmi0_con>;
99*01950c46SEmmanuel Vadot              };
100*01950c46SEmmanuel Vadot          };
101*01950c46SEmmanuel Vadot        };
102*01950c46SEmmanuel Vadot    };
103