From patchwork Mon Nov 27 16:12:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland Hieber X-Patchwork-Id: 170264 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3253672vqx; Mon, 27 Nov 2023 08:13:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZVOFw6S1ACMGGCBVSH+BRcrsJDZl65kwyn/cKEXVRul2EeAvouMoHoW5K74uD0YGIfv1n X-Received: by 2002:a17:90b:1e44:b0:285:b019:1505 with SMTP id pi4-20020a17090b1e4400b00285b0191505mr6109676pjb.45.1701101627170; Mon, 27 Nov 2023 08:13:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701101627; cv=none; d=google.com; s=arc-20160816; b=PP8JQ3A/E459VFRUO16cUvSZMIk5fGggEuLswWTQy5YbzyPYTLPD7v8QE3YF55Cisp xz4qjnTDZA+zppJENku9B24+gY7PchdPVNVYQzi24vhOphCw6SG8fZLnqJMBC8skx4p5 SC+tbEZxncMBEVSDtMegiLvjhdEWZGNlPfCDZd9M+MkLzWy5YVJzTEyZNAUtfNzOcJSw CsViD6uZ53I8R1m21nESqTeNuwpVor+PkL2eAZQ1MN19QM1/z8OBafn5Ny7mcyuvGmSz gKjK98eqJ6PpvoNWqQ/oISHW0ZiQc0A/decyJlkvoy/eWy6jFv/NIxBQ5HxeDUuRjywZ CUEQ== 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 Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ot16-20020a17090b3b5000b00285baead549si3715128pjb.157.2023.11.27.08.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:13:47 -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 58022822AE4C; Mon, 27 Nov 2023 08:13:41 -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 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:42 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783734325199699678 X-GMAIL-MSGID: 1783734340007465184 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 {