xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/ingenic,jz4780-hdmi.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c9ccf3a3SEmmanuel Vadot%YAML 1.2
3c9ccf3a3SEmmanuel Vadot---
4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/ingenic,jz4780-hdmi.yaml#
5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c9ccf3a3SEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Ingenic JZ4780 HDMI Transmitter
8c9ccf3a3SEmmanuel Vadot
9c9ccf3a3SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - H. Nikolaus Schaller <hns@goldelico.com>
11c9ccf3a3SEmmanuel Vadot
12c9ccf3a3SEmmanuel Vadotdescription: |
13c9ccf3a3SEmmanuel Vadot  The HDMI Transmitter in the Ingenic JZ4780 is a Synopsys DesignWare HDMI 1.4
14c9ccf3a3SEmmanuel Vadot  TX controller IP with accompanying PHY IP.
15c9ccf3a3SEmmanuel Vadot
16c9ccf3a3SEmmanuel VadotallOf:
17c9ccf3a3SEmmanuel Vadot  - $ref: synopsys,dw-hdmi.yaml#
18c9ccf3a3SEmmanuel Vadot
19c9ccf3a3SEmmanuel Vadotproperties:
20c9ccf3a3SEmmanuel Vadot  compatible:
21c9ccf3a3SEmmanuel Vadot    const: ingenic,jz4780-dw-hdmi
22c9ccf3a3SEmmanuel Vadot
23c9ccf3a3SEmmanuel Vadot  reg-io-width:
24c9ccf3a3SEmmanuel Vadot    const: 4
25c9ccf3a3SEmmanuel Vadot
26c9ccf3a3SEmmanuel Vadot  clocks:
27c9ccf3a3SEmmanuel Vadot    maxItems: 2
28c9ccf3a3SEmmanuel Vadot
29c9ccf3a3SEmmanuel Vadot  ports:
30c9ccf3a3SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
31c9ccf3a3SEmmanuel Vadot
32c9ccf3a3SEmmanuel Vadot    properties:
33c9ccf3a3SEmmanuel Vadot      port@0:
34c9ccf3a3SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
35c9ccf3a3SEmmanuel Vadot        description: Input from LCD controller output.
36c9ccf3a3SEmmanuel Vadot
37c9ccf3a3SEmmanuel Vadot      port@1:
38c9ccf3a3SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
39c9ccf3a3SEmmanuel Vadot        description: Link to the HDMI connector.
40c9ccf3a3SEmmanuel Vadot
41c9ccf3a3SEmmanuel Vadotrequired:
42c9ccf3a3SEmmanuel Vadot  - compatible
43c9ccf3a3SEmmanuel Vadot  - clocks
44c9ccf3a3SEmmanuel Vadot  - clock-names
45c9ccf3a3SEmmanuel Vadot  - ports
46c9ccf3a3SEmmanuel Vadot  - reg-io-width
47c9ccf3a3SEmmanuel Vadot
48c9ccf3a3SEmmanuel VadotunevaluatedProperties: false
49c9ccf3a3SEmmanuel Vadot
50c9ccf3a3SEmmanuel Vadotexamples:
51c9ccf3a3SEmmanuel Vadot  - |
52c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
53c9ccf3a3SEmmanuel Vadot
54c9ccf3a3SEmmanuel Vadot    hdmi: hdmi@10180000 {
55c9ccf3a3SEmmanuel Vadot        compatible = "ingenic,jz4780-dw-hdmi";
56c9ccf3a3SEmmanuel Vadot        reg = <0x10180000 0x8000>;
57c9ccf3a3SEmmanuel Vadot        reg-io-width = <4>;
58c9ccf3a3SEmmanuel Vadot        interrupt-parent = <&intc>;
59c9ccf3a3SEmmanuel Vadot        interrupts = <3>;
60c9ccf3a3SEmmanuel Vadot        clocks = <&cgu JZ4780_CLK_AHB0>, <&cgu JZ4780_CLK_HDMI>;
61c9ccf3a3SEmmanuel Vadot        clock-names = "iahb", "isfr";
62c9ccf3a3SEmmanuel Vadot
63c9ccf3a3SEmmanuel Vadot        ports {
64c9ccf3a3SEmmanuel Vadot            #address-cells = <1>;
65c9ccf3a3SEmmanuel Vadot            #size-cells = <0>;
66c9ccf3a3SEmmanuel Vadot            hdmi_in: port@0 {
67c9ccf3a3SEmmanuel Vadot                reg = <0>;
68c9ccf3a3SEmmanuel Vadot                dw_hdmi_in: endpoint {
69c9ccf3a3SEmmanuel Vadot                    remote-endpoint = <&jz4780_lcd_out>;
70c9ccf3a3SEmmanuel Vadot                };
71c9ccf3a3SEmmanuel Vadot            };
72c9ccf3a3SEmmanuel Vadot            hdmi_out: port@1 {
73c9ccf3a3SEmmanuel Vadot                reg = <1>;
74c9ccf3a3SEmmanuel Vadot                dw_hdmi_out: endpoint {
75c9ccf3a3SEmmanuel Vadot                    remote-endpoint = <&hdmi_con>;
76c9ccf3a3SEmmanuel Vadot                };
77c9ccf3a3SEmmanuel Vadot            };
78c9ccf3a3SEmmanuel Vadot        };
79c9ccf3a3SEmmanuel Vadot    };
80c9ccf3a3SEmmanuel Vadot
81c9ccf3a3SEmmanuel Vadot...
82