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 92A80C64EC4 for ; Thu, 16 Feb 2023 12:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbjBPMtk (ORCPT ); Thu, 16 Feb 2023 07:49:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjBPMth (ORCPT ); Thu, 16 Feb 2023 07:49:37 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CA9222C4 for ; Thu, 16 Feb 2023 04:49:35 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id j3so109882oig.10 for ; Thu, 16 Feb 2023 04:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oEXQr9jmLJaDNBB99H5aiu6DXm3OihHnM2u6gCXgHio=; b=WnwJexf4AxWyHBJrZtiYXAcBi1k4UiR/THeH/w21vtg5exthRn978IOud52qo1335s XJV+OSFwqSXb39AhbM8sDQTmBWXF9uFHyD0pI0gn59E6BeVDs3OB7sChwGvsFGSvCZe/ Doq6hMqLfKRlAqe4dJOdZzG/dweprQRb1gnKY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oEXQr9jmLJaDNBB99H5aiu6DXm3OihHnM2u6gCXgHio=; b=QNyMnua32AXIRhsnax2xaPK6DvVMxj13/o+Fm/KUVBNz10i/cjESxtAEiTtRlsAK0z Ot1HFAJYiQVZ2le1MgAWtat61peYPP3AQlV+LBuBKhTm+tIPicG0hH+mAE98xq87EZFn 99YBYi1OikdspRUmsBCI3Ogshfq4yVtoJLZS3hG/kreUVuHYyZMYQg0gv93N7CrtTQ3g GPhDG8h7plO7DdXlY1OvVV1Y93xH9ByFuI5EOO1yGPkVXXZ7+X2Qh9PKmbsDL6wZuQPj v2mkil5+TUM41wxkOYLTy45wo53cZgX2vGwkvEd8idI8Ad30GVdwFmaW+Q8S9lk/ZSga W6NA== X-Gm-Message-State: AO0yUKU2uWF78OqgUjA6fEde4kAI96cDaMKNtQ6i/HGAxqsNxjbb1zqx 8Jx6c/p0gZ+8qK9NSytAgz/5V58ZiaDIEjb2XowGBw== X-Google-Smtp-Source: AK7set99ZFF3lPlstbMVL5JS3UBUPNJQccGCXJ9eZifjXGelXt+1F4OOe3fzO8AyDn6aa31KKOUFLq5GC+EIdxxZ8hA= X-Received: by 2002:a05:6808:3203:b0:368:ca97:3a2a with SMTP id cb3-20020a056808320300b00368ca973a2amr201795oib.261.1676551774785; Thu, 16 Feb 2023 04:49:34 -0800 (PST) MIME-Version: 1.0 References: <20230119163201.580858-1-konrad.dybcio@linaro.org> <20230119163201.580858-2-konrad.dybcio@linaro.org> <725a5727-fdde-e3ae-a448-2679c5c4c7f4@linaro.org> <8ab061aa-a2fa-3070-a756-5682eb40a425@linaro.org> In-Reply-To: <8ab061aa-a2fa-3070-a756-5682eb40a425@linaro.org> From: Daniel Vetter Date: Thu, 16 Feb 2023 13:49:23 +0100 Message-ID: Subject: Re: [PATCH v4 2/2] gpu/drm/panel: Add Sony TD4353 JDI panel driver To: neil.armstrong@linaro.org Cc: Konrad Dybcio , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Feb 2023 at 13:47, Neil Armstrong wrote: > > 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. I think that would be great, maybe just send out the MAINTAINERS patch and ask Sam to ack? -Daniel > > 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