Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2931290rwd; Mon, 22 May 2023 06:29:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yWmspBvHDag6sy3gnscWRcJ7gIYYRNw+NcvJI8w2I25GouP7Tn5g8DzDGTkX1DTi5pgWU X-Received: by 2002:a17:90a:4ec4:b0:253:97a1:8797 with SMTP id v4-20020a17090a4ec400b0025397a18797mr8419419pjl.17.1684762186748; Mon, 22 May 2023 06:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684762186; cv=none; d=google.com; s=arc-20160816; b=qYiQwlEwCf8nnXQyVLijy9LT35wC+Nx2Jv0LgkQiKvzhB1sollmQAXJKm/oCGK0Uqh CbUiyM3nv8zb+f5m3blKU08kBda46ElAfoOY98VQ89TWbshhW3KKYqKqp2VrzE0QJ3ov b09Go/zDi5XkqCCZECFCJ4qmqP1BvR1EAURbfI8hc2jFubT38nZlGkQ6FMvzu0C8A+m1 5YE6hpQffNCzSNlb/QRBbawuPj2Lr0QIhGMm4tC94wDUKpfrHZkP4sWb2Q/i0yyG22Lh 7LhzaMtQ7Ry0LdqcZ1Scw9eAHTXVgOtJkWnri5jJ6/EHRnLgb+WZ68iSQRNXf6a6YblM 4QvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tCjgaIBg1413+ZAECALmVtqZ0DPPflZA/0F3xjG6XnA=; b=xJ+O1bFU03W2LfTSIn0UmQ1ptXwpQ40XzPtf6R0DHQ8nGqmyxcg42qaRoUz8GZqC7Q Q7nL+It5kWxD6aHmFlMbRyk+cQGm40Fh223iKpiMfsBnAw6LL1jQItS6IbFysTPZMOUk MRuPWNqYJ5lT7T8E1EdPF3HhZjflRLTsXinvQl554HmAiFH4+aDk9DE6jHHqHIAbHwHK GqpGx5ajgds67GopFQsBoke5vtfPuTRKQLVTcVUSxHTZNnieuvQW81701H+EZNNDy+EI uQZIDO9PnutlZFIQGh2BLSh7dJKsdHxrYi9IwjCTC5/z62yG4RO1oTEfTCUTw9z8UIYX ZYiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yYKMTbxY; 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 mg16-20020a17090b371000b002535d0a89f8si583125pjb.186.2023.05.22.06.29.34; Mon, 22 May 2023 06:29:46 -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=yYKMTbxY; 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 S230434AbjEVM7L (ORCPT + 99 others); Mon, 22 May 2023 08:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjEVM7K (ORCPT ); Mon, 22 May 2023 08:59:10 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A0DADC for ; Mon, 22 May 2023 05:59:08 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-ba71cd7ce7fso9140319276.1 for ; Mon, 22 May 2023 05:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684760347; x=1687352347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tCjgaIBg1413+ZAECALmVtqZ0DPPflZA/0F3xjG6XnA=; b=yYKMTbxYVK5vRAtLSrpyvIV5n49h3TOGLPgHoNJUv4Kik5xPQ4GIqCZ/YCshKUzyjW Yb4ccgR6KfkRMmam+HARFZrksrhBsBRXoWruGLARLFMKq4dXIS6lsY3eUKbL7xBCnZgj +/0NQtbhLOU8ycD/ZJrAVhR/4pq6mc32Ixzn7BTSku1UpegwBZl/raBcDpWeFbpS4ZzQ x8XmWPZdFrzxdG6FX+Ac7Ua79KnPf+VbY1cZPCixOvziz+qd81geKYuBtkm1rupZsU+p zu6rr1pEjjkERmH0cgewbDfuR1KxqU7K31B7QmMzRkuJraG0Xzi04o51vprsVgF6x3Mh dEOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684760347; x=1687352347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tCjgaIBg1413+ZAECALmVtqZ0DPPflZA/0F3xjG6XnA=; b=RePy5fgnF3wLzQ6v7EvzHkkD/0jFV63G4LYemtXBl9BL/UKtk/qpx1UcDWFSJ+SSU8 5dNU+WF2CbjQY3a0WSIkaZ2RvC/fkfB7XNU3Pm8EOfhP+0YD5hDvgslpwzomlVMQBmAy 3NDfLyq8xlzZIjvmSBMjhyH8qXM3CQx8cLBzTZg2dJaq9gJqSJzkaSAy6J/wQclTN8VC YUAs5JVTalspnB0KtC2WYluKP1YwLRcTnnMZarCYfYgRrcz0KVZbnbPclDMtJYyGRYQG D52p4xGfv8piSSGctmcMfRY/5yOuOtIeFs8bXIjnEgBOCPLor7wtg/maaTXQ5e/znXId N+Cg== X-Gm-Message-State: AC+VfDwrBkBUgCIF4aKsTnJvEVPtZN9VE+nfeISckjctbkGbnprppFxS s56FRQPyHhwPj1yj9mhKppf1QPvHrZ0InrPHkxOFNA== X-Received: by 2002:a25:fc28:0:b0:ba8:37bd:59db with SMTP id v40-20020a25fc28000000b00ba837bd59dbmr9143905ybd.34.1684760347027; Mon, 22 May 2023 05:59:07 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <71675a02-0801-62dc-2673-4a0907636b21@linaro.org> From: Dmitry Baryshkov Date: Mon, 22 May 2023 15:58:56 +0300 Message-ID: Subject: Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 To: neil.armstrong@linaro.org Cc: Marijn Suijten , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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