xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/fsl,imx93-mipi-dsi.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*84943d6fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*84943d6fSEmmanuel Vadot%YAML 1.2
3*84943d6fSEmmanuel Vadot---
4*84943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/fsl,imx93-mipi-dsi.yaml#
5*84943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*84943d6fSEmmanuel Vadot
7*84943d6fSEmmanuel Vadottitle: Freescale i.MX93 specific extensions to Synopsys Designware MIPI DSI
8*84943d6fSEmmanuel Vadot
9*84943d6fSEmmanuel Vadotmaintainers:
10*84943d6fSEmmanuel Vadot  - Liu Ying <victor.liu@nxp.com>
11*84943d6fSEmmanuel Vadot
12*84943d6fSEmmanuel Vadotdescription: |
13*84943d6fSEmmanuel Vadot  There is a Synopsys Designware MIPI DSI Host Controller and a Synopsys
14*84943d6fSEmmanuel Vadot  Designware MIPI DPHY embedded in Freescale i.MX93 SoC.  Some configurations
15*84943d6fSEmmanuel Vadot  and extensions to them are controlled by i.MX93 media blk-ctrl.
16*84943d6fSEmmanuel Vadot
17*84943d6fSEmmanuel VadotallOf:
18*84943d6fSEmmanuel Vadot  - $ref: snps,dw-mipi-dsi.yaml#
19*84943d6fSEmmanuel Vadot
20*84943d6fSEmmanuel Vadotproperties:
21*84943d6fSEmmanuel Vadot  compatible:
22*84943d6fSEmmanuel Vadot    const: fsl,imx93-mipi-dsi
23*84943d6fSEmmanuel Vadot
24*84943d6fSEmmanuel Vadot  clocks:
25*84943d6fSEmmanuel Vadot    items:
26*84943d6fSEmmanuel Vadot      - description: apb clock
27*84943d6fSEmmanuel Vadot      - description: pixel clock
28*84943d6fSEmmanuel Vadot      - description: PHY configuration clock
29*84943d6fSEmmanuel Vadot      - description: PHY reference clock
30*84943d6fSEmmanuel Vadot
31*84943d6fSEmmanuel Vadot  clock-names:
32*84943d6fSEmmanuel Vadot    items:
33*84943d6fSEmmanuel Vadot      - const: pclk
34*84943d6fSEmmanuel Vadot      - const: pix
35*84943d6fSEmmanuel Vadot      - const: phy_cfg
36*84943d6fSEmmanuel Vadot      - const: phy_ref
37*84943d6fSEmmanuel Vadot
38*84943d6fSEmmanuel Vadot  interrupts:
39*84943d6fSEmmanuel Vadot    maxItems: 1
40*84943d6fSEmmanuel Vadot
41*84943d6fSEmmanuel Vadot  fsl,media-blk-ctrl:
42*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
43*84943d6fSEmmanuel Vadot    description:
44*84943d6fSEmmanuel Vadot      i.MX93 media blk-ctrl, as a syscon, controls pixel component bit map
45*84943d6fSEmmanuel Vadot      configurations from LCDIF display controller to the MIPI DSI host
46*84943d6fSEmmanuel Vadot      controller and MIPI DPHY PLL related configurations through PLL SoC
47*84943d6fSEmmanuel Vadot      interface.
48*84943d6fSEmmanuel Vadot
49*84943d6fSEmmanuel Vadot  power-domains:
50*84943d6fSEmmanuel Vadot    maxItems: 1
51*84943d6fSEmmanuel Vadot
52*84943d6fSEmmanuel Vadotrequired:
53*84943d6fSEmmanuel Vadot  - compatible
54*84943d6fSEmmanuel Vadot  - interrupts
55*84943d6fSEmmanuel Vadot  - fsl,media-blk-ctrl
56*84943d6fSEmmanuel Vadot  - power-domains
57*84943d6fSEmmanuel Vadot
58*84943d6fSEmmanuel VadotunevaluatedProperties: false
59*84943d6fSEmmanuel Vadot
60*84943d6fSEmmanuel Vadotexamples:
61*84943d6fSEmmanuel Vadot  - |
62*84943d6fSEmmanuel Vadot    #include <dt-bindings/clock/imx93-clock.h>
63*84943d6fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
64*84943d6fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
65*84943d6fSEmmanuel Vadot    #include <dt-bindings/power/fsl,imx93-power.h>
66*84943d6fSEmmanuel Vadot
67*84943d6fSEmmanuel Vadot    dsi@4ae10000 {
68*84943d6fSEmmanuel Vadot        compatible = "fsl,imx93-mipi-dsi";
69*84943d6fSEmmanuel Vadot        reg = <0x4ae10000 0x10000>;
70*84943d6fSEmmanuel Vadot        interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
71*84943d6fSEmmanuel Vadot        clocks = <&clk IMX93_CLK_MIPI_DSI_GATE>,
72*84943d6fSEmmanuel Vadot                 <&clk IMX93_CLK_MEDIA_DISP_PIX>,
73*84943d6fSEmmanuel Vadot                 <&clk IMX93_CLK_MIPI_PHY_CFG>,
74*84943d6fSEmmanuel Vadot                 <&clk IMX93_CLK_24M>;
75*84943d6fSEmmanuel Vadot        clock-names = "pclk", "pix", "phy_cfg", "phy_ref";
76*84943d6fSEmmanuel Vadot        fsl,media-blk-ctrl = <&media_blk_ctrl>;
77*84943d6fSEmmanuel Vadot        power-domains = <&media_blk_ctrl IMX93_MEDIABLK_PD_MIPI_DSI>;
78*84943d6fSEmmanuel Vadot        #address-cells = <1>;
79*84943d6fSEmmanuel Vadot        #size-cells = <0>;
80*84943d6fSEmmanuel Vadot
81*84943d6fSEmmanuel Vadot        panel@0 {
82*84943d6fSEmmanuel Vadot            compatible = "raydium,rm67191";
83*84943d6fSEmmanuel Vadot            reg = <0>;
84*84943d6fSEmmanuel Vadot            reset-gpios = <&adp5585gpio 6 GPIO_ACTIVE_LOW>;
85*84943d6fSEmmanuel Vadot            dsi-lanes = <4>;
86*84943d6fSEmmanuel Vadot            video-mode = <2>;
87*84943d6fSEmmanuel Vadot
88*84943d6fSEmmanuel Vadot            port {
89*84943d6fSEmmanuel Vadot                panel_in: endpoint {
90*84943d6fSEmmanuel Vadot                    remote-endpoint = <&dsi_out>;
91*84943d6fSEmmanuel Vadot                };
92*84943d6fSEmmanuel Vadot            };
93*84943d6fSEmmanuel Vadot        };
94*84943d6fSEmmanuel Vadot
95*84943d6fSEmmanuel Vadot        ports {
96*84943d6fSEmmanuel Vadot            #address-cells = <1>;
97*84943d6fSEmmanuel Vadot            #size-cells = <0>;
98*84943d6fSEmmanuel Vadot
99*84943d6fSEmmanuel Vadot            port@0 {
100*84943d6fSEmmanuel Vadot                reg = <0>;
101*84943d6fSEmmanuel Vadot
102*84943d6fSEmmanuel Vadot                dsi_to_lcdif: endpoint {
103*84943d6fSEmmanuel Vadot                    remote-endpoint = <&lcdif_to_dsi>;
104*84943d6fSEmmanuel Vadot                };
105*84943d6fSEmmanuel Vadot            };
106*84943d6fSEmmanuel Vadot
107*84943d6fSEmmanuel Vadot            port@1 {
108*84943d6fSEmmanuel Vadot                reg = <1>;
109*84943d6fSEmmanuel Vadot
110*84943d6fSEmmanuel Vadot                dsi_out: endpoint {
111*84943d6fSEmmanuel Vadot                    remote-endpoint = <&panel_in>;
112*84943d6fSEmmanuel Vadot                };
113*84943d6fSEmmanuel Vadot            };
114*84943d6fSEmmanuel Vadot        };
115*84943d6fSEmmanuel Vadot    };
116