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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA9E5C77B73 for ; Mon, 22 May 2023 09:04:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E1BCA10E284; Mon, 22 May 2023 09:04:48 +0000 (UTC) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3A6F310E282 for ; Mon, 22 May 2023 09:04:47 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-30a95ec7744so240650f8f.3 for ; Mon, 22 May 2023 02:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684746285; x=1687338285; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=xxLx8Di7TYWDntAJ8ZAhEjtBb6YCBVuHGoi4WVhKnow=; b=U95thb5PnXWPH0G/g2XzbCV0oPJdN1DoSt0LZuvZb9Oncr8iLulKp63avQrHsdEbsk oKqD/G9d0pVJicyjQNd+8ov+6Kw7QqAGAZnple7b5sDuDr9fPcaVxlm79EpHfYpXaHUG eHQbzvs35KEkuQiP6Xp5DfC9u+2xDQbTt8Qo6Lqut/5ni0DoOnFM3MK2eLyBPKAT8Yp2 eCXuRWPJLopEGU0GbG5SKWXD/+8iJB8L47zdauWw5fXvD5SfGar9aAPneF6y4p75fx9R 88aVOjP+56b0iPieHa9wiZ86H1t3R5gZcq1l9YuUk/dLpjU/tzHjo+OEXhYYRGJIbYeW iTzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684746285; x=1687338285; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xxLx8Di7TYWDntAJ8ZAhEjtBb6YCBVuHGoi4WVhKnow=; b=Ou0sN4rwwdMcEx8gC8zu++6az1POJqKUBz8Bj2jcYgBAOstcqhtnzZ0hS1aOUnhp6o VpiZXwqnp1j8vmj6MXYjT+QuR/Zb0xZ6JKnKrRXzhvz0a+MHsfoB8L8eQxGKWMCNv6sZ KKwbMxHc9IH7QSzAm/znbnHn0VKIkTAPUEejZO01g03xV0TAZPPsJ2ElHom4uk2tJbuJ 5iU14QXqRbZcj4dqjL5z5vYh3KmD6lvxySb9sMQXZhyCcfIDAK6tvXVHzE2LRXlMttRw 0rPUa7ZzYMrIMMiyFVhL5T75B+6CzzyIyfz1bBP0m5CXR6TCN7i78HuEnXe60DhU/m6s nkmg== X-Gm-Message-State: AC+VfDxD8DWOTM5o5sBjjg/IVjdmh/ZLMOV4eaDUWAwDIzxZ8Z6s40pW UyDT8X1a6dwLUwBVjDziV6NoCw== X-Google-Smtp-Source: ACHHUZ5vFMXBf4H9SiYyMqewgz1w0u1Mn0jJi0vN3GcrSZDrs9KaHP7FDiUnuYcHAMzLB7S6e2iaDA== X-Received: by 2002:a5d:5044:0:b0:306:484e:e568 with SMTP id h4-20020a5d5044000000b00306484ee568mr7227862wrt.40.1684746285441; Mon, 22 May 2023 02:04:45 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id s24-20020a1cf218000000b003f4f1b884cdsm10838669wmc.36.2023.05.22.02.04.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 02:04:45 -0700 (PDT) Message-ID: <71675a02-0801-62dc-2673-4a0907636b21@linaro.org> Date: Mon, 22 May 2023 11:04:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 From: Neil Armstrong Subject: Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 Content-Language: en-US To: Dmitry Baryshkov , Marijn Suijten , Sam Ravnborg , David Airlie , Daniel Vetter , Caleb Connolly , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> <20230521-drm-panels-sony-v1-3-541c341d6bee@somainline.org> Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: neil.armstrong@linaro.org Cc: devicetree@vger.kernel.org, Jami Kettunen , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Abhinav Kumar , Konrad Dybcio , Martin Botka , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Jessica Zhang , Kuogee Hsieh Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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