From patchwork Wed May 3 16:33:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 8889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1474260vqo; Wed, 3 May 2023 09:58:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6w4TIHz0AsYopFJkeIeYVvb/f6KZcSnXBdaTqXWbHtygmJVMSyhk53YBPJsrUe8OKj2SDf X-Received: by 2002:a17:90a:3c8b:b0:247:8b61:a41 with SMTP id g11-20020a17090a3c8b00b002478b610a41mr20357115pjc.25.1683133104028; Wed, 03 May 2023 09:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683133104; cv=none; d=google.com; s=arc-20160816; b=fgMj7M/wuvJh10vG9fcL7AdM3J1lYod6UR82DfPrDtWu0tx5EUTMvhSyJePF8PalnC 1xXdat1+wyUUy98AixqD3GTO5s1dYp3sFN2fNVIc+kQXDBJRCbiqAm4xD/GJGJDPaHes ZZxePLzG/wtRKv2bWZWcCHTMUBMwtBDmLuYI6j/bnIAWA60azklMSKXkQB/BeIY4kQpM YiSk2ZvyDc8u5HZIE+g3ffN0LTmyntDOBa0dvoPjQ8vWNg0tRszrlRoKHS+NYgPpguDw CVxKOj+S2pH7bJEMVJsHAZJOAWdy3KqWMZouACIzny9x2w/lqIdYbgDLpkeB3vBJ6rzQ fWtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Wz6v8uYHo0LpPLKMPt437X8+F6WcxC2BzkAFGOrZAgE=; b=KXcexVUdTFJNWzxxeCNJ6mLBUKGvKS+AP5j6Yrj36hOOQBtITs5t0W0K8J4uFBBZoW i8ODKVUPrEm+/0BkVDEx9c1KodH46oRQh4vOxXDkZBb0GlakX3EcYozAoN2O6tJjTMKB CjgJWnekLmkjzZ3ptMc+ewOig2nmURdoW2IPR3p6+CiAzppspm5DlGwhp22SeI6tBkeh 8pC+ajD5C0wfPvEf2Spv+/x3WNb9y8KSrvLOypfgv049A+eA9CB6SUeLt5wY2vMICits GYeDitwyLbqcwl30xmd5LQb6o6AyYoS+u85xu+7qRlLEaa+HcnLTqLxlUtpm6DDHQbbY tZyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=kCsPK1lk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a17090a898800b0024e562f9f73si857091pjn.147.2023.05.03.09.58.08; Wed, 03 May 2023 09:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=kCsPK1lk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbjECQdh (ORCPT + 99 others); Wed, 3 May 2023 12:33:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjECQdg (ORCPT ); Wed, 3 May 2023 12:33:36 -0400 Received: from mail.fris.de (mail.fris.de [116.203.77.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492473ABC for ; Wed, 3 May 2023 09:33:34 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B39E4BFAE6; Wed, 3 May 2023 18:33:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1683131611; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=Wz6v8uYHo0LpPLKMPt437X8+F6WcxC2BzkAFGOrZAgE=; b=kCsPK1lkPscu8mHpVGaYjIMrkL3Y83hjOX6nB9DD7tu1cwu3wWw0muGYyEtIyH/4FGSyI3 C3Ecep97lekr8IM+q0c4bvhyS+1u1rm3zVwCjgAaCXDc+wIOx7EuO8bzhkvNOZL3kHkLp0 9kK+LiLno6Ubc9jHuYFT/0HrkmuYiFkcT/hZu8xZ4qY/N0pRA8945fPA2ZcE0YZUb7gR9m LGwRG+9WFcEat7g8s3jIohGYOyKlVI6z6JkzOLTq2CaHlhGJzuzn1mv2OlGchR+2wyPuWW zqlXv4S4uOS1mBYHIoY+8velaBjdmNKR8TGKTAfN6i8lJeJz13x2pumlrPJTNw== From: Frieder Schrempf To: Andrzej Hajda , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, Inki Dae , Jagan Teki , linux-kernel@vger.kernel.org, Marek Szyprowski , Neil Armstrong , Robert Foss Cc: Frieder Schrempf , Alexander Stein , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Marek Vasut , Sam Ravnborg , =?utf-8?q?Uwe?= =?utf-8?q?_Kleine-K=C3=B6nig?= , =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= Subject: [PATCH v2 0/2] Init flow fixes for Samsung DSIM and TI SN65DSI84 Date: Wed, 3 May 2023 18:33:05 +0200 Message-Id: <20230503163313.2640898-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764892977485367879?= X-GMAIL-MSGID: =?utf-8?q?1764892977485367879?= From: Frieder Schrempf This patchset contains a proposal to fix the initialization flow for the display pipeline used on our i.MX8MM Kontron boards: i.MX8MM LCDIF -> i.MX8MM DSIM -> TI SN65DSI84 -> 7" LVDS Panel Without these changes the display works most of the time, but fails to come up occassionally when booting or doing on/off cycling tests with: echo 0 > /sys/devices/platform/soc@0/32c00000.bus/32e00000.lcdif/graphics/fb0/blank echo 1 > /sys/devices/platform/soc@0/32c00000.bus/32e00000.lcdif/graphics/fb0/blank All the changes intend to follow the documentation provided here: https://docs.kernel.org/gpu/drm-kms-helpers.html#mipi-dsi-bridge-operation Changes for v2: * Drop RFC * Drop non-working Exynos cleanup patch 3/3 Frieder Schrempf (2): drm: bridge: samsung-dsim: Fix i.MX8M enable flow to meet spec drm/bridge: ti-sn65dsi83: Fix enable/disable flow to meet spec drivers/gpu/drm/bridge/samsung-dsim.c | 25 +++++++++++++++++++++++-- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 19 ++++++++++++++++--- 2 files changed, 39 insertions(+), 5 deletions(-)