Path: blob/master/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/display/bridge/nwl-dsi.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Northwest Logic MIPI-DSI controller on i.MX SoCs78maintainers:9- Guido GĂșnther <agx@sigxcpu.org>10- Robert Chiras <robert.chiras@nxp.com>1112description: |13NWL MIPI-DSI host controller found on i.MX8 platforms. This is a dsi bridge for14the SOCs NWL MIPI-DSI host controller.1516allOf:17- $ref: ../dsi-controller.yaml#1819properties:20compatible:21const: fsl,imx8mq-nwl-dsi2223reg:24maxItems: 12526interrupts:27maxItems: 12829'#address-cells':30const: 13132'#size-cells':33const: 03435assigned-clock-parents: true36assigned-clock-rates: true37assigned-clocks: true3839clocks:40items:41- description: DSI core clock42- description: RX_ESC clock (used in escape mode)43- description: TX_ESC clock (used in escape mode)44- description: PHY_REF clock45- description: LCDIF clock4647clock-names:48items:49- const: core50- const: rx_esc51- const: tx_esc52- const: phy_ref53- const: lcdif5455mux-controls:56description:57mux controller node to use for operating the input mux5859phys:60maxItems: 161description:62A phandle to the phy module representing the DPHY6364phy-names:65items:66- const: dphy6768power-domains:69maxItems: 17071resets:72items:73- description: dsi byte reset line74- description: dsi dpi reset line75- description: dsi esc reset line76- description: dsi pclk reset line7778reset-names:79items:80- const: byte81- const: dpi82- const: esc83- const: pclk8485ports:86$ref: /schemas/graph.yaml#/properties/ports8788properties:89port@0:90$ref: /schemas/graph.yaml#/$defs/port-base91description:92Input port node to receive pixel data from the93display controller. Exactly one endpoint must be94specified.95properties:96endpoint@0:97$ref: /schemas/graph.yaml#/properties/endpoint98description: sub-node describing the input from LCDIF99100endpoint@1:101$ref: /schemas/graph.yaml#/properties/endpoint102description: sub-node describing the input from DCSS103104oneOf:105- required:106- endpoint@0107- required:108- endpoint@1109110unevaluatedProperties: false111112port@1:113$ref: /schemas/graph.yaml#/$defs/port-base114unevaluatedProperties: false115description:116DSI output port node to the panel or the next bridge117in the chain118119properties:120endpoint:121$ref: /schemas/media/video-interfaces.yaml#122unevaluatedProperties: false123124properties:125data-lanes:126description: array of physical DSI data lane indexes.127minItems: 1128items:129- const: 1130- const: 2131- const: 3132- const: 4133134required:135- port@0136- port@1137138required:139- '#address-cells'140- '#size-cells'141- clock-names142- clocks143- compatible144- interrupts145- mux-controls146- phy-names147- phys148- ports149- reg150- reset-names151- resets152153unevaluatedProperties: false154155examples:156- |157#include <dt-bindings/clock/imx8mq-clock.h>158#include <dt-bindings/gpio/gpio.h>159#include <dt-bindings/interrupt-controller/arm-gic.h>160#include <dt-bindings/reset/imx8mq-reset.h>161162dsi@30a00000 {163#address-cells = <1>;164#size-cells = <0>;165compatible = "fsl,imx8mq-nwl-dsi";166reg = <0x30A00000 0x300>;167clocks = <&clk IMX8MQ_CLK_DSI_CORE>,168<&clk IMX8MQ_CLK_DSI_AHB>,169<&clk IMX8MQ_CLK_DSI_IPG_DIV>,170<&clk IMX8MQ_CLK_DSI_PHY_REF>,171<&clk IMX8MQ_CLK_LCDIF_PIXEL>;172clock-names = "core", "rx_esc", "tx_esc", "phy_ref", "lcdif";173interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;174mux-controls = <&mux 0>;175power-domains = <&pgc_mipi>;176resets = <&src IMX8MQ_RESET_MIPI_DSI_RESET_BYTE_N>,177<&src IMX8MQ_RESET_MIPI_DSI_DPI_RESET_N>,178<&src IMX8MQ_RESET_MIPI_DSI_ESC_RESET_N>,179<&src IMX8MQ_RESET_MIPI_DSI_PCLK_RESET_N>;180reset-names = "byte", "dpi", "esc", "pclk";181phys = <&dphy>;182phy-names = "dphy";183184panel@0 {185compatible = "rocktech,jh057n00900";186reg = <0>;187vcc-supply = <®_2v8_p>;188iovcc-supply = <®_1v8_p>;189reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;190port {191panel_in: endpoint {192remote-endpoint = <&mipi_dsi_out>;193};194};195};196197ports {198#address-cells = <1>;199#size-cells = <0>;200201port@0 {202#size-cells = <0>;203#address-cells = <1>;204reg = <0>;205mipi_dsi_in: endpoint@0 {206reg = <0>;207remote-endpoint = <&lcdif_mipi_dsi>;208};209};210port@1 {211reg = <1>;212mipi_dsi_out: endpoint {213remote-endpoint = <&panel_in>;214};215};216};217};218219220