From patchwork Tue Dec 3 13:48: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: 914 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 1D2033F0CC for ; Tue, 3 Dec 2019 14:48:33 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id t13sf2288097pfh.0 for ; Tue, 03 Dec 2019 05:48:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575380911; cv=pass; d=google.com; s=arc-20160816; b=BENBhEC27fHCod14txeNzSXLK3BC+5x2PI/z14BM6KUatL8u4TlfM4TEoRFuJbbFGt kCOmaATiNzFn2+4HHUepDWcuK+euAvvLH1wX2jlaEbZtq0cGb68U+D9LczZVPrMJHu5B tSa1cyri7FjeN8fDgeP7c2bCxwQgrcpzzd7qTmu1WdTBwj4BoUCOjR4YluOad/unFgeu bBjMk/DkkAsuRm0QzQmy/bneopNLum7V/kJ3a8wZmrYAuaa2Dud28+d+IsJHLQBE0EJ+ ObAmQ1fOgt7e33SJA4eguBvid2SACp1OKBjEAKdhLhDz1Qfd4CzLFSGumawscsFhi1PH Gn2Q== 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=pkXTdh16OhBhM4ln2C8aJlPTUAeDRCgOzfF84mQPxjI=; b=X4OiS2UxKhwIhy7D3LF93zKB987aQlelrvbl7YfXkLx6a8bBvts6VeAPBdMDabV5Hy TmhJCnIXPOF2Yq7d11Wb0i2vswgpFOWyXRlmGseZ4EDucxBkWBPLOkO/SiBNZqZcygRZ 71CVtqog882kiUTdjHyuxZwYuEbE9U5Vz6CkDwZLLSNsHJJnhrH56gMoxnjy2a5fCItZ IypTSNUFRFVca/ca4DFLomA/Nc9o3p3tOfU6W/eislCsxJp6nIaJFS65iWX+3o85N8x8 fyFxnIxfvvVQ5h0vqkvNh3ZSm+DWKI/BT5lFpUrnRQbqihMSypiLrTfJQfdq4D68HMRp Y1gA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O7md203+; 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=pkXTdh16OhBhM4ln2C8aJlPTUAeDRCgOzfF84mQPxjI=; b=dlmPSh6jnKc3UqXKegDhClv0JXLk0eo9YSGT57dXrUDH57gGwELusk7Sw9U4gs2oXV HZ/Xnn8h7nbqLoJqCo36Cn6s8mEYepLWXAYFQoCHfX8bTpVWn6B1/gWk30+q6Y0QlF3v xBIEEQerz9jtNDcupn4JFuAQUw5hTMmhzJaso= 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=pkXTdh16OhBhM4ln2C8aJlPTUAeDRCgOzfF84mQPxjI=; b=SlSu5m1ILGjIwOUC+ck8GfgHf2/ofb7xR8uqn7tABfJAyhb940YSCczEeSH45psb9I BVhUEKVEtBLj4sZ/PeniF90jjh/UsmpzvbBIi5U2NICP5CXkzdFPgyN4glnhz+ahnP9m x9zHUEclZXoXLMGkgABPiWQqEPJ8Ix+/4aApV0MBO3Y5KKKbMovNfRTM6aWxjbbeS+9K Lka5uIn5+DQPrJFp/YkLUhOIGeLaC7igRCLojt/+Uni1JxhfPOfYo1uS5VcjT4xtqbmw r13fPSEryocx2R+hJ59zNM/mRtw0D02Rvjyclz1xO4TMwdARKGd0go7yzcjLmikQ2J3j 8F4g== X-Gm-Message-State: APjAAAWtH1IU/r+DQ0O4BCjdFZv1pMpatszgHq7nYyKx2L23Qpi7sCRl aTm4zjB7BSNV5Ghp05/AWfKuPye3 X-Google-Smtp-Source: APXvYqzgMG54cp57NuzfXdfX8MldWNnv+QULQQ5feLZ4zd1nUVAgeGkQGzzrX7STA7P1MwTvl4KWcQ== X-Received: by 2002:a62:ee09:: with SMTP id e9mr4662869pfi.243.1575380910917; Tue, 03 Dec 2019 05:48:30 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:868f:: with SMTP id g15ls847429plo.11.gmail; Tue, 03 Dec 2019 05:48:30 -0800 (PST) X-Received: by 2002:a17:902:567:: with SMTP id 94mr4967492plf.174.1575380910303; Tue, 03 Dec 2019 05:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575380910; cv=none; d=google.com; s=arc-20160816; b=QXBVXUdkvSDxXZ3CbEOUQ4ZdK9EE0TSi+McyNCznHMS+UesfmHfgFgHOfSW5k+Oga8 xPFrcRlDff2NbLeBCKeA6fizA8EyLtjDQsHfQvE0sxd9aPknFSPNQQmoB1eIauy2WuZJ 60gBEAMZSRT00LsFvj2XOvaGOX1H8w+DECuTF9l7k2auUkuzUaOCKL1xmSCT+wmAS8cM 20FUQyINaTks18BGPzXvPj5v51iv8THQG//b6yV0iN4sWKib03nJN5gIE5J/DjPNt6eM DPu3VYm7IF+FQlW+vEJgnl+ptf86ysd+OMuVKVpQifPF2MJyxtwA4Pdv2mSb3Ziu2+Ke 4Lfw== 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=7fyH+2F2a+rl1kectMRnZFlHTKNuWeTnYPoVBXe5Db4=; b=fbxvcEG16EyrUmjYA/hse+uO5qzmY5TdeSp4NukxB6Rz145ikbDeMFqlW/fvK7PzHH 4jJjE2xAbDTcKlHPB1+ZbBSTIu1guQyfrd5YizdQHiiz6eDSsu1vx4eBzpBFVfEiyAAz 3tX3XGO3ZG86WN9s1i9aDoQoDbVwFIxfli6y9kLr2iSV31mcOqwaGUx+eTLw1iRmG/KA i24j2DMP/SgaBMgci2qkEhRTVMW4g2I1su1/3rWYt4LfWK9icONcM+XcDqV4H7mxCCpC eZXkPNiRAEFKgeJz0AkcuBRlIkbeuWPQag52HPbuOTOUsdeieJVKAeaQBFKMwWojqrq0 nA/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O7md203+; 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 s5sor3551030plp.29.2019.12.03.05.48.29 for (Google Transport Security); Tue, 03 Dec 2019 05:48:29 -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:fe12:: with SMTP id g18mr4992444plj.20.1575380908885; Tue, 03 Dec 2019 05:48:28 -0800 (PST) Received: from localhost.localdomain ([115.97.190.29]) by smtp.gmail.com with ESMTPSA id y144sm4397892pfb.188.2019.12.03.05.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 05:48:28 -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 v12 0/7] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Tue, 3 Dec 2019 19:18:09 +0530 Message-Id: <20191203134816.5319-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=O7md203+; 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 v12 version for Allwinner A64 MIPI-DSI support and here is the previous version set[1] 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/68579/ 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: Add has_mod_clk quirk 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 | 20 ++++- .../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 | 86 +++++++++++++++---- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 5 ++ 6 files changed, 164 insertions(+), 21 deletions(-)