From patchwork Tue Dec 5 15:10:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 120670 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5864054qgn; Tue, 5 Dec 2017 07:10:41 -0800 (PST) X-Google-Smtp-Source: AGs4zMYMTF6GyrLy07JPtTpyB0wwaY/TiMsG4ilDS9UOP49e41hAbTFo7JwswSknbbvpYuRVLWg0 X-Received: by 10.99.120.196 with SMTP id t187mr17304828pgc.285.1512486641673; Tue, 05 Dec 2017 07:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512486641; cv=none; d=google.com; s=arc-20160816; b=oQYdBCfFso0Qj0/x7PP5XQ5C9uWKs4KbGhGlTRiCAcQQZ9n/yf/zUFlXhtl5oBZGQ1 bUNCy1Q2UJzOblfpkNIe65jj2BJM+YRTHtHzVb/bX2YJ6BOFrRaSUWUsPMhop14b3Ocj uITF9cZ+yQPO329O+g6xAO4ecjcE7YzkfyxpaySdiR5Or8HU8s4Xj5w+PESd003h0wk2 fGlmNkwEhZTxW2lzQrXEsTLSjicgtuckP8ATfQeEzKvSoEado+Fat18KTF/pms1DWIa3 y9c+7pUI8bFgxumgSjQMIfOWFm1GNvO43IXZ3rBD0tQFCTT3P/4T5VNeTtPwpytZpC4z wU0w== 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=Du3v01GNaKNrQcNCeMiby/z6z9ZjTDFZKoVI3XDdw2s=; b=FM28czp8P+luHfv3MtR3c/RwVU7OCb2H82saUcBnPqTSyhmd5HlEj/81Zeo3CL8Yen 8egyYu9LL8dxlAljpilakjhton2yO1SpQhVLh4Mhk8aKZUeDzKpSZ31SR/JaTE3HHOkb a0015AywNc/cAFWVpMUm0H58cBBZB7MHj6ov7NnTk6Dr/ohIs+pFAzrX6x/piR5XR2H2 7Xq8j5A4tRUNrCCIc3/WesyVRiR296AszT+svsukusC5xngdHKbEPmv/dkiR/wUPlQmz mzq1hSrvGFjTq0zw4y0Wp1Tx+T4qHqVDEv0suGFH+JJnskmbWsJzaw17Qa8mvBnHx+ax byAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 w12si198503pld.479.2017.12.05.07.10.41; Tue, 05 Dec 2017 07:10:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752845AbdLEPKj (ORCPT + 6 others); Tue, 5 Dec 2017 10:10:39 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:56058 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbdLEPKh (ORCPT ); Tue, 5 Dec 2017 10:10:37 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 9720820731; Tue, 5 Dec 2017 16:10:35 +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 65F88203A2; Tue, 5 Dec 2017 16:10:35 +0100 (CET) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Mark Rutland , Rob Herring , linux-arm-kernel@lists.infradead.org, plaes@plaes.org, icenowy@aosc.io, Thomas Petazzoni , jernej.skrabec@siol.net, devicetree@vger.kernel.org Subject: [PATCH v3 00/15] drm/sun4i: Add A83t LVDS support Date: Tue, 5 Dec 2017 16:10:12 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, Here is an attempt at supporting the LVDS output in our DRM driver. This has been tested on the A83T (with DE2), but since everything is basically in the TCON, it should also be usable on the older SoCs with minor modifications. This was the occasion to refactor a bunch of things. The most notable ones would be the documentation, and split of the UI layers in the mixer code, and the switch to kfifo for our endpoint parsing code in the driver that fixes an issue introduced by the switch to BFS. Let me know what you think, Maxime Changes from v2: - Move the module clock rate to the mixer structure - Adjusted the simple-panel documentation for power-supply - Changed the compatible for the first A83t mixer to mixer 0 - Rebased on top of current drm-misc - Split out the A83t bindings in its separate patch Changes from v1: - Added a fix for the error path handling in the TCON - Enable the TCON by default - Removed the patch that changes the channels offset but kept most of the modifications as a cleanup - Deal with the LVDS clock being able to have another PLL parent on some SoCs - Renamed the TCON compatible to TCON-TV, following the convention used on newer SoCs - Removed the hardcoded timings - Moved LVDS enable quirks to a separate function - Used clock indices define in the DT - Removed the hardcoded clock rate in the DT and moved it to the driver - Changed sun8i_mixer_planes to sun8i_mixer_ui_planes to be consistent - Added the various tags collected - Rebased on top of 4.15 Maxime Ripard (15): dt-bindings: panel: lvds: Document power-supply property drm/panel: lvds: Add support for the power-supply property dt-bindings: display: sun4i-drm: Add LVDS properties dt-bindings: display: sun4i-drm: Add A83T pipeline drm/sun4i: Fix error path handling drm/sun4i: Force the mixer rate at 150MHz drm/sun4i: Create minimal multipliers and dividers drm/sun4i: Add LVDS support drm/sun4i: Add A83T support ARM: dts: sun8i: a83t: Add display pipeline ARM: dts: sun8i: a83t: Enable the PWM ARM: dts: sun8i: a83t: Add LVDS pins group ARM: dts: sun8i: a83t: Add the PWM pin group ARM: dts: sun8i: a711: Reinstate the PMIC compatible ARM: dts: sun8i: a711: Enable the LCD Documentation/devicetree/bindings/display/panel/panel-common.txt | 6 ++- Documentation/devicetree/bindings/display/panel/panel-lvds.txt | 1 +- Documentation/devicetree/bindings/display/panel/simple-panel.txt | 2 +- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 11 +++- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 62 ++++++++++++++++++- arch/arm/boot/dts/sun8i-a83t.dtsi | 99 +++++++++++++++++++++++++++++- drivers/gpu/drm/panel/panel-lvds.c | 23 +++++++- drivers/gpu/drm/sun4i/Makefile | 1 +- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 10 ++- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 +- drivers/gpu/drm/sun4i/sun4i_lvds.c | 183 +++++++++++++++++++++++++++++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/sun4i_lvds.h | 18 +++++- drivers/gpu/drm/sun4i/sun4i_tcon.c | 247 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/sun4i_tcon.h | 31 +++++++++- drivers/gpu/drm/sun4i/sun8i_mixer.c | 18 +++++- drivers/gpu/drm/sun4i/sun8i_mixer.h | 3 +- 16 files changed, 709 insertions(+), 7 deletions(-) create mode 100644 drivers/gpu/drm/sun4i/sun4i_lvds.c create mode 100644 drivers/gpu/drm/sun4i/sun4i_lvds.h base-commit: 3b71239181e5429702387666f1ac70a9e6856cce -- git-series 0.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Rob Herring Reviewed-by: Rob Herring Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai