xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/fsl,ldb.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*d5b0e70fSEmmanuel Vadot%YAML 1.2
3*d5b0e70fSEmmanuel Vadot---
4*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/fsl,ldb.yaml#
5*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*d5b0e70fSEmmanuel Vadot
7*d5b0e70fSEmmanuel Vadottitle: Freescale i.MX8MP DPI to LVDS bridge chip
8*d5b0e70fSEmmanuel Vadot
9*d5b0e70fSEmmanuel Vadotmaintainers:
10*d5b0e70fSEmmanuel Vadot  - Marek Vasut <marex@denx.de>
11*d5b0e70fSEmmanuel Vadot
12*d5b0e70fSEmmanuel Vadotdescription: |
13*d5b0e70fSEmmanuel Vadot  The i.MX8MP mediamix contains two registers which are responsible
14*d5b0e70fSEmmanuel Vadot  for configuring the on-SoC DPI-to-LVDS serializer. This describes
15*d5b0e70fSEmmanuel Vadot  those registers as bridge within the DT.
16*d5b0e70fSEmmanuel Vadot
17*d5b0e70fSEmmanuel Vadotproperties:
18*d5b0e70fSEmmanuel Vadot  compatible:
19*d5b0e70fSEmmanuel Vadot    const: fsl,imx8mp-ldb
20*d5b0e70fSEmmanuel Vadot
21*d5b0e70fSEmmanuel Vadot  clocks:
22*d5b0e70fSEmmanuel Vadot    maxItems: 1
23*d5b0e70fSEmmanuel Vadot
24*d5b0e70fSEmmanuel Vadot  clock-names:
25*d5b0e70fSEmmanuel Vadot    const: ldb
26*d5b0e70fSEmmanuel Vadot
27*d5b0e70fSEmmanuel Vadot  ports:
28*d5b0e70fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
29*d5b0e70fSEmmanuel Vadot
30*d5b0e70fSEmmanuel Vadot    properties:
31*d5b0e70fSEmmanuel Vadot      port@0:
32*d5b0e70fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
33*d5b0e70fSEmmanuel Vadot        description: Video port for DPI input.
34*d5b0e70fSEmmanuel Vadot
35*d5b0e70fSEmmanuel Vadot      port@1:
36*d5b0e70fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
37*d5b0e70fSEmmanuel Vadot        description: Video port for LVDS Channel-A output (panel or bridge).
38*d5b0e70fSEmmanuel Vadot
39*d5b0e70fSEmmanuel Vadot      port@2:
40*d5b0e70fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
41*d5b0e70fSEmmanuel Vadot        description: Video port for LVDS Channel-B output (panel or bridge).
42*d5b0e70fSEmmanuel Vadot
43*d5b0e70fSEmmanuel Vadot    required:
44*d5b0e70fSEmmanuel Vadot      - port@0
45*d5b0e70fSEmmanuel Vadot      - port@1
46*d5b0e70fSEmmanuel Vadot
47*d5b0e70fSEmmanuel Vadotrequired:
48*d5b0e70fSEmmanuel Vadot  - compatible
49*d5b0e70fSEmmanuel Vadot  - clocks
50*d5b0e70fSEmmanuel Vadot  - ports
51*d5b0e70fSEmmanuel Vadot
52*d5b0e70fSEmmanuel VadotadditionalProperties: false
53*d5b0e70fSEmmanuel Vadot
54*d5b0e70fSEmmanuel Vadotexamples:
55*d5b0e70fSEmmanuel Vadot  - |
56*d5b0e70fSEmmanuel Vadot    #include <dt-bindings/clock/imx8mp-clock.h>
57*d5b0e70fSEmmanuel Vadot
58*d5b0e70fSEmmanuel Vadot    blk-ctrl {
59*d5b0e70fSEmmanuel Vadot        bridge {
60*d5b0e70fSEmmanuel Vadot            compatible = "fsl,imx8mp-ldb";
61*d5b0e70fSEmmanuel Vadot            clocks = <&clk IMX8MP_CLK_MEDIA_LDB>;
62*d5b0e70fSEmmanuel Vadot            clock-names = "ldb";
63*d5b0e70fSEmmanuel Vadot
64*d5b0e70fSEmmanuel Vadot            ports {
65*d5b0e70fSEmmanuel Vadot                #address-cells = <1>;
66*d5b0e70fSEmmanuel Vadot                #size-cells = <0>;
67*d5b0e70fSEmmanuel Vadot
68*d5b0e70fSEmmanuel Vadot                port@0 {
69*d5b0e70fSEmmanuel Vadot                    reg = <0>;
70*d5b0e70fSEmmanuel Vadot
71*d5b0e70fSEmmanuel Vadot                    ldb_from_lcdif2: endpoint {
72*d5b0e70fSEmmanuel Vadot                        remote-endpoint = <&lcdif2_to_ldb>;
73*d5b0e70fSEmmanuel Vadot                    };
74*d5b0e70fSEmmanuel Vadot                };
75*d5b0e70fSEmmanuel Vadot
76*d5b0e70fSEmmanuel Vadot                port@1 {
77*d5b0e70fSEmmanuel Vadot                    reg = <1>;
78*d5b0e70fSEmmanuel Vadot
79*d5b0e70fSEmmanuel Vadot                    ldb_lvds_ch0: endpoint {
80*d5b0e70fSEmmanuel Vadot                        remote-endpoint = <&ldb_to_lvdsx4panel>;
81*d5b0e70fSEmmanuel Vadot                    };
82*d5b0e70fSEmmanuel Vadot                };
83*d5b0e70fSEmmanuel Vadot
84*d5b0e70fSEmmanuel Vadot                port@2 {
85*d5b0e70fSEmmanuel Vadot                    reg = <2>;
86*d5b0e70fSEmmanuel Vadot
87*d5b0e70fSEmmanuel Vadot                    ldb_lvds_ch1: endpoint {
88*d5b0e70fSEmmanuel Vadot                    };
89*d5b0e70fSEmmanuel Vadot                };
90*d5b0e70fSEmmanuel Vadot            };
91*d5b0e70fSEmmanuel Vadot        };
92*d5b0e70fSEmmanuel Vadot    };
93