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: 43 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 86B7F2E53B4 for ; Fri, 16 Nov 2018 17:39:41 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id a22-v6sf10656118plm.23 for ; Fri, 16 Nov 2018 08:39:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542386379; cv=pass; d=google.com; s=arc-20160816; b=I+sy9eL8Aqn5uAdUIC03bdiaDJamT1uVjx1+bL+qIFJWAwtr/4x+QNT53Un0Th+Tz/ shcCek0NXI9U4kRTaHWw1s8r/oR7KynQ+SDzNZQq52ODI7/LI5O7s4NEPPPLITMfiJs0 Sq8xDBhxmVrRbAWGKO6f3YI8nh/aKGcVdIqixy6pADIjctQVVFZI0duCRcUsmeiOUnaG Jv3Oc4s/5E/7sWpMVfRvGGSiuj2FPV8wIQB3fwY/Z5+1iiyNgN4kdBpcYzkf8jzpqLN0 8YTOah1FeEy7hqMBR53G2UweDrp90dqXy4qPTlUvlJBa0jKbRa1nReYaKHqL+POZIDLb X5jA== 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=WmGSJXILmj3MUjKA2xdObb0m4Pj4XtXgAOsc8OcM9vA=; b=eAo+02iuZO4ZZ8ox0BexIOaEEp8G9QYX1/C/AEKf3ZzDfnBc7JXA9cGtpG87Br0rOb 5jwWMa0jHL9VLucMoJKcWGYwaJPjzrcffxuEC/5IlzZdTr9cea4DYFEuiclb1Dn6xIX9 66scOvq0qT2+wR617DsPm5vmR/UCSuDEHywsPTtXUtT8eDyrAFj7by9AqL9JsvHwVwhT PW+ImXXkGzU8OOlL2JJJ6y427+DKpsO1UH5COG1/2WIOiCYpfPD/+IaXw7n0Qkl0UY7r Gy1QOYYQavaFgYelHYHtSm7pRb68CYCQQnOoLwrsYGDof/C+nkrJNFlq/YlD6S512W32 Lzew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SheSrZzb; 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=WmGSJXILmj3MUjKA2xdObb0m4Pj4XtXgAOsc8OcM9vA=; b=T9hGqMVdjLp5WInnI1uqlsGMdQIP+Pjmju6UkM6FS5WImo1w86N+I53vfKq24deFz8 qfB0IK1YsKfn6Se7AfnLbEMinkqXcYhSkvDv6hyl3RqnHoHDbv1eyye52YCSl6WnNjb3 xVb+iQEIxei02Ftm6wWqBSRewz8tMCGmRLkRo= 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=WmGSJXILmj3MUjKA2xdObb0m4Pj4XtXgAOsc8OcM9vA=; b=c/5Hj5/Wm/huCJ0ndAWjRw02pUfUHpIKZ11WvKN8TjD35IDLDzOcEXmpKYeJkYbkdq wL9SZkdV/g+Ej8KU/4DLHXvsiwQzQarmMLrIaCGYPemAmkhwfF3P/D3E/es7owfv8fBw NXySThbwwyh/KC4IQRE9Dd/sKHI03DLVH5QE0DnupRFXu1hiaQ34B5PdNnqznZLAGaI6 2M3Ux78StFlMt1ZPaLtz6oIzQnWtHXQcixE2YpP5q7fQuto8Ub85i9JX90o96txTsb7p vcXgDJP6agwMz9lm2SbzfhMpsPax0D3SGcGKSRJ0c9W67sHr9eyQkvIkW3l1J5anIupB VO0Q== X-Gm-Message-State: AGRZ1gKHBIVBJOLzgTAKDn0J2OE5jY8GaAye2LY8A9w8OSDBNdMj69H/ n0ZwQVF0d1y3ZNydw3+iJF8qfmlx X-Google-Smtp-Source: AJdET5eFSgg42NBrRj94VSCi3O6tWXv29N1C/vGyUnLNtyE3SIC+YL53H5YPT1MIcaODm5gqxccNMw== X-Received: by 2002:a17:902:aa86:: with SMTP id d6mr2132220plr.21.1542386379500; Fri, 16 Nov 2018 08:39:39 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bb91:: with SMTP id m17-v6ls7592410pls.8.gmail; Fri, 16 Nov 2018 08:39:39 -0800 (PST) X-Received: by 2002:a17:902:9b93:: with SMTP id y19mr973079plp.336.1542386379147; Fri, 16 Nov 2018 08:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542386379; cv=none; d=google.com; s=arc-20160816; b=vRxInNiTj3eXm/2zCTCvxzd7tQSi9WnHG/SUbTjiutPWc/dfjS7e7Cvnu2czS2t12Y 6g2xuIkKCtLrhurAPaJjt/GZMvGcl5HsOZlvqay7DzJwiY5nufg1tj6i7wgUWg4RFoXo 1zlkWSL4isFZY6YH9i5Sd9JLE2/vydsOTWpT4KrDmTPNbAO1jO4XmCA0qe8lM6Gk4TKC JBTEO693MqQGwOsjVsooIb1hD0KQC0iAqDrPDyMcfENgkGvnmTl835gW7MOMPGysm/Rq w9Swd8x2yYzbZxQ2ACPNkysn1sxToOckvFKmh2+ri2cR8UD4SURvNoTm6TWF6cs87nOD u0Mg== 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=WmGSJXILmj3MUjKA2xdObb0m4Pj4XtXgAOsc8OcM9vA=; b=Oom1XE76ibHCsjzuj6eRNIKK1gRUj3Sp5VjPsnkHxK9P61xiJtsk94T5YOpdUhrnFX 5boLhHIAYzds3djW9x+c7WFB+mdjSdOwR9uOK4MbEs9ZhCPgvgTbu2W19PNXLUNJQmqk iYDdHh9joJARJmz6S2L1cYSnr4Fbce9AtLmijHdByPmVBd/XqzIfZW+jdhxw7pyv7Uvl VuqhoorbHLCkrXpC4MexFLAt5z7xB+tgi1MyotnReROuJFv7BHsXI1qS8r9abmy7xpQU 5SDRtYGqisUztY94qYydFvyWzfAXHpdprUpDXOaoe5DvJB5vQg6n0CCtqiLrdAZ6dAyT 95Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SheSrZzb; 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 d27-v6sor27142033pfe.49.2018.11.16.08.39.38 for (Google Transport Security); Fri, 16 Nov 2018 08:39:38 -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: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 Cc: Jagan Teki 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SheSrZzb; 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 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