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: 8 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id DE4092E0834 for ; Tue, 13 Nov 2018 12:16:53 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id v11sf4421115ply.4 for ; Tue, 13 Nov 2018 03:16:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542107811; cv=pass; d=google.com; s=arc-20160816; b=A6ddLJ7/AK74EqanDSWK5bQVHBp51DrsIL+acxrMZsUgQGcUkgD0o+lnNCQyPZhNyj gDISS0NiScaVyDrz7fFcRbxDDOzO5S6RnHSL4g7/lG9+DsozSxuuRBjjjdDRmyZb7mpE 5QhVnlCPY53UYjRUVrw1DW/yzE6YDTFnScJ+FirZbKtffX5GLnMufOF66gW1ZN1xhFfp 2AmOiHzkOaPwJG+qnquaV0JG9E7sTTRkxWCq66AzYP4lqTesK8BhX3vExywMv/VtuOLh NTmc9+MfTwGwKCTr5BjBunyzbck7LssOPLi9/g+NFulH60uVMWhDwJtV8F9rL3eLDj56 OjIg== 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=VJB0n3gQwy6xHbCkGXRBikQwutdPB9G3sVatWmPhcwE=; b=M4hzPrD99WGLQPeVPpUhzPy6GQ7imNSc8JgXUSMDRlXmhS/5JTUaE99mUKzuAF6VUb OwIAwJFges1Cl6Tj1edmw7YNj+grk4oDrIak9C6TaF/xiPeeID59nghWjBm74tH5Q9f1 ljmubAS5slPkOEuQZ8EosJrnulb3NiFva1eHnvpk/zzTqFhNWL0Uy21DCOXOJSDM3bcJ GEpZsuBGDafZVa73CQd1V0lGIilcw4rVZLtSVZiuRbUmgtOpI4ycWUSIsqxoVk3/HGD6 LL175Pz1/KlNVR10of9Y++O2WjRya+ngEw4zyO+LxbtvwcCFmHO0LwOmCSzW5s8CobOI pjtw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QQXN1x0p; 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=VJB0n3gQwy6xHbCkGXRBikQwutdPB9G3sVatWmPhcwE=; b=FrOExB4zTjIpn6cCtlJKc+07CjrSUFH1cpQ49uP667rmDDrKs09lCZoV7bbg3qbAIh yFxrznMqp7OyXUcGH/WB+oLXeC5oraRAX4nSlOdwpZ/gV094ER0dZgv/lNkZew1Ly/g/ JnetGoPxfLYGwlq0md6A+z9OMbwKTkH1LffOs= 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=VJB0n3gQwy6xHbCkGXRBikQwutdPB9G3sVatWmPhcwE=; b=mfhpZA+VuZY1scFekHoPxSUdmBixO8LWxmw+ljAeOhLkzbMeaKzprDpJdULK2ZkPcm omxKPp0jclqQOhurkJFI7ct5uCVIjexGFiR51cdMHNwpq738PkmeYfl99z6TUGAPejpH 0LyC0rPI3m2s5LvPw+SeeOuJRCK7WyfgQ08AMQ8tg2O1NnovJtKlvUtwMrQr1Yp1Ra0z XCep5erWI2zDD/d2Q2e58bHtNRL+mOLZfaQlOrzpDCvyrXauGrUkYU1mDU6kmhfgSUk5 rbaCGS3vnFWZ1s56g4vPb0gvYcCYQE+3yYl2DcXp/X6OXakPJJzmo+oQ5QdzrlL9/rYP 6bow== X-Gm-Message-State: AGRZ1gI4OLKDaOa1fEuSuRvFPuKDimKQ9gszDgjKs7b+RvNqynTvGYlX FgL7OK7sKRnyBfO9KZPQCbzOXc6j X-Google-Smtp-Source: AJdET5d5Op3MKg+gu4oKpVv76t6kfsAN4JCV7Tt9F0cAjvYQf3WfzMG3Bc7/5Be4R7cZ0AFD+d8TdQ== X-Received: by 2002:a62:a9b:: with SMTP id 27-v6mr2018139pfk.56.1542107811515; Tue, 13 Nov 2018 03:16:51 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:151d:: with SMTP id v29ls2787501pgl.2.gmail; Tue, 13 Nov 2018 03:16:51 -0800 (PST) X-Received: by 2002:a63:fd12:: with SMTP id d18-v6mr4448431pgh.164.1542107811180; Tue, 13 Nov 2018 03:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542107811; cv=none; d=google.com; s=arc-20160816; b=D1IQkRShycl8Ualg3y4jgwqJUSlNbqUh1GGf7uG8Tj2mE07HomMEfn/t4Ks0kC1+Lo ddOneTxIDaciTkCU7Z+i5aAYEgW9i4NWsHuMBo1L0qUnzd4p/Y7uak1rKefDRf/o3lv/ 2xHUx9/SPB/a7cNulJvsWpoPR+trMYcnzGFAp+5ze+w3CYQLjLCELCcNKgRZFArOGZKi yB3e9gIrHT8AoMhIv1nt9wzGdudgEx/cr9JZHqss+RbKYrlAdliJY54sE76rYn8kdzbg ZcYZpRbHMvKDTrBpLTeV5Gzgaon9BgTplcbguR6r0m7LeB48LnLs6MslrjG9t+7P9TQd yvdw== 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=VJB0n3gQwy6xHbCkGXRBikQwutdPB9G3sVatWmPhcwE=; b=X0U4B1eFQ9XI2wNMmrGusD/LmcaZNVyzz53f1cVI0iaxmxjP4gX8/Yvw94EshVHpPq E/KLGn5XF2w0caoHv5xn0vPVfhA37HGavXtNJcKAKcA34sNRaYLXZSZKS24EqgznrzcD w93nvHrtSAuGyrFZlmZGE8A+Gd1C26+QR5F0KjO09p+nwlG9uk6JDfKeJohfC1hol8BD eCXLvT9xSHNX8AB3Y4lWmu13nwl2p5w0a+0qD88Kwo6qY2RxFqSXD+DITnWQ7cIYoMPm eRx6atuR5cIvPa9EXXn3H1L+Vaf+Q+5D7uGPmdgmuPbNx3AcJqK64IB7u13UsDeWjTSk NqYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QQXN1x0p; 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 g36-v6sor21755810plb.6.2018.11.13.03.16.50 for (Google Transport Security); Tue, 13 Nov 2018 03:16:50 -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: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 Cc: Jagan Teki 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QQXN1x0p; 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]. 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