xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/fsl,imx8qxp-pxl2dpi.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b97ee269SEmmanuel Vadot%YAML 1.2
3*b97ee269SEmmanuel Vadot---
4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pxl2dpi.yaml#
5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b97ee269SEmmanuel Vadot
7*b97ee269SEmmanuel Vadottitle: Freescale i.MX8qxp Pixel Link to Display Pixel Interface
8*b97ee269SEmmanuel Vadot
9*b97ee269SEmmanuel Vadotmaintainers:
10*b97ee269SEmmanuel Vadot  - Liu Ying <victor.liu@nxp.com>
11*b97ee269SEmmanuel Vadot
12*b97ee269SEmmanuel Vadotdescription: |
13*b97ee269SEmmanuel Vadot  The Freescale i.MX8qxp Pixel Link to Display Pixel Interface(PXL2DPI)
14*b97ee269SEmmanuel Vadot  interfaces the pixel link 36-bit data output and the DSI controllers
15*b97ee269SEmmanuel Vadot  MIPI-DPI 24-bit data input, and inputs of LVDS Display Bridge(LDB) module
16*b97ee269SEmmanuel Vadot  used in LVDS mode, to remap the pixel color codings between those modules.
17*b97ee269SEmmanuel Vadot  This module is purely combinatorial.
18*b97ee269SEmmanuel Vadot
19*b97ee269SEmmanuel Vadot  The i.MX8qxp PXL2DPI is controlled by Control and Status Registers(CSR) module.
20*b97ee269SEmmanuel Vadot  The CSR module, as a system controller, contains the PXL2DPI's configuration
21*b97ee269SEmmanuel Vadot  register.
22*b97ee269SEmmanuel Vadot
23*b97ee269SEmmanuel Vadotproperties:
24*b97ee269SEmmanuel Vadot  compatible:
25*b97ee269SEmmanuel Vadot    const: fsl,imx8qxp-pxl2dpi
26*b97ee269SEmmanuel Vadot
27*b97ee269SEmmanuel Vadot  fsl,sc-resource:
28*b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
29*b97ee269SEmmanuel Vadot    description: The SCU resource ID associated with this PXL2DPI instance.
30*b97ee269SEmmanuel Vadot
31*b97ee269SEmmanuel Vadot  power-domains:
32*b97ee269SEmmanuel Vadot    maxItems: 1
33*b97ee269SEmmanuel Vadot
34*b97ee269SEmmanuel Vadot  fsl,companion-pxl2dpi:
35*b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
36*b97ee269SEmmanuel Vadot    description: |
37*b97ee269SEmmanuel Vadot      A phandle which points to companion PXL2DPI which is used by downstream
38*b97ee269SEmmanuel Vadot      LVDS Display Bridge(LDB) in split mode.
39*b97ee269SEmmanuel Vadot
40*b97ee269SEmmanuel Vadot  ports:
41*b97ee269SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
42*b97ee269SEmmanuel Vadot
43*b97ee269SEmmanuel Vadot    properties:
44*b97ee269SEmmanuel Vadot      port@0:
45*b97ee269SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
46*b97ee269SEmmanuel Vadot        description: The PXL2DPI input port node from pixel link.
47*b97ee269SEmmanuel Vadot
48*b97ee269SEmmanuel Vadot      port@1:
49*b97ee269SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
50*b97ee269SEmmanuel Vadot        description: The PXL2DPI output port node to downstream bridge.
51*b97ee269SEmmanuel Vadot
52*b97ee269SEmmanuel Vadot    required:
53*b97ee269SEmmanuel Vadot      - port@0
54*b97ee269SEmmanuel Vadot      - port@1
55*b97ee269SEmmanuel Vadot
56*b97ee269SEmmanuel Vadotrequired:
57*b97ee269SEmmanuel Vadot  - compatible
58*b97ee269SEmmanuel Vadot  - fsl,sc-resource
59*b97ee269SEmmanuel Vadot  - power-domains
60*b97ee269SEmmanuel Vadot  - ports
61*b97ee269SEmmanuel Vadot
62*b97ee269SEmmanuel VadotadditionalProperties: false
63*b97ee269SEmmanuel Vadot
64*b97ee269SEmmanuel Vadotexamples:
65*b97ee269SEmmanuel Vadot  - |
66*b97ee269SEmmanuel Vadot    #include <dt-bindings/firmware/imx/rsrc.h>
67*b97ee269SEmmanuel Vadot    pxl2dpi {
68*b97ee269SEmmanuel Vadot        compatible = "fsl,imx8qxp-pxl2dpi";
69*b97ee269SEmmanuel Vadot        fsl,sc-resource = <IMX_SC_R_MIPI_0>;
70*b97ee269SEmmanuel Vadot        power-domains = <&pd IMX_SC_R_MIPI_0>;
71*b97ee269SEmmanuel Vadot
72*b97ee269SEmmanuel Vadot        ports {
73*b97ee269SEmmanuel Vadot            #address-cells = <1>;
74*b97ee269SEmmanuel Vadot            #size-cells = <0>;
75*b97ee269SEmmanuel Vadot
76*b97ee269SEmmanuel Vadot            port@0 {
77*b97ee269SEmmanuel Vadot                #address-cells = <1>;
78*b97ee269SEmmanuel Vadot                #size-cells = <0>;
79*b97ee269SEmmanuel Vadot                reg = <0>;
80*b97ee269SEmmanuel Vadot
81*b97ee269SEmmanuel Vadot                mipi_lvds_0_pxl2dpi_dc_pixel_link0: endpoint@0 {
82*b97ee269SEmmanuel Vadot                    reg = <0>;
83*b97ee269SEmmanuel Vadot                    remote-endpoint = <&dc_pixel_link0_mipi_lvds_0_pxl2dpi>;
84*b97ee269SEmmanuel Vadot                };
85*b97ee269SEmmanuel Vadot
86*b97ee269SEmmanuel Vadot                mipi_lvds_0_pxl2dpi_dc_pixel_link1: endpoint@1 {
87*b97ee269SEmmanuel Vadot                     reg = <1>;
88*b97ee269SEmmanuel Vadot                     remote-endpoint = <&dc_pixel_link1_mipi_lvds_0_pxl2dpi>;
89*b97ee269SEmmanuel Vadot                };
90*b97ee269SEmmanuel Vadot            };
91*b97ee269SEmmanuel Vadot
92*b97ee269SEmmanuel Vadot            port@1 {
93*b97ee269SEmmanuel Vadot                #address-cells = <1>;
94*b97ee269SEmmanuel Vadot                #size-cells = <0>;
95*b97ee269SEmmanuel Vadot                reg = <1>;
96*b97ee269SEmmanuel Vadot
97*b97ee269SEmmanuel Vadot                mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch0: endpoint@0 {
98*b97ee269SEmmanuel Vadot                    reg = <0>;
99*b97ee269SEmmanuel Vadot                    remote-endpoint = <&mipi_lvds_0_ldb_ch0_mipi_lvds_0_pxl2dpi>;
100*b97ee269SEmmanuel Vadot                };
101*b97ee269SEmmanuel Vadot
102*b97ee269SEmmanuel Vadot                mipi_lvds_0_pxl2dpi_mipi_lvds_0_ldb_ch1: endpoint@1 {
103*b97ee269SEmmanuel Vadot                    reg = <1>;
104*b97ee269SEmmanuel Vadot                    remote-endpoint = <&mipi_lvds_0_ldb_ch1_mipi_lvds_0_pxl2dpi>;
105*b97ee269SEmmanuel Vadot                };
106*b97ee269SEmmanuel Vadot            };
107*b97ee269SEmmanuel Vadot        };
108*b97ee269SEmmanuel Vadot    };
109