From patchwork Wed Oct 5 15:12:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12999349 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 0AABBC433FE for ; Wed, 5 Oct 2022 15:14:34 +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=WB3GrNqPoodPcs5cJQkKINgWeyaz9FE4LDeCWMg9JcY=; b=xlO22vwvfDegxc BBv+F8LWWDxzggqRumaZ++Va1JFwkVfo6ez6tHko9HRubZDgjnSABTvPpsPlEmG+cyAL2da7iULB3 hhZcjtDtTDy01UnHTumOq64Ly2oZk69skVQzzC4YfFA5K9G0qK7WCK5Hg5FCzNt5v811vdcPBAofy 1dex3lwE7ao7jKn5DypmIwFolHb5ZFh8kT9aLsOo6k0Uq7fUpbE0FQLmv0xH9Fb+bl/zyAcjN4yQW Wx16GxBHUMn4wQRcXy+M3NfMkIeaLtvCyP9Tqq9Fzl+a+NjK5OyR6cIG3zYPFCAhCm390+zT0Yrw6 nDv35XM499/Z8XheWrrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1og65O-00EmyS-51; Wed, 05 Oct 2022 15:13:26 +0000 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1og65K-00Emwy-P6 for linux-arm-kernel@lists.infradead.org; Wed, 05 Oct 2022 15:13:24 +0000 Received: by mail-io1-xd2a.google.com with SMTP id 4so2210914iou.9 for ; Wed, 05 Oct 2022 08:13:19 -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:message-id:reply-to; bh=p1b/OkZVE0RzV7zia8rRogaQ7aQF3pfaZimR6lGLDog=; b=diIXyEYNda1xcH4QZUqkqsVHDjzHdPiYi9gt6Jmkp2mv7z+f8ZrI/b5LM0FluhspRk ub/ZRGjbZQKfROu3PD7L/YiJ9Y1vMLd3dkFzvGlbzcGouEVBNSHK0mDAf4vdONi9H7tw +v36EKHZyYYcQX/xQZYkrO13nqD6GB08UzEWw= 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:message-id :reply-to; bh=p1b/OkZVE0RzV7zia8rRogaQ7aQF3pfaZimR6lGLDog=; b=nm1/kJ40ucsHZdvRT9yTYBqpBRNAKevBVVyLjBjL7ma4Ii/Ur4wmySG3czYK5vUKz6 GXsU1s/J0xdJ3YrS5tNrftcFRc9VPdrGxrTsyithP/0HuWhiTmOSBXt+A8xu6bBiniYd SQIos2LHW1XfH+97q8TzXDkVmzebGBAD1T5uOW2PPmTbSqpryLakafdGkSD+Srsxkmjj YL8tJSpKcbY1JSHF375xynnG28oacWjJc3LmQnDFllw62LBoVoF2I33gvaT02nIvcus/ 3NZTOf7PjXg1VwFuX6NOHvBO25GH836+BQ56J84xwD1TqgPeSZ0L3w0ohY8FXzjR8tWe zHcA== X-Gm-Message-State: ACrzQf1KaPIqkC2UE32qYzNcoVBGygfILJbUvMLLrIa5wPJqFU4XiBQy uQdv66MRzn7G31JBHk6xW6PhCg== X-Google-Smtp-Source: AMsMyM7yCcF+7doyamms1Xy0nXKGpHXASuNpsqSYFXaX4PPlbtMRZNiDUYYHW+R3KkO1lPSxdNsMDA== X-Received: by 2002:a05:6638:13ca:b0:35a:7ece:3c6a with SMTP id i10-20020a05663813ca00b0035a7ece3c6amr54330jaj.318.1664982799364; Wed, 05 Oct 2022 08:13:19 -0700 (PDT) Received: from j-ThinkPad-E14-Gen-2.stthomas.edu ([140.209.96.21]) by smtp.gmail.com with ESMTPSA id w15-20020a056602034f00b0068a235db030sm7089276iou.27.2022.10.05.08.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 08:13:18 -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 v7 00/10] drm: bridge: Add Samsung MIPI DSIM bridge Date: Wed, 5 Oct 2022 20:42:59 +0530 Message-Id: <20221005151309.7278-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-20221005_081322_844287_1CB92FD5 X-CRM114-Status: GOOD ( 11.93 ) 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. The final bridge supports both the Exynos and i.MX8MM DSI devices. Changes for v7: * fix the drm bridge attach chain for exynos drm dsi driver * fix the hw_type checking logic Changes for v6: * handle previous bridge for exynos dsi while attaching bridge Changes for v5: * 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: Samsung DSIM bridge Patch 0002: PHY optional Patch 0003: OF-graph or Child node lookup Patch 0004: DSI host initialization Patch 0005: atomic check Patch 0006: PMS_P offset via plat data Patch 0007: atomic_get_input_bus_fmts Patch 0008: input_bus_flags Patch 0009: document fsl,imx8mm-mipi-dsim Patch 0010: add i.MX8MM DSIM support Tested in Engicam i.Core MX8M Mini SoM. Repo: https://gitlab.com/openedev/kernel/-/commits/imx8mm-dsi-v7 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 .../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 | 1856 +++++++++++++++++ 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, 2108 insertions(+), 1653 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Tested-by: Tim Harvey # imx8mm-venice-gw73xx-0x Tested-by: Marcel Ziswiler Tested-by: Alexander Stein Tested-by: Frieder Schrempf # Kontron DL