From patchwork Mon Jun 21 07:24:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12333957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D38EC48BE5 for ; Mon, 21 Jun 2021 07:26:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 48D2A60E08 for ; Mon, 21 Jun 2021 07:26:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 48D2A60E08 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=Pr+HGy8Ox4BtWUm6aF9FRc3K3816ftvOCl+Sn40xxa8=; b=UCUE1mlYNqDVY/ be/tLjfuk+mnheKOKA3LmrAldTWnDkPg8/uujCriA01yvV1vR3D0U7LbscNxCmcITK2MZ3tr51JWL DLQDf391DlN9UyQBVuBXnA7yuxEu8cdXuCIBmun6QN/q3oc6dQv1P9E5fifYe/vKHTijbujTASuCE H+bJrX1cicFVGkM79dtHupkco4HRKxEZuZb2LRmJSYV1LErYATeO4+o67wnJh2oS4gDKZ7BkMyBu7 sZgkJ7StiSi5PIydWuQhXYbEkQcYQyTmlECgBZ3fo2ca9Y4FYnpigzY2q+Hu+nRBxO8Bzu8n+Eguj IfWzbisKao1SabCL9hrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvEIY-002Tie-68; Mon, 21 Jun 2021 07:24:46 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvEIS-002TgS-Sg for linux-arm-kernel@lists.infradead.org; Mon, 21 Jun 2021 07:24:42 +0000 Received: by mail-pf1-x431.google.com with SMTP id h26so1838958pfo.5 for ; Mon, 21 Jun 2021 00:24:39 -0700 (PDT) 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 :content-transfer-encoding; bh=4Mz90SrmvetiiKOz2FA2/q5WPVb/5Mateql9uC1osYI=; b=LH6roB4QN50Ss3fd6q+CBK16FfSLRV/++biPwO3AeQTv8PFz5YsC987Yl5PrPtbQUR grYaD4IXKWdJJOg4dF6BckzRXAb951oI2Olp611oMhF3JgfviD5I5Jhy/q+gsRLvIMqk koZVmpZYLZherETZSArj4lMgsAiX7fGYNfJ8E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4Mz90SrmvetiiKOz2FA2/q5WPVb/5Mateql9uC1osYI=; b=L6dBSSNcmf9qmYB/p0PYW27250VPChCKNCB2G/iljdWaYNRZz/6lnyeOkKpJq6kaF2 h4TUzjSFXBW3B2tYL7gSpm/65bcUbLkS9O2u+kdHUSn56NjLhczIHLaxApYZdFhCIILo DrGjiFQCeZEv1kUevP9g0brWYfIMkM0lNXEONqDf1r1lFzd5PC/DV6e1ZyYAFVGElJUn nyBfcvrpmVNvlq7iHXzTPeZXsWFSx/rSUMzwcUSySjRxHs/vtGckeF3YDA93iD+5xM94 ca4UvxD2MVarsXjPPaipquF/vUB965nXzLOVMvozUZFmlXutvCmaTc9nC11RZq+iQtFX Xpog== X-Gm-Message-State: AOAM532dHpsbzaU++4oD8KRdXBqbYCZXQE+O9SJ8DvVmmlqBjRbccI+8 yLu5Ff0a/cGxaDYB1CHR3BDNwg== X-Google-Smtp-Source: ABdhPJxiCxvGt4Lvg95BHdbOmEwOZrpqM6XZznMkEdEE3H9U0aYNeyTH/9EQGYu7BduM/FJvQrX1Kg== X-Received: by 2002:a63:ef04:: with SMTP id u4mr22267854pgh.429.1624260278855; Mon, 21 Jun 2021 00:24:38 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:139:e97f:a55d:7f66]) by smtp.gmail.com with ESMTPSA id 21sm13951294pfh.103.2021.06.21.00.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 00:24:38 -0700 (PDT) From: Jagan Teki To: Peng Fan , Shawn Guo , Sascha Hauer , Tomasz Figa , Fancy Fang Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , linux-amarula@amarulasolutions.com, Anthony Brandon , Francis Laniel , Matteo Lisi , Milco Pratesi , Jagan Teki Subject: [RFC PATCH 0/9] arm64: imx8mm: Add MIPI DSI support Date: Mon, 21 Jun 2021 12:54:15 +0530 Message-Id: <20210621072424.111733-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-20210621_002441_088004_5892360E X-CRM114-Status: GOOD ( 13.27 ) 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 support MIPI DSI on i.MX8MM. It worked directly with existing mxsfb driver but the SEC DSIM timings has to be validate and tested through all platforms, ie reason I'm sending it as RFC. Tested on Engicam i.Core MX8M Mini SoM. patch 1: dt-bindings for SEC MIPI DSIM patch 2: SEC MIPI DSIM bridge driver patch 3: dt-bindings for SEC DSIM DPHY patch 4: SEC DSIM DPHY driver patch 5: MIPI DPHY reset enable in blk-ctl patch 6: display mix blk ctl node patch 7: eLCDIF node patch 8: MIPI DSI pipeline nodes patch 9: Enable LVDS panel on EDIMM2.2 Note: - all these patches on top of Peng Fan's blk-ctl driver. - anyone interest, please have a look on this repo https://github.com/openedev/linux/commits/imx8mm Any inputs? Jagan. Jagan Teki (9): dt-bindings: display: bridge: Add Samsung SEC MIPI DSIM bindings drm: bridge: Add Samsung SEC MIPI DSIM bridge driver dt-bindings: phy: Add SEC DSIM DPHY bindings phy: samsung: Add SEC DSIM DPHY driver soc: imx8mm: blk-ctl: Add MIPI DPHY reset enable arm64: dts: imx8mm: Add display mix blk ctl arm64: dts: imx8mm: Add eLCDIF node support arm64: dts: imx8mm: Add MIPI DSI pipeline arm64: dts: imx8mm-icore: Enable LVDS panel for EDIMM2.2 .../display/bridge/samsung,sec-dsim.yaml | 184 ++ .../bindings/phy/samsung,sec-dsim-dphy.yaml | 56 + .../freescale/imx8mm-icore-mx8mm-edimm2.2.dts | 90 + arch/arm64/boot/dts/freescale/imx8mm.dtsi | 104 ++ drivers/gpu/drm/bridge/Kconfig | 15 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/sec-dsim.c | 1535 +++++++++++++++++ drivers/phy/samsung/Kconfig | 9 + drivers/phy/samsung/Makefile | 1 + drivers/phy/samsung/phy-sec-dsim-dphy.c | 236 +++ drivers/soc/imx/blk-ctl-imx8mm.c | 4 + include/dt-bindings/power/imx8mm-power.h | 5 +- 12 files changed, 2238 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/samsung,sec-dsim.yaml create mode 100644 Documentation/devicetree/bindings/phy/samsung,sec-dsim-dphy.yaml create mode 100644 drivers/gpu/drm/bridge/sec-dsim.c create mode 100644 drivers/phy/samsung/phy-sec-dsim-dphy.c