From patchwork Fri Aug 4 10:44:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 13138 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp191155vqb; Fri, 4 Aug 2023 04:25:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5QGyUas0nZWVkthHWUdcnSdnzCTXlplU3D35ZQWyy/Y3pq+v4HH+S08k6WileEdKa2Hwz X-Received: by 2002:a05:6a00:3984:b0:682:f529:6d69 with SMTP id fi4-20020a056a00398400b00682f5296d69mr1754978pfb.7.1691148334607; Fri, 04 Aug 2023 04:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691148334; cv=none; d=google.com; s=arc-20160816; b=scfIRb6y78PfvkZqYTdF08LCz5WyE8wuS6Y1c5AtzmmBCIK8sioVjrzRL2qvhPrVz6 p5NhPdbMmRytoaUoAN9Vajnc2RAhyJ61VzXoVgNEVla+06k6FqBIGMe8lz3edGPj9CQY /W6oX3WEXcH6tCo5GHWSkSefNCr4Y3uN1TRULG35+mHuaFWR0XEc8DplckzSp/2/Ah0j 85e8veUmPASl5AYV0zZk4ilZGkA7npqy1BEW6Tny6lykUf1+tZa5HqLr6l+99BTeR6M9 D+EB6cupu9KRFLM0dYLM/BIc3Kv7bRj2FhUVwkL+Yn4AKfA0DPVCSGwda2Ab2/QFRjfJ IQeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=dPvXopH/mrLKjr/t670f5lH5S5pBambsz+tR3H1YCjg=; fh=7GYuw25cWCmHG5LrbyQUwFOElFQ4tchxd/wzYEHngW8=; b=ed4/S4OePzfz1S3rB3Ukbd4HXfPBTXRLwhQ5c5OfBBc57VCSmcRyOtpCQSVO5ypQDK 1yS7ZaoLjPf6wjqeqorC1l3gtBGaFgW1OOXf8209MNQenOxlz+TUC7kVIz5TTOgf8ywe sJAIMA8yxuMHr3RVkbfy5GTC4xlRGz5o4DI/2VcVYLq0/atSGNBfgT8vZhfde5SLD+ur E2ntQm9j4xaP+EAL3drZer58OIofbO3wrMixtXRRMnCYVHZvyOBxJhgUORpRo4Ud2D1X h0hKwOhkKWmPfKuEnfZW1anSy46YlW1F/Kh/2y+SRQPyuiiUNEhC+tOrg0r3bMSe0NLQ O1qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=N6qSUObe; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a63f74d000000b00563a0c1bf06si1661413pgk.428.2023.08.04.04.25.21; Fri, 04 Aug 2023 04:25:34 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=N6qSUObe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbjHDKon (ORCPT + 99 others); Fri, 4 Aug 2023 06:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjHDKol (ORCPT ); Fri, 4 Aug 2023 06:44:41 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E04746B5 for ; Fri, 4 Aug 2023 03:44:40 -0700 (PDT) Received: from [127.0.1.1] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9E84F2E4; Fri, 4 Aug 2023 12:43:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1691145813; bh=ec+E8wh10rTaYnjVd1fUIk4t7tXWKF9z3ngkuGu00y0=; h=From:Subject:Date:To:Cc:From; b=N6qSUObe49EJZwIYLC5D06tzMhL/pIgcZb83zyVK70/4PSj7CgX8QTTiFf+gZby75 /RxSnMJ7rC21yQqVZis4aWIoUVoNPE94v6IKEUP0PveHpKSwFxvq3W1CvubDWQR6qe bNnpLAHHFp7hAcYzWNQHtY+x3tpkjht3g6OootjM= From: Tomi Valkeinen Subject: [PATCH 00/11] drm/bridge: tc358768: Fixes and timings improvements Date: Fri, 04 Aug 2023 13:44:05 +0300 Message-Id: <20230804-tc358768-v1-0-1afd44b7826b@ideasonboard.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHXWzGQC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDCwMT3ZJkY1MLczMLXcMkM0sTy9Q0o1TjFCWg8oKi1LTMCrBR0bG1tQC Z9mO/WgAAAA== To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , =?utf-8?q?P=C3=A9ter_Ujfalusi?= , Francesco Dolcini Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Aradhya Bhatia , Tomi Valkeinen X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1452; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=ec+E8wh10rTaYnjVd1fUIk4t7tXWKF9z3ngkuGu00y0=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBkzNaNljbbUNDMOkcnzROAG9dzBPvp0n+U4KrJI NnEwdQg3SyJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZMzWjQAKCRD6PaqMvJYe 9YkRD/wO66ceb4plELU/Cr2ySadEAsZDWKtMN85jgtyFNlOen+4smHFqxwqnd9Gz1CaxCjyPLDH Ti9FSLn4C5GZDUwFjpvW8ATvgoWRRT9QfCEYoChuPvPGGHbDvm881d/BqqIhWMnu2eQYp61G8yX WZgyEg/HFdGeCnlnhP/yQ1SBUwj4WyQkfQzuDiNi/ShtVdOqY+iU2dcYZ28z7tGUPwK+pQCzVa0 Sgh5IAv1di3DOpU7JyqvrlEtQAPMb8m85LHO66R3m60tJV3DQzTdtBit6poI9LqdkKTMjEl+4N2 c2DYcg6vHJm8sbQGTR0/utqfMbBqtGuFLDm7Qau/sZszknYcqVFd+IrLkUWAtN+3r5Gf4SFkDKO tIL7RJ5bQVExivwdHecyDwxJNnEuVTsyi6UwvdUtNTteT7OjO7PY1EufucNHk4RIxjSTC48qXhE wXzUaL0YUEqKlLCRBd8gZsJFraukZkUaKestpTSeBTFvyrEbkmzKbjP1jx40wfNM1euzda1iqfD mmaoThjToyFzQHtKOGCDZsvzzi4HMlYf8wwmkeirI2PtS64VeGz57sOtUG4j0ITvOtoWhTTr7Q3 pvGYtYKV2ZGRHmLppjhzCJJXvuuilgSBOrxqO0DAkLPoHaKC7928BmNzS+MNNZWc44ur2wUn8+o e8VJyc4tu4j3Ttg== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,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: INBOX X-GMAIL-THRID: 1773297556104413123 X-GMAIL-MSGID: 1773297556104413123 This series contains various fixes and cleanups for TC358768. The target of this work is to get TC358768 working on Toradex's AM62 based board, which has the following display pipeline: AM62 DPI -> TC358768 -> LT8912B -> HDMI connector The two main things the series does: - Improves DSI HSW, HFP and VSDly calculations - Adds DRM_BRIDGE_ATTACH_NO_CONNECTOR support Tomi Signed-off-by: Tomi Valkeinen --- Tomi Valkeinen (11): drm/bridge: tc358768: Fix use of uninitialized variable drm/bridge: tc358768: Fix bit updates drm/bridge: tc358768: Cleanup PLL calculations drm/bridge: tc358768: Use struct videomode drm/bridge: tc358768: Print logical values, not raw register values drm/bridge: tc358768: Use dev for dbg prints, not priv->dev drm/bridge: tc358768: Rename dsibclk to hsbyteclk drm/bridge: tc358768: Clean up clock period code drm/bridge: tc358768: Fix tc358768_ns_to_cnt() drm/bridge: tc358768: Attempt to fix DSI horizontal timings drm/bridge: tc358768: Add DRM_BRIDGE_ATTACH_NO_CONNECTOR support drivers/gpu/drm/bridge/tc358768.c | 427 +++++++++++++++++++++++++++----------- 1 file changed, 309 insertions(+), 118 deletions(-) --- base-commit: b0e9267d4ccce9be9217337f4bc364ca24cf7f73 change-id: 20230804-tc358768-1b6949ef2e3d Best regards,