Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2671741rwd; Mon, 22 May 2023 02:26:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lWgf+ut4B6V40QxAEW9t/oiOvOzuAsl0BJtbDwAKRlvf7DQ4FiuvLzAlKgaijSj4Tzn8l X-Received: by 2002:a17:903:2287:b0:1ad:ea13:1914 with SMTP id b7-20020a170903228700b001adea131914mr15637368plh.30.1684747563938; Mon, 22 May 2023 02:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684747563; cv=none; d=google.com; s=arc-20160816; b=A3hFQN6yOkJvpN2tDnAWvO2/YsfakL0dLQR3Zu0RpspVJYO1LSHXjaxa7+mCm6GT+/ B63PJhftdOcl3AmaSLQ4F/omccmvf7R8ARu8JDuLpbSW7h90JWH9+dc016DD/70DxDqw ByzviAfnNliMyURizeEXTNfyqCXCJmEMMJLcST4EeDQANLXFKEsptCEqTlEAhArMfRth 7D1Zty1SpEcFlmjwqR01NB/S09g2MO7rH+MFvpER0KnNr6MRtv/r7bQOfgBC87DWi0SO kd7Y9aB/8eYT8OvJKC7OWIMb7oo/4tDRmYRkSmfOhatWUr/j/EGUGWDAfqlk5kE3eTpI 1bsA== 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=TSpW1gVvB5cVVAEKCaUdnaLMHTrtmQtwE67H0ZgF21Q=; b=KnV5t/yWhGVrlqoLJranTCarm+sOClRCRoHwX/uZJGDraAZFfAOZ7S1xszJrxRVfH4 bLC7KcrIYzfBAPP9xNUuOf33UbnaFhPXGXqyTZZDzCqL09PvUYzUsWPV/DhHQFjfq4U6 1KP+ywity1gxhSMTqFjAdEZO/+rdwacbmWL2nLXDIdhoM4AWwd+j7b/roDQE6ykLw2M3 bQv83qddlo63OhmfdXq8RJirU/hLLf5frmZh6yxgECY6HlCwqlNvJ1XGpuY2Sdq9nPL/ KYguSFOfFz6lOp2XvqgdE7SbgTmJ+psoDT0hPCZX0gLTl3bC8Xy6aY57RyLF/zyKvKuK 4a2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bmni6pR0; 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 cl24-20020a17090af69800b00233f3034302si659167pjb.46.2023.05.22.02.25.49; Mon, 22 May 2023 02:26:03 -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=bmni6pR0; 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 S232212AbjEVJIZ (ORCPT + 99 others); Mon, 22 May 2023 05:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232160AbjEVJIU (ORCPT ); Mon, 22 May 2023 05:08:20 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320C9C2 for ; Mon, 22 May 2023 02:08:17 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f420618d5bso36535285e9.1 for ; Mon, 22 May 2023 02:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684746495; x=1687338495; 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=TSpW1gVvB5cVVAEKCaUdnaLMHTrtmQtwE67H0ZgF21Q=; b=bmni6pR0isIv835bnSoKlZeu9/SXJ4xPWnKUiiaWIX1omr3WRm2IM6pqapWedKUx0I x5/Dd8wXL2IjPAoJ/FsYvyGr8YsUHLkDrL+R6Ctz5KKvPXlwzFwNzYbglk1vgpVFhCXQ jFSNNf9w48FRnCt5c+/aKehDs50JDPdWL7713d9WvbltRi5Rswi4L1a64fw4oSZu3Uyy +c+FffAPCT3wp3owwzwtsgpdRk1ZOctkp5tNWNxpjynbNB0diHA7qYIkGzlCDrPg9xSk dyuSA0GVTZBCkWI51UqKoldjEgvf7jd4+8xNSzhTuAaKNW9JeM48gk9FgUBMQ/CWTZK9 qdsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684746495; x=1687338495; 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=TSpW1gVvB5cVVAEKCaUdnaLMHTrtmQtwE67H0ZgF21Q=; b=e92j+ta2xjqjtd9pfD5xNR9LovzsnRii7AhwaTFPVvPlVzDG+CrEz80fE62I5uEwl3 bEhw1U08LWnEDB4Fvd90qxS8ICiNz+di8InzDMXi663S9d9qswYswwGF3WzKuATaZOwa 4gqvBxgu8JdnyQofQZafHQn4YottGpz4POhiivV9g0VFvYymtnJu6wZ0vcT4tC4D1BsW qcPe2T1RUZX+luSmMXHvc/AdIa6HzwtLPO9pwxgQBLd2BzsZWFjSZtfzUpHNe1gJlUkD 8LuO6n9ysXCSl06DzlWT/yctOHTeIhXkIzHidq2CnfeKaIqCfcEWz4FO8onK3xCBMEr4 SGiw== X-Gm-Message-State: AC+VfDwxfMJZ/SDTUNMxHrkK5bbZ1P5OVJMlp3HOmAk1J3AxvUit3XNq g+UfhmFr4dZewfNcKhN0c0YL/A== X-Received: by 2002:a7b:c412:0:b0:3f4:2267:10cf with SMTP id k18-20020a7bc412000000b003f4226710cfmr6853986wmi.32.1684746495508; Mon, 22 May 2023 02:08:15 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id c17-20020a7bc011000000b003f31cb7a203sm7640305wmb.14.2023.05.22.02.08.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 02:08:14 -0700 (PDT) Message-ID: Date: Mon, 22 May 2023 11:08:12 +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 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II 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 , Konrad Dybcio References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> <20230521-drm-panels-sony-v1-8-541c341d6bee@somainline.org> <4679c741-7877-ce79-4086-08ec4ee9e6bf@linaro.org> Organization: Linaro Developer Services In-Reply-To: <4679c741-7877-ce79-4086-08ec4ee9e6bf@linaro.org> 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:23, Dmitry Baryshkov wrote: > On 22/05/2023 00:23, Marijn Suijten wrote: >> The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia >> 5 II always uses Display Stream Compression 1.1 and features a 60hz and >> 120hz refresh-rate mode. >> >> Co-developed-by: Konrad Dybcio > > Konrad's S-o-b is also required then > >> Signed-off-by: Marijn Suijten >> --- >>   drivers/gpu/drm/panel/Kconfig                 |  14 + >>   drivers/gpu/drm/panel/Makefile                |   1 + >>   drivers/gpu/drm/panel/panel-samsung-sofef03.c | 423 ++++++++++++++++++++++++++ >>   3 files changed, 438 insertions(+) >> >> diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig >> index 3f11e9906f2cb..8e2668153bce2 100644 >> --- a/drivers/gpu/drm/panel/Kconfig >> +++ b/drivers/gpu/drm/panel/Kconfig >> @@ -630,6 +630,20 @@ config DRM_PANEL_SAMSUNG_SOFEF01 >>         This panel features a fixed mode of 1080x2520@60. >> +config DRM_PANEL_SAMSUNG_SOFEF03 >> +    tristate "Samsung sofef03 Sony Xperia 5 II DSI cmd mode panel" >> +    depends on GPIOLIB >> +    depends on OF >> +    depends on DRM_MIPI_DSI >> +    depends on BACKLIGHT_CLASS_DEVICE >> +    help >> +      Say Y or M here if you want to enable support for the Samsung AMOLED >> +      command mode panel found in the Sony Xperia 5 II smartphone. >> + >> +      This panel uses Display Stream Compression 1.1. >> + >> +      The panel features a 1080x2520@60 and 1080x2520@120 mode. >> + >>   config DRM_PANEL_SEIKO_43WVF1G >>       tristate "Seiko 43WVF1G panel" >>       depends on OF >> diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile >> index a4039d0fc9cfb..52dcd82e33120 100644 >> --- a/drivers/gpu/drm/panel/Makefile >> +++ b/drivers/gpu/drm/panel/Makefile >> @@ -63,6 +63,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams4 >>   obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o >>   obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) += panel-samsung-sofef00.o >>   obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF01) += panel-samsung-sofef01.o >> +obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF03) += panel-samsung-sofef03.o >>   obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o >>   obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o >>   obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o >> diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef03.c b/drivers/gpu/drm/panel/panel-samsung-sofef03.c >> new file mode 100644 >> index 0000000000000..2763e1c56b37b >> --- /dev/null >> +++ b/drivers/gpu/drm/panel/panel-samsung-sofef03.c >> @@ -0,0 +1,423 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +/* >> + * Copyright (c) 2022 Konrad Dybcio >> + * Copyright (c) 2023 Marijn Suijten >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include