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: 11309457 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 975D4921 for ; Tue, 24 Dec 2019 14:39:39 +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 5D31620722 for ; Tue, 24 Dec 2019 14:39:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VEnwqMn/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D31620722 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=gZVb8/u/A9XEQNyI4kEepFFiMagPWMwilOHHaiK2tSA=; b=VEnwqMn/MQfZvf hMOVdJCT3sTSHXLACH4v2QfA0Nknnab+9DkWLd/yAu9HPbQoRP/UKW1XIMGKTCTlEq3O0QwXe8dDZ k6P9Ir5Guarwa7AQCvvoAXHy5nMGGcYn2MfEd38GXRlsFGLXAk7hRA9+ix9t2ZEY6KYjC+KM6F5t0 Rqu5/+jYEFe5FiM3694GFa7fCu/HXW+B2Hp65CqcykgKdYDX1ugj66uMfFyVRYIzkjwJKRVicnlbO N8kcwSVtAh6IIxAqDsdSb/l7UdXawZWKHlOSMGlWtQHIiTxw7bYM8qR7Ih2SMP2seILYLwzseTgUa ebu+2qzXajT+yIFfocgA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ijlLU-00023j-EL; Tue, 24 Dec 2019 14:39:36 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ijlL7-0001hm-Mq; Tue, 24 Dec 2019 14:39:15 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191224_063913_881931_F089AA9E X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.196 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [217.70.183.196 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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(-)