Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2670911rwd; Mon, 22 May 2023 02:24:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LYKOivDM5I+ZxgHW4JY4RrIa7QZNPaftce1iUdf2LBZ/Atr16quiC+2CSxpWgU6NwJ+fY X-Received: by 2002:a05:6a20:7d84:b0:102:bee9:ab07 with SMTP id v4-20020a056a207d8400b00102bee9ab07mr11094019pzj.53.1684747497004; Mon, 22 May 2023 02:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684747496; cv=none; d=google.com; s=arc-20160816; b=iJgd2ZQTYVzCghlJvHfCp0RH8tI1X4m7ws1SVvtlc+t2sIMeOenxrtnN5haVPvkZjt rm2TaKstHBKAVH4uS92F6MkheZrnN6Ni1+FMbhBu38kv3EdhOYJ2EJ7F5hyUwLK1TkRB BNsc5GKCkdBG4aqUA6waabh3KNnbI4XOmcixIfHkicEFPDCM8niRup2raNHfFKwOBcca FpQ3QBPYLeCHYmi98b1EckaylDULejmP4Aihx4K4CaXizEv9Sm2S3Dqa+7ud4ghpRcJN Re1DYtMsqwGiN8hW5lv0qD2HGhJp0FHjqyKps2OoNUt6ZdNt0Fb6W+yoPNoRFKr+bzWt tFlA== 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 :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=xxLx8Di7TYWDntAJ8ZAhEjtBb6YCBVuHGoi4WVhKnow=; b=eXeFCrnnEmvf4UD4xwWatxTaBRoi2F5UvjxC26osD0BonBw4gh55FsRHHjaw2S0g71 tY2beeW7VDyrQyFVpIrV2DQLFEsACe7yIWRDC7vpLoAEYhA36Maq659gqDlrmtta5YGE IGxDDzMYg27vfvnHDJtdAGjt1GnAGEmfZdHBxOy6lSNp+zhA1ZsVZuu6XqZ5JV7ZB49j BiLWuXqxjSczTYa2xGxnRWvDAbESEINBlOsk36zBwzDomObaDwwdhllrcHn/9grFR1oD Fd8h/HZJYnT4Y5rFx5OPUKz5STuVB22Fy1bpGxsIibiY8hchfMk0ZeK5wQHVjyIm4U58 efiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U95thb5P; 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 h16-20020a633850000000b0053477e09967si1712304pgn.833.2023.05.22.02.24.40; Mon, 22 May 2023 02:24:56 -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=U95thb5P; 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 S232374AbjEVJFK (ORCPT + 99 others); Mon, 22 May 2023 05:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbjEVJEv (ORCPT ); Mon, 22 May 2023 05:04:51 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 347AFC2 for ; Mon, 22 May 2023 02:04:47 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3090d3e9c92so5682592f8f.2 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=T7dvu3iKKmwYkK1caAu4xpAyd3TITZKEcA+e+RUBIFI9XvthsJ+1xIaP3gYeK8Sfjf Wt1urzJDdXdW+zdMsaqgpEkCGlinJGGU7JCNOj+t2aKri5hZ9O6WQt+aHtB+9opkzRSC Q0CyEFehCCM0bUumWNAcsdQNw9jIZ40NS7oJ7EIbfIgVB1kSL7cosR2xz3hg1Bgok3f1 k8UKqZvR+2ETlF/BQzVKb8y/d0HByN4F8gTqC2Z31T+ckrrANusPG3QjJh0TmBzOAsxG s55JzEr3n5hI1mWayeZMiob/fhrHY8t6aZ+/5T4/dbG2C/cy1EFVMLJ2LMZxGlWYkjLE 96XA== X-Gm-Message-State: AC+VfDwuTRV4Yggga/6/bRnE+57N9ltQBGfELKJvGdOBLKtWZ9jI28Dk IaniVH7VCZ7CJE0kwLTJG6KzpqKDv+5rom2gI+Ev3Q== 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 Reply-To: neil.armstrong@linaro.org 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 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> Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 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