From patchwork Thu Nov 10 18:38:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13039136 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 12B23C433FE for ; Thu, 10 Nov 2022 18:41: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:Date:Subject:Cc :To:From: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=aWvtD27EmmWT82EXhtrfRgtb6fRABxtQUJ7OlMXl+CM=; b=svykT97Dc+mLu2 fK3zYk9KX8+4MxWcZXdIUd25atDNUR/EVPQGAUdgy6b5NJzgRfPcOhi83L6wFsiFiPc7w5hdLOmPq aP7VgpIRJIGdXwOBDIdW08HwA7hrKqhG/f/VWGRMA/WVtH2D7n7Aa6BFFQKdL+KkFV09LGJHYAwV7 9QS2iR+fPQittkACRL9JW0lRea8iSk07wrwA+lnl2w7H82n38IJQGbFHUOdDEXOm4qhScKqHL2WqV Je2d1uDewG9CPm6AiLxDe2fAlvQGq0hhCQuLnK9YbVTvlv2Ofs1xiFadEqWfhHfZsvXPOoZ/jyT// NCuNngO7IQ8hXdzlYm/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otCT7-008CIC-QW; Thu, 10 Nov 2022 18:40:05 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otCT3-008CEn-JA for linux-arm-kernel@lists.infradead.org; Thu, 10 Nov 2022 18:40:03 +0000 Received: by mail-pl1-x62a.google.com with SMTP id v17so2215537plo.1 for ; Thu, 10 Nov 2022 10:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/ENiegKatEa49yjNORy5MxklDcwyC2/WB0nXjwNhQHE=; b=DRjRvbLqk7Md9E/fwhCV+NaMx8jh6SwebSkyHmHMt5RrLatuew7tLx1Mfzkb/N2QWf fG5v3UyXUVUjEbS6GyfoWhLZV1gnUw8r/w4NEvejqi9u+BaZVTkg3G2pS3i+FFLOj89E rMGoURtTmdxMgp+CmaK2wzUU6bUgsjhFD/AVw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/ENiegKatEa49yjNORy5MxklDcwyC2/WB0nXjwNhQHE=; b=MZ8m0/chrJvRWrEPRzbzUrDPaoeJGDMUDkLZff45RJXOrZtN2x1wzhnAbG6U//CU/2 8g1wNCEHl0+VTmAgkGb/SQkkN3ZVF8pGkCLSjyPbgWuA5Dn//m/3e+kn3ol5QShjnDoI GxBq2M5aOrR96eguLJUbHX9LdlD7hUceTqYNtav3vlNh0GItC8AomJ24qbHwbjzL9kqD /zNj5y3COElUy8rUa5sk9KBakfQvCvjFdBAYbHZ/VqAQ94/6iSHjXXRYoOEm+Up3Z/0k vwBxxx81BkCl3blUYMPgnz6Hv9Cr+sgvijGnJG7VJJReElYQBhdSNj9TX5Bm8iQeNvwP Z6dA== X-Gm-Message-State: ACrzQf19canHCWZzrIvqb+LlEB5RtikPSIpLqWTPJFbDHwiHYllfpoWa aoQW5tYWYE3tJki2+sHx2p7xrQ== X-Google-Smtp-Source: AMsMyM6EoXwnrW0dDyRM3KLPMRLYkWlVwz2Zx7d0v+ZvtJa0rm5sA5GqlBQFKLxIRRnmcOmAAmt05w== X-Received: by 2002:a17:902:c643:b0:186:9efc:67a1 with SMTP id s3-20020a170902c64300b001869efc67a1mr65112158pls.30.1668105599256; Thu, 10 Nov 2022 10:39:59 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:b5a4:486a:f07:f67e]) by smtp.gmail.com with ESMTPSA id c2-20020a170903234200b001869efb722csm11635627plh.215.2022.11.10.10.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 10:39:58 -0800 (PST) From: Jagan Teki To: 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 , Marek Vasut Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH v8 00/14] drm: bridge: Add Samsung MIPI DSIM bridge Date: Fri, 11 Nov 2022 00:08:39 +0530 Message-Id: <20221110183853.3678209-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221110_104001_685655_034D80F0 X-CRM114-Status: GOOD ( 12.93 ) 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 This series supports common bridge support for Samsung MIPI DSIM which is used in Exynos and i.MX8MM SoC's. The final bridge supports both the Exynos and i.MX8M Mini/Nano/Plus. Changes for v8: * fixed comment lines * fixed commit messages * fixed video mode bits * collect Marek Ack * fixed video mode bit names * update input formats logic * added imx8mplus support Changes for v7: * fix the drm bridge attach chain for exynos drm dsi driver * fix the hw_type checking logic Changes for v6: * handle previous bridge for exynos dsi while attaching bridge Changes for v5: * bridge changes to support multi-arch * updated and clear commit messages * add hw_type via plat data * removed unneeded quirk * rebased on linux-next Changes for v4: * include Inki Dae in MAINTAINERS * remove dsi_driver probe in exynos_drm_drv to support multi-arch build * update init handling to ensure host init done on first cmd transfer Changes for v3: * fix the mult-arch build * fix dsi host init * updated commit messages Changes for v2: * fix bridge handling * fix dsi host init * correct the commit messages Patch 0001: Fix MIPI_DSI*_NO_* mode bits Patch 0002: Properly name HSA/HBP/HFP/HSE bits Patch 0003: Samsung DSIM bridge Patch 0004: PHY optional Patch 0005: OF-graph or Child node lookup Patch 0006: DSI host initialization Patch 0007: atomic check Patch 0008: PMS_P offset via plat data Patch 0009: atomic_get_input_bus_fmts Patch 0010: input_bus_flags Patch 0011: document fsl,imx8mm-mipi-dsim Patch 0012: add i.MX8M Mini/Nano DSIM support Patch 0013: document fsl,imx8mp-mipi-dsim Patch 0014: add i.MX8M Plus DSIM support Tested in Engicam i.Core MX8M Mini SoM. Repo: https://gitlab.com/openedev/kernel/-/commits/imx8mm-dsi-v8 Any inputs? Jagan. Jagan Teki (13): drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags drm: exynos: dsi: Properly name HSA/HBP/HFP/HSE bits drm: bridge: Generalize Exynos-DSI driver into a Samsung DSIM bridge drm: bridge: samsung-dsim: Lookup OF-graph or Child node devices drm: bridge: samsung-dsim: Mark PHY as optional drm: bridge: samsung-dsim: Handle proper DSI host initialization drm: bridge: samsung-dsim: Add atomic_check drm: bridge: samsung-dsim: Add platform PLL_P (PMS_P) offset drm: bridge: samsung-dsim: Add atomic_get_input_bus_fmts drm: bridge: samsung-dsim: Add input_bus_flags dt-bindings: display: exynos: dsim: Add NXP i.MX8M Mini/Nano support drm: bridge: samsung-dsim: Add i.MX8M Mini/Nano support dt-bindings: display: exynos: dsim: Add NXP i.MX8M Plus support Marek Vasut (1): drm: bridge: samsung-dsim: Add i.MX8M Plus support .../bindings/display/exynos/exynos_dsim.txt | 2 + MAINTAINERS | 9 + drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1908 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1766 +-------------- include/drm/bridge/samsung-dsim.h | 116 + 8 files changed, 2162 insertions(+), 1653 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h Tested-by: Frieder Schrempf # Kontron DL