Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4916115rwd; Tue, 30 May 2023 11:46:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6QpqhTGWkj8RulMFLYkdGH5H/GKmQTbfB9nC/pzWSYTHDUONTl8nJWF0AhvTKwozJQ5yA3 X-Received: by 2002:a17:902:c411:b0:1a6:7b71:e64b with SMTP id k17-20020a170902c41100b001a67b71e64bmr13530384plk.15.1685472383496; Tue, 30 May 2023 11:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685472383; cv=none; d=google.com; s=arc-20160816; b=fKv5J9qs5cjn6nY9HyYiIOLYooizMkVX0g1HaGGPk0GeMaowBlSfe630UZmQsnJPzB 7PxbMNu6o03uvxHivCZ2eUddYH9YiVMtIDt2yrHSKfWaZHrGm+pTkwnpBCBBWbRUpygJ l+bQVFKnpSyu04Z8jo5MPCFIk3Z9tcZ7AWpmGUZFepoxRaoNC8592+9MFgQdd9SAHmjn NBtCjr8UPkAEQswnDJoEc3aE+Ct48OojqfaTjmBZWxSMfkCljx/LS0Zhv0UM4wXcuCvz 7V5tguoY4BYWjknc1gOz24oxLEzPpirJ7iV01avjUNTJomUJxg6tRW9liY8ZO7Oq6CU6 19JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PAiFkIXk+h/mgNS8t+mORoTf8zjL5R53UtYcZhnKCe4=; b=CLEdIdohRBDO7RQuzRMoft2riaxw/jRHcjhJYNUhxvgghWqrLysiPzepbFztdxGR1H QNg8gOyQ8G0c2QoBXNcbSrntjaU62Dgiy6ziaPS6wjhs4p4M3YeKOyksA0VImDBU7bba Ixtb292Tk8FILX/gKUEVxdnhYlHR5fwc9Koq7ZdszIyaTWWgKeX59vnGHHP2F8cyU2Bw 8LcYMMFnhKmhV4jDarIcwbrY/n82moTBRzpUp9W44ZMkxFwSXPub+miz3IyUFkT8ly2E d3r8V8nQKYZhx9AzW08wld8xa0JdPtA4LgbYa+y1mBTdE2hcHEiPqZrgNK/RCH9dHtz0 +dQw== 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 k15-20020a170902c40f00b001ac4f733007si400055plk.549.2023.05.30.11.46.01; Tue, 30 May 2023 11:46:23 -0700 (PDT) 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 S229680AbjE3SOJ (ORCPT + 99 others); Tue, 30 May 2023 14:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230178AbjE3SOG (ORCPT ); Tue, 30 May 2023 14:14:06 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8516DD9 for ; Tue, 30 May 2023 11:14:04 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 0D3583EA58; Tue, 30 May 2023 20:14:00 +0200 (CEST) Date: Tue, 30 May 2023 20:13:58 +0200 From: Marijn Suijten To: Abhinav Kumar Cc: Dmitry Baryshkov , 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, Kuogee Hsieh , Jessica Zhang Subject: Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 Message-ID: <2zwamlkhtcuu3c7lithcipb3h46gjg7zsefnhdinmsjwkjxrcc@jbj7ak2mdgeu> 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> <00d30c09-d622-11c1-2e07-44a798659982@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <00d30c09-d622-11c1-2e07-44a798659982@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2023-05-30 10:54:17, Abhinav Kumar wrote: > > 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