Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2536979rwb; Fri, 9 Dec 2022 03:28:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf6x5FobAO0s9awaY8hpCEZJQbjVmYmq4pMOb+O+HhmPcCkhUaonoAjg0Qk2po8ySjkm5yD6 X-Received: by 2002:a05:6402:33c:b0:469:1de0:6ac3 with SMTP id q28-20020a056402033c00b004691de06ac3mr4359831edw.40.1670585337387; Fri, 09 Dec 2022 03:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670585337; cv=none; d=google.com; s=arc-20160816; b=liG6Ln1JsRE57dPvrxwlZF2iQao1BStjXX8YrGk4kD8EOnej75aSA7TXdMHkks8zxh 0TBCjXWLPx9HVD/7041lUAIxa9W6OOc4X7kbsZi4Vie0UXR7QGCscsJ9udLS8fy3F3kZ wNQxikqhsavNM/MBiMvKkfVj+D/MXviyidHo+7qofsTj6FpHgG0PpzITXbCE4mPfOTB4 Nv74PLSVdbHBMDpSbPqjO/AML5SnLug5mof0hA7adSnL7yBh2LeCVz+7j2q6BdDaCzMi Q4/QN0H8xNup9hhP/WtTUa8t04exAlTqGbsfmVhrIMoLxZkgYROqI0prdt1rQiEutH+2 kmMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id; bh=3zp106BqU5RHCI2hQIzLI9zb+Sqm0S4p1nINhJBavLk=; b=deLZgO1IjBtKMLyl/d1ooFKJz6F9kRE1h/8OoXg+838/RCZyWl3dssiJzrpfj7ORCL ymb8OFxmNCJ26E5OIZBTYYIes72LEqD0FMLmRuE7J6c4Q1BPrT6xrLXDlED/fiNIkm5T 1WPfLZty5ReLRWUimaUGyJcm1qKrhIXE1h3+y8Ctk2T6GwLZSVRUKr6eiAVd00qByLhf /kry7sjJ+RhEeEfN+cw9s+8+4OfQHE6w0C34ayfeO1QPr1LpzcgtSNHGqKPinb8/yd1J CdhuceQd0vJfsd5Y0vNOzHzEz+QmytXIvjx4fEyqfu4BKIl8NrYfzbhkGdAro2Ho33oN uNbw== ARC-Authentication-Results: i=1; mx.google.com; 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 y1-20020a056402358100b0046b999e884dsi1190626edc.529.2022.12.09.03.28.38; Fri, 09 Dec 2022 03:28:57 -0800 (PST) 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; 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 S229731AbiLILBa (ORCPT + 74 others); Fri, 9 Dec 2022 06:01:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbiLILBY (ORCPT ); Fri, 9 Dec 2022 06:01:24 -0500 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [IPv6:2001:4b7a:2000:18::171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939F94B779 for ; Fri, 9 Dec 2022 03:01:21 -0800 (PST) Received: from [192.168.1.101] (abxh44.neoplus.adsl.tpnet.pl [83.9.1.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 500033F27A; Fri, 9 Dec 2022 12:01:12 +0100 (CET) Message-ID: Date: Fri, 9 Dec 2022 12:01:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v3 2/2] gpu/drm/panel: Add Sony TD4353 JDI panel driver From: Konrad Dybcio To: ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20220930180812.32210-1-konrad.dybcio@somainline.org> <20220930180812.32210-2-konrad.dybcio@somainline.org> <8a78ab73-443f-a18d-b8ef-4a2d507aa1fb@somainline.org> <5dea6c72-1323-f052-a386-887c20e9f8c3@somainline.org> Content-Language: en-US In-Reply-To: <5dea6c72-1323-f052-a386-887c20e9f8c3@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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 On 14.11.2022 15:55, Konrad Dybcio wrote: > > > On 14/10/2022 18:36, Konrad Dybcio wrote: >> >> >> On 30.09.2022 20:08, 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. >>> >>> Signed-off-by: Konrad Dybcio >>> --- >> Gentle bump >> >> Konrad > Yet another one. > > Konrad Hello? Anybody there? It's been quite a while.. Konrad >>> Changes since v2: >>> - "GPL v2" -> "GPL" >>> - add missing S-o-b (how embarassing) >>> - move { after sony_td4353_assert_reset_gpios() to a new line >>> >>>   drivers/gpu/drm/panel/Kconfig                 |  10 + >>>   drivers/gpu/drm/panel/Makefile                |   1 + >>>   drivers/gpu/drm/panel/panel-sony-td4353-jdi.c | 329 ++++++++++++++++++ >>>   3 files changed, 340 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 a582ddd583c2..6ef1b48169b5 100644 >>> --- a/drivers/gpu/drm/panel/Kconfig >>> +++ b/drivers/gpu/drm/panel/Kconfig >>> @@ -637,6 +637,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 8e71aa7581b8..8ef27bc86f94 100644 >>> --- a/drivers/gpu/drm/panel/Makefile >>> +++ b/drivers/gpu/drm/panel/Makefile >>> @@ -64,6 +64,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..11db62992b8b >>> --- /dev/null >>> +++ b/drivers/gpu/drm/panel/panel-sony-td4353-jdi.c >>> @@ -0,0 +1,329 @@ >>> +// 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  (XZ2) >>> + * - "JDI ID4" for Apollo (XZ2 Compact) >>> + */ >>> + >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> + >>> +#include