From patchwork Mon May 20 09:03:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 417 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 539853F36B for ; Mon, 20 May 2019 11:07:16 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id r4sf9527454pfh.16 for ; Mon, 20 May 2019 02:07:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1558343234; cv=pass; d=google.com; s=arc-20160816; b=AOMD8rTAze3FMaOCHE7ShwMFLNb1EmbZ1zQFeYh6axRTNB42vyoMWR3SVzuAnjwS9j jlHACXbHVlqbIDnMJdKtLHR6kDqD9zdcrCAlkrDyuwEPzTKSAi/xUXCJ6+kDOPlkRdMD wJakc0XwMgXUpZyEsnd6EQxCl5k6QccD9vjFJAypS3fV8IGMWJPAGr/NtY5U7IbOO7xf z8S/hoVrge6lCK9cazwcXzCae+uudlIumTp8Xs4WXCqsDNQmBG1K6ggWzSQOWkXTqg8D PnfF6c/NhRlPwWsOwGOPz5dLlPumXBJmVoW6b3ZnTDpCzRUBvtR3uvgq8lPYyWuLtHQJ 3Q6w== 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=FoeX67WuOjHUNPkrX6vsiiBiHJ2++hi06/hDZVaUa9c=; b=oAeTSZ39cHBvUh71NJSM3vxXUdUMnys7H3A9hJHoOVJt3urVgHIvl/lOxWc0qX4H8i Q1lhKHYDnJ2gJPfzj/NrgaP1z7kroYq9oF3raMq4aq4Ai7l2Fd1+dOaGX0LBjUTpj9fL 9NtCqBjWYJ5KfH4EMEMulD8w1fIIfeQytAX3xU5jRWFDHeKE9UOgI2YVO4pE/yKTVsQi p3+1YjmKyevFwZrCBlddHWmpzCeFOHkwzsM0Wx1fwFKT/HiPuQjxD56FXCBae8ZHXOg2 yY4en3FfJxJDyiMmy2+T5knfuaOQsNoQ0QdwZ6vZdYGh6Tz0W0aJdGWoDRV+4m/WFcD5 rSqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=D19AjoC0; 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=FoeX67WuOjHUNPkrX6vsiiBiHJ2++hi06/hDZVaUa9c=; b=NX0v4cogGIO+lOXGtaglR8r85GSUJ1bOg/1aP0PvARpq47nwo5nQE0d3UJx3IL6dJN sz0GvvkuFRGbca3moVooQuQm80MDWRNtPjUz+eE3fesoA17FppVJlM0RfEg/fUsOEFoy X8lOQckumt876dhhOh3IavJHzNeMyaeJ/htjQ= 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=FoeX67WuOjHUNPkrX6vsiiBiHJ2++hi06/hDZVaUa9c=; b=J3RNta7qcJ1RFcpcZoVASgXcljpGgU/4/+4zYJGPZc2JG5/x5burRgy7B0EPcfk6LJ GG5Qr1rp54knlafZOod4IZeLaTMiAkkSppPFnaQgnPzsDcIOq/uGi+/V6UMZMIuL2D2Z pp5Y81+99H9S5AWDnncrJzC2pOQAy/QGgNTBh3ENYVo6iYQxNwNn97a8Fr0buD2Ff2if BkzMEwcekd0YMPchMXqbBEh8/vyGUk+3dukUyOLZndTlXE6nE5bVOClxTXv70iWQDwzq DTKNbTnDoXpwW3GVgeZy0i7CwZZBSTUNTM5TneOECfaP6AEDdeuYX/UT7D1nAf94DEY/ axnA== X-Gm-Message-State: APjAAAVKPRENS5bxj6QSC1NNe8WWK2dB42bbdyHH1meoBgttVVhYuGKT P0pA42impkHtrwyvtE72OPrFmtzB X-Google-Smtp-Source: APXvYqzsEfKx0GOECRZ04YHk08H/1ErdIIA/rYeij655WZIW1SZT9s8jLGsXbGLyX7+kgJukR2OjuQ== X-Received: by 2002:a65:42cd:: with SMTP id l13mr21083236pgp.72.1558343233758; Mon, 20 May 2019 02:07:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7609:: with SMTP id r9ls5078976pfc.12.gmail; Mon, 20 May 2019 02:07:13 -0700 (PDT) X-Received: by 2002:a62:1844:: with SMTP id 65mr66694757pfy.127.1558343233362; Mon, 20 May 2019 02:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558343233; cv=none; d=google.com; s=arc-20160816; b=gOedPdhSFCVMzv3CqM/GbgCiUf2m5rgrEZaEJrzXOFSsG4PBlqGHX00trUgKBQDWW3 QVHDT4plV3YUiumVe8cAodP71Bbfs48GMdzD/VNZb1pb/UOgdJ5jC7fFeFVyyTA2vgZ5 iyg2HvTmQsQg50xDDixAjUEMEm+IGbbQqJqQnRH8dM2bWcqxfU9yQWBDnm9WmFEPnImF 6Sm0C2gHai1JNo6VZTgkQlfOf/jM2uRFO+rOwiV8Bkk/DnBoZaL6U2GBfM/UYkJUiXOL BkwwhwCjWkhydQ7k4Jv6H4cP9uZPRfGvNkESCYJ/mgYJy1hXIN5hlqZJfw87qUmZcAlL HYgQ== 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=5cW/Ykas8y/ulbRnNYCc1U7OJGD9GTeKEiiivcIo+lE=; b=kfPs/onpUqZSqTH+rHLm755p8BcCRzse78tlamnl9nzdySojpl906+exV30Kv0IdPR IPqsua1IZ4+3nu9P1ryzMUvVE8QSCrBlhSfviMYVnMCM8bews9iyLWC/kMc5D9g9H5KJ ZP5tRSjSdQrc7D/Yo1lznlfO488BFvJSu1iO9Woq/HEwAbRGaRsTtb4uE2ymKET4hv5O SYWx/UUk31iRo6p1g8d+ddPY5tZJR1diYJekLPHsF4eDZEnJgQRnY6ptGrkWk4uW3h1I 51X4ba7Gpi1+evNmAQLog99vjUWNPf8WQqlV6vIN72mCtQUowzXrgHDh5IF69N+ykkuL EVBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=D19AjoC0; 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 a22sor16802542plm.8.2019.05.20.02.07.12 for (Google Transport Security); Mon, 20 May 2019 02:07:12 -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:2a07:: with SMTP id i7mr76936917plb.125.1558343232148; Mon, 20 May 2019 02:07:12 -0700 (PDT) Received: from localhost.localdomain ([183.82.227.193]) by smtp.gmail.com with ESMTPSA id d15sm51671614pfm.186.2019.05.20.02.07.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 02:07:11 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: bshah@mykolab.com, Vasily Khoruzhick , powerpan@qq.com, michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v10 00/11] drm/sun4i: dsi: Fixes/updates (A33 reworked!) Date: Mon, 20 May 2019 14:33:07 +0530 Message-Id: <20190520090318.27570-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=D19AjoC0; 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: , Most of these issues are reproduced while supporting Allwinner A64 MIPI-DSI [1] but to confirm it with other SoC this series is reworked on A33 since the controller tested it A33 as of now. Since we don't have proper evidence and documentation for dsi controller in Allwinner, these changes are more likely to rely on new working BSP codes (even the initial driver written as per this rule). All these fixes/updates are tested in "bananapi,s070wv20-ct16" panel on Allwinner A33, the same panel timings are available in panel-simple in mainline tree. Changes for v10: - reworked previous "Fixes/updates" patches on A33 - reworked previous A64 DSI fixes on A33 - added proper detailed commit messages with logs - tested on BPI-M2M board. Changes for v9: - rebase on drm-misc - update commit messages - add hsync_porch overflow patch Changes for v8: - rebase on master - rework on commit messages - rework video start delay - include drq changes from previous version Changes for v7: - rebase on master - collect Merlijn Wajer Tested-by credits. Changes for v6: - 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, v4, v3, v2: - use existing driver code construct for hblk computation - create separate function for vblk computation - cleanup commit messages - update proper commit messages - fixed checkpatch warnings/errors - use proper return value for tcon0 probe - add logic to get tcon0 divider values - simplify timings code to support burst mode - fix drq computation return values - rebase on master Any inputs? Jagan. [1] https://patchwork.freedesktop.org/series/57834/ Jagan Teki (11): drm/sun4i: dsi: Fix TCON DRQ set bits drm/sun4i: dsi: Update start value in video start delay 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 drm/sun4i: sun6i_mipi_dsi: Add VCC-DSI regulator support [DO NOT MERGE] drm/panel: Add Bananapi S070WV20-CT16 ICN6211 MIPI-DSI to RGB bridge [DO NOT MERGE] ARM: dts: sun8i: bananapi-m2m: Enable Bananapi S070WV20-CT16 DSI panel .../bindings/display/sunxi/sun6i-dsi.txt | 1 + arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 40 +++ drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../panel/panel-bananapi-s070wv20-icn6211.c | 293 ++++++++++++++++++ drivers/gpu/drm/sun4i/sun4i_tcon.c | 7 +- drivers/gpu/drm/sun4i/sun4i_tcon.h | 1 + drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 46 ++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 4 +- 9 files changed, 393 insertions(+), 9 deletions(-) create mode 100644 drivers/gpu/drm/panel/panel-bananapi-s070wv20-icn6211.c