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: 12958341 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 0E025C0502E for ; Mon, 29 Aug 2022 18:42:21 +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=4/tEm5DGm6hVarr/zgwpUqgpsy1ThIc6nA8MYOlRWOA=; b=0ERVAyX7fXms+W s9UUWwbsWHgJuPHqV6yd2LfeGoENRGKHLcwG4B+zDMwDrFfTZjHg+GL78oZLeuDENHp5xguX6o0WT NB+rAKM6EuuHmlr/Lfe+AL2qf30+/2+0ELihe6nQNemqDe3CbLXhOhslALFNgWlj2Foaf4WceZqXl on4XzME43KlCu0cx5eqQmjYYKs3OSDCH14QyhMT0A+/FMjqP94Kj29b2xc1Jfz8J0QmDSZURo4Fwy Aw5gbqZrukrhxEO93rFw27pMeh7SWDdvXeEfBRQJvAryn6EingywSG8EpBXTRQyZ+WMgR2kUpmly4 qtWN/di9Dp36LoKO2gTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSjh1-00CGSm-Be; Mon, 29 Aug 2022 18:41:03 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSjgx-00CGRg-Ss for linux-arm-kernel@lists.infradead.org; Mon, 29 Aug 2022 18:41:01 +0000 Received: by mail-pj1-x1032.google.com with SMTP id p8-20020a17090ad30800b001fdfc8c7567so499162pju.1 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=arjGYnvwJTNnatjF2VzQDyIySe2UtxHrajh9r7n1l63oBUyult6O0hVLtSzPprCFas 6s04FuhdnpjwFWzCgpqXK5IGNwSTotyQ5XkxKzdj0HZ/6QaxFC+T+yUGWKWgI5LzKFyO 2lRFgmQ0wM/OETpyaAjzsS+II3meIsaFUkWjvlIba7lV17YOmo2KcedLRRJaKR8S/fFn mmwq9JbrVqbUBCAArqcw0sNFcBJQt6GvJCGoOqYSblCg8QNyZ5SyFr4v16py01Fza+52 5lBR4G2UpDF+9ugkMisko9menvcrg0KE2fKyf7rZjEQIT6nulMmP/RJgFB9esS5qqc2n O+Jw== X-Gm-Message-State: ACgBeo1FNdgkDGUyrPYqAzoTLU6rgpyu7GjLVCrG+GMh3bF0nnDisxhy qW4IHIf9yi2eu57khrnVkeGvoQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220829_114059_954861_7B1B478A X-CRM114-Status: GOOD ( 12.77 ) 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 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