From patchwork Fri Oct 26 14:43:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10657467 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 A076C5A4 for ; Fri, 26 Oct 2018 14:44:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 899AD2B226 for ; Fri, 26 Oct 2018 14:44:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CAC62C8E3; Fri, 26 Oct 2018 14:44:38 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 B1CDD2B226 for ; Fri, 26 Oct 2018 14:44:37 +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=eHBH2oNxYlNjN5ijV4ai0sQ7FHSOCsDRP5MqoGinLlo=; b=Hg2ddtTRQgbe12 Rp/laLIW2CnMJlDwBmedlK1Fm2z+Bo7GepvlirU6ou/B6Fip5DkpqZt4CZog+I0dal0RKNjtt833S XMVdWuuGMDDW0Gm3oZtdUgixVU2ob5N/1GOoCe5fcZbkw1w9PK45QqFRE/CSmC/56Oa8iPVFn//Sk BPIVy1DXaeLMiFhOHF6mF1OGcvGMYiBMg+ptxMTJyDj+bqJOJ+207AZDV8hkUJYWiiYCG5dMPK5Iu Ov1A663lM01gp7VRZaRkbZ5axpCyWMGW3JeK5LOxM2jKY+LfSTC4cX8losTjkVI1YYqC2lxT0eIk7 qQjLP8ypetOmJSXr6/4A==; 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 1gG3Lf-0000pO-Bz; Fri, 26 Oct 2018 14:44:27 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3Lc-0000nB-4K for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 14:44:25 +0000 Received: by mail-pg1-x543.google.com with SMTP id c10-v6so649511pgq.4 for ; Fri, 26 Oct 2018 07:44:13 -0700 (PDT) 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=eZqm0CFEdgNM2tKHjKivQNx4i6KhyKtyrSoJgQ5hCEE=; b=jP95xZZarKPxRpcTk4yOQdHhh67H3biXbiHdakPyEF9FUDJlTSCMnO0xUYhEyW1TkN OV2Iag5L9QtyFR2U3nFaC+SzME8X1lihgttwy1Q8Uq27FIr6KQHi+0Pt8xRJHSbF9Fda GdyDSWFclhbRhzqTwa56E/bRXuJ6B+2do8XZA= 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=eZqm0CFEdgNM2tKHjKivQNx4i6KhyKtyrSoJgQ5hCEE=; b=bIwjCG7/dYLNULFlweWepRnbwyKMIQPeTDa/LPq1iDJFA5wlQZIHAJr6ma2SJkRuya rJxYHLZuKI7v90GLt8tJ+OMQ9CFMK9/DWW2S+eac7kLbjr2h8jkoS+B9e+8oO4YXSNKn VRyyYCSFdZjKbBKB267YZ14p9A21vbGvsenAPi6bV/yjLQWtoSVHdD3xQpIA611AbOab kN9mCfz7mlkxwpUR7sbgvuhNp+77LyPQB2LhMpm0ZME1330dvJpO2TMF2XXBjBKokzdj 7xZRhcugF3wFs75b3aVF+G74HqDlBnnQ5L75w7FmWExdTiw0bkPtx/8FHt2ixmCSCj9v qy6A== X-Gm-Message-State: AGRZ1gK5qAk+AYlWoiJoGnkDs/J9de/d6nXvn9LlbR3Tm0jBzLF+O80G DEQYK1hLAS+Z+utuOiPAsuoLzA== X-Google-Smtp-Source: AJdET5e09G5gEekKHPpWwXEsKeq6RP2nzY9YZ94thvyr9Xp6iJ8drFkIPbwp/kbr+AukXMI/VITHJw== X-Received: by 2002:a63:224f:: with SMTP id t15mr3730017pgm.69.1540565052740; Fri, 26 Oct 2018 07:44:12 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id z22-v6sm12044467pgv.24.2018.10.26.07.44.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 07:44:12 -0700 (PDT) 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 Subject: [PATCH v3 00/25] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Fri, 26 Oct 2018 20:13:19 +0530 Message-Id: <20181026144344.27778-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-20181026_074424_176847_EFF55A45 X-CRM114-Status: GOOD ( 14.85 ) 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]. Few comments from previous version still in discussion, but I just send this version just to group all working changes together. anyway I will fix in this in next version if any. PLL_MIPI min rate is still weird, I tried many possible dclock rate from panel driver to satisfy manual suggested min rate 500MHz but none working so eventually moved 300MHz. any inputs on this area are welcome. All these changes are tested in 2-lane, 4-lane MIPI-DSI panels. If anyone wants to test, use this repo [2] with WIP-A64-DSI branch. Any inputs, Jagan. [2] https://github.com/amarula/linux-amarula [1] https://patchwork.kernel.org/cover/10653275/ Jagan Teki (25): 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 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: Increase hfp packet overhead drm/sun4i: sun6i_mipi_dsi: Set proper vblk timing calculation drm/sun4i: sun6i_mipi_dsi: Add support for VCC-DSI voltage regulator 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 | 20 + .../bindings/display/sunxi/sun6i-dsi.txt | 3 +- .../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 | 14 + 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 | 336 +++++++++++++++++ .../gpu/drm/panel/panel-techstar-ts8550b.c | 346 ++++++++++++++++++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 122 ++++-- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 8 + 15 files changed, 1009 insertions(+), 30 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