xref: /freebsd/sys/contrib/device-tree/Bindings/display/amlogic,meson-dw-hdmi.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot# Copyright 2019 BayLibre, SAS
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5c66ec88fSEmmanuel Vadot$id: "http://devicetree.org/schemas/display/amlogic,meson-dw-hdmi.yaml#"
6c66ec88fSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadottitle: Amlogic specific extensions to the Synopsys Designware HDMI Controller
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotmaintainers:
11c66ec88fSEmmanuel Vadot  - Neil Armstrong <narmstrong@baylibre.com>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotdescription: |
14c66ec88fSEmmanuel Vadot  The Amlogic Meson Synopsys Designware Integration is composed of
15c66ec88fSEmmanuel Vadot  - A Synopsys DesignWare HDMI Controller IP
16c66ec88fSEmmanuel Vadot  - A TOP control block controlling the Clocks and PHY
17c66ec88fSEmmanuel Vadot  - A custom HDMI PHY in order to convert video to TMDS signal
18c66ec88fSEmmanuel Vadot   ___________________________________
19c66ec88fSEmmanuel Vadot  |            HDMI TOP               |<= HPD
20c66ec88fSEmmanuel Vadot  |___________________________________|
21c66ec88fSEmmanuel Vadot  |                  |                |
22c66ec88fSEmmanuel Vadot  |  Synopsys HDMI   |   HDMI PHY     |=> TMDS
23c66ec88fSEmmanuel Vadot  |    Controller    |________________|
24c66ec88fSEmmanuel Vadot  |___________________________________|<=> DDC
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  The HDMI TOP block only supports HPD sensing.
27c66ec88fSEmmanuel Vadot  The Synopsys HDMI Controller interrupt is routed through the
28c66ec88fSEmmanuel Vadot  TOP Block interrupt.
29c66ec88fSEmmanuel Vadot  Communication to the TOP Block and the Synopsys HDMI Controller is done
30c66ec88fSEmmanuel Vadot  via a pair of dedicated addr+read/write registers.
31c66ec88fSEmmanuel Vadot  The HDMI PHY is configured by registers in the HHI register block.
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  Pixel data arrives in "4:4:4" format from the VENC block and the VPU HDMI mux
34c66ec88fSEmmanuel Vadot  selects either the ENCI encoder for the 576i or 480i formats or the ENCP
35c66ec88fSEmmanuel Vadot  encoder for all the other formats including interlaced HD formats.
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot  The VENC uses a DVI encoder on top of the ENCI or ENCP encoders to generate
38c66ec88fSEmmanuel Vadot  DVI timings for the HDMI controller.
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  Amlogic Meson GXBB, GXL and GXM SoCs families embeds the Synopsys DesignWare
41c66ec88fSEmmanuel Vadot  HDMI TX IP version 2.01a with HDCP and I2C & S/PDIF
42c66ec88fSEmmanuel Vadot  audio source interfaces.
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadotproperties:
45c66ec88fSEmmanuel Vadot  compatible:
46c66ec88fSEmmanuel Vadot    oneOf:
47c66ec88fSEmmanuel Vadot      - items:
48c66ec88fSEmmanuel Vadot          - enum:
49c66ec88fSEmmanuel Vadot              - amlogic,meson-gxbb-dw-hdmi # GXBB (S905)
50c66ec88fSEmmanuel Vadot              - amlogic,meson-gxl-dw-hdmi # GXL (S905X, S905D)
51c66ec88fSEmmanuel Vadot              - amlogic,meson-gxm-dw-hdmi # GXM (S912)
52c66ec88fSEmmanuel Vadot          - const: amlogic,meson-gx-dw-hdmi
53c66ec88fSEmmanuel Vadot      - enum:
54c66ec88fSEmmanuel Vadot          - amlogic,meson-g12a-dw-hdmi # G12A (S905X2, S905Y2, S905D2)
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot  reg:
57c66ec88fSEmmanuel Vadot    maxItems: 1
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadot  interrupts:
60c66ec88fSEmmanuel Vadot    maxItems: 1
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot  clocks:
63c66ec88fSEmmanuel Vadot    minItems: 3
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot  clock-names:
66c66ec88fSEmmanuel Vadot    items:
67c66ec88fSEmmanuel Vadot      - const: isfr
68c66ec88fSEmmanuel Vadot      - const: iahb
69c66ec88fSEmmanuel Vadot      - const: venci
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadot  resets:
72c66ec88fSEmmanuel Vadot    minItems: 3
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot  reset-names:
75c66ec88fSEmmanuel Vadot    items:
76c66ec88fSEmmanuel Vadot      - const: hdmitx_apb
77c66ec88fSEmmanuel Vadot      - const: hdmitx
78c66ec88fSEmmanuel Vadot      - const: hdmitx_phy
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadot  hdmi-supply:
81c66ec88fSEmmanuel Vadot    description: phandle to an external 5V regulator to power the HDMI logic
82c66ec88fSEmmanuel Vadot
83c66ec88fSEmmanuel Vadot  port@0:
84*5def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/port
85c66ec88fSEmmanuel Vadot    description:
86c66ec88fSEmmanuel Vadot      A port node pointing to the VENC Input port node.
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot  port@1:
89*5def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/port
90c66ec88fSEmmanuel Vadot    description:
91c66ec88fSEmmanuel Vadot      A port node pointing to the TMDS Output port node.
92c66ec88fSEmmanuel Vadot
93c66ec88fSEmmanuel Vadot  "#address-cells":
94c66ec88fSEmmanuel Vadot    const: 1
95c66ec88fSEmmanuel Vadot
96c66ec88fSEmmanuel Vadot  "#size-cells":
97c66ec88fSEmmanuel Vadot    const: 0
98c66ec88fSEmmanuel Vadot
99c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
100c66ec88fSEmmanuel Vadot    const: 0
101c66ec88fSEmmanuel Vadot
102c66ec88fSEmmanuel Vadotrequired:
103c66ec88fSEmmanuel Vadot  - compatible
104c66ec88fSEmmanuel Vadot  - reg
105c66ec88fSEmmanuel Vadot  - interrupts
106c66ec88fSEmmanuel Vadot  - clocks
107c66ec88fSEmmanuel Vadot  - clock-names
108c66ec88fSEmmanuel Vadot  - resets
109c66ec88fSEmmanuel Vadot  - reset-names
110c66ec88fSEmmanuel Vadot  - port@0
111c66ec88fSEmmanuel Vadot  - port@1
112c66ec88fSEmmanuel Vadot  - "#address-cells"
113c66ec88fSEmmanuel Vadot  - "#size-cells"
114c66ec88fSEmmanuel Vadot
115c66ec88fSEmmanuel VadotadditionalProperties: false
116c66ec88fSEmmanuel Vadot
117c66ec88fSEmmanuel Vadotexamples:
118c66ec88fSEmmanuel Vadot  - |
119c66ec88fSEmmanuel Vadot    hdmi_tx: hdmi-tx@c883a000 {
120c66ec88fSEmmanuel Vadot        compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
121c66ec88fSEmmanuel Vadot        reg = <0xc883a000 0x1c>;
122c66ec88fSEmmanuel Vadot        interrupts = <57>;
123c66ec88fSEmmanuel Vadot        resets = <&reset_apb>, <&reset_hdmitx>, <&reset_hdmitx_phy>;
124c66ec88fSEmmanuel Vadot        reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
125c66ec88fSEmmanuel Vadot        clocks = <&clk_isfr>, <&clk_iahb>, <&clk_venci>;
126c66ec88fSEmmanuel Vadot        clock-names = "isfr", "iahb", "venci";
127c66ec88fSEmmanuel Vadot        #address-cells = <1>;
128c66ec88fSEmmanuel Vadot        #size-cells = <0>;
129c66ec88fSEmmanuel Vadot
130c66ec88fSEmmanuel Vadot        /* VPU VENC Input */
131c66ec88fSEmmanuel Vadot        hdmi_tx_venc_port: port@0 {
132c66ec88fSEmmanuel Vadot            reg = <0>;
133c66ec88fSEmmanuel Vadot
134c66ec88fSEmmanuel Vadot            hdmi_tx_in: endpoint {
135c66ec88fSEmmanuel Vadot                remote-endpoint = <&hdmi_tx_out>;
136c66ec88fSEmmanuel Vadot            };
137c66ec88fSEmmanuel Vadot        };
138c66ec88fSEmmanuel Vadot
139c66ec88fSEmmanuel Vadot        /* TMDS Output */
140c66ec88fSEmmanuel Vadot        hdmi_tx_tmds_port: port@1 {
141c66ec88fSEmmanuel Vadot             reg = <1>;
142c66ec88fSEmmanuel Vadot
143c66ec88fSEmmanuel Vadot             hdmi_tx_tmds_out: endpoint {
144c66ec88fSEmmanuel Vadot                 remote-endpoint = <&hdmi_connector_in>;
145c66ec88fSEmmanuel Vadot             };
146c66ec88fSEmmanuel Vadot        };
147c66ec88fSEmmanuel Vadot    };
148c66ec88fSEmmanuel Vadot
149