xref: /linux/Documentation/devicetree/bindings/display/fsl,lcdif.yaml (revision b6c7ca4d7966c9d6e3deaefa896666cd5f8e2d8d)
13b1b42fdSLaurent Pinchart# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
23b1b42fdSLaurent Pinchart%YAML 1.2
33b1b42fdSLaurent Pinchart---
43b1b42fdSLaurent Pinchart$id: http://devicetree.org/schemas/display/fsl,lcdif.yaml#
53b1b42fdSLaurent Pinchart$schema: http://devicetree.org/meta-schemas/core.yaml#
63b1b42fdSLaurent Pinchart
73b1b42fdSLaurent Pincharttitle: Freescale/NXP i.MX LCD Interface (LCDIF)
83b1b42fdSLaurent Pinchart
93b1b42fdSLaurent Pinchartmaintainers:
103b1b42fdSLaurent Pinchart  - Marek Vasut <marex@denx.de>
113b1b42fdSLaurent Pinchart  - Stefan Agner <stefan@agner.ch>
123b1b42fdSLaurent Pinchart
133b1b42fdSLaurent Pinchartdescription: |
143b1b42fdSLaurent Pinchart  (e)LCDIF display controller found in the Freescale/NXP i.MX SoCs.
153b1b42fdSLaurent Pinchart
163b1b42fdSLaurent Pinchartproperties:
173b1b42fdSLaurent Pinchart  compatible:
185d16e40dSLaurent Pinchart    oneOf:
195d16e40dSLaurent Pinchart      - enum:
203b1b42fdSLaurent Pinchart          - fsl,imx23-lcdif
213b1b42fdSLaurent Pinchart          - fsl,imx28-lcdif
223b1b42fdSLaurent Pinchart          - fsl,imx6sx-lcdif
23f5419cb0SMarek Vasut          - fsl,imx8mp-lcdif
24fff8013fSLiu Ying          - fsl,imx93-lcdif
255d16e40dSLaurent Pinchart      - items:
265d16e40dSLaurent Pinchart          - enum:
275d16e40dSLaurent Pinchart              - fsl,imx6sl-lcdif
285d16e40dSLaurent Pinchart              - fsl,imx6sll-lcdif
295d16e40dSLaurent Pinchart              - fsl,imx6ul-lcdif
305d16e40dSLaurent Pinchart              - fsl,imx7d-lcdif
3125e524bfSMarek Vasut              - fsl,imx8mm-lcdif
32fac4e24dSMarek Vasut              - fsl,imx8mn-lcdif
333b1b42fdSLaurent Pinchart              - fsl,imx8mq-lcdif
345d16e40dSLaurent Pinchart          - const: fsl,imx6sx-lcdif
353b1b42fdSLaurent Pinchart
363b1b42fdSLaurent Pinchart  reg:
373b1b42fdSLaurent Pinchart    maxItems: 1
383b1b42fdSLaurent Pinchart
393b1b42fdSLaurent Pinchart  clocks:
403b1b42fdSLaurent Pinchart    items:
413b1b42fdSLaurent Pinchart      - description: Pixel clock
423b1b42fdSLaurent Pinchart      - description: Bus clock
433b1b42fdSLaurent Pinchart      - description: Display AXI clock
443b1b42fdSLaurent Pinchart    minItems: 1
453b1b42fdSLaurent Pinchart
463b1b42fdSLaurent Pinchart  clock-names:
473b1b42fdSLaurent Pinchart    items:
483b1b42fdSLaurent Pinchart      - const: pix
493b1b42fdSLaurent Pinchart      - const: axi
503b1b42fdSLaurent Pinchart      - const: disp_axi
513b1b42fdSLaurent Pinchart    minItems: 1
523b1b42fdSLaurent Pinchart
533b1b42fdSLaurent Pinchart  interrupts:
54*b6c7ca4dSFabio Estevam    items:
55*b6c7ca4dSFabio Estevam      - description: LCDIF DMA interrupt
56*b6c7ca4dSFabio Estevam      - description: LCDIF Error interrupt
57*b6c7ca4dSFabio Estevam    minItems: 1
583b1b42fdSLaurent Pinchart
5903871060SAlexander Stein  power-domains:
6003871060SAlexander Stein    maxItems: 1
6103871060SAlexander Stein
623b1b42fdSLaurent Pinchart  port:
633b1b42fdSLaurent Pinchart    $ref: /schemas/graph.yaml#/properties/port
643b1b42fdSLaurent Pinchart    description: The LCDIF output port
653b1b42fdSLaurent Pinchart
663b1b42fdSLaurent Pinchartrequired:
673b1b42fdSLaurent Pinchart  - compatible
683b1b42fdSLaurent Pinchart  - reg
693b1b42fdSLaurent Pinchart  - clocks
703b1b42fdSLaurent Pinchart  - interrupts
713b1b42fdSLaurent Pinchart  - port
723b1b42fdSLaurent Pinchart
733b1b42fdSLaurent PinchartadditionalProperties: false
743b1b42fdSLaurent Pinchart
753b1b42fdSLaurent PinchartallOf:
763b1b42fdSLaurent Pinchart  - if:
773b1b42fdSLaurent Pinchart      properties:
783b1b42fdSLaurent Pinchart        compatible:
793b1b42fdSLaurent Pinchart          contains:
803b1b42fdSLaurent Pinchart            const: fsl,imx6sx-lcdif
813b1b42fdSLaurent Pinchart    then:
823b1b42fdSLaurent Pinchart      properties:
833b1b42fdSLaurent Pinchart        clocks:
843b1b42fdSLaurent Pinchart          minItems: 2
853b1b42fdSLaurent Pinchart          maxItems: 3
863b1b42fdSLaurent Pinchart        clock-names:
873b1b42fdSLaurent Pinchart          minItems: 2
883b1b42fdSLaurent Pinchart          maxItems: 3
893b1b42fdSLaurent Pinchart      required:
903b1b42fdSLaurent Pinchart        - clock-names
9103871060SAlexander Stein  - if:
9203871060SAlexander Stein      properties:
9303871060SAlexander Stein        compatible:
9403871060SAlexander Stein          contains:
95fff8013fSLiu Ying            enum:
96fff8013fSLiu Ying              - fsl,imx8mp-lcdif
97fff8013fSLiu Ying              - fsl,imx93-lcdif
9803871060SAlexander Stein    then:
9903871060SAlexander Stein      properties:
10003871060SAlexander Stein        clocks:
10103871060SAlexander Stein          minItems: 3
10203871060SAlexander Stein          maxItems: 3
10303871060SAlexander Stein        clock-names:
10403871060SAlexander Stein          minItems: 3
10503871060SAlexander Stein          maxItems: 3
10603871060SAlexander Stein      required:
10703871060SAlexander Stein        - clock-names
10803871060SAlexander Stein  - if:
10903871060SAlexander Stein      not:
11003871060SAlexander Stein        properties:
11103871060SAlexander Stein          compatible:
11203871060SAlexander Stein            contains:
11303871060SAlexander Stein              enum:
11403871060SAlexander Stein                - fsl,imx6sx-lcdif
11503871060SAlexander Stein                - fsl,imx8mp-lcdif
116fff8013fSLiu Ying                - fsl,imx93-lcdif
11703871060SAlexander Stein    then:
1183b1b42fdSLaurent Pinchart      properties:
1193b1b42fdSLaurent Pinchart        clocks:
1203b1b42fdSLaurent Pinchart          maxItems: 1
1213b1b42fdSLaurent Pinchart        clock-names:
1223b1b42fdSLaurent Pinchart          maxItems: 1
123f62678a7SMarek Vasut  - if:
124f62678a7SMarek Vasut      properties:
125f62678a7SMarek Vasut        compatible:
126f62678a7SMarek Vasut          contains:
127f62678a7SMarek Vasut            enum:
128f62678a7SMarek Vasut              - fsl,imx6sl-lcdif
129f62678a7SMarek Vasut              - fsl,imx6sx-lcdif
130f62678a7SMarek Vasut              - fsl,imx8mm-lcdif
131f62678a7SMarek Vasut              - fsl,imx8mn-lcdif
132f62678a7SMarek Vasut              - fsl,imx8mp-lcdif
133fff8013fSLiu Ying              - fsl,imx93-lcdif
134f62678a7SMarek Vasut    then:
135f62678a7SMarek Vasut      required:
136f62678a7SMarek Vasut        - power-domains
137*b6c7ca4dSFabio Estevam  - if:
138*b6c7ca4dSFabio Estevam      properties:
139*b6c7ca4dSFabio Estevam        compatible:
140*b6c7ca4dSFabio Estevam          contains:
141*b6c7ca4dSFabio Estevam            enum:
142*b6c7ca4dSFabio Estevam              - fsl,imx23-lcdif
143*b6c7ca4dSFabio Estevam    then:
144*b6c7ca4dSFabio Estevam      properties:
145*b6c7ca4dSFabio Estevam        interrupts:
146*b6c7ca4dSFabio Estevam          minItems: 2
147*b6c7ca4dSFabio Estevam          maxItems: 2
148*b6c7ca4dSFabio Estevam    else:
149*b6c7ca4dSFabio Estevam      properties:
150*b6c7ca4dSFabio Estevam        interrupts:
151*b6c7ca4dSFabio Estevam          maxItems: 1
1523b1b42fdSLaurent Pinchart
1533b1b42fdSLaurent Pinchartexamples:
1543b1b42fdSLaurent Pinchart  - |
1553b1b42fdSLaurent Pinchart    #include <dt-bindings/clock/imx6sx-clock.h>
1563b1b42fdSLaurent Pinchart    #include <dt-bindings/interrupt-controller/arm-gic.h>
1573b1b42fdSLaurent Pinchart
1583b1b42fdSLaurent Pinchart    display-controller@2220000 {
1593b1b42fdSLaurent Pinchart        compatible = "fsl,imx6sx-lcdif";
1603b1b42fdSLaurent Pinchart        reg = <0x02220000 0x4000>;
1613b1b42fdSLaurent Pinchart        interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1623b1b42fdSLaurent Pinchart        clocks = <&clks IMX6SX_CLK_LCDIF1_PIX>,
1633b1b42fdSLaurent Pinchart                 <&clks IMX6SX_CLK_LCDIF_APB>,
1643b1b42fdSLaurent Pinchart                 <&clks IMX6SX_CLK_DISPLAY_AXI>;
1653b1b42fdSLaurent Pinchart        clock-names = "pix", "axi", "disp_axi";
166f62678a7SMarek Vasut        power-domains = <&pd_disp>;
1673b1b42fdSLaurent Pinchart
1683b1b42fdSLaurent Pinchart        port {
1693b1b42fdSLaurent Pinchart            endpoint {
1703b1b42fdSLaurent Pinchart                remote-endpoint = <&panel_in>;
1713b1b42fdSLaurent Pinchart            };
1723b1b42fdSLaurent Pinchart        };
1733b1b42fdSLaurent Pinchart    };
1743b1b42fdSLaurent Pinchart
1753b1b42fdSLaurent Pinchart...
176