From patchwork Tue Nov 13 11:16:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 108DD14E2 for ; Tue, 13 Nov 2018 11:17:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2ED229A6D for ; Tue, 13 Nov 2018 11:17:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E602429A79; Tue, 13 Nov 2018 11:17:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3451129A6D for ; Tue, 13 Nov 2018 11:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=O+kuHHW2hg4/TbXBMJICxyS4u6wqpi4dBv9CFInE8rs=; b=s2bkzmZt+U6AAA AEI7E3jnDFUsfRu3dmuLX1GO3whuAaK0QqmdECRu/I2bWa5Pis7M13W/VCq53IqUFvk4jGGPawUbs KDfV5YLa3fmvsIkdumv1/t5hqbTbI6qs8Q3BAc/DlzvM4XSe742HGfpuVIIqg7clrsTCIHB79D1tL caUZkjbklMO6F3uRaljyI3R9AdmM2up7KSUITIYWSf717RfeFPT3YaaYPxB3T3nj8Rgvua/vBdV3Z f+9hPhFmHzKF7FfW8mXMtmUtEUldyCqTueUvVy45IEMgWBGG3/UkXrFBFWVW2PcHz2M72Z43WHnGC MChjwEYHYKrwdbyAu5GQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWgt-0007Dv-K8; Tue, 13 Nov 2018 11:17:07 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWgo-0007CA-0F for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 11:17:06 +0000 Received: by mail-pl1-x644.google.com with SMTP id x21-v6so3130910pln.9 for ; Tue, 13 Nov 2018 03:16:51 -0800 (PST) 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; bh=VJB0n3gQwy6xHbCkGXRBikQwutdPB9G3sVatWmPhcwE=; b=QQXN1x0pHxd0DKDX86dDy+3J2kBLwJdiihOqfqb52iuFl/iAjSqVNuK1/f86qdltat zP4LXnKL2RF/xIB/u1Pewx1tAVMNJ2wCjBpvjP+YbSEWPg6Dt0T0Ky8s3GX8e1H0JCZ4 QqUK99sF4LID8nq9iwz9I3JA5VVSnj+hb/ZD8= 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; bh=VJB0n3gQwy6xHbCkGXRBikQwutdPB9G3sVatWmPhcwE=; b=uYMtkAlSQumIHRogmM+vTIa/wduWprVX6BYwx0yyx89a5G9mfEoDh4ehOOfJby1WJ9 JG99rjLwNDrAsLegQS/oVcAhnAHzd9RBjGz7RTSoSZzBdXvTZL7ja+n0lGG12rQpbGEv fi2QYqt1rIe5hJgZEHA0pj+pEs7MoQcvYQMZSDxce1O5dH0Pv19UqLNAm2tS6xtVdVFS HT9roEgvXowjradKxGJlVpd3qSuQSvys74TBXt4S7qHQPHWNYUkVmeS+chx7lILGje2I IH+ykKX+0fGCYiUMV+AH8KLnLmNpVOD0Ox8wh1874TbbBQeJFNAYmxVFtwClWcQIk/9K 6FYQ== X-Gm-Message-State: AGRZ1gJufCStyBlddKBmsMo68ZEiUX1WrJWsR/rzk4oDgLK8D+/b9WAZ coU9ZU+8mXxDvKjQw8piwcSpGA== X-Google-Smtp-Source: AJdET5fU+wulaC0lWBLUxvpvq0Do/hWbaa70sc3XBpxP0z+4W49I93CADkHUiM0c2YCH2wRRdTDMqg== X-Received: by 2002:a17:902:9681:: with SMTP id n1-v6mr4655542plp.126.1542107810372; Tue, 13 Nov 2018 03:16:50 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.16.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:16:49 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: [PATCH v4 00/26] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Tue, 13 Nov 2018 16:46:07 +0530 Message-Id: <20181113111633.20189-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_031702_044007_97DB2E6A X-CRM114-Status: GOOD ( 15.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series fixed the issues related to work DSI on 2-lane panel which is reported on previous version[1]. 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 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 [2] https://patchwork.kernel.org/patch/10657541/ [1] https://patchwork.kernel.org/patch/10657619/ Jagan Teki (26): clk: sunxi-ng: a64: Fix gate bit of DSI DPHY clk: sunxi-ng: Add check for minimal rate to NKM PLLs clk: sunxi-ng: Add check for maximum 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 VBP size calculation 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 dt-bindings: panel: Add Bananapi S070WV20-CT16 ICN6211 MIPI-DSI to RGB bridge drm/panel: Add Bananapi S070WV20-CT16 ICN6211 MIPI-DSI to RGB bridge dt-bindings: panel: Add Techstar TS8550B MIPI-DSI panel drm/panel: Add Techstar TS8550B MIPI-DSI LCD panel clk: sunxi-ng: a64: Add min and max rate for PLL_MIPI dt-bindings: sun6i-dsi: Add compatible for A64 DPHY arm64: dts: allwinner: a64: Add DSI pipeline [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel arm64: dts: allwinner: a64-amarula-relic: Enable Techstar TS8550B MIPI-DSI panel .../display/panel/bananapi,s070wv20-ct16.txt | 31 +- .../display/panel/techstar,ts8550b.txt | 22 ++ .../bindings/display/sunxi/sun6i-dsi.txt | 5 + MAINTAINERS | 12 + .../allwinner/sun50i-a64-amarula-relic.dts | 46 +++ .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 42 +++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 45 +++ drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 4 +- drivers/clk/sunxi-ng/ccu_nkm.c | 6 + drivers/clk/sunxi-ng/ccu_nkm.h | 2 + drivers/gpu/drm/panel/Kconfig | 18 + drivers/gpu/drm/panel/Makefile | 2 + .../panel/panel-bananapi-s070wv20-icn6211.c | 298 ++++++++++++++++ .../gpu/drm/panel/panel-techstar-ts8550b.c | 324 ++++++++++++++++++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 125 +++++-- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 8 + 16 files changed, 961 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/techstar,ts8550b.txt create mode 100644 drivers/gpu/drm/panel/panel-bananapi-s070wv20-icn6211.c create mode 100644 drivers/gpu/drm/panel/panel-techstar-ts8550b.c