From patchwork Wed May 4 11:40:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1929 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7DFAA3F067 for ; Wed, 4 May 2022 13:40:43 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id x2-20020a63aa42000000b003aafe948eeesf639534pgo.0 for ; Wed, 04 May 2022 04:40:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651664442; cv=pass; d=google.com; s=arc-20160816; b=YsBGw2+GfrC+VPk2MCb9Y74VpQ78I++rYT3wRblkB734zHU3bekHl3zwjtMIlSlqJC rve6YfuJcUEWLFhq3QgY/2L9VDAfhigGq9vObZafPcMEV9xV3MP+6oNMFO1dHnmzMEjF PGibWfYzbqqTh02c97UITLuqLp2Acw/YFRam0VJCoTZvASuFVFjfI17Ib8xUVlafDys6 8Z1IKyanV9Jy9dVS6r4vfa2Inc48HKJGF2T41NnesiIoOFRo/EMboMwetyXvUjmucNVr ZhXZxJG5qUgPn0TKnnogcr8PW8PPyZpTqiQyCnchR+2z0pmUoxYosNhMQgW4VFszcvJo L6YA== 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=wIA5jcU22rYmqvQ5MidNzY01kS7fIjR1J1xtdBZHqJc=; b=N4wVUXOi1RK9L5vuOBHlzOym8XtRMio3dCRPG2oWvtYdET06FqpYndgdOQEQOVg3ci LvGHrGu/WX3DUw2Gl8HQCSEMe5bSD9qS+yY/m8EAM4do46+lh8RHOYOdA6pr9C7ssRKn CgUjRoCriXdQj4GWiQPoWj6X4AWn7oC6mZ4D045rxuOSb8UyFhcK4IL1FqiNG7EI+QrS yTpl3t5oGaeyi94xDipthXfMjC7aeRWnBGX81z9+Qz5GwrazY7UuXFt1XAAcMQ27ZtpW JcTXWpMfLqbWTEcc3PgiZY7ki4dzdg+lMwdnmYPvdFN/L+if5DzKoXtFo2Bxz0anRJqd /OHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Xufl5D8F; 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=wIA5jcU22rYmqvQ5MidNzY01kS7fIjR1J1xtdBZHqJc=; b=YZ1PkqlQ3dRNpf9arjKtRjkSpHoZ30t001G+m5wDLNoE/OewhPttfwRNQBE9JGIVVb t2K5Qys3veH/adBtfryG3147ZGcK2/E+Ou5S2dw6WMOFk+fFH90SbJW1WKbgfXSy9hQ7 luMWHjgC9WtwKBIqkvdJuK3sJ4AfXb/eVKfdk= 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=wIA5jcU22rYmqvQ5MidNzY01kS7fIjR1J1xtdBZHqJc=; b=gzpctdfJc/i7yiTBrwTz4PTJBkQ5BXyLB1gr2+Ww5/A450YHH0jRAMwkKmXmdYvd4j aXE+0TWa3PuVP3W6iW7ol6tc1hCMmpdvbwe7eNTuSwHvvVjNt5ScepmNZ3i5jvWwl35d zFjalL3Zn1Fp0quMwr67IplvbuQDRiLy2wYuezyT2PA37NA8SCf/zD8r/atQBb1RXNY9 KTN2rVedFqDxPtkRCmNmbvnXdFgu8R3YmIpgdY9EkiOKa8NKQ7/PYoJejaB34xWyGxZ/ +7TTRaOoZWPHYUIMK4tnn+T+U4QnRpD00J3UTOaEbbsAfhgsNbDBwxYyWgBuQgFpabGl gufA== X-Gm-Message-State: AOAM531+Z8O0/u9n55nSJI9ewQPOvfb1Th0Fmtet/1E/p17Gwj+hDKjz m8bY1/pUM9YANsolO2dSSzxUT1Bd X-Google-Smtp-Source: ABdhPJw0DcmIwXHpLWRiNtRKGr1/vijQ0zzTLfenFOqoTzWBToCYZ8kvN4AtIJ+EicoY2PecHVfilw== X-Received: by 2002:a05:6a00:140f:b0:4e0:6995:9c48 with SMTP id l15-20020a056a00140f00b004e069959c48mr20240765pfu.59.1651664442030; Wed, 04 May 2022 04:40:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:33d0:b0:1dc:6b69:1f89 with SMTP id lk16-20020a17090b33d000b001dc6b691f89ls3926045pjb.3.canary-gmail; Wed, 04 May 2022 04:40:41 -0700 (PDT) X-Received: by 2002:a17:902:f24c:b0:15c:b564:e4cc with SMTP id j12-20020a170902f24c00b0015cb564e4ccmr20852857plc.137.1651664441233; Wed, 04 May 2022 04:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651664441; cv=none; d=google.com; s=arc-20160816; b=RC6TeyhulJSGdN6PkM+hxkwOKVnw8QKd35pGtVPRJCV4K9Ryy6TD0M2Lv+Xcnpz0vm /quWFEymQgAvqB9Ddc9vGazppZxR+exG11IK4IVlekYWNey0fQWPbNgTeFBvuP0MjdAl GZKqd3yu9yTRT57m/5lWz+ycrcb38DvRI/xo0NMXr6R2oHh2vPBksQhn8Imq0RDZCd7l HyyxAaRke1MDZWol36ZxFQaZXec6FHD5wm3nTqvul8Bdn4fLtjB0B6cnNz+iUadmWeOO MI7BDuN/4CWwr1X7JIhADyP92sXBKSpEl3Ys9A+nsLHsl0oQuuH//olt065vUNubOhCw PE4g== 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=+ehaGQfcCZN53TBoTLw2+Ao4eNOjwyEob9y3SvApsCQ=; b=OYXbEFE0SE/GWkfLnqS10G6sb5G31MlD/cdp8sHYW58+BR5gkXAhZJKgRBqbRba692 GCQUqWq43QKvIFp74YW8amj/9vbQnDR6/HwkYedcfI9XxWXXTTbNjE4Qjnvht7Qk01Al 6Jj+R9TnvGJVIpXOF0KvG2QTl/BG+eQ3+LXWoTKQvNoKkRxIom+hZRtSHh6vceDfdg3v 6DxCxCaLh5cTn2P0z5TiA1FzqJP6/uNQk+I1+85VZs9JLh3eluA5b6Tl27OnmH/MdYwr R3qbM6dso5/VtqJespyp6skAyyB37S+b8bFlFrOjhrgr+Yz7wngO5jI2DtgFVKsw5byY HGvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Xufl5D8F; 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 38-20020a17090a0fa900b001b93ef2dce1sor1869055pjz.15.2022.05.04.04.40.41 for (Google Transport Security); Wed, 04 May 2022 04:40:41 -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:4a05:b0:1dc:1a2c:8c69 with SMTP id kk5-20020a17090b4a0500b001dc1a2c8c69mr9685274pjb.9.1651664440868; Wed, 04 May 2022 04:40:40 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id k15-20020aa790cf000000b0050dc7628174sm8027498pfk.78.2022.05.04.04.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 04:40:40 -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 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 v2 00/12] drm: bridge: Add Samsung MIPI DSIM bridge Date: Wed, 4 May 2022 17:10:09 +0530 Message-Id: <20220504114021.33265-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=Xufl5D8F; 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 v1 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 0000: Samsung DSIM bridge Patch 0001: Common lookup code for OF-graph or child Patch 0002: platform init flag via driver_data Patch 0003/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] [2] https://github.com/openedev/kernel/tree/imx8mm-dsi-v2 [1] https://patchwork.kernel.org/project/dri-devel/cover/20220408162108.184583-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 .../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 | 1847 +++++++++++++++++ drivers/gpu/drm/exynos/Kconfig | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1724 +-------------- include/drm/bridge/samsung-dsim.h | 99 + 8 files changed, 2032 insertions(+), 1661 deletions(-) create mode 100644 drivers/gpu/drm/bridge/samsung-dsim.c create mode 100644 include/drm/bridge/samsung-dsim.h