Path: blob/main/sys/contrib/device-tree/Bindings/display/bridge/nwl-dsi.yaml
48406 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#/properties/port114description:115DSI output port node to the panel or the next bridge116in the chain117118required:119- port@0120- port@1121122required:123- '#address-cells'124- '#size-cells'125- clock-names126- clocks127- compatible128- interrupts129- mux-controls130- phy-names131- phys132- ports133- reg134- reset-names135- resets136137unevaluatedProperties: false138139examples:140- |141#include <dt-bindings/clock/imx8mq-clock.h>142#include <dt-bindings/gpio/gpio.h>143#include <dt-bindings/interrupt-controller/arm-gic.h>144#include <dt-bindings/reset/imx8mq-reset.h>145146dsi@30a00000 {147#address-cells = <1>;148#size-cells = <0>;149compatible = "fsl,imx8mq-nwl-dsi";150reg = <0x30A00000 0x300>;151clocks = <&clk IMX8MQ_CLK_DSI_CORE>,152<&clk IMX8MQ_CLK_DSI_AHB>,153<&clk IMX8MQ_CLK_DSI_IPG_DIV>,154<&clk IMX8MQ_CLK_DSI_PHY_REF>,155<&clk IMX8MQ_CLK_LCDIF_PIXEL>;156clock-names = "core", "rx_esc", "tx_esc", "phy_ref", "lcdif";157interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;158mux-controls = <&mux 0>;159power-domains = <&pgc_mipi>;160resets = <&src IMX8MQ_RESET_MIPI_DSI_RESET_BYTE_N>,161<&src IMX8MQ_RESET_MIPI_DSI_DPI_RESET_N>,162<&src IMX8MQ_RESET_MIPI_DSI_ESC_RESET_N>,163<&src IMX8MQ_RESET_MIPI_DSI_PCLK_RESET_N>;164reset-names = "byte", "dpi", "esc", "pclk";165phys = <&dphy>;166phy-names = "dphy";167168panel@0 {169compatible = "rocktech,jh057n00900";170reg = <0>;171vcc-supply = <®_2v8_p>;172iovcc-supply = <®_1v8_p>;173reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;174port {175panel_in: endpoint {176remote-endpoint = <&mipi_dsi_out>;177};178};179};180181ports {182#address-cells = <1>;183#size-cells = <0>;184185port@0 {186#size-cells = <0>;187#address-cells = <1>;188reg = <0>;189mipi_dsi_in: endpoint@0 {190reg = <0>;191remote-endpoint = <&lcdif_mipi_dsi>;192};193};194port@1 {195reg = <1>;196mipi_dsi_out: endpoint {197remote-endpoint = <&panel_in>;198};199};200};201};202203204