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: 10686655 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 2FE6417F3 for ; Fri, 16 Nov 2018 16:39:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D4C32CE5B for ; Fri, 16 Nov 2018 16:39:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 112E32CE5E; Fri, 16 Nov 2018 16:39:58 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 4C8632CE5B for ; Fri, 16 Nov 2018 16:39:57 +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=RdBS152LDVRvuKDuM6gpowHcmhXCev7LE8Ujzhvyzgk=; b=IF+QVJrcY93e2P jDjEBS9wyU4BHcsRk5j6Qj5ERqb7UvuRTGnkKiBX8tq9gmw0CmFnlycp/5EggxUJog42kbyb72wah EPXuLrd5BCGK/W/L7cbnCqS4KZgbyOI1oTRzoJCHwZ2e8GAkfb/OgxfHKUbKRYetsB7pCsy1VBzVZ q8fRbn2yQ95C9t5YLu319qL8GCJRaPlMPDQJxapVn4QofmsX73WeSHel5Y4sM+e7U5yuW1GHHePwJ aGsuGePXvOyOULNXNHjzSX+OtewEJd9lBzHq8rdgexsEiJINI5u1jJir8LZGlD+wbmfSTPECnjbow snxDbKYGsd+GGGZZ7ysQ==; 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 1gNh9u-00045F-3R; Fri, 16 Nov 2018 16:39:54 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNh9p-00044q-Bq for linux-arm-kernel@lists.infradead.org; Fri, 16 Nov 2018 16:39:51 +0000 Received: by mail-pg1-x544.google.com with SMTP id v28so328479pgk.10 for ; Fri, 16 Nov 2018 08:39:38 -0800 (PST) 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=WmGSJXILmj3MUjKA2xdObb0m4Pj4XtXgAOsc8OcM9vA=; b=SheSrZzbBrU6GENmIEnAvfrZ6TNcjIiNodPCo9AtN/keMvdwHWRV9b6HkhyLrUUY3D Cc2w3QVvh74V8u8gpYWqizES+QWvIr70jWYeam/TizLnQcu3uKn/xmlIh1qhgfnsBGZH 2g3hLHFhOZjUZcywFIbif94B2b1G3yp8s6p0U= 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=aMLAsZkhvLKXJ3bKTVoyt9laGPLNkneuMRwa9VFWQC9j4FxRR44VlpOtPFxWiYHWUj FKb+Y8w8IE1/lJaAmqg2mRongHs29tlGmKzifxs7mOuczT3zo3Os26SE28/gD863tz61 lD3RbyWQ5nHLjJNx+eEg77Z57uPEouIMM88iAL9AZQJarBsoL09wUs73DWQcFJOO+pAY eeaqGVxw5dyAThYfxVCHcN44teC1Etnrz/AbXcCEt1ozf2vNSn1wCmNB43DQCdHwD9IV AetLeQuVugZQKdF3Eplbz0AhlgawjBodW3INRrNVHZY/NE2Bzz/UfzciU7O45EhqKe5U 4VQA== X-Gm-Message-State: AGRZ1gJYbKiTSwYg8fOpAbUr7BmQ0iT081Ea4Pd+mcmpmbvYqtDLnZGB lNOZ2A6zzb4kp2yeQVmfPxTItQ== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181116_083950_086840_687E5ABD X-CRM114-Status: GOOD ( 15.07 ) 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 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