Received: by 10.213.65.68 with SMTP id h4csp538422imn; Wed, 4 Apr 2018 03:00:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MAf0VgW3E4tKWJXNxCROfe/1pnldswFWwgpUYVUWblRaEJXvD1poKXI7HANwPdGDaYbtd X-Received: by 10.98.72.74 with SMTP id v71mr13194023pfa.241.1522836019075; Wed, 04 Apr 2018 03:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522836019; cv=none; d=google.com; s=arc-20160816; b=uPmJhx+udSBXn6rvTS7nFMuMEMVtvt1xQfrp0GGzjFlIhcodsbwvFq0D100AN5B6uf +qeX7ab7XxXtRtIFWyKS3L+BFHaRlKncnDrDTDf5XbC/mpFB2lDWKTX5aDXwWPGGCuBW Blp9bCl+PZqarJa9zaZPLJiHQeF1iaxLeZJLZOBhE5GP4xJuN1h3dfGCk9oFmYyPeonJ Ze7lWHZAI5DprTP6rOKwMmP0U1YhnU2nDikka7Z8jGHmqvsOBj+8uRN0qXmukXhbiUwG J5urcOXBiLBn5AAYXgsaXBd+SEKNg92vSlExv0GUXQx78Qu/akHzdVVcFkEKYcPd27LC JULg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=VT3CMsLlZyk9e1uVPDZFdTqgiXlHxXaf6RLNYOVU1FA=; b=xUb/g2bJpb+FUFL+4N+Es9vLnAfznRkNYBBWCTbqGCO7qWP9udUP0LWEQCOEJDTyoy 5gvWougBK/+752Nt97+nkjpKkF+4bpSrB0ERgF22PYLUGPdfvbVgd+gdTrVJxHImJyTD ij4q+tIn3GsGzgHz8fOduA03ZZuLsDygpnMgTzO/0VCg/M7OG8cm4xYZD/v0nkGYRNv1 AOQhl5O9MaLKc/IWaZvl+Be70bwGszqq9qCS0dl2o6JHhd5BdEm9c/rR44hDd2tdf8Gc yQdRdWNrtdgpjFJb5rfL9/u3dbTeEi8kUdJlTVzRDn/TQiNuOTynU/8JKSg1CJkVKIYp iJyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11-v6si2727631plt.683.2018.04.04.03.00.04; Wed, 04 Apr 2018 03:00:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751376AbeDDJ5t (ORCPT + 99 others); Wed, 4 Apr 2018 05:57:49 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42893 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751225AbeDDJ5d (ORCPT ); Wed, 4 Apr 2018 05:57:33 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 3A644208A5; Wed, 4 Apr 2018 11:57:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 075EA20146; Wed, 4 Apr 2018 11:57:20 +0200 (CEST) From: Maxime Ripard To: Thierry Reding , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring , Frank Rowand Cc: dri-devel@lists.freedesktop.org, Gustavo Padovan , Daniel Vetter , Maarten Lankhorst , Sean Paul , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: [PATCH v4 0/8] drm/sun4i: Allwinner MIPI-DSI support Date: Wed, 4 Apr 2018 11:57:08 +0200 Message-Id: X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here is an preliminary version of the MIPI-DSI support for the Allwinner SoCs. This controller can be found on a number of recent SoCs, such as the A31, A33 or the A64. Given the sparse documentation, there's a number of obscure areas, but the current implementation has been tested with a 4-lanes DSI panel on an A33. The support is a bit rough around the edges at the time, and some artifacts are still shown on the screen for some reasons. Wider testing with different display will hopefully nail those down. This needs the regmap_mmio_attach_clk, on its way to Linus in 4.17. Let me know what you think, Maxime Changes from v3: - Rebased on top of current drm-misc-next - Switched to SPDX license header - Made the ECC array const - Split the big DSI patch into two, one to add the DSI driver and one to add the TCON bits. - Removed the dithering code - Changed the DT labels to remove the indices - Used sleeps instead of delays in the panel driver - Used the backlight_enable / _disable functions - Added Chen-Yu's Reviewed-by Changes from v2: - Added a ports node under the DSI node - Changed the huarui panel driver to an ili9881c driver - Changed the panel vendor to bananapi - Made the init table static in the panel driver - Dropped the huarui vendor patch for the DT doc. Changes from v1: - Rebased on 4.16-rc1 - Constified a few function arguments and structures - Reworked the DT binding example a bit - Reworked the panel driver to check for DSI return codes, and use DCS helpers when possible Maxime Ripard (8): drm/sun4i: tcon: Add TRI finish interrupt for vblank dt-bindings: display: Add Allwinner MIPI-DSI bindings drm/sun4i: Add Allwinner A31 MIPI-DSI controller support drm/sun4i: Tie the DSI controller in the TCON dt-bindings: panel: Add the Ilitek ILI9881c panel documentation drm/panel: Add Ilitek ILI9881c panel driver ARM: dts: sun8i: a33: Add the DSI-related nodes [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt | 20 +- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 93 ++++++- arch/arm/boot/dts/sun8i-a33.dtsi | 44 +++- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +++- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/panel/Makefile | 1 +- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 489 ++++++++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/Kconfig | 10 +- drivers/gpu/drm/sun4i/Makefile | 4 +- drivers/gpu/drm/sun4i/sun4i_tcon.c | 86 +++++- drivers/gpu/drm/sun4i/sun4i_tcon.h | 46 +++- drivers/gpu/drm/sun4i/sun6i_mipi_dphy.c | 292 +++++++++++++++++++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 1107 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 63 ++++- 14 files changed, 2300 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt create mode 100644 Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c create mode 100644 drivers/gpu/drm/sun4i/sun6i_mipi_dphy.c create mode 100644 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c create mode 100644 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h base-commit: 7d9cf386c8da2490d0ee55cedb87be94a9e6093a -- git-series 0.9.1