From patchwork Fri Oct 25 17:56:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11212813 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39A67139A for ; Fri, 25 Oct 2019 17:56:48 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1EB75205F4 for ; Fri, 25 Oct 2019 17:56:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EB75205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 083F06EB18; Fri, 25 Oct 2019 17:56:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3BBA6EB18 for ; Fri, 25 Oct 2019 17:56:43 +0000 (UTC) Received: by mail-pf1-x442.google.com with SMTP id 3so2047869pfb.10 for ; Fri, 25 Oct 2019 10:56:43 -0700 (PDT) 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=CZu1y7RFPTmm+e4tCk9sCPOaUomZD2b+NU7YQ9E83qM=; b=VNMV5WighBSUNj2DOtRKFYo+pUNmbHN6D4Q4FgLoRFCkH8HCW7Eh3xm8N/kl2el/og ApP2TyDNZcdhiK7hRsKpVGmCUSyyunyho60/WCZ06ohbOVAh7pDHxCxCOVAM3Oe7tlFT 4Ft3hclxg/Ci4i9ZpEJ33Ki5Nner+AkKkIW0coXz33ZHQVzaVXhy3S4kTJVFVZwze9Fn pSxObKsc4RiII/pGwd1xb6myWT6PoheUwpGfn9kkhLoOK5a63vGbfacvbHxT2VzSRVql fl4cIwxzuIwbJtAeCauS/TMD1lAba3atlEYzA+2NVvaITif9V9FNQt60WdvsNEXnP1at M3YA== X-Gm-Message-State: APjAAAUDfUqTQVNZ3wbhjpl5bMH8Z3WsAdEe+r4JCh9pl3PzkzqhFHZ3 ibEAR1YLrp6linzuEMSLa0LtRw== X-Google-Smtp-Source: APXvYqyQeMNwRRfVdYbplZky4DnGyeCS16N1lkW3Qf6FFBlut0tyb3bO5QFkhxBsvIR+NOqRTEQOdg== X-Received: by 2002:a17:90a:ad95:: with SMTP id s21mr5737486pjq.11.1572026202818; Fri, 25 Oct 2019 10:56:42 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id n15sm2926580pfq.146.2019.10.25.10.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 10:56:42 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Subject: [PATCH v11 0/7] drm/sun4i: Allwinner A64 MIPI-DSI support Date: Fri, 25 Oct 2019 23:26:18 +0530 Message-Id: <20191025175625.8011-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Mailman-Original-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=CZu1y7RFPTmm+e4tCk9sCPOaUomZD2b+NU7YQ9E83qM=; b=YhjRITCeN91gMx3yOBIKu1C/Pio+m/xXybbzZLCU25mrLAjzyrOYfNs1bhqX/uwVzD xrMOinaz6vv7qJY1vx/NwIHKq3EqmHOgy/jU9Dl2pHGXYkEWrTAJQki2NH27JXd6tcQz QqlAaNV8+/GmvrmeZx1FFtPzeMWx9l3huboSQ= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi , Jagan Teki , michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is v11 version for Allwinner A64 MIPI-DSI support and here is the previous version set[1] 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/67632/ 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: Add has_mod_clk quirk drm/sun4i: dsi: Handle bus clock explicitly  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 | 20 ++++++- .../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 +++++++++++++++---- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 5 ++ 6 files changed, 139 insertions(+), 15 deletions(-)