Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5630219rwb; Mon, 14 Nov 2022 07:22:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DqhxYnSDq3aleOcQ13uxhRM/QyrEQNd4or9JsBE9JDPWW5FNWKM9WfEj4bkDNmYgtoVZo X-Received: by 2002:a17:90a:ee94:b0:213:2912:7a28 with SMTP id i20-20020a17090aee9400b0021329127a28mr14485783pjz.51.1668439361339; Mon, 14 Nov 2022 07:22:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668439361; cv=none; d=google.com; s=arc-20160816; b=oXx3XXXEkjBEwxmxXwWIY6BgxlW+BGP8I40YwqDvdOqRPOapXCU4VM1sahAXsbBMAl pT0bcVBL4GmZ7PW4sNHSyDTYshtB7Ijue5NCq+n4zfgdbh/PattQyWo7K2N40ZP1AxEc T5mqeyEvpgx3qWXn6Uu7AOKWvpaBrD4B1yofkZfEnSIG+WJgkkLAoMDn94jzlZrpAY+f BLKZEsH1jeWQe0ngkVNn4uaV07Yxao62B1i7yTK6qF4LT8GZKpJVpEIDpSHw3fworS1r kiUq4U0nWKvnQ17uiednTtxHzHe0yTHhCM8VOcARrj/Hru7wovCmeVy0Ykjsh9kkXmUK X/2w== 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:references :cc:to:from:subject:user-agent:mime-version:date:message-id; bh=TVC+FvdifhpdaMBAVRa37cYdskr/v7DuKDnZ8zsr0bw=; b=fpLe09PQVkXynxfxCxmsQEdgxuj5+rSPPxPGF8/BB2PNMPvVkY+IPJ9aeW20OIpB7P dI+puOHw+DzRk15+lqoX4TI9P425PapRFZyLkiXWDe9P6baHKsp2EjMJ9qyLwJK+aO9B 3RXptnc4hnADPCF5wJdwRclvUHHD6id3CE1Axf061Bwe1gDTNPDnQcH/gj2IwUaj52Oo RoNaCP31/cdJVIBlPE0rGFHf1tcmsLb79kyiYQwe4SfItjrMOQvFVYz1PURdbDACzC6F BB99pFYOcwZ6PvzvcqlXT5Fu5YFOL7EMPruHsHbNIh1oGWFRp1H1WRFbyCBOSmlFdxfb E2rA== 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 j7-20020a632307000000b0046ff35fa651si9705536pgj.181.2022.11.14.07.22.29; Mon, 14 Nov 2022 07:22:41 -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 S237099AbiKNO4H (ORCPT + 87 others); Mon, 14 Nov 2022 09:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237087AbiKNO4A (ORCPT ); Mon, 14 Nov 2022 09:56:00 -0500 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF7B27B0F for ; Mon, 14 Nov 2022 06:55:58 -0800 (PST) Received: from [192.168.31.208] (unknown [194.29.137.22]) (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 790111F88F; Mon, 14 Nov 2022 15:55:53 +0100 (CET) Message-ID: <5dea6c72-1323-f052-a386-887c20e9f8c3@somainline.org> Date: Mon, 14 Nov 2022 15:55:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 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> In-Reply-To: <8a78ab73-443f-a18d-b8ef-4a2d507aa1fb@somainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,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/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 >> 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