Received: by 10.223.185.116 with SMTP id b49csp476811wrg; Wed, 21 Feb 2018 01:26:08 -0800 (PST) X-Google-Smtp-Source: AH8x2262dQNXzKgoUBpv2Gx4WZJPf7TlhAwoZh5jRDe+S0gmnjksvJt8fAM25q08I0QVWeENDYcu X-Received: by 2002:a17:902:bcc1:: with SMTP id o1-v6mr2620502pls.218.1519205168159; Wed, 21 Feb 2018 01:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519205168; cv=none; d=google.com; s=arc-20160816; b=paQrF2y4MxvtnyvXzWWJpMAj9l7Xk1X8OUZ2eWIaunPoq6lDlTsSe75IN1fn1neOtF KC1eMu1yukZQ3uqh6P9VPGb/Qfz9UjteINxenbI/Zxv6mlsvE3KvHE6N8kHrX2HM/QzJ YtE1Scc4i0Ro97JuI7Ws2su/yUiSifCWwbMRkka+9NiPJYbjqZ4v6yyOI6kxapBP/Ywc cyqFlPYfVtsVUYojChQdI8aMs3SfKLjg+e30NdpCPX+8uKf8Ncnw6IacrPN9fdmSjsHv I/vIU5x+KwVE5AcTmoSUHakYJNtI8wLnAifuTQeglomsAYfnipSzBlO0fbmkAl8M/osl QniA== 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=Wt3ZYX4d0dbQ6tXdLv6Sdkv0qcn1N3pSAjDkZE/P0Ns=; b=B9+grL+v3KV5TG6wMHSKNKBvgiCrDtEH5bM4jteQAqbZ0LjOBahFdSYbnjPVeYyoDr 8emfIIeAtwHcdgJtMUI9JOu4+i79TQUf4ygd6hgSPXEEZbBgU6wxS+BIzIUwwQoEp1vM PiYxaf7QDQNShgAQKG3yKSD6bc80wnyjGL68q108gDq133LGbMGElacu2SlaustrqfPo F1cf51dGcG9IF8eyDuIGPsakm8ajDF/0X2rAO/uke0WQj7tXkjzpjjSalnzRv+MhD8GK N2/bgPWeGXoqxt8nxpjxzxa+n5xE3xG2xaYa+fXi0W3TGly1y9i4/X8942aWQqmqICTb XQuw== 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 q2si8792311pgf.90.2018.02.21.01.25.54; Wed, 21 Feb 2018 01:26:08 -0800 (PST) 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 S1753147AbeBUJUw (ORCPT + 99 others); Wed, 21 Feb 2018 04:20:52 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54438 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502AbeBUJUu (ORCPT ); Wed, 21 Feb 2018 04:20:50 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 52EEC207F6; Wed, 21 Feb 2018 10:20:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.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.free-electrons.com (Postfix) with ESMTPSA id 0B7A72071A; Wed, 21 Feb 2018 10:20:38 +0100 (CET) From: Maxime Ripard To: Mark Brown , Thierry Reding , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring 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 v2 00/10] drm/sun4i: Allwinner MIPI-DSI support Date: Wed, 21 Feb 2018 10:20:24 +0100 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. Let me know what you think, Maxime 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 (10): regmap: mmio: Add function to attach a clock drm/sun4i: tcon: Add TRI finish interrupt for vblank drm/sun4i: Protect the TCON pixel clocks dt-bindings: display: Add Allwinner MIPI-DSI bindings drm/sun4i: Add Allwinner A31 MIPI-DSI controller support dt-bindings: vendor: Add Huarui Lighting dt-bindings: panel: Add Huarui LHR050H41 panel documentation drm/panel: Add Huarui LHR050H41 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/huarui,lhr050h41.txt | 19 +- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 84 +++++- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +- arch/arm/boot/dts/sun8i-a33.dtsi | 35 ++- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +++- drivers/base/regmap/regmap-mmio.c | 24 ++- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/panel/Makefile | 1 +- drivers/gpu/drm/panel/panel-huarui-lhr050h41.c | 506 +++++++++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/Kconfig | 10 +- drivers/gpu/drm/sun4i/Makefile | 4 +- drivers/gpu/drm/sun4i/sun4i_tcon.c | 115 ++++++- drivers/gpu/drm/sun4i/sun4i_tcon.h | 46 +++- drivers/gpu/drm/sun4i/sun6i_mipi_dphy.c | 297 +++++++++++++++++++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 1111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 67 ++++- include/linux/regmap.h | 3 +- 17 files changed, 2366 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/huarui,lhr050h41.txt create mode 100644 Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt create mode 100644 drivers/gpu/drm/panel/panel-huarui-lhr050h41.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: 91ab883eb21325ad80f3473633f794c78ac87f51 -- git-series 0.9.1