From patchwork Mon Aug 29 18:40:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 601067 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60A02ECAAD5 for ; Mon, 29 Aug 2022 18:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbiH2Sk6 (ORCPT ); Mon, 29 Aug 2022 14:40:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiH2Sk5 (ORCPT ); Mon, 29 Aug 2022 14:40:57 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821BC7F0B4 for ; Mon, 29 Aug 2022 11:40:56 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id u9-20020a17090a1f0900b001fde6477464so2438853pja.4 for ; Mon, 29 Aug 2022 11:40:56 -0700 (PDT) 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; bh=r2ueqdJVQe5nRhoyvelkc5U678dyLyAoNcF7oP8d5SM=; b=ZdTmSG69OZys0Cigel6eI0coybhsjfDyTLxzlYzHdheI4Q5YBI8P43RZqdF2Crl7QD SADucQ/eu5ynbwYh6j83A7hdeNLT+9nxwQzy2uD0Dw+PUV/nPtn3y3AkoZP38sNmo/8l Tp5tI+wLi2nvzpwaXojifwjPjt3N59BeT2j+Q= 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; bh=r2ueqdJVQe5nRhoyvelkc5U678dyLyAoNcF7oP8d5SM=; b=NZL9oMUhbK2115Piqfqo5+zMYlmiT2I34AZkhvsZ6SaGeTiiqAXiA4rXK8I0fuLyNT JR7wYwtymSDpSt1CL5j9qjgNkvlc23plzKE6mEzC/r+MFYPQCfXOIFHr6lvLi4DwCUA+ 2dKcL82bWI5IPmBN16q07j5S0fh9tmLDGMlC0xvHLViFkcTSg/thvirQa1sscpQ4qARy 6XrOXf+K3W5HOOrY6mPltJ2X3YC5/1GCcBDD8+iIMAJf5U79ZTQ1sS8QhOig4lIh7rvv KADZ3pPjCexrmcFPJ3H3fHhRtQxQigU/jFCnKuebJKqircZzSrpJEme3SUOcAX/Aq1yi nTCA== X-Gm-Message-State: ACgBeo1HImYwW59Q8X4ciu9eXyu2Uasc1amiy0LQrIzn5ArUgSit9sra fguZVcW/wnaX4lvw725rOx/QJA== X-Google-Smtp-Source: AA6agR4Rnu50nteKvKRqn1phIwvi7qbywtOxkzOElGFT/DGlbGjPsDmXkWCvGu5M6N1habN6KR8DxQ== X-Received: by 2002:a17:902:74c9:b0:174:e7dc:1dfb with SMTP id f9-20020a17090274c900b00174e7dc1dfbmr3759059plt.1.1661798455977; Mon, 29 Aug 2022 11:40:55 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:43f7:1644:6259:830d]) by smtp.gmail.com with ESMTPSA id k13-20020aa7998d000000b005385e2e86eesm1619042pfh.18.2022.08.29.11.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 11:40:55 -0700 (PDT) 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 v4 00/12] drm: bridge: Add Samsung MIPI DSIM bridge Date: Tue, 30 Aug 2022 00:10:19 +0530 Message-Id: <20220829184031.1863663-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This series supports common bridge support for Samsung MIPI DSIM which is used in Exynos and i.MX8MM SoC's. Previous v2 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. 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: Restore proper bridge chain in exynos_dsi Patch 0002: Samsung DSIM bridge Patch 0003: Common lookup code for OF-graph or child Patch 0004: plat_data quirk flag via driver_data Patch 0005/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] and boot log [3]. [3] https://gist.github.com/openedev/22b2d63b30ade0ba55ab414a2f47aaf0 [2] https://github.com/openedev/kernel/tree/imx8mm-dsi-v4 [1] https://patchwork.kernel.org/project/dri-devel/cover/20220720155210.365977-1-jagan@amarulasolutions.com/ Any inputs? Jagan. Jagan Teki (11): drm: bridge: Add Samsung DSIM bridge driver drm: bridge: samsung-dsim: Lookup OF-graph or Child node devices drm: bridge: samsung-dsim: Handle platform init via driver_data drm: bridge: samsung-dsim: Mark PHY as optional drm: bridge: samsung-dsim: Handle proper DSI host initialization drm: bridge: samsung-dsim: Fix PLL_P (PMS_P) offset drm: bridge: samsung-dsim: Add atomic_check 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.MX8MM support drm: bridge: samsung-dsim: Add i.MX8MM support Marek Szyprowski (1): drm: exynos: dsi: Restore proper bridge chain order .../bindings/display/exynos/exynos_dsim.txt | 1 + MAINTAINERS | 9 + drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1833 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 - drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 - drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1717 +-------------- include/drm/bridge/samsung-dsim.h | 107 + 10 files changed, 2027 insertions(+), 1658 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h