Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3707561rwd; Mon, 29 May 2023 15:37:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4QxkJQ916R8/lERs7/Z31qs5szuu/CDRic6rA0VFNQDE9gsOzOe/1ZsLxsVq5ukbGOU95G X-Received: by 2002:a17:902:e789:b0:1af:bcf7:2bd8 with SMTP id cp9-20020a170902e78900b001afbcf72bd8mr318500plb.52.1685399824299; Mon, 29 May 2023 15:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685399824; cv=none; d=google.com; s=arc-20160816; b=AXlqM/svOgR0YPIzI/yym0vIr/etHJ8IScgfEqDX2gH8LU26jyr/+fnZsI7JsIOXEP +kib89/5p4uMnJtqCmF/GS47Vr4Os54CUdHNtEIzlLX1uD41JiaQzzvA27Y6OVjt65Fs lAlJkZ953fdEwSOpXuBCigYj4+YsSNuERDP5ste8GejhGqjXFOYpJwBJ5CouoGONKp8X gYD5MqFv9yZoNNMVvemnbMY4AV27jN/l02wJEzoDfoO/yNTux8AJBFWQhZDqaMnrX6h+ FvXdMJMV4bk8TOfP3AfxwANXNUXel5TzmjgMuwWB+jq6CDLYwNTXrekADRjJr1mP7slY Jw/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EZVm7UiouESyKo6k2LBzlK9njKm8DA0ECdqTFD1OkjA=; b=ij0vOOZbL8BzO6zQVgPBDXKfC3Pg8f4b9zRbkQmXnYYx3h4X675bZYaowXlFeT8zY8 eA5Qwtb+26LDi2PPrbtSS8h/MBpKmm05mZL+++nl4bPGYCHeG9KYNfpWJbz4julGSTmx ASaaq9a1KNlYZat6JNZTauekfPhz2rn6exj2OZSH6AraiBoGfoJgCAxkfCIKVyNi1YN+ X6IjT/DcTIQVFr/1lmuBODPAbKN7j8OLfjeG5L4RhtarDkM4OQOlCVMPioAIAGumgRZz fHpiT9opLtvBORhBFUZw34d6/6jV/iLdJjbNWabOOhG6zh8dsrUo3VF0NCAGdXosrRdw bX9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fd3ljygo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a170902a70100b001b0286f2326si4852255plq.453.2023.05.29.15.36.46; Mon, 29 May 2023 15:37:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Fd3ljygo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbjE2WTN (ORCPT + 99 others); Mon, 29 May 2023 18:19:13 -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-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 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 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