Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp864928imw; Wed, 13 Jul 2022 09:18:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1slQniOKBlBVehPUo/BUtsMUmvfiaDrLfDlu7V+2YDbm2/OwpvIuGTDWgsW9iA8I89OU4Vh X-Received: by 2002:a17:906:93ef:b0:72b:44e2:bdd8 with SMTP id yl15-20020a17090693ef00b0072b44e2bdd8mr4283562ejb.192.1657729137050; Wed, 13 Jul 2022 09:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657729137; cv=none; d=google.com; s=arc-20160816; b=xSBO14w4z6LwbGcSmQc5DQasb5sqtkdWIof28Uura0vQFkFsqSNPqFAqm2/tqKnuLw CJLYRws2Cq9zNNmPQ27RUGI2uZKC7zAvaE/pPorWRMb8MEdmqwHz6Pun8no8l6fXiAKG 4O6NQJSo68z0lQEjyUqtLBk2W40LJ5i3bc4IWDHYhUssJupFz9mzT36ms7Y+zk/YHI06 GW5D2IimDXJD7eQTObWewiBdw4A0dzPYKKNzaWqQyrInFMc5dg4hHaAeqTVn+Xs7K9qt P1D+AMKuyqH4WcdulHf7lB94fBl8Y1LsVYhQ1tWVKsFSdD++7Sx45I7zIUDSeacIP2j0 LF+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=+V543hgOwwxoHl3Yvw8fF/bbYpXWMPctUgWwDNhCItc=; b=M+1NStzqKK2nJPjX7KkrepzW/2f/aa1uJ45QfFQJmbEEoPazM9No/MwlJMs8ESTIlS ew35D4LPHJ01ofAJY8CwkN6srS8ErD+/uQJqZ+f2YxV1F+BEuJf3Xj9Yg1tYiYTuGrPv b/uk/K8tpYtWxPXUKucjHMufkNnK9bFIyIsCguGLJ3gCgvhj2XWw1qcD/MRIrW3VxlTe 1Mo8SlIwUdGdYNCmW7Z1V85irzQVigTqlltMrFB6m03+IJ5UNmusktfV06ipiXhzIGye Ycin8ZJ3/5bxd01Y3utDcSSQBaPjUxjkD6XOJecF3MpNGND5/KBN0Xmw0GBnKDhrvkEi p+/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=PYeTuM+2; dkim=neutral (no key) header.i=@ravnborg.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc31-20020a1709078a1f00b0072b4567e761si2998498ejc.201.2022.07.13.09.18.32; Wed, 13 Jul 2022 09:18:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=PYeTuM+2; dkim=neutral (no key) header.i=@ravnborg.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236597AbiGMPQB (ORCPT + 99 others); Wed, 13 Jul 2022 11:16:01 -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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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