From patchwork Mon Mar 11 13:36:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10847489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 228B5139A for ; Mon, 11 Mar 2019 13:37:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04E1F29195 for ; Mon, 11 Mar 2019 13:37:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECB4A291CF; Mon, 11 Mar 2019 13:37:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 65660291E4 for ; Mon, 11 Mar 2019 13:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=HxW3bBBgDNQE75lRvddvRMUILbzwWe/y698FvfPDaQA=; b=Y1Ii7tRX5Tdz8w fd9wwBX0l/szOfPHtRD6XaMA1KKWwFWuMGhDuEXd2uWg/S8ZvQ2/zXAaZZsuexmRJ+AkJ+fWbxQk9 aD6DblyAhNrVpG62DUY2bwygBo3d8mlfUQ0pvA8forvmkscQErlSUBW5VS90Kp2G2bUwuqIK5nm7P FjCpQu0TpxWGPDLnyUqwHRDUW3vgOvln1WSNMem/L1dYaC0c4wu3AEn2bdahtUYTfHBtPOpk2rFul 5e6oGhJ9WVBSeEfhcCg5qhMAwelqVl5QaA3HGnyWWD8J9caluKiCPFAQkWLwxO+eShpdFmyazcNY2 pZQvsGb+ZJFp1X7q06Vw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3L7B-0004eH-OB; Mon, 11 Mar 2019 13:37:13 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3L77-0004dl-GB for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 13:37:11 +0000 Received: by mail-pg1-x542.google.com with SMTP id k11so4055683pgb.8 for ; Mon, 11 Mar 2019 06:37:08 -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=RvQ7bY5HMdYTAsw8Sqg/G++8mHvUTc4957a2ztYq/EU=; b=qBrnrwK0bRWzB9XVhoNy4nlCBV/SME8zV05fqNPIWa9Oel0Am1KanePP1NPe5I4sDu 4t2cYIiorEUa2neKhlLY+bI1X6HwvTeM+QTvWbJlAQJ5mlngJWS9yUMhaHET0sJ1zviC o1D1MvfM2zQMAKXIj8q7V012PBqI9esxj6RZs= 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=RvQ7bY5HMdYTAsw8Sqg/G++8mHvUTc4957a2ztYq/EU=; b=nRVMY9HVcyQiIYT9KHI0DvmTo4snCk+w0n7MT7q7rDLFqCzXFv+Tky1aIVsF/zQ2PS u9vwqv7Q0xyaCFSTVxVUXXMbCFeYoIURPdOq9SUWcUxUSgRCnokWmca53HE64tVDiDBI sx6dhDudiyRE4Dnnt50CKIX2NwkE2VcjY1bFGU2yjgJWgo8kFzHJB3+kSIMFr9bbtkMn odcsZVlmNv/de7xKe53maUVWRPoM9t7AvInk85csG0tHIs7D932gHzissaLwr1bmUREO DJ/1dfSOJ+ofQxyVLZe+nPT0kd0xzsJ+Gp0zBCoRHFjmX1rmnUklXOHQos6dM0EdGrK5 uh6g== X-Gm-Message-State: APjAAAUFTehFC/LWElywjljrIr2PMuuGOx1f17cCnHQqJGwCm44J+4MX QXa/jmjlataOchg5gD21B8T8aw== X-Google-Smtp-Source: APXvYqwQtbjOA+LgFw9D9m/MpkVGZGsdFLplASjyH4Y4zZfGfXEFLj/waqlT8q30K1PrDBe5Rp0I7A== X-Received: by 2002:a17:902:362:: with SMTP id 89mr5872284pld.172.1552311428246; Mon, 11 Mar 2019 06:37:08 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.199]) by smtp.gmail.com with ESMTPSA id s79sm9960397pfa.61.2019.03.11.06.37.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 06:37:07 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Subject: [PATCH v8 00/15] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Mon, 11 Mar 2019 19:06:22 +0530 Message-Id: <20190311133637.18334-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_063709_994552_17FF37BF X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Here is next version, v8 changes for Allwinner A64 MIPI-DSI support. It depends on DSI fixes/update series [1] Changes for v8: - rebased on drm-misc change along with linux-next - reworked video start delay patch - tested on 4 different dsi panels - reworked commit messages Changes for v7: - moved vcc-dsi binding to required filed. - drop quotes on fallback dphy bindings. - drop min_rate clock pll-mipi patches. - introduce dclk divider computation as like A64 BSP. - add A64 DSI quark patches. - fixed A64 DSI pipeline. - add proper commit messages. - collect Merlijn Wajer Tested-by credits. Changes for v6: - dropped unneeded changes, patches - fixed all burst mode patches as per previous version comments - rebase on master - update proper commit message - dropped unneeded comments - order the patches that make review easy Changes for v5: - collect Rob, Acked-by - droped "Fix VBP size calculation" patch - updated vblk timing calculation. - droped techstar, bananapi dsi panel drivers which may require bridge or other setup. it's under discussion. Changes for v4: - droppoed untested CCU_FEATURE_FIXED_POSTDIV check code in nkm min, max rate patches - create two patches for "Add Allwinner A64 MIPI DSI support" one for has_mod_clk quirk and other one for A64 support - use existing driver code construct for hblk computation - dropped "Increase hfp packet overhead" patch [2], though BSP added this but we have no issues as of now. (no issues on panel side w/o this change) - create separate function for vblk computation - enable vcc-dsi regulator in dsi_runtime_resume - collect Rob, Acked-by - update MAINTAINERS file for panel drivers - cleanup commit messages - fixed checkpatch warnings/errors [1] https://patchwork.kernel.org/cover/10837163/ Any inputs? Jagan. Jagan Teki (15): drm/sun4i: dsi: Fix video start delay computation drm/sun4i: tcon: Compute DCLK dividers based on format, lanes drm/sun4i: tcon: Export get tcon0 routine drm/sun4i: dsi: Probe tcon0 during dsi_bind drm/sun4i: dsi: Get tcon0_div at runtime dt-bindings: sun6i-dsi: Add VCC-DSI supply property dt-bindings: sun6i-dsi: Add A64 MIPI-DSI compatible dt-bindings: sun6i-dsi: Add A64 DPHY compatible (w/ A31 fallback) drm/sun4i: sun6i_mipi_dsi: Add has_mod_clk quirk drm/sun4i: sun6i_mipi_dsi: Add has_mod_clk quirk drm/sun4i: sun6i_mipi_dsi: Add Allwinner A64 MIPI DSI support arm64: dts: allwinner: a64: Add MIPI DSI pipeline arm64: dts: allwinner: a64-amarula-relic: Add Techstar TS8550B MIPI-DSI panel [DO NOT MERGE] arm64: dts: allwinner: a64-pine64-lts: Enable Feiyang FY07024DI26A30-D DSI panel [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel .../bindings/display/sunxi/sun6i-dsi.txt | 3 + .../allwinner/sun50i-a64-amarula-relic.dts | 39 +++++++++ .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 44 ++++++++++ .../dts/allwinner/sun50i-a64-pine64-lts.dts | 39 +++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 45 ++++++++++ drivers/gpu/drm/sun4i/sun4i_tcon.c | 7 +- drivers/gpu/drm/sun4i/sun4i_tcon.h | 1 + drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 83 +++++++++++++++---- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 9 +- 9 files changed, 252 insertions(+), 18 deletions(-)