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 3EFE9C636CC for ; Thu, 16 Feb 2023 11:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbjBPL7g (ORCPT ); Thu, 16 Feb 2023 06:59:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjBPL7d (ORCPT ); Thu, 16 Feb 2023 06:59:33 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5F1D552AA for ; Thu, 16 Feb 2023 03:59:29 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id m10so1688142ljp.3 for ; Thu, 16 Feb 2023 03:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Vvqw0ynKNBJ1B/7gMRz42PQuqt35d7PQJK1Fa8dyiE0=; b=Y7faBx9X8SvNGXjJmwdi2RvfhOCAmQro7zKvwGhYTWgq30P6jbUhqG2JVNe9ooJL/2 zkn+kaxXLJgrWALH3zYUZYmA/6ngL2cF5W+dZy1SbrF6fkXfc6NM/+f4/L4a1kQyjvlL xR0cIrKunnRcYYVnxjeGdrB0IA/XJ7Y0P3nIJjm/L9o/ctx6bVA3nBVPcMkWlWY2B4Nj afaT8zWpOVvcr+hqFBni5T/FQAQuuq6LC5OJiH9YhM/BSBLXognvva/fzgXfe0dAXRL1 UL4vvehFJgG5ESPOmmjgJP9wgI7IQFbLjAQSEMiRyl65haKhFjCJSSaCt3AWcGNxsLWq NUag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Vvqw0ynKNBJ1B/7gMRz42PQuqt35d7PQJK1Fa8dyiE0=; b=IoDSu7suFAOK9+wva0xj5MiNaZBb9Lufi/pb5OnMmFVp53EPwGGX/xuNobtc+6lIW7 MDPy8NXWnLzpLmUM7yQ976OQ2f+wMLRGgz70fNMXHMPfnfTytAa5H2a+PnZIEbPanGcf lwXlpZYcnMlQWRsbX24GTQtKDzNgb+duxF9A1XBCpNk6ARY2mPszARr85nn0xNlyrDNt clqwKdVmct8v90P2SupWkrLtNpJrHKksJzIi9jmzOgTb/EHHTbHSSmxClmfXbCu6PovG hR74NlHnTp5C7cX3kJl03i5uiTgN7SF1x8atuhExW2H5aBg1URXwG81OhrVokZmq8UdR dkig== X-Gm-Message-State: AO0yUKVqfBRQ4t461gbYZlVjTko9M2PCRAoHoz9QeE0DCfYaOKJm/sn9 J5vTI/8oGsEeuK89zGRNH8d6pQ== X-Google-Smtp-Source: AK7set8ZJtcfdnEHGeC2Hga+PjJ0uPjPEewxARdJqHh/dzsd+8L0a93zcAKc8nfMphv20Cyp2LdE8Q== X-Received: by 2002:a05:651c:b28:b0:293:5360:162b with SMTP id b40-20020a05651c0b2800b002935360162bmr776549ljr.11.1676548767970; Thu, 16 Feb 2023 03:59:27 -0800 (PST) Received: from [192.168.1.101] (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id y20-20020a2e9d54000000b002934ebf2f6asm167560ljj.73.2023.02.16.03.59.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 03:59:27 -0800 (PST) Message-ID: <725a5727-fdde-e3ae-a448-2679c5c4c7f4@linaro.org> Date: Thu, 16 Feb 2023 12:59:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH v4 2/2] gpu/drm/panel: Add Sony TD4353 JDI panel driver Content-Language: en-US To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , 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> From: Konrad Dybcio In-Reply-To: <20230119163201.580858-2-konrad.dybcio@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.. 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