From patchwork Thu Feb 8 15:58:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hiago De Franco X-Patchwork-Id: 13550007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABA43C48260 for ; Thu, 8 Feb 2024 15:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P1xS8BGRa0AmdqZ29bVVMLDCCNeR/c4+QlmDJYT1LNM=; b=wBnSTjWxbNdzmY et4or0gmTGURy8IdZATg1dZ1LqrkAthJzc/mPlwcInrqpXoOmzpblwyKEafubHhNxQ9e+oknJNM9/ OhuPoFSYNSN+Nsi8FC3HGC3C+7DNzXipjTZluQMRIrDjCjbKokNsUDifYSR6QZD0ZC3esPvkbKC/B bE1XGGqzeO+pgWjM7wBDc3jJeZMQY3Im0UmVlJSGFbodGriDw7tL99N4yUwsEPBLixbzFVIJVzlSj P5a1+9g/8bTIfurO1ihwZEwHzf0yKtyGYH29yMB38lXX23cJKqtK6rQnNZoXM1dJukEgjTHuWgkil Lq8aU3F7DCk+ZiXlFezQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rY6nz-0000000EF3P-0ghx; Thu, 08 Feb 2024 15:59:15 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rY6nw-0000000EF2W-2rUj for linux-arm-kernel@lists.infradead.org; Thu, 08 Feb 2024 15:59:13 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1d72f71f222so17003525ad.1 for ; Thu, 08 Feb 2024 07:59:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707407951; x=1708012751; darn=lists.infradead.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=/UkasknRx/MidvQOJkmoofU2A+zo1MZfchNN3vbBj50=; b=H304me+k0iYnuPyWuhCLh9ARHY+QTpQJ+ZlGac5JrNCN0XjHwatsZZP8pgXcZhrBmZ izDjXMOzsJbVLlGyCLOpQlMv9WXqsKF6zEajqKreDjzMYVhH4w4UOYeqNjCTJOGrRsSP j3Jl3cc935L99Mv8RtF58Fufyy8ZYHlnrAqGLPfIjVZvvTz3KSqONfz9PFw18jVP8MfN 5lPr7uUJowsJ+wceJ4ZojtRluBxMOZQ/+pxe9iYee4+6z5etMC3vio0WdZMynwPfWmin XBduIksOMqfdHEp3dbJoZSNN2IocW0412geNxfLQNY3aBYo9HfDg8WkS4dGzLzGnAsCF HFfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707407951; x=1708012751; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/UkasknRx/MidvQOJkmoofU2A+zo1MZfchNN3vbBj50=; b=UkXgNuSxP63SYUWzo7LbqamCWpt/UDPP/tsUngPkoA78NDISnaRkqEAi7u0HQv0SZU fMYqzn3tNYG5n9GALaZX3beRlhYq4iXoQyTyEMJO7n+oTYB6y0HJf8POfS0ffUsDoAt2 vCPOBPYwLl/a/37VnKYZzs8bjJoxSWCkvOjMygqhWXMcbyQA4+JJoEOuF+zPLnQ7Pocx 14RkAkPxY+JMTSvTrMVqmZ6tD1jb1JEJFTEntVkjuILmf9GdJzeNxDVQakmMjO2sb430 KGw+ASburDWd/v6Mh/5R+1HBrz6nBAQj1962B9D266BJ5IkmNjZOMWZ71iLttldKk42W F27g== X-Gm-Message-State: AOJu0YxWnwjZzkpFIdSXBMz1MI0pOmDqVcS5xXWjCnTVXLD5/1o/kcta J1OVa49/Vpd7QaqgaXGpsaJbpUT+xlRvDBaGsnG/X4zXYrRtUZ8f X-Google-Smtp-Source: AGHT+IGm26flaODwILEs377DOWF7gf2yBRM1VJeNDFyz4e42ANl9iL6maaca5aRO6j3uV08HiDyVmA== X-Received: by 2002:a17:902:d2c4:b0:1d9:5ef3:e5ea with SMTP id n4-20020a170902d2c400b001d95ef3e5eamr10470840plc.50.1707407951209; Thu, 08 Feb 2024 07:59:11 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUnkx8QcLgJcxAcwfW2AqPOmi73QJUYw5evFy3JQJ74xZdb+LCPzzZK71yjmgughBTxzUSp2jxR2WIMgGbu9SQpP2Jk9ZcJ4Wi7qRuAXsuGD+3Kn/kTsD3jtqkyHJ7JAWjSDiJExNpxIoFCCWCZMoqB7dRHc+YJkkVN71T5Y516TP8qG9W+AcFPQjJg5mIQ/bRzyBwI2AYaSj36LAoYqAa46YjX7Ee6ALxPk5za++3Vs1RhGsKXUGUAvWagduniikxVJ45ssQ//0Q4fmZtYy7d3+RBY3Bz/dX3+BQbbvSIGvVhKb2xTebZjyG2yLxrQd2cdDEvUwD+bRcEotVqdnydzKOuDJZWDRQ== Received: from hdebian ([201.82.41.210]) by smtp.gmail.com with ESMTPSA id jv11-20020a170903058b00b001d9a146907dsm3557638plb.11.2024.02.08.07.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 07:59:10 -0800 (PST) Date: Thu, 8 Feb 2024 12:58:02 -0300 From: Hiago De Franco To: Marco Felsch , Roland Hieber , Shawn Guo Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: MXSFB error: -ENODEV: Cannot connect bridge Message-ID: <34yzygh3mbwpqr2re7nxmhyxy3s7qmqy4vhxvoyxnoguktriur@z66m7gvpqlia> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240208_075912_743462_F8C2A857 X-CRM114-Status: GOOD ( 12.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello all, while doing some tests with kernel v6.8-rc3 and Colibri iMX7D, we noticed the following error: [ 0.432547] mxsfb 30730000.lcdif: error -ENODEV: Cannot connect bridge This was introduced by commit edbbae7fba495284f72f05768696572691231558 ("ARM: dts: imx7: add MIPI-DSI support"). This patch is routing the lcdif to the mipi_dsi_in_lcdif endpoint, however we do not have the DSI pins available in our edge connector. Instead, we use the parallel RGB LCD interface directly with, as example, an external LVDS transmitter: &lcdif { ... status = "disabled"; port { lcdif_out: endpoint { remote-endpoint = <&lcd_panel_in>; }; }; }; By applying the following patch, the issue is gone and the LVDS works again: I would like to know your opinion about this patch before sending it, does it makes sense for you? I understand that routing to endpoint should be done in the SoM device tree, so we are free to rout other endpoint without issues. Regards, Hiago. diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi index ebf7befcc11e..9c81c6baa2d3 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi @@ -834,16 +834,6 @@ 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 { @@ -895,22 +885,6 @@ mipi_dsi: dsi@30760000 { 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>; - }; - }; - }; }; };