From patchwork Wed Dec 18 19:10:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 930 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6F2D23F08E for ; Wed, 18 Dec 2019 20:10:31 +0100 (CET) Received: by mail-il1-f200.google.com with SMTP id u14sf2539693ilq.15 for ; Wed, 18 Dec 2019 11:10:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576696230; cv=pass; d=google.com; s=arc-20160816; b=xZx3n+Ed1yuv5Nbfqns3dxRQlQ3JhJcBKFavHU7+TWNixnm4DneN7A9edA21F+ejdu SHYB7PHWD6ZKsBNj6rTXtBCl4CdpnDQBU3KXEbJW07aOtPgPf8GvhYFri8GUSSIrXReR Bj1UkwqsGdrpGlEB8W1NIM/i2op/Exlw6KJs+9hB4jqogUNhrr7SdobIXkZKCa+GMM78 AoK91z3SYCqePoDq52hPh+0KhWylayE31BRqkl7AKvbgVrn43UJvnyhD2qKAVzd90XHR UGXeKE9/6eZIppY9ak3ZOjbYRsIx7Ou9i6R4l5pCUPJec6dXqnWD7n1TZ8AcLSSFtMkO jWEw== 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=+Fdr7K16BogQiB5Pqvut64eIlRyCEuDwL5IeWeLqoEk=; b=OYMYN3fvqqPbaT/mAqqxVgAaENtYbi3287lfhM/WUrs/Dlw6Badep6LOC9/0rmE+DO +MUNDoG5GlILfHVsU7OQr7ZTbuTRec/jT3D9cNKyVrgHNtoypWohnoB4QLjvaL5jCr+U 0mbD4UtT5yi1YZtFCHMfAgq7Br6utLjJeAi7esZ/eLY472KeComJ9Zr0ItyzEfszq6TR hVd73A76T/lpTYfOxr5f6FpDOjhwwSi6fH5f1l8S0qrMI4qUfoZT23Js6wkP6TFgAkqj QsRjKDIfI26Ndr1Eqkq1W283vBqoKq2/KfMkGCaddIsdrtGvJqUz4Ea4ufC9acjXbOoR 5okQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=S86ZB6KZ; 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=+Fdr7K16BogQiB5Pqvut64eIlRyCEuDwL5IeWeLqoEk=; b=H0D2d1PPvB1QDCtwvOcrZvdmpSoXzERBFoTyex9sqye/gdFoaQEkK8BljwGq0/RaNq UFc4B86PNQg7OWoiQ48oKNqFVnygtH7WuVZwEZrGWIu1V9aq5CKL24RRqmexu/qjG7Rt ma1OdNaod18TqWZGXTjxkQKw1hvol/ZF9mJaE= 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=+Fdr7K16BogQiB5Pqvut64eIlRyCEuDwL5IeWeLqoEk=; b=BqsTAfgFJIfHU4IXfx7vY3Eyj5GsjXMlnKpRmiIdZB4vLNcVE89Vk08U/yWTswWYNz cagu7581zv3d85poVV33Sr+IYcoB4+v4NvpGKBShdoqQ0/2NiCWGn3VNu8ul5g4WHYNJ W4s+1noQgOe1bVzwjI+ozpjrfh1hwHXRACCBzwpjzEThSXk71yophMmgGI7isXasLSF7 I6XfocRBA1JjMkkkCda+3HcJ4Y7NJD33rgOfCM+4MFbc3to/6mUyyIFMh1kW6lZnEvG3 RM//MhOjc+sVA9RvtK7aWZaIaZMyVY6L/cxZV/iRbt/QMRCsUN2fmLnBtGPCpD7V2RF4 ap4A== X-Gm-Message-State: APjAAAXryBWzmdLNqJzzJ5lnUjNLVKrs+TCrvnPDPMt5cuzGf6iV1+0G TGZFqRaJMDjzZtZO7V1LNE+C8VWB X-Google-Smtp-Source: APXvYqzS3Vrzc/WIW6Wx4TTyVcpaZO3Tk7ZwzAJu4XDcyva0HgJkwDMpkQFoUe5EkWnVkrwU3BISnQ== X-Received: by 2002:a6b:730c:: with SMTP id e12mr2898681ioh.4.1576696229909; Wed, 18 Dec 2019 11:10:29 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a02:c734:: with SMTP id h20ls232528jao.9.gmail; Wed, 18 Dec 2019 11:10:29 -0800 (PST) X-Received: by 2002:a02:7fd0:: with SMTP id r199mr3839268jac.126.1576696229177; Wed, 18 Dec 2019 11:10:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576696229; cv=none; d=google.com; s=arc-20160816; b=qU5foMmsp4MVdxxhi5Y+pNjtBl+vsjXS+g/L3hgyscC6YwyRLBut0wX6OTtKCUiG/u 648KdPD0qhUfWlNjiVzrDPJJ/VXtNP9Rcdb4saeC4Dawf3rAZKkzO3KdZnk54rr5oV+x seHTmCgnKKpR2T1oef+jnS+rPeYJrIVjPqZVkiMEpSCSS6Rkqi+oxCjieOZfqmuBa8gI hswu7Zov5T8kh/fcUqHO/joO9k59bCIv3gJNXUSft+UAWBQmUeqmDEzc2xWpzd4GIuRd 5CZ2EjpyKxV8c9W9v0s1wsOq+IuQXoQoYtcG+wKGXeK3fmSM2bTfL5lsH9FgWZbGSyXr cjbA== 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=EuBd5H0Egt+eDY+fK/iuV4fphB2qstxtMKk6PdK6o5A=; b=Etrj2XvW8I5uAHDUr/Hd6dS1aAJ9/jKc2fmlaP3BYfReS+04bDm1huc8UB8KTIZVra O21EZkrvxM9rZYfL3EbbqFQxZIRTdUJB5V7ISUS/jaUZrML6V6Z6eFsW3YPggYqLtOj2 CSCLdFVU5NTIA+zDKpdk39VoGFda5oPyqcmiDsRIaX5C8jOVakhn4QCLZ+e/8yDLWeT/ PpuY50lAsYtnZ3UNapKwmKjWbaUvGC4kz3dDRp3De0eOHd5L8taqXY2jlhyMIY6Mcmvm Yv+8puAoTysgMVt4McPTdyLaO5HWkPshM7cHn35wdcrUYFBeKu2WS0L+J4lrZS/0SCQf wZBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=S86ZB6KZ; 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 p11sor2055501iln.29.2019.12.18.11.10.28 for (Google Transport Security); Wed, 18 Dec 2019 11:10:28 -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:90a:e389:: with SMTP id b9mr4642793pjz.7.1576696227877; Wed, 18 Dec 2019 11:10:27 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:78ea:e014:edb4:e862]) by smtp.gmail.com with ESMTPSA id q7sm3745855pjd.3.2019.12.18.11.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 11:10:27 -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 v13 0/7] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Thu, 19 Dec 2019 00:40:10 +0530 Message-Id: <20191218191017.2895-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=S86ZB6KZ; 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 v13 version for Allwinner A64 MIPI-DSI support and here is the previous version set[1] 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/70361/ 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 | 55 +++++++++++++++---- 5 files changed, 148 insertions(+), 14 deletions(-)