From patchwork Thu Nov 10 18:38:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2465 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 124393F039 for ; Thu, 10 Nov 2022 19:40:02 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id d18-20020a170902ced200b001871dab2d59sf1888967plg.22 for ; Thu, 10 Nov 2022 10:40:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668105600; cv=pass; d=google.com; s=arc-20160816; b=o630rtX9sPOKB7a5J7NM8nC7CoPgSkhDwQZH6MLTEyPg0f5H+TTPNIMthy/wLTU3wN MpDd9t8dtNvFAvGzbEgSR0NQq/mH3pALVy34HYXs6zXR7pKhmkA59xD1y9MY5K/b7rhm m+2iBq6A0hd08+UIhdto9irta9u/07WrySr2C04O8voUjPiGdG4S8VrIomYAAlmaEgZH 02ignm0l8H4IrEhXg2dh8IuaFT0yjZ4e1qrqwmQ+NhjJzrFeUpoTzxIn/gGBZvScpNqI rcf+lrdG3xuEiRAg5ycB7OJewM6BfcJDmEsCcY+BFZrCNcAovr3RQzuS2WLrlKPfkoSS qMsA== 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=3igl4DO9ZV5MSAjZl+nlWO2z8593TEbjkiOh98v9Y3E=; b=0Hrv3GOlozy30bVLoOUquOilKPWLW1+rbwn2viUVxJjoxJCkECBx2oOQis06tCKxOF lLxp/b5g2fQcQWd9k9p09+77czXr3kjspK7qEbwldK47+0SrTyKQLIhz2bWYlLMNXBHz /bdUJdy7g02P+F/jOUhVPij9E6UQU99cccgNjoVB0RaIpgMF4WVZu0JhfkYqdVBschSG XgIB6YFhCrCYYGQcQ5nSuxLS2US7uOYjk+JfeZkHopYsjS3wxRAITfQ7siWP9zzPc9dZ OnVZajdub+NbI16IzoJLXwMttF22AJRR6w2nMabtDfEkG6ssNcl3/sGZebKzzYJu8b2B moAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DRjRvbLq; 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:message-id:reply-to; bh=3igl4DO9ZV5MSAjZl+nlWO2z8593TEbjkiOh98v9Y3E=; b=FtrRpf1Ex2RkbuhCi16GEoXLCfx506rJ3pauptt2LnPHpvnyyWUlaxt7hHgNGEzumT TOyH8YEk0jvB14ouDLJvi5jNj31W/abWKLMnbRG/gf7p/sqRiNZkSj/wiLRX/Y0Cxcbw XhuVdEbRAEoREhD2WkmhISsseMmDE9Rd2XV+c= 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:message-id:reply-to; bh=3igl4DO9ZV5MSAjZl+nlWO2z8593TEbjkiOh98v9Y3E=; b=K3NVJpgS645XHTFal3bTg/tbSkasNTs7LfvjiYe3ZIigMrAWFC49xuIO66qEkZp6wh dR6r/ZQdD7uZI3jyRSevKhSreM4WOE5lBhcgyUmOp23MNbMT94DPfeG1lOFnvk8qnT2F 7vFgyT0vlrdpeTJfHIM+i/qmP0HC2FVaCLAr8yLdNc9JMvhS90rBBaZABrS6+Gk7vklI 7JLQDWLpYy5u9iIOpp3Kku9WIozFmVH/B1wF1GKodhrFzIkb9QtdqH8FctyIDcHgRnxl dZubcZ9+MhdxpdLSzLfRvG3IN48MNV0kojLVEswnnzCU8Yv63Vc5EZMI4qI64bi2fY4j s8YQ== X-Gm-Message-State: ANoB5pnfFPrdft69R2E+V+LqofOdsgV9YDVUMilvBewC9i8hWErfYsOW 5D9lAXCyWkY/IAQPQJ9I0dGWedCN X-Google-Smtp-Source: AA0mqf77XpC+tsAwMb0A5XJ3k3djqtfHwpKhdMZfvdOugxeis1qkaXlkQ4P+GJpWPtB3DVNbXK8JZA== X-Received: by 2002:a17:902:8bc3:b0:188:649b:9dbe with SMTP id r3-20020a1709028bc300b00188649b9dbemr1478570plo.107.1668105600638; Thu, 10 Nov 2022 10:40:00 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:25d5:b0:187:488a:58c8 with SMTP id jc21-20020a17090325d500b00187488a58c8ls1627852plb.9.-pod-prod-gmail; Thu, 10 Nov 2022 10:40:00 -0800 (PST) X-Received: by 2002:a17:90a:4e85:b0:213:13f2:162b with SMTP id o5-20020a17090a4e8500b0021313f2162bmr67464297pjh.228.1668105599791; Thu, 10 Nov 2022 10:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668105599; cv=none; d=google.com; s=arc-20160816; b=nY3t8Yx+DPtvHKMhHGjrkDaW2YkFtdMizCRgAqROUcHhXHRCF7eiULTOtzbIcnwPIl UcJsOcd75yzfrRmKtEERArSPHjlKb7/i3/GCpHz/jxz3gB0PIFxPiZeK3RxrKmVChMUm 4nlxKg362tIJ2y0xOg4F5z841tvzchRECh4TzN7Gtg9uuBcwGhZRFZJSI2i1jxr3oagC V6i8sRAZrKsKWEVCd67FEiepGymQzE0Yfd+Z9JNdj9LAN7CFo3DQ+ij0+vNEVKuBAWq9 JDhpYvQq2kpyw1A/a7sANHWWZOuZEBCMTz/7LrW7eUr8cFX3d5EEcEFl1lk2xKzW3tz1 9ynA== 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=/ENiegKatEa49yjNORy5MxklDcwyC2/WB0nXjwNhQHE=; b=oNgBinrilbHVUOaQ3Ws/vgGuP+s0NMTDs5xr17H7/7ZYEyfLk7XH/ywuPuh/tVuLKi 6f6wXHxZNbpZj5A+mH4Bceh3pQFr818ba3E6GwfNboSdZ+wDZUTmyfQuH+EyRpf216GH bkoC5rRtLZ8BUo9NowUJyV7xGqkTW2z7JsbCvVDg/xLtOyiP29aLlXjyFCvzEYoWAm2A uKEeJXOqO3WuYbF3UV59YC7Pi0ID77oG/q7C+G8ra2y3SfidHMvH8UGTcMiTCN3NjXgk svdqCiAUwypfgsuQyWqiZo4L63odUjGX61mqMOhZssum+8Zfdl3KsC7bniLV1X5Rp83t TM0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DRjRvbLq; 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 m21-20020a170902d19500b00186b697ec5bsor7558859plb.185.2022.11.10.10.39.59 for (Google Transport Security); Thu, 10 Nov 2022 10:39:59 -0800 (PST) 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:c643:b0:186:9efc:67a1 with SMTP id s3-20020a170902c64300b001869efc67a1mr65112158pls.30.1668105599256; Thu, 10 Nov 2022 10:39:59 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:b5a4:486a:f07:f67e]) by smtp.gmail.com with ESMTPSA id c2-20020a170903234200b001869efb722csm11635627plh.215.2022.11.10.10.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 10:39:58 -0800 (PST) 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 v8 00/14] drm: bridge: Add Samsung MIPI DSIM bridge Date: Fri, 11 Nov 2022 00:08:39 +0530 Message-Id: <20221110183853.3678209-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=DRjRvbLq; 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. The final bridge supports both the Exynos and i.MX8M Mini/Nano/Plus. Changes for v8: * fixed comment lines * fixed commit messages * fixed video mode bits * collect Marek Ack * fixed video mode bit names * update input formats logic * added imx8mplus support 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: Fix MIPI_DSI*_NO_* mode bits Patch 0002: Properly name HSA/HBP/HFP/HSE bits Patch 0003: Samsung DSIM bridge Patch 0004: PHY optional Patch 0005: OF-graph or Child node lookup Patch 0006: DSI host initialization Patch 0007: atomic check Patch 0008: PMS_P offset via plat data Patch 0009: atomic_get_input_bus_fmts Patch 0010: input_bus_flags Patch 0011: document fsl,imx8mm-mipi-dsim Patch 0012: add i.MX8M Mini/Nano DSIM support Patch 0013: document fsl,imx8mp-mipi-dsim Patch 0014: add i.MX8M Plus DSIM support Tested in Engicam i.Core MX8M Mini SoM. Repo: https://gitlab.com/openedev/kernel/-/commits/imx8mm-dsi-v8 Any inputs? Jagan. Jagan Teki (13): drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags drm: exynos: dsi: Properly name HSA/HBP/HFP/HSE bits drm: bridge: Generalize Exynos-DSI driver into a Samsung DSIM bridge 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.MX8M Mini/Nano support drm: bridge: samsung-dsim: Add i.MX8M Mini/Nano support dt-bindings: display: exynos: dsim: Add NXP i.MX8M Plus support Marek Vasut (1): drm: bridge: samsung-dsim: Add i.MX8M Plus support .../bindings/display/exynos/exynos_dsim.txt | 2 + MAINTAINERS | 9 + drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1908 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1766 +-------------- include/drm/bridge/samsung-dsim.h | 116 + 8 files changed, 2162 insertions(+), 1653 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h Tested-by: Frieder Schrempf # Kontron DL