From mboxrd@z Thu Jan 1 00:00:00 1970 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 63C16C7EE2E for ; Mon, 29 May 2023 22:19:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229765AbjE2WTO (ORCPT ); Mon, 29 May 2023 18:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbjE2WTL (ORCPT ); Mon, 29 May 2023 18:19:11 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28173120 for ; Mon, 29 May 2023 15:18:43 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f5021faa16so1532722e87.2 for ; Mon, 29 May 2023 15:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685398721; x=1687990721; 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=EZVm7UiouESyKo6k2LBzlK9njKm8DA0ECdqTFD1OkjA=; b=Fd3ljygoclvCV+t+t68E7faPRuA7OY+1N0EbqrDmrRCnHTCOHcGHWFlR8X86bXZpsw oylPFV2bUlgPsegg7vGvHGw4htpTaMWEVcqgvatSzfNZfYmGDnqjFmS5Vws6Xj8YI6a5 MQk25AeL2uZSAdjSeBow9k9cqPa5daUoG8b/LoowqTxa7aSQp62GmP1Y1Z0aEp5m2j9O Y3wOUeTldt9uO1Uoo6mxFLu7pTiPXT/XmUayYngFW5eve8Qxs4hAkzDd9JHy+UB8wKo6 BAKx7bmexea+55rI2fAAQtJ5MtBret9f8Y74Kl9JRro/gB7tXAfJbR0z03MWzDNenF9N 182g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685398721; x=1687990721; 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=EZVm7UiouESyKo6k2LBzlK9njKm8DA0ECdqTFD1OkjA=; b=BpoWLe2Mrc85ikPDYp9f0vOaL2HIlXd5COgNcbT/PAzKDP/V5E+sS9P6L3IUnMWA4Y cYlW0g2Ctmi/ljreuKnoSMJekSfbrplakT9VzGLDatXjdzWBAt15wl6nNlcZm5xD9208 Pzb8GURZIxiGaTP/u5F1wT5cK2iKc8ODApqCYggeFt9UHNq1F2W3pmD5zr1pnBKHOXt3 Cz07zx71l6t9B5LWyn5dVBjS+9MtlVlSE7Ga0Bj0w8JunjkjBsa5MH6NsdevxdRgdAB8 GCbA44kWC4CdaI6QLeVduR31oetvv8SDgtuRImdBo/dhZkCisqbtj3kTbCknA6KCABFj dalA== X-Gm-Message-State: AC+VfDy2fBHPoBqerpKeGYt7E68dNkC0vbhwFGhpP/Wo4IfcRbBGS3GY rVjSpYVh/SV+ELZRNJ2YbehlhA== X-Google-Smtp-Source: ACHHUZ4e4DeF7peEMmQbB+Q/seVcfomkLOXTZL9x2Y7AVdJlug2gaPKj0fov20Ge3ModNV3lWC7SPA== X-Received: by 2002:ac2:4859:0:b0:4ec:7b87:931a with SMTP id 25-20020ac24859000000b004ec7b87931amr32739lfy.13.1685398721236; Mon, 29 May 2023 15:18:41 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id g22-20020ac25396000000b004edb8fac1cesm127455lfh.215.2023.05.29.15.18.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 May 2023 15:18:40 -0700 (PDT) Message-ID: Date: Tue, 30 May 2023 01:18:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 Content-Language: en-GB To: Marijn Suijten Cc: neil.armstrong@linaro.org, Sam Ravnborg , David Airlie , Daniel Vetter , Caleb Connolly , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abhinav Kumar , Kuogee Hsieh , Jessica Zhang References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> <20230521-drm-panels-sony-v1-3-541c341d6bee@somainline.org> <71675a02-0801-62dc-2673-4a0907636b21@linaro.org> From: Dmitry Baryshkov 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 30/05/2023 00:07, Marijn Suijten wrote: > On 2023-05-22 15:58:56, Dmitry Baryshkov wrote: >> On Mon, 22 May 2023 at 12:04, Neil Armstrong wrote: >>> >>> On 22/05/2023 03:16, Dmitry Baryshkov wrote: >>>> On 22/05/2023 00:23, Marijn Suijten wrote: >>>>> Sony provides an unlabeled LGD + Atmel maXTouch assembly in its Xperia >>>>> XZ3 (tama akatsuki) phone, with custom DCS commands to match. >>>>> >>>>> This panel features Display Stream Compression 1.1. >>>>> >>>>> Signed-off-by: Marijn Suijten >>>>> --- >>>>> drivers/gpu/drm/panel/Kconfig | 11 + >>>>> drivers/gpu/drm/panel/Makefile | 1 + >>>>> drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c | 362 ++++++++++++++++++++++++ >>>>> 3 files changed, 374 insertions(+) >>>>> >>>>> diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig >>>>> index 67ef898d133f2..18bd116e78a71 100644 >>>>> --- a/drivers/gpu/drm/panel/Kconfig >>>>> +++ b/drivers/gpu/drm/panel/Kconfig >>>>> @@ -706,6 +706,17 @@ 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_AKATSUKI_LGD >>>>> + tristate "Sony Xperia XZ3 LGD 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 Xperia XZ3 >>>>> + 1440x2880@60 6.0" OLED DSI cmd mode panel produced by LG Display. >>>>> + >>>>> + This panel uses Display Stream Compression 1.1. >>>>> + >>>>> config DRM_PANEL_SONY_TD4353_JDI >>>>> tristate "Sony TD4353 JDI panel" >>>>> depends on GPIOLIB && OF >>>>> diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile >>>>> index ff169781e82d7..85133f73558f3 100644 >>>>> --- a/drivers/gpu/drm/panel/Makefile >>>>> +++ b/drivers/gpu/drm/panel/Makefile >>>>> @@ -71,6 +71,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_AKATSUKI_LGD) += panel-sony-akatsuki-lgd.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 >>>>> diff --git a/drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c b/drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c >>>>> new file mode 100644 >>>>> index 0000000000000..f55788f963dab >>>>> --- /dev/null >>>>> +++ b/drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c >>>>> @@ -0,0 +1,362 @@ >>>>> +// SPDX-License-Identifier: GPL-2.0-only >>>>> +/* >>>>> + * Copyright (c) 2023 Marijn Suijten >>>>> + * >>>>> + * Based on Sony Downstream's "Atmel LGD ID5" Akatsuki panel dtsi. >>>>> + */ >>>>> + >>>>> +#include >>>>> +#include >>>>> +#include >>>>> +#include >>>>> +#include >>>>> +#include >>>>> +#include >>>>> + >>>>> +#include