xref: /linux/Documentation/devicetree/bindings/display/fsl,lcdif.yaml (revision fac4e24dcc56b59cfc5f0cbd559a89adc0fc63bf)
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
235d16e40dSLaurent Pinchart      - items:
245d16e40dSLaurent Pinchart          - enum:
255d16e40dSLaurent Pinchart              - fsl,imx6sl-lcdif
265d16e40dSLaurent Pinchart              - fsl,imx6sll-lcdif
275d16e40dSLaurent Pinchart              - fsl,imx6ul-lcdif
285d16e40dSLaurent Pinchart              - fsl,imx7d-lcdif
2925e524bfSMarek Vasut              - fsl,imx8mm-lcdif
30*fac4e24dSMarek Vasut              - fsl,imx8mn-lcdif
313b1b42fdSLaurent Pinchart              - fsl,imx8mq-lcdif
325d16e40dSLaurent Pinchart          - const: fsl,imx6sx-lcdif
333b1b42fdSLaurent Pinchart
343b1b42fdSLaurent Pinchart  reg:
353b1b42fdSLaurent Pinchart    maxItems: 1
363b1b42fdSLaurent Pinchart
373b1b42fdSLaurent Pinchart  clocks:
383b1b42fdSLaurent Pinchart    items:
393b1b42fdSLaurent Pinchart      - description: Pixel clock
403b1b42fdSLaurent Pinchart      - description: Bus clock
413b1b42fdSLaurent Pinchart      - description: Display AXI clock
423b1b42fdSLaurent Pinchart    minItems: 1
433b1b42fdSLaurent Pinchart
443b1b42fdSLaurent Pinchart  clock-names:
453b1b42fdSLaurent Pinchart    items:
463b1b42fdSLaurent Pinchart      - const: pix
473b1b42fdSLaurent Pinchart      - const: axi
483b1b42fdSLaurent Pinchart      - const: disp_axi
493b1b42fdSLaurent Pinchart    minItems: 1
503b1b42fdSLaurent Pinchart
513b1b42fdSLaurent Pinchart  interrupts:
523b1b42fdSLaurent Pinchart    maxItems: 1
533b1b42fdSLaurent Pinchart
543b1b42fdSLaurent Pinchart  port:
553b1b42fdSLaurent Pinchart    $ref: /schemas/graph.yaml#/properties/port
563b1b42fdSLaurent Pinchart    description: The LCDIF output port
573b1b42fdSLaurent Pinchart
583b1b42fdSLaurent Pinchartrequired:
593b1b42fdSLaurent Pinchart  - compatible
603b1b42fdSLaurent Pinchart  - reg
613b1b42fdSLaurent Pinchart  - clocks
623b1b42fdSLaurent Pinchart  - interrupts
633b1b42fdSLaurent Pinchart  - port
643b1b42fdSLaurent Pinchart
653b1b42fdSLaurent PinchartadditionalProperties: false
663b1b42fdSLaurent Pinchart
673b1b42fdSLaurent PinchartallOf:
683b1b42fdSLaurent Pinchart  - if:
693b1b42fdSLaurent Pinchart      properties:
703b1b42fdSLaurent Pinchart        compatible:
713b1b42fdSLaurent Pinchart          contains:
723b1b42fdSLaurent Pinchart            const: fsl,imx6sx-lcdif
733b1b42fdSLaurent Pinchart    then:
743b1b42fdSLaurent Pinchart      properties:
753b1b42fdSLaurent Pinchart        clocks:
763b1b42fdSLaurent Pinchart          minItems: 2
773b1b42fdSLaurent Pinchart          maxItems: 3
783b1b42fdSLaurent Pinchart        clock-names:
793b1b42fdSLaurent Pinchart          minItems: 2
803b1b42fdSLaurent Pinchart          maxItems: 3
813b1b42fdSLaurent Pinchart      required:
823b1b42fdSLaurent Pinchart        - clock-names
833b1b42fdSLaurent Pinchart    else:
843b1b42fdSLaurent Pinchart      properties:
853b1b42fdSLaurent Pinchart        clocks:
863b1b42fdSLaurent Pinchart          maxItems: 1
873b1b42fdSLaurent Pinchart        clock-names:
883b1b42fdSLaurent Pinchart          maxItems: 1
893b1b42fdSLaurent Pinchart
903b1b42fdSLaurent Pinchartexamples:
913b1b42fdSLaurent Pinchart  - |
923b1b42fdSLaurent Pinchart    #include <dt-bindings/clock/imx6sx-clock.h>
933b1b42fdSLaurent Pinchart    #include <dt-bindings/interrupt-controller/arm-gic.h>
943b1b42fdSLaurent Pinchart
953b1b42fdSLaurent Pinchart    display-controller@2220000 {
963b1b42fdSLaurent Pinchart        compatible = "fsl,imx6sx-lcdif";
973b1b42fdSLaurent Pinchart        reg = <0x02220000 0x4000>;
983b1b42fdSLaurent Pinchart        interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
993b1b42fdSLaurent Pinchart        clocks = <&clks IMX6SX_CLK_LCDIF1_PIX>,
1003b1b42fdSLaurent Pinchart                 <&clks IMX6SX_CLK_LCDIF_APB>,
1013b1b42fdSLaurent Pinchart                 <&clks IMX6SX_CLK_DISPLAY_AXI>;
1023b1b42fdSLaurent Pinchart        clock-names = "pix", "axi", "disp_axi";
1033b1b42fdSLaurent Pinchart
1043b1b42fdSLaurent Pinchart        port {
1053b1b42fdSLaurent Pinchart            endpoint {
1063b1b42fdSLaurent Pinchart                remote-endpoint = <&panel_in>;
1073b1b42fdSLaurent Pinchart            };
1083b1b42fdSLaurent Pinchart        };
1093b1b42fdSLaurent Pinchart    };
1103b1b42fdSLaurent Pinchart
1113b1b42fdSLaurent Pinchart...
112