From mboxrd@z Thu Jan 1 00:00:00 1970 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 C08C6C433EF for ; Thu, 5 May 2022 11:56:51 +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:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3LI0JKkg93T/54cd9xG28ETubyr/pf5WUUywblNcCMA=; b=rNqDn/fxuw8WRL 9+9Eia/6zGNxyW/m94c8QLN1/D+3fCKMQ5htFAO9HELdXnri9dpxNJ/hsWYDTn7zH6kdRiLOYLfdv CucWKTCyRYnj1gLFAeFUuVjm/QxD5nm+gUOkUKhFa5PejqZFEG4NKHWCbRv/qh6r3+4iTmLhdXkpn NQRWAcoflpdBlYaIDpcXPydeL5b3GVXAXagnsRb/G/UzoMWTfKANz3Ojnp0aMxUHfM4V76CM7/1LI vMXTRl+SEvzLE+O/70yy5SvjN0CULqB/6yZAzku4CFEO6NucJcIOaLND7ZENIApclOufgoaWSDqVa i4mDHzbskONdL6wXoWXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nma55-00FazY-3g; Thu, 05 May 2022 11:55:39 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nma51-00Faxz-8z for linux-arm-kernel@lists.infradead.org; Thu, 05 May 2022 11:55:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1651751735; x=1683287735; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ll69+c2JFgiuAsv/a/yUH9KQKD/0Hm7Y+hTHpdDWlN0=; b=d9K7xvptegCTVRP4a6ZOFc7yG2Fk/UGv5SqfwniQezBc0mvH3q3NMeU4 uD130oETF5U2AqrZqetAMGAYxuNdFmScdR3l5MkptEqTM3cw32tsAkr2i Yy6JUULgV8IfC78RdYDKzxOZa3rRlBpx6Zb/bRbxDt4xW/iYF82HIhQ2k zhMaWu4RvOXeLMVRZAyDg2n3zxi/2Q/1nWCttE8FvA3RBT7gIp/yjiWNi zA2B5+YW4krsYkP8TVHFv9IN9vVeO88mjN2TbIlsfHv3bkAoG9lVsjIhf EE+ZmMqQThBftcakZ/SH3Kjg20BVq8uHmakpA450v1CEWWV3IWkBTtMMo Q==; X-IronPort-AV: E=Sophos;i="5.91,201,1647298800"; d="scan'208";a="23694909" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 05 May 2022 13:55:29 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 05 May 2022 13:55:29 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 05 May 2022 13:55:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1651751729; x=1683287729; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ll69+c2JFgiuAsv/a/yUH9KQKD/0Hm7Y+hTHpdDWlN0=; b=eNi0iykwygKrpzWmQOxrtsSWCesXcs1nxPPhCqFo9CYMSFKi/nWGFLhw k4vrm3jdX/KUFD0Aq56F4OhAD77vHdxsuRtayKWVxqgN1/qMebnL+9DU+ uAzL+mMIBpucD8yyRxYygdlVt0pIZm4q+r5bh0r4ZVFqXwFoY4C1hkqSl ige2ZkJSdODHTavP3zQOnfWDzg9Djs3Mr6uLpNh/9ULZDhsSTtG8AY7oS cV7OSa40S7+jK5JFBEebwSUUjR26zKG1rHdh84zrwgPFruEbp6Ag7XaPe bt6VmVGGHtoWZuQNE2SNktFeHNVfaTI2alGW69bNt9K9m/Y+mLI3GcWU3 g==; X-IronPort-AV: E=Sophos;i="5.91,201,1647298800"; d="scan'208";a="23694908" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 05 May 2022 13:55:29 +0200 Received: from steina-w.localnet (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id DDECA280070; Thu, 5 May 2022 13:55:28 +0200 (CEST) From: Alexander Stein To: Jagan Teki Cc: Andrzej Hajda , Inki Dae , Marek Szyprowski , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Frieder Schrempf , Fancy Fang , Tim Harvey , Michael Nazzareno Trimarchi , Adam Ford , Neil Armstrong , Robert Foss , Laurent Pinchart , Tommaso Merciai , linux-arm-kernel@lists.infradead.org, Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, NXP Linux Team , linux-amarula Subject: Re: (EXT) Re: (EXT) [PATCH v2 00/12] drm: bridge: Add Samsung MIPI DSIM bridge Date: Thu, 05 May 2022 13:55:26 +0200 Message-ID: <3104069.5fSG56mABF@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <20220504114021.33265-1-jagan@amarulasolutions.com> <2184168.iZASKD2KPV@steina-w> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220505_045535_767358_3F5E607F X-CRM114-Status: GOOD ( 33.10 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am Donnerstag, 5. Mai 2022, 09:38:48 CEST schrieb Jagan Teki: > On Thu, May 5, 2022 at 12:57 PM Alexander Stein > > wrote: > > Hello Jagan, > > > > thanks for the second version of this patchset. > > > > Am Mittwoch, 4. Mai 2022, 13:40:09 CEST schrieb Jagan Teki: > > > This series supports common bridge support for Samsung MIPI DSIM > > > which is used in Exynos and i.MX8MM SoC's. > > > > > > Previous v1 can be available here [1]. > > > > > > The final bridge supports both the Exynos and i.MX8MM DSI devices. > > > > > > On, summary this patch-set break the entire DSIM driver into > > > - platform specific glue code for platform ops, component_ops. > > > - common bridge driver which handle platform glue init and invoke. > > > > > > Patch 0000: Samsung DSIM bridge > > > > > > Patch 0001: Common lookup code for OF-graph or child > > > > > > Patch 0002: platform init flag via driver_data > > > > > > Patch 0003/10: bridge fixes, atomic API's > > > > > > Patch 0011: document fsl,imx8mm-mipi-dsim > > > > > > Patch 0012: add i.MX8MM DSIM support > > > > > > Tested in Engicam i.Core MX8M Mini SoM. > > > > > > Anyone interested, please have a look on this repo [2] > > > > > > [2] https://github.com/openedev/kernel/tree/imx8mm-dsi-v2 > > > [1] > > > https://patchwork.kernel.org/project/dri-devel/cover/20220408162108.1845 > > > 83-> 1-jagan@amarulasolutions.com/ > > > > > > Any inputs? > > > > I was able to get my LVDS display running using this driver and an LVDS > > bridge. Actually my setup is similar to yours. My chain is like this: > > MIPI-DSI -> sn65dsi83 -> LVDS panel > > I noticed some things though: > > My setup only works if I use less than 4 lanes. See [1]. When using 4 > > lanes > > the image is flickering, but the content is "visible". Your DT has only 2 > > lanes configured, do you have the possibility to use 4 lanes? I have no > > idea how to tackle this. It might be the DSIM side or the bridge side. > > Apparently the downstream kernel from NXP supports 4 lanes, if I can trust > > the config. I have no way to verify this though. > > What is dsi_lvds_bridge node? have you added your dts changes on top > of imx8mm-dsi-v2 branch I'm pointing it. > > I will check 4 lanes and let you know. > > > Another thing is I get the following warning > > > > > sn65dsi83 2-002d: Unsupported LVDS bus format 0x100a, please check > > > output > > > > bridge driver. Falling back to SPWG24. > > This couldn't be much affected but will fix it. I found the cause. You need the following diff: ----8<----- diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/ samsung-dsim.c index 138323dec0eb..7fb96dc7bb2e 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1427,7 +1427,7 @@ static int samsung_dsim_attach(struct drm_bridge *bridge, { struct samsung_dsim *dsi = bridge_to_dsi(bridge); - return drm_bridge_attach(bridge->encoder, dsi->out_bridge, NULL, flags); + return drm_bridge_attach(bridge->encoder, dsi->out_bridge, bridge, flags); } static const struct drm_bridge_funcs samsung_dsim_bridge_funcs = { ----8<----- Best regards, Alexander _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel