From patchwork Fri Sep 16 18:17:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12978755 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 87C1FECAAA1 for ; Fri, 16 Sep 2022 18:19:44 +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=iKIpjsg10dLb0RzzySnp+J9b19delSHNk5RrJU2/zCE=; b=4VLw3E0Df6+1uF Sxh0QPadvS26gcERP/E0wA5spQRhRAjD0NiASxa9cmK+/+eg6WoewAJ7HfhMaFEFC5a1ovdMW5CVa AzHGWqy2XjLMop6k9v3zHeamF8BpT5X6OIcxuGNmUHzi6/Q/ojo9qEA++TWmiJKnXBbhOkY/zaEiO Ye8u5eah8h3NYaR+D3byd2XMHpQWGqAKl/im0ClzibfhLvYjVPGuYrms1REPJyEiob8T4QJOHD0wW Ju5kpESrSABWxrkd0G49/hIyo17rpnYa3u4j1bGqwqe0qObFgX45tvpAo6gGuRdHtONwko4wO9fnl 8Q4B3vlaJ9adrGSwJ1zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZFuy-00Fl7A-0b; Fri, 16 Sep 2022 18:18:24 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZFuu-00Fl5Z-Dj for linux-arm-kernel@lists.infradead.org; Fri, 16 Sep 2022 18:18:22 +0000 Received: by mail-pl1-x634.google.com with SMTP id s18so16222858plr.4 for ; Fri, 16 Sep 2022 11:18:18 -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:subject:date; bh=k78FpsGBN/9CeIU1dKf9WRueN2gjoM3jLsVKiTwXYEc=; b=LnfjjIyIPh+3f8ddwKxO+TR2Frx5uZqBCqP6sTW0OjI48HHSR3xSGc9FIKc57pg/6A XFksWfMYOCDVC37enuOm19iSbNL24GV3hQocdtl79w6jnWBK+UKsIhNsZup6Omr4mLu2 oSmfTeGnC9mdBQ8f9CiGiGI6LX7vFRx1AG8Hg= 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; bh=k78FpsGBN/9CeIU1dKf9WRueN2gjoM3jLsVKiTwXYEc=; b=WxiZEy3C7eAvDX1gMaFBDh4MzDP5qek+25RqMCzErQTld3S5plDuOkF+nHrvvxnFDe CJDWkzyZuh2JIl75jIWRTG+hZnyFv0G/wqPR4XB5f3gZtJPhLXddTMLMJ/0pMeZDefgC xxaF8Y0UhKYXQK3iTEP22jn8Vc0xsgM2OgOfBlj9jv68YaJe912xkSAc6ZvrMtiu0oWS NpWX0jY3iMwAM9/Q6u6xYhYaBrWXu2sXmIWbsf0gxzgnDhvs8f21BnXE0NY6ffWjRRfY aI4er7k6Pbj/Nw/09gzwUggC75Zu5C5ZFBNFzi+7V0FwkZ6Dmg/Z/O1Y2BCHlKrzup+l 92fw== X-Gm-Message-State: ACrzQf2sfJfZeDRKyvSuX0xYbaGnle3hFuC3QesdeOheLuGz0GJkX9+y nbBHe4zy9fFYIYLMC0+8w9op3w== X-Google-Smtp-Source: AMsMyM6dVp0Kw2qBJOCCRGDf8xnWNPEduQGlVM8rdcg6mvP5PTRHLSW6yohoYvcNatfqAUUJbjf2ug== X-Received: by 2002:a17:90b:4a0b:b0:202:8568:4163 with SMTP id kk11-20020a17090b4a0b00b0020285684163mr17830711pjb.217.1663352298404; Fri, 16 Sep 2022 11:18:18 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:ae5d:6ee4:5c2f:6733]) by smtp.gmail.com with ESMTPSA id d14-20020a17090a6a4e00b002007b60e288sm1770000pjm.23.2022.09.16.11.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 11:18:17 -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 v5 00/11] drm: bridge: Add Samsung MIPI DSIM bridge Date: Fri, 16 Sep 2022 23:47:20 +0530 Message-Id: <20220916181731.89764-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-20220916_111820_507213_8585AC5C X-CRM114-Status: GOOD ( 11.85 ) 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. Previous v4 can be available here [1], repo on linux-next [2] and Engicam i.Core MX8M Mini SoM boot log [3]. The final bridge supports both the Exynos and i.MX8MM DSI devices. Changes for v3: * 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: Restore proper bridge chain in exynos_dsi Patch 0002: Samsung DSIM bridge Patch 0003: PHY optional Patch 0004: OF-graph or Child node lookup Patch 0005: DSI host initialization Patch 0006: atomic check Patch 0007: PMS_P offset via plat data Patch 0008: atomic_get_input_bus_fmts Patch 0009: input_bus_flags Patch 0010: document fsl,imx8mm-mipi-dsim Patch 0011: add i.MX8MM DSIM support [3] https://gist.github.com/openedev/22b2d63b30ade0ba55ab414a2f47aaf0 [2] https://github.com/openedev/kernel/tree/imx8mm-dsi-v5 [1] https://patchwork.kernel.org/project/dri-devel/cover/20220829184031.1863663-1-jagan@amarulasolutions.com/ Any inputs? Jagan. Jagan Teki (10): drm: bridge: Add Samsung DSIM bridge driver 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.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 | 1840 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1766 +--------------- include/drm/bridge/samsung-dsim.h | 115 ++ 8 files changed, 2092 insertions(+), 1653 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h