From patchwork Fri Nov 16 16:39:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10687493 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 4FC1413B5 for ; Sat, 17 Nov 2018 14:56:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 406C42B902 for ; Sat, 17 Nov 2018 14:56:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3480A2B905; Sat, 17 Nov 2018 14:56:48 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D3E492B902 for ; Sat, 17 Nov 2018 14:56:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 27F756E96D; Sat, 17 Nov 2018 14:56:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id B1F866E6FA for ; Fri, 16 Nov 2018 16:39:38 +0000 (UTC) Received: by mail-pg1-x544.google.com with SMTP id 17so10568403pgg.1 for ; Fri, 16 Nov 2018 08:39:38 -0800 (PST) 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=WmGSJXILmj3MUjKA2xdObb0m4Pj4XtXgAOsc8OcM9vA=; b=MnUEJ2hmPP6ZMr5qV2tNg0nzUQqxtUl+yW/d4i6KdDaxXsNF9fbOz2sUfC8AAR67dA 2So8r5UJQX9ouLaEy/KQM2cj1ATjKyUwxbqIQ7PXzCX/jpohnhSRg816lw3c2bmh959j kYRKUB53ca7VVY1uaCQBneuWoQ9Jbx2MN+BA7RQuLTQAFCA753Zx5d7K6rZMXFcdGJEt Rbu6XIK82Qu1zhHXxHe0yt+rjDhRrU9/K3btws3c4vNLzmkYuXUczxf59HG3jU9ORdUi EgaqKXb6B9cxGu3zZL2isZ1FxeUTgYkxUYt28mSehZnQTA/j1REcqpJ5T5RiWbDdr4mJ lAwg== X-Gm-Message-State: AGRZ1gLjQGcmSS8RRt2aP7fh3PFFNFqosevyD576oR4B2G64Hc0jTVyR ARPYb2IOEYkFtrQvXSsVBWf8xw== X-Google-Smtp-Source: AJdET5cYCrZUrMM0emp0VzH991k62BI55P30yrtu6lxlUnqw31ahv2YP16FifvW7Sdk0eaZH/APGkg== X-Received: by 2002:a62:dbc2:: with SMTP id f185mr194257pfg.235.1542386378106; Fri, 16 Nov 2018 08:39:38 -0800 (PST) Received: from localhost.localdomain ([115.97.190.86]) by smtp.gmail.com with ESMTPSA id p5-v6sm34622213pfb.109.2018.11.16.08.39.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 08:39:37 -0800 (PST) From: Jagan Teki To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Thierry Reding , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michael Trimarchi , TL Lim , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: [PATCH v2 00/12] drm/sun4i: Allwinner MIPI-DSI Burst mode support Date: Fri, 16 Nov 2018 22:09:04 +0530 Message-Id: <20181116163916.29621-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 17 Nov 2018 14:56:24 +0000 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: Jagan Teki Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series support MIPI-DSI Burst mode on Allwinner platform, which is tested in burst supported panel in Pine64-LTS board. Series fixed few code changes commented in previous version[1] and it depends on A64 MIPI-DSI series[2] Changes for v2: - add separate function for setup_inst_delay computation - moved instruction loop seletion below delay compuation - add separate function for dsi_get_timings and call for non-burst mode - simplify burst mode timings compuatation - add new patches, for tcon0 probing during dsi_bind - add code to get the tcon0 divider value - add multiple functions to get line_num, edge0, edge1 - squash 'enable burst mode' patch into 'Setup burst mode' - fixed commit message of 'Enable burst mode HBP, HSA_HSE' s/enable/disable - collect Rob R-b tag on panel dt-bindings patch - panel driver changes, - dropped unneeded include files - s/fy07024di26a30d/feiyang function, variable names - use DRM_DEV_ERROR in panel driver - add set_display_on .enable - moved regulator enablement to .prepare - handle erro statements and release them properly during probe - remove panel if mipi_dsi_attach failed - fixed MODULE_LICENSE - update MAINTAINERS file about the panel - add comments on dts about exact regulators used in schematics [1] https://patchwork.kernel.org/cover/10666597/ [2] https://patchwork.kernel.org/cover/10680247/ Any inputs, Jagan. Jagan Teki (12): drm/sun4i: sun6i_mipi_dsi: Compute burst mode loop N1 instruction delay drm/sun4i: sun6i_mipi_dsi: Support instruction loop selection drm/sun4i: sun6i_mipi_dsi: Setup burst mode timings drm/sun4i: sun6i_mipi_dsi: Simplify drq set to support all modes drm/sun4i: tcon: Export get tcon0 routine drm/sun4i: sun6i_mipi_dsi: Probe tcon0 during dsi_bind drm/sun4i: sun6i_mipi_dsi: Setup burst mode drm/sun4i: sun6i_mipi_dsi: Enable 2byte trail for 4-lane burst mode drm/sun4i: sun6i_mipi_dsi: Enable burst mode HBP, HSA_HSE dt-bindings: panel: Add Feiyang FY07024DI26A30-D MIPI-DSI LCD panel drm/panel: Add Feiyang FY07024DI26A30-D MIPI-DSI LCD panel [DO NOT MERGE] arm64: allwinner: a64: pine64-lts: Enable Feiyang FY07024DI26A30-D DSI panel .../display/panel/feiyang,fy07024di26a30d.txt | 20 ++ MAINTAINERS | 6 + .../dts/allwinner/sun50i-a64-pine64-lts.dts | 37 +++ drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../drm/panel/panel-feiyang-fy07024di26a30d.c | 286 ++++++++++++++++++ drivers/gpu/drm/sun4i/sun4i_tcon.c | 3 +- drivers/gpu/drm/sun4i/sun4i_tcon.h | 1 + drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 264 ++++++++++++---- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 1 + 10 files changed, 567 insertions(+), 61 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt create mode 100644 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c