From patchwork Fri Dec 17 13:51:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12696658 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A04D3C433F5 for ; Fri, 17 Dec 2021 13:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=dOSb+7CSIciBbiAHeg8rAJrz8+uiGtNSBdrkIlE4PS0=; b=0dERyPxumAYhFP X1G6fQ67DBYpW/UTIW8CLEB8X/LH7nWbTafx0DqGeO9EPMdqqK5C1UXPg+dICH41oTFxQokEwXFqb 8RvZLiFPfXj7fYg+l7YxsHvzn1JlYWH1DuEBw9iyc3GztjZQ6uyKfAxIH2DUeYHpbaOa/BSAOQvhF lJm9GrOkDJX9/GUd7EV/VxvsRfuNGCEE8WjHvoaSKYPufUJA0N4bddzQmsHvuUgRTAtzbPTARMCKp AJ0XxUEvZal3+RBNBHG/jEOXPcLRF5oHfhaDd5pyPY6K8lo4xrNAl4xAfF/i6Zje/lgD3/o8+oXIz LbiNZrr+abd6gDQe0Yig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myDeR-00ATNN-3z; Fri, 17 Dec 2021 13:51:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myDdw-00AT8n-J1 for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 13:51:30 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CB8415C013B; Fri, 17 Dec 2021 08:51:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 17 Dec 2021 08:51:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm1; bh=sBGmg6OGxAeyMRv/6A1Uv63uY9 15zP05qZumq6y3+sE=; b=j9Q3kqom3gMjpDKX9fOWJVxeDe/uS1OsXdqxwC5wft uloUGyYwNQN/tfAUoyIydvafeX2wwPAGTbd71VAySIl8fQXoo2o3l1X3s7HSRW+M si7c5BlAP8brMT+neFd8ObT67y9T8v/g9dLPr0S9SM2jJQZ0aHlYoYci4bdYUP1I tZOiM53pFwi/HCFJGIoRCRUmcPhbctXrsQSSZSvy+1evQWQbg5Zyz/NSwWDB9q+M 7MWaUBvlUw/6L1rr6fqhiRT8yOEJ33ynV2TOhAM1o5ZGUcKsl/fbZff7CCi3GWU6 soAjFyGeLC9rxQA8jMJwkndpe4jrk49Wvaeom0khOYPg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sBGmg6 OGxAeyMRv/6A1Uv63uY915zP05qZumq6y3+sE=; b=P/5gw8ykoVNjw8B1EFQcDn IKHdBdLq/XNXUarH5FYobNtkf5f6ZDuxY5GxEL6fYYiHcQGSTUGLowxmx1K4MU/r EVBm53hyRPMZzhkwr490RNb3vubpL9TohPeuJOy7CCd7dQeQOKRzfTEMiZqlFFdm sX+6DzDGNT+ha0P4+BX64zRUiahzfcfi5IMgsehunsYW67Sahn3wmCucjlqLgVAH Znv7uDidRcTrWXK4CnR2cMQidZBBezW44FfdRwV1Mr+ENvz+gxOU/IJTm6JfWkCq mCRxMDF/I87yuUVipGWjwg/xv4urKnMBJtvQr1jOjdYzVzRMCsJRtv2fJqf1s33w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrleeigdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Dec 2021 08:51:20 -0500 (EST) From: Maxime Ripard To: Daniel Vetter , David Airlie , Rob Herring , Frank Rowand , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard , =?utf-8?q?Jernej_=C5=A0krabec?= Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org Subject: [PATCH v6 0/7] drm/sun4i: Add support for dual-link LVDS on the A20 Date: Fri, 17 Dec 2021 14:51:12 +0100 Message-Id: <20211217135119.316781-1-maxime@cerno.tech> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211217_055128_741725_74FC35A7 X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This is another attempt at supporting the LVDS dual-link output on the Allwinner A20. Let me know what you think, Maxime Changes from v5: - Rebased on current next - Enhanced the property binding description Changes from v4: - Rebased on 5.15 Changes from v3: - Reintroduce the endpoint sanity check (and make of_graph_get_port_by_id const in the process) - Make a few doc fixes - Fix device_node leakage - Changed allwinner,lvds-companion to more generic link-companion - Rebased on 5.11 Changes from v2: - Added the DT binding description - Split the patch to enable the A20 - Reworked a bit the error messages Changes from v1: - Reworked the DT bindings - Refactored a bit the panel registration in the tcon code. Maxime Ripard (7): of: Make of_graph_get_port_by_id take a const device_node drm/of: Change the prototype of drm_of_lvds_get_dual_link_pixel_order dt-bindings: display: sun4i: Add LVDS link companion property drm/sun4i: tcon: Refactor the LVDS and panel probing drm/sun4i: tcon: Support the LVDS Dual-Link drm/sun4i: tcon: Enable the A20 dual-link output [DO NOT MERGE] ARM: dts: sun7i: Enable LVDS Dual-Link on the Cubieboard .../display/allwinner,sun4i-a10-tcon.yaml | 6 + arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 69 ++++++++ drivers/gpu/drm/bridge/ti-sn65dsi83.c | 9 +- drivers/gpu/drm/drm_of.c | 138 +++++++++++---- drivers/gpu/drm/rcar-du/rcar_lvds.c | 8 +- drivers/gpu/drm/sun4i/sun4i_tcon.c | 164 ++++++++++-------- drivers/gpu/drm/sun4i/sun4i_tcon.h | 4 + drivers/of/property.c | 2 +- include/drm/drm_of.h | 16 +- include/linux/of_graph.h | 4 +- 10 files changed, 300 insertions(+), 120 deletions(-)