From patchwork Wed Jul 20 15:51: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: 2187 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4501A3F03E for ; Wed, 20 Jul 2022 17:52:32 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id d21-20020a17090ae29500b001f2042edb63sf2081090pjz.8 for ; Wed, 20 Jul 2022 08:52:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658332351; cv=pass; d=google.com; s=arc-20160816; b=Fwn1n2omt/vYyMJ75VHAi/CJKj6G4xC5na//u3+ScOwSrBMYFyVQsos0NiNEA8YM7g LUod6jeM4EqB7WMuEiygLC7YRxXicCM4gV3/YItXXBaNcBwlvlHcQgWeup4K5Z4O4pNT Z9SZi/Ff72wxQNxoyEmJ96st1XA9/cD60alrJjIOYm1jsA0joTgLT56nmDqsbYp1m679 7rdYWPiRTvnLaSBUmth4BcIUz8CS9/ZPHdnbw3Gp3pula41GaD/uXlWClqBvAixvIJx/ DERfqQf+uYXWNEsOsUk8uHHnt7NVEyUh9dA8hmeI8mn6cD3jwO0E5P1xYC8/ZrYl+R78 fYGA== 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=d5kG+ih0Imv7bYuro1Xfti1MDWMCpFa2Hmjm9mo18r4=; b=SGwm6oZcucL6hDPi4NbbOCds1+rjHGCHwg9LYX2bpLtzHEif7kTbQ4u/pIEKC80Ci4 rLb9WVE189LacysD1fTRULbkhLUjJtJF+UgVy8lvtVHGacozuXOWd+LoOIuKbBq79aWo /rFNBfE3mKK0trsUxB1maoBs2Rz4P5JjtsTw4rsprI9+7Sta8GlueSyBBD7tz0w8Oqg9 zbZO3iRI7BJL6ZoCmuJDA17f1LjUflbdWZxuA7YY5Es5Sn7y7uRcHqc6FWoY+Gmffyui vUVCj7rItAT9dW2NpFGwo8KTkGHlWZO6K9O5vj8mc4bsRZLdVvRgk5zDJyzrTZqL6Fb8 85vQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oJwEosgh; 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=d5kG+ih0Imv7bYuro1Xfti1MDWMCpFa2Hmjm9mo18r4=; b=VxW8fyBOuVl+BKZ1/WQYw6y7FXjF6ffiukkstBmqMeSg1oCr26cQhzVlV9pq4Pt2fN z5m5LIv79NmHa8Aw5I2f1zLkA9WO808qaZ5I8uAdfqefqps7uA7TcNH2AfoRYE7gU/c1 1wFEcVENtwiWbwvZZjnsOcAv/FfOE3S+JBkPM= 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=d5kG+ih0Imv7bYuro1Xfti1MDWMCpFa2Hmjm9mo18r4=; b=tGfrdtBhQhAsWV59Oc5aCI6O8+tUcX0CDGR6veXuZhdApVR1iB27/a0VbegCphCZsV NiNCsNF8AOX3zTvG8ATUEIP5hIX0YoPNXzjnJBkQICLPhnyQoiV7jB8hMdNEK8KBrqVk LbZLeVRAgN8l5J5V2gUJ6U2IKCQm8qZMxOXFWxMafqkJHeAQOtFD0ZJtvPYi/EbZJXuQ Ukx8rJXyH3imK4RfERXtfVwXmTVPqPlCxuGGWx8ujBGLw7C4LTPbsBuqJdeC7zHOJLQn Fz6537G/4St9Ti9F/NcQADiNIbeE0VuhJgN3B87vJVPM6PzA8HGSum/ltTPzc0fhs2Yd 0ckw== X-Gm-Message-State: AJIora+aFV/wXchO+yNPOd4/2CV60y+7Hk++OHFYdH8g7yMXt6SYXeqj XvVRbws+aLnYawXkuXzjojStZSRn X-Google-Smtp-Source: AGRyM1thsmZByt/Q4G+FAXlnO4E3UhsPQVfvXFdz74X12QiRsSExYrJo1FhPP8HiglqUc00r/hlHEg== X-Received: by 2002:a17:902:8505:b0:16c:cf05:dc59 with SMTP id bj5-20020a170902850500b0016ccf05dc59mr27246215plb.125.1658332350848; Wed, 20 Jul 2022 08:52:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1909:0:b0:52a:d0e8:c9fb with SMTP id 9-20020a621909000000b0052ad0e8c9fbls202945pfz.10.-pod-prod-gmail; Wed, 20 Jul 2022 08:52:30 -0700 (PDT) X-Received: by 2002:a62:4e04:0:b0:52b:30f5:59b8 with SMTP id c4-20020a624e04000000b0052b30f559b8mr31132291pfb.37.1658332349940; Wed, 20 Jul 2022 08:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658332349; cv=none; d=google.com; s=arc-20160816; b=YTQYOYZDTIx5nlyLBvbGmIeYwijHhwIUHFaSmrQX/4I2FNd0s77PO/r903G8zjATon 6MuKSEoZbFAYN3//R1ZjwkOM49+MZVQCwLkO8pOkoNxkEt3evs6LZIVRqCDB+yFKrsNm pSeXCxgIv6axuET0A6YjUEAAj27N/QLBTtongrcDkreEZIpxpZ/vSZaXBiVTCMXVvppx QNmlMPtlaSn/RdGxdJSqw/36fdEuEM9ztqvcudYpn+gDUtXvAAMNMYFaOkHCcYcQBROd bvpuRM9z2A4VXDO4oyKvSdq+VW+vyE6YCLdyQEB3IZbyVmB5sUJrfiWFPmEr/qSbSgN6 nYfw== 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=KYWZwhb1ZSYMdId0x3rlbXi6AM1i5QxI3S7xvaz7eF8=; b=LCtJhwFUOAyuVn8KYlQTOZ3jAqEM8xoGsZZ8l9OyjL8/laLCVC35dNC+OCfDNXvSAa jKwS0fRFUmXuo/jbPuz0GH7Dg4RMv69WxHlfKLPfkmwx/HQ8MxDklETUN7V+HoNYimzb EiZSAMrgmRDD6JeeyAJY3H1ATnREDBaIfIT7L0AQiIUWIw8UNYd9w9+8Z2+Lde381l3O PgAqU/hpD9oc3cOu9GmDnXt+OuS4Mfglj5OQwzBOEXx18L3wLv/7N1dfMl8eCB/CSqOI GSzfffzoWj9kRdKKi/8qAXd+AD+DikO1Ba8Sai8oayECY3eQn0m50qeIRdJLJ3zwIKx6 xsgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oJwEosgh; 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 d9-20020a17090a114900b001efa33329b5sor938871pje.16.2022.07.20.08.52.29 for (Google Transport Security); Wed, 20 Jul 2022 08:52:29 -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:3890:b0:1f0:2abb:e7d1 with SMTP id mu16-20020a17090b389000b001f02abbe7d1mr6270480pjb.158.1658332349528; Wed, 20 Jul 2022 08:52:29 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:d177:d5:aee:4f03]) by smtp.gmail.com with ESMTPSA id a8-20020a170902710800b0015e8d4eb1d7sm13919198pll.33.2022.07.20.08.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 08:52:29 -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 v3 00/13] drm: bridge: Add Samsung MIPI DSIM bridge Date: Wed, 20 Jul 2022 21:21:57 +0530 Message-Id: <20220720155210.365977-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=oJwEosgh; 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. 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/11: bridge fixes, atomic API's Patch 0012: document fsl,imx8mm-mipi-dsim Patch 0013: 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-v2 [1] https://patchwork.kernel.org/project/dri-devel/cover/20220504114021.33265-1-jagan@amarulasolutions.com/ Any inputs? Jagan. Jagan Teki (12): 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: 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 Marek Szyprowski (1): drm: exynos: dsi: Restore proper bridge chain order .../bindings/display/exynos/exynos_dsim.txt | 1 + MAINTAINERS | 8 + drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1850 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1717 +-------------- include/drm/bridge/samsung-dsim.h | 106 + 8 files changed, 2042 insertions(+), 1654 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h Tested-by: Alexander Stein