From bd5c48801818c69c0527f21d722c7defde0cf8ca Mon Sep 17 00:00:00 2001 From: Liu Ying <victor.liu@nxp.com> Date: Mon, 19 Apr 2021 16:16:05 +0800 Subject: [PATCH] MLK-25531-1 dt-bindings: display: imx: Add NXP i.MX8ulp dcnano display controller binding This patch adds bindings for NXP i.MX8ulp dcnano display controller. Cc: Dong Aisheng <aisheng.dong@nxp.com> Cc: Leo Li <leoyang.li@nxp.com> Reviewed-by: Sandor Yu <Sandor.yu@nxp.com> Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Liu Ying <victor.liu@nxp.com> --- .../display/imx/nxp,imx8ulp-dcnano.yaml | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/imx/nxp,imx8ulp-dcnano.yaml diff --git a/Documentation/devicetree/bindings/display/imx/nxp,imx8ulp-dcnano.yaml b/Documentation/devicetree/bindings/display/imx/nxp,imx8ulp-dcnano.yaml new file mode 100644 index 0000000000000..863b025556221 --- /dev/null +++ b/Documentation/devicetree/bindings/display/imx/nxp,imx8ulp-dcnano.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/imx/nxp,imx8ulp-dcnano.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8ulp DCNANO display controller + +maintainers: + - Liu Ying <victor.liu@nxp.com> + +description: | + The NXP i.MX8ulp DCNANO display controller is a high-performance graphics + core that can be used for reading rendered images from the frame buffer. + In addition to providing hardware cursor patterns, the display controller + performs format conversions, dithering and gamma corrections. The display + controller supports either Display Pixel Interface-2(DPI-2) or Display Bus + Interface 2.0(DBI-2). + +properties: + compatible: + const: nxp,imx8ulp-dcnano + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: axi + - const: ahb + - const: pixel + + assigned-clocks: true + assigned-clock-parents: true + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: The DCNANO DPI-2 output port node. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: The DCNANO DBI-2 output port node. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - ports + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/imx8ulp-clock.h> + dcnano: display-controller@2e050000 { + compatible = "nxp,imx8ulp-dcnano"; + reg = <0x2e050000 0x10000>; + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cgc2 IMX8ULP_CLK_LPAV_AXI_DIV>, + <&cgc2 IMX8ULP_CLK_LPAV_AHB_DIV>, + <&pcc5 IMX8ULP_CLK_DC_NANO>; + clock-names = "axi", "ahb", "pixel"; + assigned-clocks = <&pcc5 IMX8ULP_CLK_DC_NANO>; + assigned-clock-parents = <&cgc2 IMX8ULP_CLK_PLL4_PFD0_DIV1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dcnano_dpi: port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + dcnano_dpi_to_mipi_dsi: endpoint@0 { + reg = <0>; + }; + + dcnano_dpi_to_disp: endpoint@1 { + reg = <1>; + }; + }; + + dcnano_dbi: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + dcnano_dbi_to_mipi_dsi: endpoint@0 { + reg = <0>; + }; + + dcnano_dbi_to_disp: endpoint@1 { + reg = <1>; + }; + }; + }; + }; -- GitLab