Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2316426rwd; Sun, 21 May 2023 18:27:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tjeNMNtQzX7z4K1jWGANGKqAw3aAnQWoqBQy97JfzrTo+NhSO1dkBNmc4p+jlSQtAwI2i X-Received: by 2002:a05:6a20:8e08:b0:100:ab42:5457 with SMTP id y8-20020a056a208e0800b00100ab425457mr11447068pzj.22.1684718860108; Sun, 21 May 2023 18:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684718860; cv=none; d=google.com; s=arc-20160816; b=RMfIHePzRZWaP9VLESvA8mN/bA/A/p4KXpj2hj4Ooy38MbFq55v26wI9fKf+cj9MUJ xWlHynzgs8WrBrZnp/jVAzU+SgdVNp/WcQ44G88NsYABRk3KMImRXFpVxN1vupjT4HOH Hf0RDE3Fkl90pjs54Ckj+dvyHLLcKVx/rfdFz4RnK55OsMSZtKVeZUWfDahSd4ldtwRx 6nlcarxwyND3UbCzJiFMAUKBURhke9A2X0RRST1FOJO+pwCa4Nnm+MnqSfqNk76rana8 SAkLisaQ138fhSMIft/zVLnujZjXnghiM0K7ONYwp0L/DQFfVJusjxR/hWC0wDMDXpDC msTg== 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=EC0A0nIZ7bBuaMQGMrJ90me0dKvx0C1Iy/LxkfWb3Y8=; b=0CrJx4pC2QnCPwyWoUicstTW4cmrFspJa8ztSG6RAdbppsZeXpkp8VnNmLDizrGCeJ N0nQDm+U8mtgZ2dmDNuvfS2BBlKY04ZZBjakYGIDEvuRYjYpu5LAdBElCHe/+Ca6d8Tz HsP5rshpogkw8dTQY+1o5BO6TP7ufIJ8tIuc7MFYmRHnJQ7KdVaNOP8UJ/kP8MhW6JxJ XEntbICZWYgPxjY8nQWvZvD6qWzJ9tDNPJELfFC2oqAqzzyMfmlwX1vrXzL/YrDnLnGh HXYT8HlIs5zZgQSJ80n4aqxzWAfLXZHIe9ZN+/2UfNypEOgk13g5zQxFraxQw21w131m fj8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WbttrPY7; 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 g20-20020a17090ace9400b002528393e899si5851019pju.164.2023.05.21.18.27.27; Sun, 21 May 2023 18:27:40 -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=WbttrPY7; 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 S229729AbjEVBQc (ORCPT + 99 others); Sun, 21 May 2023 21:16:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjEVBQa (ORCPT ); Sun, 21 May 2023 21:16:30 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F67CF for ; Sun, 21 May 2023 18:16:23 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f3a99b9177so4118932e87.1 for ; Sun, 21 May 2023 18:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684718182; x=1687310182; 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=EC0A0nIZ7bBuaMQGMrJ90me0dKvx0C1Iy/LxkfWb3Y8=; b=WbttrPY7kY3P3JMYOgr6WLfGkeUmRF0kyQoG1PXJenuWb+i1kxyany7euay41Eu3AA ChJkyv64sAaslZ/KgGSCJU4DSz+ENijSP4H7jrp9ufPMD79ryvAUpZ9/s9OfljCcOsNo YTx6u4o+UlLwbUyB2fhYr/kvvHmAXi+BXFDoGJjb3JcoDT5WfMhQ2llJOlAmItujCV+z btpB35SZ9cRHdp2vfiAsLwDhopbTLy6F0PkGENSDZeylpdoGzgPL8U4Pji9kHw3HKAhq Lg7WPoRFLyouso796E5gjzue68+LZe2zBPIq4ODX4C5mryQu0x62QsGcNPvyJqG97aq2 cbBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684718182; x=1687310182; 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=EC0A0nIZ7bBuaMQGMrJ90me0dKvx0C1Iy/LxkfWb3Y8=; b=TIPY5hK3Ej6I0A0cge73PqHJ4b1L/TV6eZHl1B60lTBc6lWNAerczbGt7J8YCwtZoE EUKT1Qu0TKHTFd6abajHpZ+UGR3LTszSZU/U9fe29da8N+Egg+9B5iXOF1p+YDZoAsCV rc7YTwgFIeTkDDer1+WClHybL8shdQENmy7AzfZCnU7Oj3raX0uN3TwRv+ArikwXUn/i rO6mZcpTcakQec80v3th18UHXZoPD11pqIFjGKO5DGIZwuiku5qDYcCWnOMgm01hphAS zXPmsDYl1O69ZmLSun8OtvbP7jkov5Pm5xNgNSsSN+L/7T764xZNKtPJ7KYocsFklaZz NV6w== X-Gm-Message-State: AC+VfDyfBKOeltg3hlmKtI5dra2NNdCUhw1nUhYJCoeC/OV2+RNoGx3k qUxd9zDfthM20TGNEajyXurTaZw/gPdNbL+Hqdo= X-Received: by 2002:ac2:54ba:0:b0:4f3:b61a:a941 with SMTP id w26-20020ac254ba000000b004f3b61aa941mr1836046lfk.51.1684718181793; Sun, 21 May 2023 18:16:21 -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 x16-20020ac24890000000b004a6f66eed7fsm778895lfc.165.2023.05.21.18.16.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 May 2023 18:16:21 -0700 (PDT) Message-ID: Date: Mon, 22 May 2023 04:16:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 Content-Language: en-GB To: Marijn Suijten , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Caleb Connolly , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: ~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> From: Dmitry Baryshkov In-Reply-To: <20230521-drm-panels-sony-v1-3-541c341d6bee@somainline.org> 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 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