Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp934914rwi; Fri, 14 Oct 2022 10:26:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7tLkUlaGVKU8iYQsTBjnf6qofsezhE0Gyj3a7MEhmg60vqOGasmibSmdz4w2jWHPtRfqxA X-Received: by 2002:a17:902:ef4d:b0:181:98d1:69c0 with SMTP id e13-20020a170902ef4d00b0018198d169c0mr6490201plx.45.1665768371006; Fri, 14 Oct 2022 10:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665768371; cv=none; d=google.com; s=arc-20160816; b=Qm9g2VNtsNKag7K2GUb3f0hdgo+rs7rVef9GhRsNJh75yWZ9rodaUWyvA0QsqqmHhg W+qdNbpLD2K/k9DrDpN9SGT4nJzh7VTY/pqAEj4K0pVEBOiGGiKk8OlFU+ahloC5eiVQ CcwdjGqlB+QubUxBR0Je0z6WrOHUPFKPOtxQSa92pR2Vsv1AU0av5Y9kPMLzXNNxejQp Z0z/B1q+zKTE90+Nzws2rSRzDP/0k1r8XpCdxQLhMZX6dTcapOutOKjnQdR8ooIO18Jb mdIoEEjAVHIhUXJHE0lKFdnbHvFdxfuOktx/qq5tudttc/xxzyyoyEIxwOPhQce8uEN2 f/ug== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=28yrzgUNTWQdOE959RCSbqzOXKbhadE7mquVZQ6Cap4=; b=mNY7iN37NLFh5vaujnt+worRZoyCbtWUVeo60XukQK6Xo0bB6kI5tmcV4tWO+dYmkC VxRdck465ZNjOBJ8Z0vgMMmtVnRk5pJpC3kx6VIvri2ECOAbzhyGkhZtSQPt2tM4ZV1r 8QJKjw6lfdhsMBX502TPZQ1aiw6VcQL590l2M9lIfCocIlGhCR/Ng2arF1OIyrrb8z/k Xf1hKJKV+dB3BpJHeNPOQoXjVsgXnwwVI1aKrdpsx35bO16jT6HZob/RYxMwCj4r/i+O aE8GCEr4aKfD7iDrHupZIHXfspJ2o00FgY0dzGqx1ryIxEP1TpQYw9nyJCpByhLSjrwR HzWQ== 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 jb15-20020a170903258f00b001789b7246casi3381515plb.87.2022.10.14.10.25.53; Fri, 14 Oct 2022 10:26:10 -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; 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 S229849AbiJNQgV (ORCPT + 99 others); Fri, 14 Oct 2022 12:36:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiJNQgS (ORCPT ); Fri, 14 Oct 2022 12:36:18 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C0A109D7B for ; Fri, 14 Oct 2022 09:36:12 -0700 (PDT) Received: from [192.168.1.101] (95.49.31.41.neoplus.adsl.tpnet.pl [95.49.31.41]) (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-r1.th.seeweb.it (Postfix) with ESMTPSA id 2A5F81FFD1; Fri, 14 Oct 2022 18:36:09 +0200 (CEST) Message-ID: <8a78ab73-443f-a18d-b8ef-4a2d507aa1fb@somainline.org> Date: Fri, 14 Oct 2022 18:36:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v3 2/2] gpu/drm/panel: Add Sony TD4353 JDI panel driver Content-Language: en-US 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> From: Konrad Dybcio In-Reply-To: <20220930180812.32210-2-konrad.dybcio@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 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 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 > 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