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: 2318 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AC71340F47 for ; Mon, 29 Aug 2022 20:40:58 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id 14-20020a056a00072e00b0053689e4d0e5sf3396418pfm.5 for ; Mon, 29 Aug 2022 11:40:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661798457; cv=pass; d=google.com; s=arc-20160816; b=e2aHfX9NaSuVQrRwGn8gOlgs+TfIdMsNH+cm4lmU2WGlPbV1uAMpbq9zjcPdgAG4/Q vBFtB00eZZ8jYDku7my35xzPbD7bRFu/qqEq5G9xBjQVEViB5owx1bIxA1byQRW+xcor gCXHdNzCsPqX07O40ecB8mWevtCNkB2PSdG0RqTvUoeEDx2EA65nApDabk5QZZAOzuE4 9eUcifFuMeY3j9TWQkow2SLnYxwakt+hWrTeiFsyHq0wwdLV65P1bd05hMzgCX6XBb7f djz6+EhKRCu6GelbArHC0EVv8oianxrK0Qzze9tBijXoojEXGintWCjMCsiDBqPUR6KG x0pw== 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=BcgNLkvVxS37M1ysCtK/gmBprcoJSqddUKlicwr7X1Y=; b=ST8VgzJPNpJ0AYzrs2RFddUg784+2/P7MXQrL/WljFs1VKaMV3QlqrSeu4wAn9qFU0 Q4z01ePZDT3no7154fHx4rHz0gsBbOMqK3/8BWOIssptpgDLiIC/XNgC71Q0Ew5UTah7 i6e6Xff+K54MmETxiIfGllb/ZBILeBT1+RfSuFGYh1UCDvBleVCzasC6uNLOUzmQOsKN EWcYF8gXtkvLItW9wM1Saaz8tn+e/PnKKVp8ZASo3BEiPjcs+Yp1WVOW3dH6cdn5VXPb HqbYVChSKKLgAXQFXZEHtVYE9oFbOF34qJ6lQJAjTaaPFJEzaT6OYrZTKY3rVqOZWYey /lJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZdTmSG69; 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=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc; bh=BcgNLkvVxS37M1ysCtK/gmBprcoJSqddUKlicwr7X1Y=; b=U65sW9I+OVbawU6nmJUD7+yo3Hxo86ICqansdQCeMqiUDRqwhnPYz+NgjgV31d1TqE 6Tpb4bBwWL7Qou+NVBTNLSMOJF+7XBpfrjEVx+mo/0ct9Eh+//YWralqYbWdMjsxD58p ZQDgAReeB2hGtlZXsBcGDJkQXg9w0tradRt3s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=BcgNLkvVxS37M1ysCtK/gmBprcoJSqddUKlicwr7X1Y=; b=Iszf3X8laSWQzX+cq/4cznd9NcbEQAQLxz1U4FzSqWR7186ALsJ2ozYAStLjUf0Mzt XHnrP2cdcACIc12gxQClDTkGAU08DVQpWf+NpJpnoTsqVDgmKLITDST091vJw6hjk+qw j1QODIWV6IDlSi53y4CNgzF71+W0cbHUo5NlgooUBmw7nu+KRtxNFgy94N55Rz1YTK7s HdMXl08SI14BgfFhILKa+Bwk7p/8jb9F1+VX4zRNvFD18hiQBsR1xtSHDv75/ml8XzWY XczFKt6hMaTub++QDexjYoDxoEyLThQ143GienbwBW5By9b1W+3zUf+luhjHit+gU62D ihzw== X-Gm-Message-State: ACgBeo2MFq1i1+SaJVP8rb4pjm8sihPVBCDZrU/Z90HlDkJY9PtM8KGL COkKaPTnasZRsiH14c8xohgppLwg X-Google-Smtp-Source: AA6agR46OgXMRLso0wfvp8/pMBgkTg6hL1ru20sx0Fq8tG+rAQ93LofqOAzozicmIqtuJxSj0nBUOQ== X-Received: by 2002:a17:90a:b781:b0:1fb:2f6b:12ed with SMTP id m1-20020a17090ab78100b001fb2f6b12edmr19280243pjr.204.1661798457219; Mon, 29 Aug 2022 11:40:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:1c3:b0:171:29d0:e7e0 with SMTP id e3-20020a17090301c300b0017129d0e7e0ls6150925plh.3.-pod-prod-gmail; Mon, 29 Aug 2022 11:40:56 -0700 (PDT) X-Received: by 2002:a17:902:a5cc:b0:170:d1cf:ac83 with SMTP id t12-20020a170902a5cc00b00170d1cfac83mr17369833plq.14.1661798456326; Mon, 29 Aug 2022 11:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661798456; cv=none; d=google.com; s=arc-20160816; b=EkJ4NarivWnyOmPK2ru1nz3PT3e8jcsgwO66yP7bcMK9fJZneMeVxwgtunMf7LmLZ9 hOA7sQq04mif+bidXbWaBUWZp4qBpKYMUh4sA7wc/RAwC4jiffbOeaHf1bO6EMr2wHO8 33aJjXZTl0OrehXU1zjg4sm/Xjeh3AssA5V5a1mdPE13NXq7RkesnVqLnhuJraQy1K9C 1TrHkxouJq+Ln5vrHRUV2/s2u5xswXfYI/U/lh8rBzm1UBgs+Dzh0JU4YTPk1ICdtNPZ eRqFREN+MsEzT/yr9xFsmXVDmBU+IBVjvgojzoPKv2A7UM93dFHa7uYyRO0jlNRezAyF QjAg== 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=r2ueqdJVQe5nRhoyvelkc5U678dyLyAoNcF7oP8d5SM=; b=uwqoRKLs/fLNYZE46zUv4KMziX60nCgeTrDHJ2kry3icLg/G3xk+VXZ7gx6a2SRwLl LPaQiRFm+T95kWvaaWlBkhUQNW4jvRevGZIgYNs084NmEZR3WMsOAM09ZcpWdCoogPns Tdkq9U2LH4Et7lMTy5FjuNlMkjuPdfIpO5eoAKKXHwANO1lOPPtCrVW6MOU97jJDIIpx +73gcIud1m1FeXj/D6AiQIIolj8hr25UlqjPp9gZHtvUTgB0cwbk8QX+Iu9PwdrxxEHy qpu7ZbrNpuvHO0S+p37nNJEwT929pAsgTk9AaUE1svi6bgYE5jzTPngDtcfrq2E3JDyK 65Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZdTmSG69; 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 h14-20020a170902ac8e00b00174b601c871sor1154531plr.146.2022.08.29.11.40.56 for (Google Transport Security); Mon, 29 Aug 2022 11:40:56 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZdTmSG69; 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 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