Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9884049ybi; Wed, 24 Jul 2019 11:40:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTLcCMU695PLpP0cl1rPDASVCG+KQZ8Y7xiNi9wFV4GmDCcgn6Wkmsw9IQAhJ6A4oTpyQY X-Received: by 2002:a17:902:f01:: with SMTP id 1mr86683058ply.170.1563993606771; Wed, 24 Jul 2019 11:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563993606; cv=none; d=google.com; s=arc-20160816; b=AK1eSOC178p8YOSRbAIJrHkKPXYzFZPYLIOfs4zKisJxhZmzXy9JN03DUfk7LC0RGr 3VysVJiEcAaIuEcrhh42UkpyLklkhUmdYGXqfGVgUpKkAX4p/8IQF+UXJeKoLShtLwUO gHvRu93rLgbRj0jW4KgpxJlks8xmydSur3cwK6yT6cnaBpTPF3PHmF5gXBpTEi1mAYxc VBJd2WOk+HLuuvZJtleFJhQRNEnvbVg2dGR8PWjiYbDgTuAHPyefnBzqPk876rpVyXuU BjKpMFhy8fegS8RAw5FaRP2TdsvWFgkGYCfArYfjW0UsvT8FegsMO85jZpUhu8UuSBzV ag9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=1RqAKVG3IT6I2cdLX8iSiO0U6M29LSJzH5Rbbsc0r6s=; b=XBzQhxYSCMniHcFnvuLTlOT9kuz6V3dN2rDQNRXWm73HKIanbFMZPNs2bZoo2Leq/a mhBhsAZ85dkCgunBEof4mkollZplT68bxvqjSBKjMlFjPsXaObmiRXF2QWt0lN7wpLin MntXRsntabjVd4it7nprcMPIWix7837Y2N7VSq5RNAq9vf70mpE4vQQQ0XtO+I6a6aC2 AKDlBxtjdmWFQti44qoVx6YsKk/9MjZMu4zH0tzA9hVbZc5BeT7yUHhqzG8ESBP9vzwk pgeYEvDHq004t7kHQxJksQQJKJR9ZkZ9kFSUx4EfFp8LO7Td7QB3tnDDWD/87abD3blO jYBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si17144148pgi.121.2019.07.24.11.39.52; Wed, 24 Jul 2019 11:40:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728608AbfGXPwk (ORCPT + 99 others); Wed, 24 Jul 2019 11:52:40 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:33598 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfGXPwe (ORCPT ); Wed, 24 Jul 2019 11:52:34 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 23793FB04; Wed, 24 Jul 2019 17:52:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id peRBQktrt7Wu; Wed, 24 Jul 2019 17:52:29 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 0958343419; Wed, 24 Jul 2019 17:52:26 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Lee Jones , =?UTF-8?q?Guido=20G=C3=BCnther?= , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Chiras Subject: [PATCH 2/3] dt-bindings: display/bridge: Add binding for IMX NWL mipi dsi host controller Date: Wed, 24 Jul 2019 17:52:25 +0200 Message-Id: <70a5c6617936a4a095e7608b96e3f9fae5ddfbb1.1563983037.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Northwest Logic MIPI DSI IP core can be found in NXPs i.MX8 SoCs. Signed-off-by: Guido Günther --- .../bindings/display/bridge/imx-nwl-dsi.txt | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt diff --git a/Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt b/Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt new file mode 100644 index 000000000000..288fdb726d5a --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt @@ -0,0 +1,89 @@ +Northwest Logic MIPI-DSI on imx SoCs +===================================== + +NWL MIPI-DSI host controller found on i.MX8 platforms. This is a +dsi bridge for the for the NWL MIPI-DSI host. + +Required properties: +- compatible: "fsl,-nwl-dsi" + The following strings are expected: + "fsl,imx8mq-nwl-dsi" +- reg: the register range of the MIPI-DSI controller +- interrupts: the interrupt number for this module +- clock, clock-names: phandles to the MIPI-DSI clocks + The following clocks are expected on all platforms: + "core" - DSI core clock + "tx_esc" - TX_ESC clock (used in escape mode) + "rx_esc" - RX_ESC clock (used in escape mode) + "phy_ref" - PHY_REF clock. Clock is managed by the phy. Only + used to read the clock rate. +- assigned-clocks: phandles to clocks that require initial configuration +- assigned-clock-rates: rates of the clocks that require initial configuration + The following clocks need to have an initial configuration: + "tx_esc" (20 MHz) and "rx_esc" (80 Mhz). +- phys: phandle to the phy module representing the DPHY + inside the MIPI-DSI IP block +- phy-names: should be "dphy" + +Optional properties: +- power-domains phandle to the power domain +- src phandle to the system reset controller (required on + i.MX8MQ) +- mux-sel phandle to the MUX register set (required on i.MX8MQ) +- assigned-clock-parents phandles to parent clocks that needs to be assigned as + parents to clocks defined in assigned-clocks + +Example: + mipi_dsi: mipi_dsi@30a00000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx8mq-nwl-dsi"; + reg = <0x30A00000 0x300>; + clocks = <&clk IMX8MQ_CLK_DSI_CORE>, + <&clk IMX8MQ_CLK_DSI_AHB>, + <&clk IMX8MQ_CLK_DSI_IPG_DIV>, + <&clk IMX8MQ_CLK_DSI_PHY_REF>; + clock-names = "core", "rx_esc", "tx_esc", "phy_ref"; + assigned-clocks = <&clk IMX8MQ_CLK_DSI_AHB>, + <&clk IMX8MQ_CLK_DSI_CORE>, + <&clk IMX8MQ_CLK_DSI_IPG_DIV>; + assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_80M>, + <&clk IMX8MQ_SYS1_PLL_266M>; + assigned-clock-rates = <80000000>, + <266000000>, + <20000000>; + interrupts = ; + power-domains = <&pgc_mipi>; + src = <&src>; + mux-sel = <&iomuxc_gpr>; + phys = <&dphy>; + phy-names = "dphy"; + status = "okay"; + + panel@0 { + compatible = "..."; + port { + panel_in: endpoint { + remote-endpoint = <&mipi_dsi_out>; + }; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mipi_dsi_in: endpoint { + remote-endpoint = <&dcss_disp0_mipi_dsi>; + }; + }; + port@1 { + reg = <1>; + mipi_dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; + }; -- 2.20.1