From patchwork Wed Sep 29 08:42:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "maxime@cerno.tech" X-Patchwork-Id: 12524911 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17680C433FE for ; Wed, 29 Sep 2021 08:45:14 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D5F8461357 for ; Wed, 29 Sep 2021 08:45:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D5F8461357 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=7CXakpqkmAFqcnLATAnfHVzT92Ub69mM0DGGtELevlI=; b=aoEPyaT1AbCE20 q6uQ3hERwoIiA66OZrpWAN6TJOUULCsDRH5vNJ4VXCZHx3NQtS7VqyD89XgXikWXC9jPg4rR/28W2 poaCjV/RsregYg0PfXcryDmsKnm9LU9M/blsXZ4TTkFry+AtFF5sClH2c1F2abz385h2j38MMYxXO dBfhXwPEsGS8Y5VL85YDL8eXonNwK26yLbONLyilu0pqvF8mkp9tz2VfgXQBNb24SogS6YUxb711J RqTyCD464AZssRhRWcoexC7U/S3LQFA5rfCJLI4p7Bi1hjMeeFwk/F1q7NCOLFNTRVM1U2vtfU8Rd VVbnO4VyykjLgreL2HKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVVAt-00ATMW-H8; Wed, 29 Sep 2021 08:42:47 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVVAp-00ATKg-7e for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 08:42:44 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6DFB23200F9F; Wed, 29 Sep 2021 04:42:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 29 Sep 2021 04:42:39 -0400 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=/dl8IMuf1y3V0WrkZJ2LWnQK7s 2aukBedRgNWHXbFJ8=; b=SAY9PpQSZz9VVqsVDVJZdnU5DPvrXn3pdq7vtCS6IJ lz6NAgxxfjQvO6vbRyM6FkQ9yDBvmDCL8LoEi+UaygiN1YhQleDh1wmDea6Nq4Dm Q07EizrJdP+NfGNmk9Hm5sgQOgd9zk1xUN70uEVUV7u9HWoociUhvMbXYS0wxA/F X/R2ZeUYNrIZR52+Xb/L4A6bXaXl8U0hawHvKhqo6rU+LWIRA5QOf/AYGNp2I7nM zVyyQFlHsgBmqLHWHm3zBsju7h5oFQ7M5oASro6zD5G/LwUDoQC9IXB4B6yoM08x k0vWs0j806XWZSkv8GETlX1MusDQrc6hGRXbOUu8O1kA== 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=fm3; bh=/dl8IM uf1y3V0WrkZJ2LWnQK7s2aukBedRgNWHXbFJ8=; b=Sq93/HTbv0ogOWMolo0Sul PuF5H7pRBPoxbt3pQ+itzNuN4OhnyLPiXHG59Eb6gFQt0JV+eHfnmM0A2jQ4TfLn N8PAQVPW3C2rDWU+Alzu0GoRxe5bIjGC6wTCccDab330/zn463Tqef8MNCeuFB2V rZKlVzY0epj0VHfIjVO0X7yNzhzUS5XYxRykyApqpNSNeQKnHBJ4WR1th4Cx/3zh 8sH5AwD8LcCe1+pWj7l7jrCDApBAu4eyJUFb9CVv0MeaR6QhyxNwMsUdwafR6vv/ mb/SQunYNMBDN4FqlvYD8V/eHsaRvncx3ODasTZHYN7m10li2tedvIYmm9+GRQXQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekvddgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Sep 2021 04:42:36 -0400 (EDT) From: Maxime Ripard To: Rob Herring , Frank Rowand , Chen-Yu Tsai , Maxime Ripard , =?utf-8?q?Jernej_=C5=A0krabec?= , Daniel Vetter , David Airlie , Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 0/7] drm/sun4i: Add support for dual-link LVDS on the A20 Date: Wed, 29 Sep 2021 10:42:27 +0200 Message-Id: <20210929084234.1271915-1-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_014243_308569_07D73F74 X-CRM114-Status: GOOD ( 10.05 ) 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 a fourth attempt at supporting the LVDS dual-link output on the Allwinner A20. Let me know what you think, Maxime 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 Dual-Link 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/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 +- 9 files changed, 298 insertions(+), 113 deletions(-)