From patchwork Fri Jul 6 17:50:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 940659 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=siol.net Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41MjCH0Y2Dz9s1B for ; Sat, 7 Jul 2018 03:58:51 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934302AbeGFRxJ (ORCPT ); Fri, 6 Jul 2018 13:53:09 -0400 Received: from mailoutvs36.siol.net ([185.57.226.227]:41277 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932895AbeGFRxH (ORCPT ); Fri, 6 Jul 2018 13:53:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 0A8F5520BE8; Fri, 6 Jul 2018 19:53:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id EBefIcTz7OHM; Fri, 6 Jul 2018 19:53:04 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 6DF57520EC6; Fri, 6 Jul 2018 19:53:04 +0200 (CEST) Received: from localhost.localdomain (unknown [194.152.15.144]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id 6B0F4520BE8; Fri, 6 Jul 2018 19:53:03 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Cc: airlied@linux.ie, mark.rutland@arm.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 00/17] Allwinner R40 HDMI refactoring Date: Fri, 6 Jul 2018 19:50:56 +0200 Message-Id: <20180706175113.26698-1-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.18.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series fixes several issues found in R40 HDMI patch series after it was applied. Conversation can be found here: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-June/586011.html One issue raised in that thread is probably not solved (conversation still on going), but I want to send these patches for review before I'm going on vacation. There is also additional DW HDMI driver fix not mentioned in mails. Patches are based on latest linux-next (next-20180706) and are ordered in such way that they don't break R40 HDMI at any time. Because of that I suggest that whole series goes through drm-misc to preserve that order. I also tested those patches on H3 to make sure it doesn't break other platforms. However, it would be nice to test for regressions also on older SoCs (with DE1). Best regards, Jernej Jernej Skrabec (17): dt-bindings: display: sun4i-drm: Add R40 display engine compatible drm/sun4i: Add R40 display engine compatible ARM: dts: sun8i: r40: Remove fallback display engine compatible drm/sun4i: tcon-top: Cleanup clock handling drm/sun4i: tcon: Release node when traversing of graph dt-bindings: display: sun4i-drm: Add R40 TV TCON description drm/sun4i: DW HDMI: Release nodes if error happens during CRTC search ARM: dts: sun8i: r40: Add mixer ids to TCON TOP drm/sun4i: mixer: Read id from DT drm/sun4i: tcon-top: Add helpers for switching mux drm/sun4i: tcon: Add another way for matching mixers with tcon drm/sun4i: tcon: Add support for R40 TCON ARM: dts: sun8i: r40: Remove fallback compatible for TCON TV ARM: dts: sun8i: r40: Add missing TCON-TOP - TCON connections ARM: dts: sun8i: r40: Disable TCONs by default. drm/sun4i: tcon-top: Remove mux configuration at probe time dt-bindings: display: sun4i-drm: Fix order of DW HDMI PHY compatibles .../bindings/display/sunxi/sun4i-drm.txt | 6 +- .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 20 +- arch/arm/boot/dts/sun8i-r40.dtsi | 65 ++++++- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + drivers/gpu/drm/sun4i/sun4i_tcon.c | 92 ++++++++- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 15 +- drivers/gpu/drm/sun4i/sun8i_mixer.c | 35 +++- drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 183 ++++++++---------- drivers/gpu/drm/sun4i/sun8i_tcon_top.h | 4 + 9 files changed, 278 insertions(+), 143 deletions(-) Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai