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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6443C7EE2A for ; Mon, 22 May 2023 09:08:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231996AbjEVJIY (ORCPT ); Mon, 22 May 2023 05:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbjEVJIU (ORCPT ); Mon, 22 May 2023 05:08:20 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F10CF for ; Mon, 22 May 2023 02:08:17 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f6042d605dso6281935e9.2 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=B+RZrIrKmF3D2sZspoLBH5tPT6XVpd66B2b8C/D4rFiZylfV3L/hN0hobdNlJ9Gbuo ttR9glx/jq2dy0lv7ODr4SLI8cx9MFaSxpyjCiyeZQ1dO+A1p8sw0lCQSfUnLJ9fEAxH Y5ReGfMhYsvNzr3krNYH5SJlGIYw9qzGz4Gl9xsZimuPilBM8IQxOE9sz5b3now4JFUY oxZ19tn7y05T9axSxvmXUC5pzLxmM+qQczOwO3Amo3Kj3Z3fW4+pKZJymV8sGuBVsyN5 28LmcWGPrj9VgSLOrquB6cgtxEhst/u0tzAWa4zOiHvyiprQ0w7o4D7vN+GhFZ8/hnrs XwGg== X-Gm-Message-State: AC+VfDzqJyq6zLn/li0t6qgmIQOHzYfvLnHqZRwvA/WMWg+wkbYkAjo5 XeAGZqoguTko4BUJaekBGQ1j8g== X-Google-Smtp-Source: ACHHUZ77+hx3HZCAMlBC62W1q3tZFDkgDbt14mnCG4IgpTDXfN9x+HtvbcjhhiOsUYib+DeuRr6Lrg== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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