From patchwork Fri Sep 16 18:17:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2360 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 65A703F36F for ; Fri, 16 Sep 2022 20:18:21 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id m5-20020a170902f64500b0016d313f3ce7sf15468010plg.23 for ; Fri, 16 Sep 2022 11:18:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663352300; cv=pass; d=google.com; s=arc-20160816; b=YYoQKu9bk7HyVOh10flomIiBiwv3hmt5+7nolpOCzeHcdekFAJKmT/STiGjW0mGIy7 zGq1RFdcQAHRtZgfWMbRtWqvCVaGq/yQG6dPGX0zZZLzcAQuSHP0cJQw+RG2pwVH+u6m cuX0HwZWayH6iXz+cmAgFGX4cD6ueqUuYeCpBaluPNxRWfOGPpWmru1TN2Nm1EK7h29Q 8TuUgrnq+m5oyENNKvqsDrSWwZ2lkxj6ch++zP+Kq0NC/J7qLCGV4tPNMBPxNoLqKimc 1xk/1T7Jvdj0us8T2S2p9dJdoRQ22rUsrOiiyVXu4AsfQWWPANh7fmGKIPJrfeBGiDoz JbnQ== 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=fqeVKf9YZY2fpUSl7miReBiItdEv9fTnn41WoRJ7YbU=; b=QGcoU0nJ8oW11USuKkD3Y9Lz+oLlhX3UCkk0JcLdYj53oQJje3CKConQAIt4oF85bQ qj1TP9tJc3Fw6PtOcO2Xnuq5gWidVeDZ/X6HyFy6mzVKdkx695gy4zemnLcwXy2dhyTh 7VLVojDuKlAd9rArkEv/EXuZddSTveKavQha14mTX1JcGr6euEIJ4SimV84txheDkWjz I5e59uiVFLLq4c7M/8JNnD56HOdCh5XI4c1bV9IvYHsT8lf7zKB9+20Ex41ug0MgC0EB vR8MaKb98GR7IGOXda+5NYK3Pw0vix500bW3NwU1qLsSkvSlG7OLarT8CZypFypMAaNP K4LQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LnfjjIyI; 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:subject:date; bh=fqeVKf9YZY2fpUSl7miReBiItdEv9fTnn41WoRJ7YbU=; b=bzSN++K/E/xUyQHLC34LpKAt0s78QRDwuHHj9DPQf3kwJfIIr0t8QOFkApVMpUzPgE P53O+3/eEENo3NnD0Ig/1C7qxVvPCD7pMQ6OWD3BN45tYK1YeL3AkxsJrkjGTSmseX6t QwNqqC66+elNFfemdLBnP8IUey5EMM4BwumaM= 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 :subject:date; bh=fqeVKf9YZY2fpUSl7miReBiItdEv9fTnn41WoRJ7YbU=; b=KVFfnTIe7NpvK8DlcJkQ+Q11310XzV99F1rc19k/TByjin6Pfx6HVtj9PO/+L00rI/ 6/aBWKQcNRkIjtYNvInR4TDmZ60RZo469wgsGowfeiVAAml1U7OycIv8GHzv8bf3Ml+D p/LYdHtsUrGi4eZUdb74KCw/KzgCsXaOQ3hl/AW1eVs3EOF2Ds2+ZQ2O+0aKQBZ7vVEw 1oGk7A1zwFbGjHWZrA4uJ/3po0oIzOl01d4EpZ3ECB2YRyRDPlbuk7vmRZFMqIzCXJrx lM185iTsdAqc3E9ky6a8oHZ/xDcVqQoME9xOSXpFCxsojl9KtDzfIRb+GLnSl9+TQhLb awwg== X-Gm-Message-State: ACrzQf25hh96pyhUvskW5MWcqJaGFC/61NeaVxtr5sMgfC1vv2o4hxtB xwiSPAH7gMt7TsArajnW7jFViAW+ X-Google-Smtp-Source: AMsMyM5sCoojFW/x9/qwcz2ISvphjuoKcSe4OFoloIx1RPNbcReh+3ainoHjWyBRKcNyj9wZmDMs9Q== X-Received: by 2002:a17:902:7b8b:b0:170:c7fc:388a with SMTP id w11-20020a1709027b8b00b00170c7fc388amr1082582pll.29.1663352299982; Fri, 16 Sep 2022 11:18:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d4d1:b0:172:8d81:7e5b with SMTP id o17-20020a170902d4d100b001728d817e5bls16359037plg.6.-pod-prod-gmail; Fri, 16 Sep 2022 11:18:19 -0700 (PDT) X-Received: by 2002:a17:90b:3b47:b0:202:a81f:4059 with SMTP id ot7-20020a17090b3b4700b00202a81f4059mr18001738pjb.150.1663352298868; Fri, 16 Sep 2022 11:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663352298; cv=none; d=google.com; s=arc-20160816; b=aS96dstvt1wzOoJDJucH3/oOG3PIH9g1Hbnz4LJQ7w4gbaGnTxsOiNdjUfzoPmr3Bg Op3NdeAequRpk3hqzEiFhrDRgyU+la0HuXtovI76hGfbMt6/n2qAMXURumOoAvZf/XOZ N3aizg4JOu8LvCY3Pjbf1MyyGGgHeqXY9FbUZFUnBs/Bi2daBJGoKz5n+bSojroxnZHZ alXHVHY0sPGGBaj3dv396siYlLRsIHnOOkfRAyC4ORHOuStm04nmycepd6UNNtnj6lwh 45Jx3oxP+CuiiTccMnCfedr10rfHB6/qIH/qHOKINJQOdYt8EIuRa/XSjtZpIclkk5ZG utGg== 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=k78FpsGBN/9CeIU1dKf9WRueN2gjoM3jLsVKiTwXYEc=; b=CMl5lyU9yKyVcSLKoCkIQvdk3dd/zuKCxjEPGCqmKYqZSjJ+ystqqoNFJZPL3dhxTz VSxCZNL9njK/OjTT90Ub1S80Nc3xlnI1CX6Gpy5NuPfHxU1I0/kpXs3W01/hbFVsqs8o TofXSZRoeB/1lamA0t3T3/DubV2qtzzppYVq5surBUbe6yf+gUA2J9SJYmueK8i9tqUU cWlCJBngDr6T7MuPxrJ3x0bWN32sdTIcOeikMU5aIiKwiR1zyVR0gGWVJyujsxOAPU5Z YbLidiKt8ZlPYoiub/sLZhaA79hG9MCatdHzv9YSxw2Ro1MdoE79K/+UqC8bb7PpNHjA CuHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LnfjjIyI; 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 89-20020a17090a0fe200b001fb3c4329ebsor1234561pjz.20.2022.09.16.11.18.18 for (Google Transport Security); Fri, 16 Sep 2022 11:18:18 -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:90b:4a0b:b0:202:8568:4163 with SMTP id kk11-20020a17090b4a0b00b0020285684163mr17830711pjb.217.1663352298404; Fri, 16 Sep 2022 11:18:18 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:ae5d:6ee4:5c2f:6733]) by smtp.gmail.com with ESMTPSA id d14-20020a17090a6a4e00b002007b60e288sm1770000pjm.23.2022.09.16.11.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 11:18:17 -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 v5 00/11] drm: bridge: Add Samsung MIPI DSIM bridge Date: Fri, 16 Sep 2022 23:47:20 +0530 Message-Id: <20220916181731.89764-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=LnfjjIyI; 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 v4 can be available here [1], repo on linux-next [2] and Engicam i.Core MX8M Mini SoM boot log [3]. The final bridge supports both the Exynos and i.MX8MM DSI devices. Changes for v3: * 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: Restore proper bridge chain in exynos_dsi Patch 0002: Samsung DSIM bridge Patch 0003: PHY optional Patch 0004: OF-graph or Child node lookup Patch 0005: DSI host initialization Patch 0006: atomic check Patch 0007: PMS_P offset via plat data Patch 0008: atomic_get_input_bus_fmts Patch 0009: input_bus_flags Patch 0010: document fsl,imx8mm-mipi-dsim Patch 0011: add i.MX8MM DSIM support [3] https://gist.github.com/openedev/22b2d63b30ade0ba55ab414a2f47aaf0 [2] https://github.com/openedev/kernel/tree/imx8mm-dsi-v5 [1] https://patchwork.kernel.org/project/dri-devel/cover/20220829184031.1863663-1-jagan@amarulasolutions.com/ 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 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 | 1840 +++++++++++++++++ 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, 2092 insertions(+), 1653 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h