From patchwork Mon Dec 10 16:17:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 72 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 887852E5487 for ; Mon, 10 Dec 2018 17:17:45 +0100 (CET) Received: by mail-wm1-f72.google.com with SMTP id g3sf4772676wmf.1 for ; Mon, 10 Dec 2018 08:17:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544458665; cv=pass; d=google.com; s=arc-20160816; b=GdN4Jd4gim0E85NY9W2gPbB64iqP/o+JWxMKoDFZV5Mt++c2448K2Rg5wi9FKA9mK4 g5GmAtJPPT3E1l3n6mgXLi3B8DhcVuACW/S8cM6B3PHjNsmUyQI8O+BtWu/hxikJOa3E YRxyBjk4VPcRypeVebU0sNFFjhCCDYUjRd98NNhnqbwV6hTRoEE4mKx0+WA0P2xQXmig sY7zwlNs6tLu7CfdJe4SxXs8bgiChpcnQcNwMx7Qllqh0LJa64kYitandx+IzID6A2VN IHlnZebyb4yy8vV3X4zLi3q4gL9UeF45hQLCjGUyC8YxMh3pQSUU7f7gFrHbumZrxFio 2gtg== 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:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4e160jMcepVwiZJsNnnNpZImXigG1UFlKIJPHI/u0ZU=; b=EIFgJb/dLI4woXf+hlIde8mgquQ+yhhs5/ivW1JNEg1RaJFDl6PpJUSkAMQ+vdEXJR 2X8e4APBeimkN7Y0KUAMNTQEvS/r/ILAKt4qaV/fv/IeWcgzaXfOOSlChISEU1mDidlP P3oruJtJpuK4moKzCWgx0r1vEE/M6RrhmdU4E28W0Xe1DVnvpYwLDmoOnOApQmbvCgjR LwoHp4C204mHAflLjnjW00kdW7fMt+3sA8rvQWV0tRNJCaTm6kWaaknw7c4CWpItMikA zMQ/Um8MKtr5RwWkZKGCtu2MoBdSkWosaXj2vVq1lffeG0k+NmMxrakhZJd5ko/kdLi3 chCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PGWyH6gv; 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 :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=4e160jMcepVwiZJsNnnNpZImXigG1UFlKIJPHI/u0ZU=; b=C8G7Zd86zMpTL5DEfEGRvG0saU3u5yB9XCFte1EAdFVCH5b082ygplO1yjNfzIl3YJ dbDEOp9TAKFa73J0qaA9EQ375+shzjM7rRZZokKmqxJPVg+FtGP+uBtOlSzWc5AK/t61 PdBPBi0JN7y9pEPt3KOCHOiC3zZFjKZfco7Fc= 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 :content-transfer-encoding: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=4e160jMcepVwiZJsNnnNpZImXigG1UFlKIJPHI/u0ZU=; b=J7TimY4ACBccYwKQK3j+uFhLh1R7HIJdR70+RnmAkCqQeMOjKzQMnxdJhDuWfC+HLN 41vK84GPQrvO6WOwC2/WgLSXwEZChQ+N6jEjdj9NDonqqM2RDWHKx/cS1WvgIdYxNW+6 S0qQ1XC5WgJq4V5ljss2CY/kNyOVdJMoGHfzb5KcKdUuZ/cSv5v193A6EPsWciZw09Vp 4TT1E/BuUg8yyoAdVAWNAoPtaWRGh+5OqDEClRbDgnzRXvR5ptFoyDCHFSc7yjQ9vigz zeH2Q9I72WbyYvYwYXp2R4Y6AEFoxwGwzC7hVTvszk17kEWvaEJ60nqsB4WlFMr7+1H8 FEGw== X-Gm-Message-State: AA+aEWbYykx1zSDd+iOTbxnG/ThfFa0+xBcZwy4rwESjPuuSH5kkGWgd jinulVLdxZOOOz1V8cTdXGrAlf1Q X-Google-Smtp-Source: AFSGD/XCvKZH8bMzMthMM7wgtxYWBOl60d1kNVeNeqdTfCeJf8tXBGDE4yZxjJw9FkwU2CUVG/hZqg== X-Received: by 2002:a1c:55c8:: with SMTP id j191mr1426596wmb.13.1544458665008; Mon, 10 Dec 2018 08:17:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:840e:: with SMTP id g14ls1821340wmd.5.canary-gmail; Mon, 10 Dec 2018 08:17:44 -0800 (PST) X-Received: by 2002:a7b:c7c1:: with SMTP id z1mr11777980wmk.31.1544458664409; Mon, 10 Dec 2018 08:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544458664; cv=none; d=google.com; s=arc-20160816; b=dm4XK5D4QllDYJ2y0Rhy2JfF/gpKL6u2ywNy4KyKVurnevz1L7KqzLPdIOunYHPiZ5 KooeUrE0wLH+k1q7yXucVr+iKXuiOoqJWur56tXnxNbWF2vWbRlUQa3/AcdAVEpthL4R 8e338ObQwp7Yt+uAtg9sQ0jpqbSqWnhPd46L8uT1vbj4eHtSjxbxGf+UYpL2LBofpvMT WAo/6kDhszeTh72gydUlYE7YMuhxD3ArSaNAyhYVtAxaRzwk/lHaQ29JPIoj3xUxR+0R UNmiJtuqqWvHT6Flnd8ZjbeO/OSjAEsx276It9MAf2ThSHTq4pv/I0DuH+evLpgdeemV 5t/w== 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=4e160jMcepVwiZJsNnnNpZImXigG1UFlKIJPHI/u0ZU=; b=gO6of5icmEzxpixWHxOY5Q2AvflnWWdiMrt+HVi1z6T2a2BHSfc+Me9fsYodoxB4S2 XDNfRsFVUekxgN0jtIta+EmC9ZcIcpKJljqCViZmICsOSWUiQpMUkyh2wwe/+3SRrD+E 9vQz2aI0WEV3y9bTrRKFu7f1TmAPY7QPl2eP67Umdc8FFn+E8tpRL9vRM9tTNfVQnmmg cYA6uI7eKHbH5YB/Uf8SH4xwkTyyAtAnehjTtihiNb2blfl3aO60QomuqM9FbtD7AqVZ 1ByzaaoyZZHOgT5yMXT8+qmyQPrgw7KnlcY+pZaf0fQgpQTt2Ts9ZKwRH6Zla6scZ0ej OmEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PGWyH6gv; 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 69sor8058461wmy.3.2018.12.10.08.17.44 for (Google Transport Security); Mon, 10 Dec 2018 08:17:44 -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:a1c:8b09:: with SMTP id n9mr11192943wmd.38.1544458663940; Mon, 10 Dec 2018 08:17:43 -0800 (PST) Received: from localhost.localdomain (ip-162-59.sn-213-198.clouditalia.com. [213.198.162.59]) by smtp.gmail.com with ESMTPSA id b13sm8397503wrn.28.2018.12.10.08.17.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 08:17:43 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Michael Trimarchi , linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v5 00/17] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Mon, 10 Dec 2018 21:47:12 +0530 Message-Id: <20181210161729.29720-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=PGWyH6gv; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 series fixed the issues related to work DSI on 2-lane panel which is reported on previous version[1][2][3] This supposed to be a clean series, where it support Allwinner A64 MIPI-DSI support for 4-lane, 2-lane DSI panels. This series fixed all previous series comments along with checkpatch warnings/error. 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 [3] https://patchwork.kernel.org/cover/10680247/ [2] https://patchwork.kernel.org/patch/10657541/ [1] https://patchwork.kernel.org/patch/10657619/ Note: the respetive dts consumer for dsi will send once the panel driver finalized or in burst mode patch series. Any inputs, Jagan. Jagan Teki (17): clk: sunxi-ng: Add check for minimal rate to NKM PLLs drm/sun4i: sun6i_mipi_dsi: Add has_mod_clk quirk drm/sun4i: sun6i_mipi_dsi: Add Allwinner A64 MIPI DSI support dt-bindings: sun6i-dsi: Add compatible for A64 MIPI DSI drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer drm/sun4i: sun6i_mipi_dsi: Fix TCON DRQ set bits drm/sun4i: sun6i_mipi_dsi: Refactor vertical video start delay drm/sun4i: sun6i_mipi_dsi: Fix DSI hbp timing value drm/sun4i: sun6i_mipi_dsi: Fix DSI hblk timing calculation drm/sun4i: sun6i_mipi_dsi: Add DSI hblk packet overhead drm/sun4i: sun6i_mipi_dsi: Fix DSI hfp timing value drm/sun4i: sun6i_mipi_dsi: Set proper vblk timing calculation drm/sun4i: sun6i_mipi_dsi: Add support for VCC-DSI voltage regulator dt-bindings: sun6i-dsi: Add VCC-DSI supply property clk: sunxi-ng: a64: Add minimum rate for PLL_MIPI dt-bindings: sun6i-dsi: Add A64 DPHY compatible (w/ A31 fallback) arm64: dts: allwinner: a64: Add DSI pipeline .../bindings/display/sunxi/sun6i-dsi.txt | 5 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 45 +++++++ drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 1 + drivers/clk/sunxi-ng/ccu_nkm.c | 5 + drivers/clk/sunxi-ng/ccu_nkm.h | 1 + drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 118 ++++++++++++++---- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 8 ++ 7 files changed, 159 insertions(+), 24 deletions(-)