From patchwork Sun Dec 22 13:22: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: 950 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D5F063F042 for ; Sun, 22 Dec 2019 14:29:29 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id 8sf8932503pfb.22 for ; Sun, 22 Dec 2019 05:29:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577021368; cv=pass; d=google.com; s=arc-20160816; b=Oqrn/qY39409dTPDWO1MRRX+Rm9FXQmD9Lcc8CYzJtl2cvyHn7RL1Nstmgg6KZ02Vc UpoUku1004QmVarW8f7Y3Ki4F/w9CaT1NJTteTQFQDPYqe314wVg4B2xfdnqeDYFmYwZ RC+xB6QW2u0Rnlonw1PkmI+geDLkyqKWieXA+00ymCaD8OLnxKFbCdQpyp51xtAOTGga Hymw8u+ARKVYgQg5HWVCAgzO2xasAkB4H4d3TIMuQTJP+B+4bu2AjXaHnpk4Go/ImgyT YjVnozKzdFrr8bl7y/uhr8PhQzMqTwigqGD+h8uNrUd3/K1Aq8sG5Qkq/SFJFOIh+Xp5 EbeQ== 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=66hRBBMeZsgLTFudH5Qzo1rnu75EIo8m2lMFgqJ9u0M=; b=Cs9SyLFEioKLD5SZ6PSR5CJ5ptt3dLFuJO8WEFeaia9ejwncrhu+OLydd/9jEEg6sQ rrpkknojxzRoZ0eCQmhK2xPOnK2wWn1nsSdpC+jWnm6i6OnA8vTGUNYnMdwrUDAkNv2g Jmr3zUPC3LADutpmSq6D1eM3XS4f9bHBGq3wXzbI7WAuyLllcPrVojsyEE8vmVWszp/4 hUd9QkQoVsRaGfTGKyaHYN0srIapiPM6r8IMXxCnobxQSPISWX8PTaNN+jzumTA1mDVC T93T/Rr3UR1S8UENSCkKxRVmMkG3a3B5r3j29jjM0g81EAwsXeDQjV/slllHC/gosBAm 5mIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XcW78meM; 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=66hRBBMeZsgLTFudH5Qzo1rnu75EIo8m2lMFgqJ9u0M=; b=cVfA+dOGngi0iNycnNsNQiw655bKxZqadgY+ocGJXelaYbJ45lByRxGYtF7QY+Zv1l MV179fE/PNBoW2em6Xb/bWA2aqjfWx4iB12DPD3WeMaJoCBLupvifnAsV9iudceAqYwX c4W1zM1MOA/Gh+tTp69NmZXTxCqws1wYMBfCk= 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=66hRBBMeZsgLTFudH5Qzo1rnu75EIo8m2lMFgqJ9u0M=; b=RxwkHmfyZLEufy3PFw/5zdIddW9yvXc2m5J+Dco2kRLGyTtfI/CGsRu8HKzmpqERSl y3GYwY8Xpxq+cCd4WZfJASWcxDSumgYsH31p86uLvuiEhhF1J9bCdMl3DtgfhpzWqjc4 hIEEcWeF+eQcQCmjZar2k3dxbn9qhpnaoTxhtZ9jIa4wjC7CC7RFrZU7ulA7Cen1kE1R 48+rhXGSiz+x2ZlH8BCgSQK7mfxwnkk5K01kQSC7l8lhm5UFkrhCyLZAdvGznYX/KXXo Nfu6RDy7mc2PYxeGbMApouKL4MmJ2UUF9l1/Q5yktTLasviathPvEAwlnfeyI75+8w2o x8ug== X-Gm-Message-State: APjAAAV8cICxypYflPf7QHW6vgeRp88EYXES4IyxnPBbbVauSMoeHXBH GA/UuBaKIwKGnkdF1BLNlQoVr45s X-Google-Smtp-Source: APXvYqwutMExQrNOWlyo4DogtHO0s5SrVudewHnpjMjrq9Ej/vrETTeRWTz+1nxNzyfKrH9axpsmtQ== X-Received: by 2002:a62:1a09:: with SMTP id a9mr27377168pfa.64.1577021367872; Sun, 22 Dec 2019 05:29:27 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:aa97:: with SMTP id d23ls3544189plr.12.gmail; Sun, 22 Dec 2019 05:29:27 -0800 (PST) X-Received: by 2002:a17:90a:bd10:: with SMTP id y16mr28718065pjr.108.1577021367380; Sun, 22 Dec 2019 05:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577021367; cv=none; d=google.com; s=arc-20160816; b=FsD598mZ9KAY82IqFK6mRgqZ/9cLUxI8DG99AINKuhXWNfhFM/0r9aknaDDIFrw7cD FIx/sGROWyyUVZJgkEtS1R1+zXxY+WufPM08KN9rX2UwoFpCd0r6ljdFqWb38Fzkt0KF z3LyHhPmIqTyyqKerC1HEtcEeB4aGE6Nchk5yumdr//JsenY4QjwU2SMb10ayGWA1uyy I9K/y1RvSbz+HyTokQ3x+PbRodlBakQeBhk4uHX2hwfynoVVEzDdqh5WacSMaofZt184 HzQSUNnol9Z8bPWNsGxEPRVgOk+k5YFB86UkdV25nXuebGL8zObW8yY/Fsf/xdiBxjNQ +ryw== 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=LWZqcIgXzVjxh5QO9iqiielSvIWzDSYtzjB+sutWZrE=; b=ssPsy75G6FrOlDCwLxDdt3SPNbWsgTROE6M8qoQoDCFqyLHUT3Vdkr9xQH4aZuUaSy Q4S3JWbuDnRWjRZtwiEcf6wNoCIlAlHGzuPNf9CU3aV7rEo7RbhsyagN3MYe/BXVQTWV MzX8Oodr9jaHLSZyOcaun6ruvEF8vF9/dP0wD5zrNll6ZylrHFNTTsn8HJo5zaSMVHa2 UiDnhVdGKTLJ/saXDgwO+lKjsOFsH0IbHVrz36sdqPKA94QidmR6i1vleoONxBOaJqQ7 bqGwjLAvDdmDyH2IGoebRwKd2uGHrrKL7fBBE5aNVwmHtB3pDtHy6N4G77maRRETpOVb gjuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XcW78meM; 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 p15sor16997339plo.24.2019.12.22.05.29.26 for (Google Transport Security); Sun, 22 Dec 2019 05:29:26 -0800 (PST) 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:ac97:: with SMTP id h23mr26261351plr.237.1577021365959; Sun, 22 Dec 2019 05:29:25 -0800 (PST) Received: from localhost.localdomain ([49.206.202.16]) by smtp.gmail.com with ESMTPSA id o2sm12073058pjo.26.2019.12.22.05.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 05:29:25 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: michael@amarulasolutions.com, Icenowy Zheng , linux-sunxi , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v14 0/7] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Sun, 22 Dec 2019 18:52:22 +0530 Message-Id: <20191222132229.30276-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=XcW78meM; 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: , This is v14 version for Allwinner A64 MIPI-DSI support and here is the previous version set[1] Changes for v14: - drop explicit regmap_exit, clk_put Changes for v13: - update dt-bindings for A64 - drop has_mod_clk variant - use regmap bus clock properly Changes for v12: - use enum insted of oneOf+const - handle bus clock using regmap attach clk - tested on A64, A33 boards. Changes for v11: - fix dt-bindings for dphy - fix dt-bindings for dsi controller - add bus clock handling code - tested on A64, A33 boards. Changes for v10: - updated dt-bindings as per .yaml format - rebased on drm-misc/for-linux-next Changes for v9: - moved dsi fixes in separate series on top of A33 - rebase on linux-next 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.freedesktop.org/series/71131/ Any inputs? Jagan. Jagan Teki (7): dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller dt-bindings: sun6i-dsi: Add A64 DPHY compatible (w/ A31 fallback) drm/sun4i: dsi: Get the mod clock for A31 drm/sun4i: dsi: Handle bus clock via regmap_mmio_attach_clk drm/sun4i: dsi: Add Allwinner A64 MIPI DSI support arm64: dts: allwinner: a64: Add MIPI DSI pipeline [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel .../display/allwinner,sun6i-a31-mipi-dsi.yaml | 33 ++++++++++++- .../phy/allwinner,sun6i-a31-mipi-dphy.yaml | 6 ++- .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 31 ++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 37 +++++++++++++++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 47 ++++++++++++++----- 5 files changed, 140 insertions(+), 14 deletions(-)