From patchwork Tue Dec 24 14:38:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 11310135 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 021A66C1 for ; Wed, 25 Dec 2019 10:20:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 DEA272075B for ; Wed, 25 Dec 2019 10:20:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DEA272075B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 994D66E0C1; Wed, 25 Dec 2019 10:20:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by gabe.freedesktop.org (Postfix) with ESMTPS id DBBEE89C69 for ; Tue, 24 Dec 2019 14:39:05 +0000 (UTC) X-Originating-IP: 91.224.148.103 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 80D8FE0003; Tue, 24 Dec 2019 14:39:01 +0000 (UTC) From: Miquel Raynal To: David Airlie , Daniel Vetter , Sandy Huang , Heiko Stuebner , Subject: [PATCH v2 00/11] Add PX30 LVDS support Date: Tue, 24 Dec 2019 15:38:49 +0100 Message-Id: <20191224143900.23567-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 25 Dec 2019 10:19:18 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Maxime Chevallier , Paul Kocialkowski , Rob Herring , Thomas Petazzoni , Miquel Raynal , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hello, This series aims at supporting LVDS on PX30. A first couple of patches update the documentation with the new compatible and the presence of a PHY. Then, the existing Rockchip driver is cleaned and extended to support PX30 specificities. Finally, the PX30 DTSI is updated with CRTC routes, the DSI DPHY and the LVDS IP itself. Cheers, Miquèl Changes since v1: * Added Rob's Ack. * Used "must" instead of "should" in the bindings. * Precised that phy-names is an optional property in the case of PX30. * Renamed the WRITE_EN macro into HIWORD_UPDATE to be aligned with other files. * Removed extra configuration, not needed for generic panels (see Sandy Huang answer). * Dropped the display-subsystem routes (useless). * Merged two patches to avoid phandle interdependencies in graphs and intermediate build errors. Miquel Raynal (11): dt-bindings: display: rockchip-lvds: Declare PX30 compatible dt-bindings: display: rockchip-lvds: Document PX30 PHY drm/rockchip: lvds: Fix indentation of a #define drm/rockchip: lvds: Harmonize function names drm/rockchip: lvds: Change platform data drm/rockchip: lvds: Create an RK3288 specific probe function drm/rockchip: lvds: Helpers should return decent values drm/rockchip: lvds: Pack functions together drm/rockchip: lvds: Add PX30 support arm64: dts: rockchip: Add PX30 DSI DPHY arm64: dts: rockchip: Add PX30 LVDS .../display/rockchip/rockchip-lvds.txt | 4 + arch/arm64/boot/dts/rockchip/px30.dtsi | 48 ++ drivers/gpu/drm/rockchip/rockchip_lvds.c | 486 ++++++++++++------ drivers/gpu/drm/rockchip/rockchip_lvds.h | 19 +- 4 files changed, 401 insertions(+), 156 deletions(-)