Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3189275rdh; Mon, 27 Nov 2023 08:13:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJJNGez19f2MyY64DaEJjED1q1JkBPXKoAQIRWCTFl4JxEzAnDTcEB68X9zFzy0njPaSqu X-Received: by 2002:a17:903:244e:b0:1cf:dd41:dd4 with SMTP id l14-20020a170903244e00b001cfdd410dd4mr1780731pls.27.1701101631081; Mon, 27 Nov 2023 08:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701101631; cv=none; d=google.com; s=arc-20160816; b=z9t/h4ev0GYw0Bc/mKHl9/jOophzttGBnxHdYYbEY/DF7UzAfUcAA68fsuoSezN6VL VjG5dkrK2wONb+fn3J7zGrNF/zeCsy0v6kd3MeUKAZQdaEPyclIgczezmofho3IcHET1 VWLFVpdzI7T1ZCICe6paGWBf+dU4NNVX8b+ObLAa7GGJVJwU3GpiiDdDxsE0oTE9vx7F 1zBF3nduVjui240snG3JhuxmhC9nSCkhPnsagnMwJMZ6OozKddX8FLGNLWV8w6tvFhaG BX5StycGo0lN1x0hvFoRJ7AInxUTtCgA3d+jlLCqcLPNHI/db94Rwhsjinnnwk90HXDg 3ZZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=3QlB/umH2il1TjbhpsepGSlqp7GS/XOOecifbS2kU+k=; fh=oNG+vvAk8g3F16I/78b8KkhmYl/4G29YdRWvS2krWD0=; b=uuKrxmCI+BSiqaGgzwtWGV7pkCp6BHBEYibt04KjUYQvTDJ4feXFbXS+dWMG54ezt/ bEu3vZBHtNBk4dczh6IO1BZSyJdJE0RvkjdaND8gHqqtsXOwsDKJIGDSY4k7doLC9Z2X Oy/y1kchuNdSfN3IGma6SMv07o58Sef3YKWvF4WMkZf2jveCWcndOStmcTkCqjA74c6w oCtHLFdDYfiGjJP5K8KkSbQp5UybP2NxEe8GguckgoaoNCEXbfWCd4sjR1wRMBONPOpH Y6GA2eU7Qh7W5ctlhtiw6gLIzlP4MWMYj+yV5zG4SJuiglyjA06FjAZhVf1Rq7AUPwhT uY7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p126-20020a634284000000b005bdc61e1793si9859195pga.358.2023.11.27.08.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:13:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4750C822AE46; Mon, 27 Nov 2023 08:13:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234432AbjK0QN3 (ORCPT + 99 others); Mon, 27 Nov 2023 11:13:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234430AbjK0QN0 (ORCPT ); Mon, 27 Nov 2023 11:13:26 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB77E1AD for ; Mon, 27 Nov 2023 08:13:30 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r7eEI-0001PM-89; Mon, 27 Nov 2023 17:13:02 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7eEF-00Bz1F-Jx; Mon, 27 Nov 2023 17:12:59 +0100 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1r7eEF-00D7aL-1j; Mon, 27 Nov 2023 17:12:59 +0100 From: Roland Hieber Date: Mon, 27 Nov 2023 17:12:29 +0100 Subject: [PATCH 2/2] ARM: dts: imx7: add MIPI-DSI support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231127-b4-imx7-mipi-dsi-v1-2-7d22eee70c67@pengutronix.de> References: <20231127-b4-imx7-mipi-dsi-v1-0-7d22eee70c67@pengutronix.de> In-Reply-To: <20231127-b4-imx7-mipi-dsi-v1-0-7d22eee70c67@pengutronix.de> To: Inki Dae , Jagan Teki , Marek Szyprowski , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Roland Hieber , Marco Felsch X-Mailer: b4 0.12.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: auto@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:13:48 -0800 (PST) From: Marco Felsch This adds the device tree support for the MIPI-DSI block. The block can be used as encoder for the parallel signals coming from the lcdif block. Signed-off-by: Marco Felsch Signed-off-by: Roland Hieber --- arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi index 29b8fd03567a..7adadf9c3694 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi @@ -818,6 +818,16 @@ lcdif: lcdif@30730000 { <&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>; clock-names = "pix", "axi"; status = "disabled"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + lcdif_out_mipi_dsi: endpoint@0 { + reg = <0>; + remote-endpoint = <&mipi_dsi_in_lcdif>; + }; + }; }; mipi_csi: mipi-csi@30750000 { @@ -850,6 +860,42 @@ mipi_vc0_to_csi_mux: endpoint { }; }; }; + + mipi_dsi: dsi@30760000 { + compatible = "fsl,imx7d-mipi-dsim", "fsl,imx8mm-mipi-dsim"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x30760000 0x400>; + clocks = <&clks IMX7D_MIPI_DSI_ROOT_CLK>, + <&clks IMX7D_MIPI_DPHY_ROOT_CLK>; + clock-names = "bus_clk", "sclk_mipi"; + assigned-clocks = <&clks IMX7D_MIPI_DSI_ROOT_SRC>, + <&clks IMX7D_PLL_SYS_PFD5_CLK>; + assigned-clock-parents = <&clks IMX7D_PLL_SYS_PFD5_CLK>; + assigned-clock-rates = <0>, <333000000>; + power-domains = <&pgc_mipi_phy>; + interrupts = ; + samsung,burst-clock-frequency = <891000000>; + samsung,esc-clock-frequency = <20000000>; + samsung,pll-clock-frequency = <24000000>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + mipi_dsi_in_lcdif: endpoint@0 { + reg = <0>; + remote-endpoint = <&lcdif_out_mipi_dsi>; + }; + }; + }; + }; }; aips3: bus@30800000 { -- 2.39.2