From patchwork Wed May 4 11:40:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12837718 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 6E4CFC433F5 for ; Wed, 4 May 2022 11:42:04 +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=WlwhwZPvQc1EnSQcPEj8IZjNQ/5Sf7mCX2sHzbxUOl4=; b=OP+ZdPfOMW3BIy vfU7jmAE69SeyMbwKYd3fLj/QwNSqfVhJedCUjd2kYgLVvUA5EzTTjwe9l3NlXH0rwTfAiF3RE96i Lt+09FDxy9OswjavTY486j3lnPXiwf1u25AQCakcd84qALrmGgSVO3qnGKIc+m6PDmrbbRvFgSW4R hIxR5QMMrbbhkvnDbr6KAS9Y/i/U5FAjGVQWIIf7ojWRD6gTq9IX9EH8lEI5VcgQfWkc0HpPbOLIC ktn5Vv3PqAn8Ze48Me+UNkt4mgJV69GhR4IStaQARcALRBO16AMY32yC5E3+y1OfjmUmWjIqHSMws HRqpl7tJ7jZpk6Ea5DXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmDN9-00AUrx-Sb; Wed, 04 May 2022 11:40:48 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmDN6-00AUpy-9v for linux-arm-kernel@lists.infradead.org; Wed, 04 May 2022 11:40:45 +0000 Received: by mail-pj1-x1036.google.com with SMTP id z5-20020a17090a468500b001d2bc2743c4so1039791pjf.0 for ; Wed, 04 May 2022 04:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+ehaGQfcCZN53TBoTLw2+Ao4eNOjwyEob9y3SvApsCQ=; b=Xufl5D8FVB5aTshkuBjnf2aLcau/fM4m0Oaiqec6L81OrRBsMCODiUuIpJ7Wfut+Ar +Y+gmMTesfjms7Daw7HQf2cqZYq3BPUgvPNYfxe8TkYHGVju2TrrBy9wfmIrKiA8kkNU ibO4468CtMpMMz/0GHLS6zxLuCfe6++Fa09QI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+ehaGQfcCZN53TBoTLw2+Ao4eNOjwyEob9y3SvApsCQ=; b=3lHgQOICVcLRejmEOThGMXN4AYGW7eM/cjFa7i0/UD9nBYSNLEun8zRe7jQ9Cb9D8k pMT1CR2LZ4+DxyfNyrzlQ4o44ON2GZfWNbH5oiZLE0ujSuOo3lXrWAFC2JYk8HHEYSoY 2c+IQqNMlU56dYmEvdPEsViYde4Nnadba5gefTgtJz7nAFBZuWFPffHLSUMOXWmM9hot OQYx6kHb2Dqlu+2/XRquLyAWu/QgbJ4V3Z7KRd/ZXn8zk9fesctxnPsfYxeg7YLiAani qVg+4eYfUqvtJQwtJTrhbSeaDMut1BMCjk2lhf+e4Y01ewFgw+pIfb26pe8q02CYPwft qxaA== X-Gm-Message-State: AOAM531V8kJT56P+zJ6oZsFvRZJCitlAzD1aSzd9yZvDMuz6aHID6hZo YSbmYGvi3b+k0CdDsRqoE2uS2A== X-Google-Smtp-Source: ABdhPJz/PBatSLvInFvPkn66hxIPrXqLpUU9MJRpqA06WkboxrvASyB60iDc9X4HhiYc4BEoDGXKNg== X-Received: by 2002:a17:90b:4a05:b0:1dc:1a2c:8c69 with SMTP id kk5-20020a17090b4a0500b001dc1a2c8c69mr9685274pjb.9.1651664440868; Wed, 04 May 2022 04:40:40 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id k15-20020aa790cf000000b0050dc7628174sm8027498pfk.78.2022.05.04.04.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 04:40:40 -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 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 v2 00/12] drm: bridge: Add Samsung MIPI DSIM bridge Date: Wed, 4 May 2022 17:10:09 +0530 Message-Id: <20220504114021.33265-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-20220504_044044_397196_83CE01B0 X-CRM114-Status: GOOD ( 11.94 ) 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 v1 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. Patch 0000: Samsung DSIM bridge Patch 0001: Common lookup code for OF-graph or child Patch 0002: platform init flag via driver_data Patch 0003/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] [2] https://github.com/openedev/kernel/tree/imx8mm-dsi-v2 [1] https://patchwork.kernel.org/project/dri-devel/cover/20220408162108.184583-1-jagan@amarulasolutions.com/ Any inputs? Jagan. Jagan Teki (12): 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: Add DSI init in bridge pre_enable() drm: bridge: samsung-dsim: Fix PLL_P (PMS_P) offset drm: bridge: samsung-dsim: Add module init, exit 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 .../bindings/display/exynos/exynos_dsim.txt | 1 + MAINTAINERS | 8 + drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1847 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1724 +-------------- include/drm/bridge/samsung-dsim.h | 99 + 8 files changed, 2032 insertions(+), 1661 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h