From patchwork Fri Apr 8 16:20:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1901 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CE25D3F066 for ; Fri, 8 Apr 2022 18:22:10 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id 78-20020a630551000000b0039958c05e70sf5049926pgf.8 for ; Fri, 08 Apr 2022 09:22:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649434929; cv=pass; d=google.com; s=arc-20160816; b=LLawiB6LRWo6ORif7i8mOpVNlWw0h80vVNPLwdKPKcMwod9CksRJiSIxOZEj5RBJt6 S00BOwvjZAfwnvpXj+SqtjsmfM5h5cnxyR2B33npfaCa3k5uTeNt+P9QPju1We1ZbCAg Qp55PnwG/uuUwIIWYCHqz8GGUkco/iNNtF4j3jY8/7jFTcCIJTnfeBnGs/vwRsevD7Rm rsBW/UI3Vm8EztLjGt5PvH9T5P3Xs1iKBI9T2Dg0y+DQ/n6e0sc9971hmYJuVv+jir3r pWjG//GpqLWtlnINwwJVx2IKpNzaCtiEDovhb8L9H2eKXZHRN9gzK6/6oIVopNu+oEgU RoVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=276GlUdiSE2d8er7d2mrmqPfXMLQygMayOmiZF7S0Ts=; b=zi2LAc6l16uJ23CqwoY59n36ihct3kTV7chx9H3LZUTKGaWITATwIlCaeEeIysKfmG deK2peLD3+iAkSm5meSJ8GHSrfxYyYz1ddB4JKKSsBrb/01SkdLVyKXqrsweWO3tFJO0 3HOq3bj5HDDLYWvcahxZzbBqrguIr0jkm8OKdd5QZ3ZInvPXcA54uLJjTyHMmlz1nRRU 8jKwa2yiSzMnXxVyAocsl2FhUxGHPq2ZLoIddulM9oNAEeIlWJ3IdNbrJeTVT1d1kGI+ Um7fqSbDRUU4/khT6bQa1rtUEOQZTj4jsXFbUCXVmRmkjJStbuv4+n/pyAOxyoXV/BWY B12w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkXFsTLZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=276GlUdiSE2d8er7d2mrmqPfXMLQygMayOmiZF7S0Ts=; b=Z0ftuO9RL7hqqPDKbXxo5p0FGEOfLn2BH5Q3O9miaPFAncjs4NJAPxODSFNTwufBEr fjoRDW1W9oPHBKatiDXSlyYu4uLd3jrmLTNCt1d9CBVtJ7yrvl4ziLnRtZGt1kh4VTUF C9v8wdpRM0eDHC313HoFoc3LPGKMH4LizYTa0= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=276GlUdiSE2d8er7d2mrmqPfXMLQygMayOmiZF7S0Ts=; b=qJlnIVJGXY9U6uA7THO0PxWKTyo1rqGM8akBvxXyuD3iLk/OC6VYvkEoQXfeoTjCxe RNW9+2g2wXdW9lbiWu5DZlpZDq1dX5lqq5qpo8oD6ech4JdiWbxdrJVkVPfN+ixnsMIO GzvYAulVIVHu9kGDOy35AcckWuGKbjB8DUTt3msZQZTdxg7BNDtLPrwmKO3mZZ8PEeUv ufmGz1gSRhUfvtRIW9LBmj96J69DUOPjgU52J3Tp3Qel+olUo3988tql0UkKQV6LSckM Lcr4LB8edgEf21SXUuOQ7/zpfmEP6R+5mdWV1YDwrHiGSt2LzLVwd5wGdldazOoRvYS+ IKig== X-Gm-Message-State: AOAM531etDuHLTAjupozrnr17pHwd1WvRLOyPaKmQPwqCOJy7WPVcfBn +DkatR5Ql4SxqfSlpgMsuqtomkco X-Google-Smtp-Source: ABdhPJxDv9By8MydOVU4LaMhOoLPvAmbd+Ez3SfLei0gVOuReU42CuKw2AteIcB54wCe9VI3pPXRCA== X-Received: by 2002:a17:902:e74d:b0:156:9d3c:4271 with SMTP id p13-20020a170902e74d00b001569d3c4271mr19916150plf.79.1649434929465; Fri, 08 Apr 2022 09:22:09 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:22c1:b0:155:efc1:1565 with SMTP id y1-20020a17090322c100b00155efc11565ls2222347plg.3.gmail; Fri, 08 Apr 2022 09:22:08 -0700 (PDT) X-Received: by 2002:a17:90a:e552:b0:1ca:2d70:79ef with SMTP id ei18-20020a17090ae55200b001ca2d7079efmr22424716pjb.175.1649434928673; Fri, 08 Apr 2022 09:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649434928; cv=none; d=google.com; s=arc-20160816; b=FbUpBbLgmNQZel+K9u8NyFrk9YHu200IzKynStoANBjwRRXwpKrIHGt/HWXCKIuaIl xfYuXygbMAdasPdCI+7eFvfBV+MjCoehvty/iMk+3RqzdBiUrk6qFa6O8bRHv5wRL6VU zgiy+H/Wb60A2N6BbH8XYj1YTR3fNOtB98gEyvpsuT0y1fNRFfqgQj9loMBCjVR/UfNA DV4pLBjrRI80dsktY5XiXCu/5QuiwbrqtG29PJVtdaVQu+3wHBzEcYRuNLEpR8w38BLu 3Kp2woIbiMQKJfl8Gzdz4Z6OXTDv1wtRMrlgWsslD8C+qyOFNR1Blq17hhDTyriiQMNH /4Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=A965mAsyYJEY60oPUzTySf4MNDp2Kxb99wjFgK5nVMU=; b=BkQMVffzquraytT4a/m8zTfrQoXdMWnGx0jNUopUPm+qQ6jShmIKnjQEbuupaEBV97 QBC5FqF1qtG4tlqpZfLbUBaJM4IMuFmUukHPa0xUkEedJLT+Llw9ZFDSgCPkGy1RzKgS BI4123+IUCbAUPsJNx/x+hGQF7rkoJLQJHsTnCUB9aHGZdtJj/dvn+OdAEslWm6/8Wmb xBTFedr7VrErVZ1lG1WXGXWfSZFiR4kkj1CgcfeQKgAqCu6QHKCz9G9ehznSf7uXvNhT gdUTiGT4mEiuyMtT97U8kMTRzHWB5JQCqAoDB1rh9lehj2ZtZou4aDr90aGMBOb/v+x+ 2/Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkXFsTLZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id h12-20020a17090a3d0c00b001c685a2c110sor741813pjc.40.2022.04.08.09.22.08 for (Google Transport Security); Fri, 08 Apr 2022 09:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:cf91:b0:1ca:a055:b639 with SMTP id i17-20020a17090acf9100b001caa055b639mr22667437pju.204.1649434928269; Fri, 08 Apr 2022 09:22:08 -0700 (PDT) Received: from j-ThinkPad-E14-Gen-2.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id n18-20020a056a0007d200b004fdac35672fsm24929863pfu.68.2022.04.08.09.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 09:22:07 -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 , Rob Herring Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH 00/11] drm: bridge: Add Samsung MIPI DSIM bridge Date: Fri, 8 Apr 2022 21:50:57 +0530 Message-Id: <20220408162108.184583-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkXFsTLZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This series supports common bridge support for Samsung MIPI DSIM which is used in Exynos and i.MX8MM SoC's. Previous RFC 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: platform init flag via driver_data Patch 0002/9: bridge fixes, atomic API's Patch 0010: document fsl,imx8mm-mipi-dsim Patch 0011: 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-v1 [1] https://lore.kernel.org/linux-arm-kernel/YP2j9k5SrZ2%2Fo2%2F5@ravnborg.org/T/ Any inputs? Jagan. Jagan Teki (11): drm: bridge: Add Samsung DSIM bridge driver 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 | 12 + drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1803 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1704 +--------------- include/drm/bridge/samsung-dsim.h | 97 + 8 files changed, 1982 insertions(+), 1649 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h Tested-by: Tim Harvey #imx8mm-venice-gw73xx with DFR0506