From patchwork Fri Feb 1 15:42:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10793115 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 E072513B4 for ; Fri, 1 Feb 2019 15:47:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0830322BE for ; Fri, 1 Feb 2019 15:47:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4B4D322C4; Fri, 1 Feb 2019 15:47:39 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50D12322BE for ; Fri, 1 Feb 2019 15:47:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbfBAPms (ORCPT ); Fri, 1 Feb 2019 10:42:48 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46338 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726172AbfBAPmr (ORCPT ); Fri, 1 Feb 2019 10:42:47 -0500 Received: by mail-lf1-f67.google.com with SMTP id f5so5344189lfc.13 for ; Fri, 01 Feb 2019 07:42:45 -0800 (PST) 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=A22uir81fxgwqEF4Bedd0Q+/lE3uOtREaGIRzGAGHUs=; b=hEjORLL2y5TjTB/m2fJdJpsIyDbmYRwajPlQ7vKMfRlK7+1eBUKWAE2OttAIF/8kKL n5KCQAjNCISCXZDpN5Vq7Ovm2ULvl2uWPZrRIN+oU7ZSCsHffP4mMwUjyv1Dory3QGnI hA6+T5ET+tuWihP1BBOQ+ewcRiQMJgd7/2a+U= 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=A22uir81fxgwqEF4Bedd0Q+/lE3uOtREaGIRzGAGHUs=; b=aJW8Ba91OGAXF5OpfLFBPFvaIPiXbR351j2yZ+dsJJR4t8AR7v2/CwRd/TKupiKO5H 5an7svdgsPb40JSJB+BCeSMXpo6zJ9kYfEFTMlN+Y8RhmGj6YXOS7sHefNMK+0I/CV5Z N4Ky0l5d2gJCJ6i0kogdWq7QW/Dj2sAGycjxLbUJweN++k4GakSYH0KUmUh4s3k90buV kOv2mIeAituapTwEUbgHJHO8eGDMifNpWS4pjTFKy/HH6sXChRS/7hG9DlWIjq6tcUcd W1qctZf5JwZCb4GxYSpm6MsBBhaXZvLw3FOYMb62SHbRo/1esNbk9LJNjb8KsbO4m9hi 0GKg== X-Gm-Message-State: AJcUukf/IauJlfrSMVRYOBPwOaKpjLAn2Wggybf0dMxGmf2yGJZ+wgYb SsShPkaw3nbktNKBIh6XdUlJUQ== X-Google-Smtp-Source: ALg8bN5ZFP/gtsrvDiurWLzzUmGkalMbM7MYMtZ9gIb04Cqd7oZwM2kFyc9ClfxRUh0a3qt+n7HpGw== X-Received: by 2002:a19:7018:: with SMTP id h24mr30782283lfc.162.1549035764223; Fri, 01 Feb 2019 07:42:44 -0800 (PST) Received: from localhost.localdomain ([217.76.202.68]) by smtp.gmail.com with ESMTPSA id i13-v6sm1305712ljg.82.2019.02.01.07.42.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 07:42:43 -0800 (PST) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v7 00/23] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Fri, 1 Feb 2019 21:12:09 +0530 Message-Id: <20190201154232.10505-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Here is next version changes for Allwinner A64 MIPI-DSI support This series grouped the changes like previous version[1] with different sets to support three different panels types that can fit into the DSI controller. set:1, for 4-lane, burst mode support - patch 0001: 0009, DSI controller changes that support burst mode. set:2, for A64 DSI support - patch 0010: tcon dclk divider computation based on A64 BSP. - patch 0011: 0017, Allwinner A64 DSI controller changes. set:3, enable 4-lane burst mode panel: - patch 0018: Overlay patch that enable Feiyang FY07024DI26A30-D burst mode panel on Pine64-LTS set:4, enable 4-lane video mode panel: - patch 0019: msg type MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM support - patch 0020: Overlay patch that enable Bananapi S070WV20-CT16 ICN6211 panel on Bananapi M64 set:5, enable 2-lane video mode panel: - patch 0021, 0022: DSI hfp and hbp timings fixes - patch 0023: Enable Techstar TS8550B panel on Amarula A64-Relic 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/10779893/ Any inputs? Jagan. Jagan Teki (23): drm/sun4i: sun6i_mipi_dsi: Compute burst mode loop N1 instruction delay drm/sun4i: sun6i_mipi_dsi: Support instruction loop selection drm/sun4i: sun6i_mipi_dsi: Setup burst mode timings drm/sun4i: sun6i_mipi_dsi: Simplify drq to support all modes drm/sun4i: tcon: Export get tcon0 routine drm/sun4i: sun6i_mipi_dsi: Probe tcon0 during dsi_bind drm/sun4i: sun6i_mipi_dsi: Setup burst mode drm/sun4i: sun6i_mipi_dsi: Enable trail_inv and trail_fill controls drm/sun4i: sun6i_mipi_dsi: Enable HBP, HSA_HSE for burst mode drm/sun4i: tcon: Compute DCLK dividers based on format, lanes dt-bindings: sun6i-dsi: Add VCC-DSI supply property drm/sun4i: sun6i_mipi_dsi: Add support for VCC-DSI voltage regulator 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 Allwinner A64 MIPI DSI support arm64: dts: allwinner: a64: Add MIPI DSI pipeline [DO NOT MERGE] arm64: allwinner: a64: pine64-lts: Enable Feiyang FY07024DI26A30-D DSI panel drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel drm/sun4i: sun6i_mipi_dsi: Fix DSI hbp timing value drm/sun4i: sun6i_mipi_dsi: Fix DSI hfp timing value arm64: dts: allwinner: a64-amarula-relic: Add Techstar TS8550B MIPI-DSI panel .../bindings/display/sunxi/sun6i-dsi.txt | 3 + .../allwinner/sun50i-a64-amarula-relic.dts | 39 ++++ .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 43 ++++ .../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 | 210 +++++++++++++++--- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 9 + 9 files changed, 367 insertions(+), 29 deletions(-)