From patchwork Wed Mar 11 16:33:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 11433483 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 BF19414B4 for ; Thu, 12 Mar 2020 08:09:51 +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 A06D720650 for ; Thu, 12 Mar 2020 08:09:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=aosc.io header.i=@aosc.io header.b="M89YJFIs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A06D720650 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aosc.io 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 118856EA79; Thu, 12 Mar 2020 08:08:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from dodo.xh.is (dodo.xh.is [IPv6:2001:19f0:8001:184d:5400:2ff:fe7b:e8bd]) by gabe.freedesktop.org (Postfix) with ESMTPS id 00A7E6E497 for ; Wed, 11 Mar 2020 16:33:44 +0000 (UTC) X-Spam: yes X-Spam-Score: 6.6 / 99999 X-Spam-Symbols: MID_CONTAINS_FROM, FREEMAIL_TO, RCVD_NO_TLS_LAST, FROM_EQ_ENVFROM, SUSPICIOUS_RECIPS, RCVD_VIA_SMTP_AUTH, TO_DN_SOME, BROKEN_CONTENT_TYPE, R_MISSING_CHARSET, RCPT_COUNT_TWELVE, ASN, RCVD_COUNT_TWO, FROM_HAS_DN, FREEMAIL_ENVRCPT, TO_MATCH_ENVRCPT_SOME, ARC_NA, TAGGED_RCPT, MIME_TRACE Received: by dodo.xh.is (OpenSMTPD) with ESMTPSA id a0f7dd32 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 11 Mar 2020 09:33:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 951924BFAC; Wed, 11 Mar 2020 16:33:37 +0000 (UTC) From: Icenowy Zheng To: Thierry Reding , Sam Ravnborg , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Ondrej Jirman Subject: [PATCH 0/5] Add support for PinePhone LCD panel Date: Thu, 12 Mar 2020 00:33:24 +0800 Message-Id: <20200311163329.221840-1-icenowy@aosc.io> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.io; s=dkim; t=1583944422; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding; bh=9aZ3S84mHw4qXcjY/Kp+GSG14l46FAM2R96fwhUnoLw=; b=M89YJFIsfv3TZ/gwLoaB/0Mmpaux2szLuy6/wGBcE0KvwJsUyq4OivuUzj7OVflX7zqjPC O+ZAmvqBL37TldMPGv7hCZUL3De0hTKB/wYZZ/t0xalJHpEXiJoJIdZpUzeu5pH2sT2sI5 HR8LUFEPwhbZGQ//OtguR8BmVhgN6DI= X-Mailman-Approved-At: Thu, 12 Mar 2020 08:08:13 +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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. PATCH 4 is the fix of a bug in sun6i_mipi_dsi which will gets triggered on XBD599. Icenowy Zheng (5): dt-bindings: vendor-prefixes: Add Xingbangda dt-bindings: panel: add binding for Xingbangda XBD599 panel drm: panel: add Xingbangda XBD599 panel drm/sun4i: sun6i_mipi_dsi: fix horizontal timing calculation arm64: allwinner: dts: a64: add LCD-related device nodes for PinePhone .../display/panel/xingbangda,xbd599.yaml | 50 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + .../dts/allwinner/sun50i-a64-pinephone.dtsi | 37 ++ drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-xingbangda-xbd599.c | 367 ++++++++++++++++++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 10 +- 7 files changed, 471 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/xingbangda,xbd599.yaml create mode 100644 drivers/gpu/drm/panel/panel-xingbangda-xbd599.c