From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FBA2C43334 for ; Wed, 13 Jul 2022 15:16:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236843AbiGMPQD (ORCPT ); Wed, 13 Jul 2022 11:16:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236696AbiGMPP5 (ORCPT ); Wed, 13 Jul 2022 11:15:57 -0400 Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com (mailrelay4-1.pub.mailoutpod1-cph3.one.com [46.30.210.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62CF13205E for ; Wed, 13 Jul 2022 08:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=+V543hgOwwxoHl3Yvw8fF/bbYpXWMPctUgWwDNhCItc=; b=PYeTuM+26X9PJPpUOC9K20rbPE0TvoYgka9EVIZdknpQs+j1x1gIGMBjU/KfR7Hf3eJCduINKd4G4 L+1iY6Ppt0UxOt6DYndYbZUOs5Omi4vfPiBScjymxnKMsu3c55sxYyJzGv0u+erFwtZKx06uDAPfgV VJAruJ4Z3HahfvAIeCS0eW2HNUTgsJOAKszTTb21KpH+7kshTB0Dyb+Gr5hBxiPidnNS9l7Q/VspQz qse9c+XDF02tcfDrPJdOnAlGwoBkDFRmgEILxkb3bkQI49WmO/FQ89Xv9MoOPtTf9mb+A6zZHtADzD 53qby6VHjRUdVNpEKaR3Ar8nH/7pwDg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=+V543hgOwwxoHl3Yvw8fF/bbYpXWMPctUgWwDNhCItc=; b=hgEV5nQJYDXvZ6UXqA+aG6mhNH5qUQI8KHi4REODgNx1h3zEAIHxJUuPWsG84xxkeofuh0KMSUcmJ MmU/NALCQ== X-HalOne-Cookie: 0d64e30b687d6e582b456109a4c81e6d55393b4f X-HalOne-ID: ae03f1c3-02be-11ed-823e-d0431ea8bb10 Received: from mailproxy1.cst.dirpod3-cph3.one.com (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id ae03f1c3-02be-11ed-823e-d0431ea8bb10; Wed, 13 Jul 2022 15:15:50 +0000 (UTC) Date: Wed, 13 Jul 2022 17:15:49 +0200 From: Sam Ravnborg To: Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, David Airlie , linux-kernel@vger.kernel.org, jamipkettunen@somainline.org, Thierry Reding , martin.botka@somainline.org, dri-devel@lists.freedesktop.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org Subject: Re: [PATCH 2/2] gpu/drm/panel: Add Sony TD4353 JDI panel driver Message-ID: References: <20220712200244.960018-1-konrad.dybcio@somainline.org> <20220712200244.960018-2-konrad.dybcio@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220712200244.960018-2-konrad.dybcio@somainline.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, thanks for submitting this driver. I know a new version is pending with the bindings changes but here is a few more things to address. Sam On Tue, Jul 12, 2022 at 10:02:41PM +0200, Konrad Dybcio wrote: > Add support for the Sony TD4353 JDI 2160x1080 display panel used in > some Sony Xperia XZ2 and XZ2 Compact smartphones. Due to the specifics > of smartphone manufacturing, it is impossible to retrieve a better name > for this panel. > > This revision adds support for the default 60 Hz configuration, however > there could possibly be some room for expansion, as the display panels > used on Sony devices have historically been capable of >2x refresh rate > overclocking. > --- > drivers/gpu/drm/panel/Kconfig | 10 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-sony-td4353-jdi.c | 352 ++++++++++++++++++ > 3 files changed, 363 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-sony-td4353-jdi.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 38799effd00a..1baa0a2c36bd 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -624,6 +624,16 @@ config DRM_PANEL_SONY_ACX565AKM > Say Y here if you want to enable support for the Sony ACX565AKM > 800x600 3.5" panel (found on the Nokia N900). > > +config DRM_PANEL_SONY_TD4353_JDI > + tristate "Sony TD4353 JDI panel" > + depends on GPIOLIB && OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to enable support for the Sony Tama > + TD4353 JDI command mode panel as found on some Sony Xperia > + XZ2 and XZ2 Compact smartphones. > + > config DRM_PANEL_SONY_TULIP_TRULY_NT35521 > tristate "Sony Tulip Truly NT35521 panel" > depends on GPIOLIB && OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index eabd4d6a1845..df8a6b707dbb 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -63,6 +63,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o > obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o > +obj-$(CONFIG_DRM_PANEL_SONY_TD4353_JDI) += panel-sony-td4353-jdi.o > obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) += panel-sony-tulip-truly-nt35521.o > obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o > obj-$(CONFIG_DRM_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o > diff --git a/drivers/gpu/drm/panel/panel-sony-td4353-jdi.c b/drivers/gpu/drm/panel/panel-sony-td4353-jdi.c > new file mode 100644 > index 000000000000..8bc2e55af63c > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-sony-td4353-jdi.c > @@ -0,0 +1,352 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2022 Konrad Dybcio > + * > + * Generated with linux-mdss-dsi-panel-driver-generator with a > + * substantial amount of manual adjustments. > + * > + * SONY Downstream kernel calls this one: > + * - "JDI ID3" for Akari > + * - "JDI ID4" for Apollo > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include