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 BED40C636D6 for ; Thu, 16 Feb 2023 12:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbjBPMrr (ORCPT ); Thu, 16 Feb 2023 07:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjBPMrp (ORCPT ); Thu, 16 Feb 2023 07:47:45 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E5322D67 for ; Thu, 16 Feb 2023 04:47:43 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id h16so1698620wrz.12 for ; Thu, 16 Feb 2023 04:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=34SlAft5nBndBMH1wv3gGHbYW+V7JqrfRxB/+uo0K40=; b=k4irtiDtjNlhdW018JWXx1dij/s+1g+7Q5Fy3LgR6lsuGoUztYq7KKgBaOjHDWGhQ9 k6NqLkna/4kGkC8Me1uVnP55JK04rDiNUbouBTrGy9aokO+1gkA7If4HcerreWaRTGvr iypXTgQ8ryCdwtPdH8yKAs7jyY/OI/Q+4Sy/8vehlb5yO/uuNiDlvT9RUyXpvpZgI6zb utZiTdkJAYWOJnbb6h0WfkdaDVVZ9euaWZouwJ2DnS+rYPqvYEThEYb1QIH0WPmF5w04 gzYQNcw+dXDIiJLTOr9JkKFbNSW+xmzJMLV/Sytl35arUaIqs2VcdeSZHVU+TL2CeT/j TuRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=34SlAft5nBndBMH1wv3gGHbYW+V7JqrfRxB/+uo0K40=; b=xWHWFoKtvrQ2ZIh6JfOKUDYSzUT03hXwBgY42SEx/8HZBsa0+PWiivDuwYGHFDnn4T QSEcJr2KkEDU36NtioF4XLBpq+JbE1XKmo+bvHcrYb01pv7E8N/qJ0j2hijZTKgm16jw 2N8r+KKRic75GnE7IkG4yePLomhS7GRdGcg6r96y1PK+JzORb1YsVqSJqihWbiUGZcHY h19/EC4zZvRGQI7kiC1NbE0GbYFzlKeBl+ZA4PvbMSDtfl7RJdMb6CZiBMi1BOL5JaNz uAjL37SGINe94ceVUTKj8DN2tUY0jzKcExnFJ2pH7K3XFnpZ1iUYdzxGJ+h295XucjLC CPLg== X-Gm-Message-State: AO0yUKUSCAQ6RA+kfG1rXQhkGCLWM8x0QuxhsIXdShcbq/No5mZX/LgO RZbqNFdrAI0OvCCH9U+XiYeKRA== X-Google-Smtp-Source: AK7set+bh7dKL02EZyRAHjRQuEJ05iWGQL3/viE5Tq/1O6pt1in9B0DJv309/UkQU3MpZGzRATBBxw== X-Received: by 2002:a5d:638d:0:b0:2c5:9fc4:8844 with SMTP id p13-20020a5d638d000000b002c59fc48844mr209036wru.9.1676551661709; Thu, 16 Feb 2023 04:47:41 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:13e4:d5bc:1ce7:c1b6? ([2a01:e0a:982:cbb0:13e4:d5bc:1ce7:c1b6]) by smtp.gmail.com with ESMTPSA id d3-20020adff2c3000000b002c56046a3b5sm1495987wrp.53.2023.02.16.04.47.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 04:47:41 -0800 (PST) Message-ID: <8ab061aa-a2fa-3070-a756-5682eb40a425@linaro.org> Date: Thu, 16 Feb 2023 13:47:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v4 2/2] gpu/drm/panel: Add Sony TD4353 JDI panel driver To: Daniel Vetter , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org, marijn.suijten@somainline.org, Konrad Dybcio , Thierry Reding , Sam Ravnborg , David Airlie , Rob Herring , Krzysztof Kozlowski , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230119163201.580858-1-konrad.dybcio@linaro.org> <20230119163201.580858-2-konrad.dybcio@linaro.org> <725a5727-fdde-e3ae-a448-2679c5c4c7f4@linaro.org> Content-Language: en-US From: Neil Armstrong Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/02/2023 13:32, Daniel Vetter wrote: > On Thu, 16 Feb 2023 at 12:59, Konrad Dybcio wrote: >> >> >> >> On 19.01.2023 17:32, Konrad Dybcio wrote: >>> From: Konrad Dybcio >>> >>> 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 >>> Signed-off-by: Konrad Dybcio >>> Reviewed-by: Marijn Suijten >>> --- >> Are there any outstanding issues with this driver, or perhaps I did >> not CC some important list? It has gotten very little activity ever >> since its initial submission around Sept'22.. > > Sam is usually picking up panel drivers these days, but maybe we need > a bit more help in this area? If anyone from linaro has a handful of > drm patches landed in upstream they could apply for drm-misc commit > rights and help push these. I think linaro has lost a few of the > drm-misc committers so things tend to be stuck a bit more :-/ I usually wait for Sam to comment before applying my panel patches drivers to drm-misc-next, but yeah panels would need some more help... If needed I can add myself to the panel drivers maintainance aswell. Neil > -Daniel > >> >> Konrad >>> v3 -> v4: >>> - De-magicize some numbers >>> - Pick up rb >>> 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 d03a64155d15..8da741f1c2ba 100644 >>> --- a/drivers/gpu/drm/panel/Kconfig >>> +++ b/drivers/gpu/drm/panel/Kconfig >>> @@ -677,6 +677,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 1630dd0c69ae..22155d62bec0 100644 >>> --- a/drivers/gpu/drm/panel/Makefile >>> +++ b/drivers/gpu/drm/panel/Makefile >>> @@ -68,6 +68,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_SONY_SYNAPTICS_JDI) += panel-sony-synaptics-jdi.o >>> obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.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..8d8813dbaa45 >>> --- /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