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: 150 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F0ECE3F087 for ; Mon, 11 Mar 2019 14:37:11 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id n24sf5860260pgm.17 for ; Mon, 11 Mar 2019 06:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552311430; cv=pass; d=google.com; s=arc-20160816; b=SWk7gKKrmahr+/8Vyr2Hmn2onjJ83g+8dbf5qKW18gFl4pEbcmEBlmSzRlm53NIgLM Me7yeb9wXs1pR6/eWREiPRBbIRPf5gNYo+pDt+m8SUJ3EHAMre43YOZXbEW6umaGXJqT jKE8XSf8Ln/zKRmc6XQpki8LVITpBHWXlvInOJPVWFRpAfuSfyJS3ZtPg0Gv8gF23nZi 7vXd2WJvASGdHYfAuVgdLlD1oC1F/zUkxVAb07QilbaxU90WxHimkBYIAVXlQbVU52KN KNI1stcv30AFkV8ArjTQfgfz5rVizNPqc7BcmNaVJ+S82OYQKaC4O4tmqvya3s05Ic4r vngw== 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=eQNH5cA3Kaj2uO05kzzQJ+i9tV+xUPFa7mjQ6AQztS4=; b=ue/3eqpOPwfU532rtjz6fI3FedH/H/iGKNEdZAicJwaVYjegOtBPLXVWcfVnhkoh/U JMKiBZF23HcRyfw085BDN2GLFh5uxEjFlsONQAakg9M6l78qcNp/gHOOfkaDzppON44+ t/QJLXZGVyf7MYdNx70mVmvipYiEw4ecCJYHDnw58y/2RXwIflDk5Yjm4aZIGkRJgQy3 sAmtIbwf5aaQwW/+I0bxPhZbXOkauJSLc8S8H/t72p6qP5xoa1hRHz84rLfKPfEVtLri bApSErkl6/xnr1PEOYzjlSMqkHtI5kjuz+T0v7EP+4yFvh21xNGyAysNS1tQphlCgOjx 0wqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qBrnrwK0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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=eQNH5cA3Kaj2uO05kzzQJ+i9tV+xUPFa7mjQ6AQztS4=; b=jwwC37YUsbgOzSpdHrQA0I/f00qAHOBIaPpRK+fxn4NcIu7gFAaDFo0S+G8XHpHrWi ffv04ubOnOkq6ePvHgegAqVQ1AfCdfssV8lmpz0ZY9MSe6r4Sr2+z/hBVv2+9SdyCeIq IlyGX+9Ynpae9vw0cT6xUcX2MCGrNMx/mVv/I= 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 :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=eQNH5cA3Kaj2uO05kzzQJ+i9tV+xUPFa7mjQ6AQztS4=; b=ftp0+1TAM/nKabCQ7n+F/NIC/9qPNkpFbRIEfuqeCAehoBOmkVK15l28oQKdrsfeg2 yTemZJYPAtmBRRpkhPQ2sj9PSdFp0XkE5EU9ZznUlOP0FLaZUhBTmm792BMpyAmDu/ep 05vZFcHwaVsbd2g/7gKCjvKfqYnaFWxIGUy9q7VpK3qLmqgin+++TGCZ+4Xn1SqVXpI5 nOnaC1N3xNIer6xR6wC5oSz5nRLfxWP0d00YPsYxFZ1UR0JhPSk6+sRNh4sZ0i4gOi/J +SvZiDZnu2gIBqYthkSAYckbXm+L+nmZ7BGCU6ktwPW0qifrUZhinB/pnFWNzRwwwz6a Yy8A== X-Gm-Message-State: APjAAAUpPOV105r2De7ZsnwTLHOxAExtOom3oDEuLWSkAS7AluEzFILV Hfb0kK1iePjbF6A40AlpZaBrkkjD X-Google-Smtp-Source: APXvYqyE9Yfaa+sr9n4leJLOEM4FXcKiaC3vU5QZQoAZN1Zlvf6poLgzAf3gSKWvqo9kA4G+HalHVQ== X-Received: by 2002:a63:455f:: with SMTP id u31mr849957pgk.14.1552311429887; Mon, 11 Mar 2019 06:37:09 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:4554:: with SMTP id s81ls7742463pfa.3.gmail; Mon, 11 Mar 2019 06:37:09 -0700 (PDT) X-Received: by 2002:a63:1014:: with SMTP id f20mr30442136pgl.293.1552311429428; Mon, 11 Mar 2019 06:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552311429; cv=none; d=google.com; s=arc-20160816; b=T9hbXrYiiJ/s1V8ZEkjrDSLADG8Wgo1GiK0YGwvWBSBkuDwymJ8d9aAfeJ83654RtS X+ZjcomUHSIoGQAIaJiSU/LK0R7WdE81lLsbDOMAxT73ksB0Jb2cj86qpESU1SLi5unI 35JAYrIBbyxpWuAMp1c7gBaG2o8e3d+OkwlBYrzCE9DmhZ59tz4PSSkOjCcKg9tyrDWg O5aXmlpL7Z7BkUIomd4CYQiphiG/EawbRz/lyDFqKjOx5/snxznQUBIn5faGt9YZSnUr RynPhnyRV34m4AxGqYLIzx+Exnhu71oCVD8zpOb6ScHqDNsoG8gjijISU0XnfmKRPeWf MOPA== 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=RvQ7bY5HMdYTAsw8Sqg/G++8mHvUTc4957a2ztYq/EU=; b=B0d3Niz5z/hhXl2D0VMEch+I49unjVoB3euOIyWbQENZshit5k5hDdzQweCh6Kd+2h tOidH5wG44PPAcBrLfCOHWtzQXH/xbcoBpcNuAT1hAMPElhFSB08e2TSsxGPM7BZZdnw iydLYwlIc/h9k+n1iY1y0BBeVf8k8rSb3DOYIG8r/uIeondwN1vfWSPY8MYEVT8dsw0Q UceqCy8e+CaTqYJZhJ8XJl3iHItd36H17SY2SmuMZw+wjrqTwurtNUkgNZazdtGHokai o4+5ntg5gd/txYcN2Ovk9kNuOOkT5+qtCCSbii1DEtoRVdqZNyuOOX2vybSZGebNd7O0 KuLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qBrnrwK0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c24sor8335408plo.69.2019.03.11.06.37.08 for (Google Transport Security); Mon, 11 Mar 2019 06:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 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 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qBrnrwK0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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: , 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(-)