Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2451399lqz; Tue, 2 Apr 2024 19:39:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAAtkxzCN9rD0VVrUcWqT4aD2vFNSA39vLDea38tlnLOQ7srDAROZHrfSExO6V1onB1PaV4zixJ/YaCTPrDkUnhKJejsB0xYumLiXAjg== X-Google-Smtp-Source: AGHT+IFDv0RjWz0WKIQofKxnkhlSvZQtwyCgnkwQLS9ccfvLDU16MQ+Qp23l5PV+mU34jTGuGofy X-Received: by 2002:a17:902:6846:b0:1de:de58:2a55 with SMTP id f6-20020a170902684600b001dede582a55mr1299305pln.26.1712111975941; Tue, 02 Apr 2024 19:39:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712111975; cv=pass; d=google.com; s=arc-20160816; b=c21GPEOyGiAKy797hXPyJswarBBwRgIb62GvC+CDdik0CGmREG/9Gh28WgNHJDoewt 3vPuy0lnFbt3xv6hZRRT2JVMkIyHWytyYPLiRG3mN9jze09uLIOo/6ohzokbLQHyL3ue YtUWSmmhLAfeWWqy2iLE8RvmsYdF0O95b866Ucqie6w4vmSIBdxIfhe5HCYxZU/MZPwJ JYElWUAt02mN4pAT4YZ2TF0Y9CBRNWQEn7nmf7JTBIcnNQJHSJ/Xlvs1OPf5/0Vt9Pwp IH5RW82riC1zmDKLQKBGAOIbYusm7fvnnSA5hCnm1lzm7zGMuR4Ymeot9fu2g7EgGH43 o1CQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dwUhQJCTiwA6K703L8j80vU3/B/zOGBbqsDy8+0IuWQ=; fh=Tk1KHA5rO8AcH/8O9kEB7p0IoNh2gqdroJQuqS31ZrY=; b=FFM799+f7kyb8QcB2mHFupjxBVZ5OGAMAaMkpQIPEXqi4/fV7JfE4cU/MABTUefpP6 WQe2X1nYOCCbbWoNpR/pLpCMtUe2U1G0C1sWhcJueRvWbznaKFSxrYkV1fJJqLgwkG/B HxTtsS6J167YrFDbeLtcr7G/82eN9pkh8Nl9cEICkKunJB0wekYwzbAUBFdZ5xen8RI7 VzWwYz1xOz6YtM9PDD/NJ/OTF8TbNIUpwVTnDGUWkics0K9I2GKn7oRkgT0PJKA8DNp8 bZYelgrpcENEjFGpz6MilNSWejsReqB1YuLBE4IoX9ohIaUoSHuoGpAttcYCy4uwGgH2 jjng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gFkVB1/I"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-128978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id be10-20020a170902aa0a00b001e278594757si1957746plb.212.2024.04.02.19.39.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 19:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gFkVB1/I"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-128978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4DF48B24210 for ; Wed, 3 Apr 2024 02:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43BB11B952; Wed, 3 Apr 2024 02:37:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gFkVB1/I" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC05F1C68A for ; Wed, 3 Apr 2024 02:37:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712111855; cv=none; b=opVAFD+wRYXatnuURmakpC5vuSwmGOvN0Dy2Bwn8VuR+6cueesx8FrzaLQX5NTWh11CcM2keiELz3wd9F//NpNXHb+OKQCOSbBhKcSRJC9xayOmn+mwPctnvmbzK4LNwsmlFI17kZHnbFCyKMNZ9Ui1y2yPyqlh0SExF+T9iEyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712111855; c=relaxed/simple; bh=jQ1fmTFs1Q5VDJglexJctfCkz2HSxRn+4cIpO6FgXg4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hJJiyl1OLiboI8nuvG2qCN+gIsT7/HqSJqtomkUanrmkgyvn0LLWQ9oWGd6biduCzc5WsePXbs1eDjQ2PKMUh4BHaCxcQAkOgacHpIGFvUYexUyDer+op9crCHmcdus9ED+xMyGMLZ1UAqxGrnrphb2qtUDx0OJzdU4qFJAfpbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gFkVB1/I; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d82713f473so29021311fa.3 for ; Tue, 02 Apr 2024 19:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712111851; x=1712716651; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dwUhQJCTiwA6K703L8j80vU3/B/zOGBbqsDy8+0IuWQ=; b=gFkVB1/I8X86lhxUeUpMegXaRzvQj5NuqVoPtozRnFN2AGsF6LgNFv9lxbYnci55+m lnm1zZmPhCRLbe8sDu/k2ATrQRF0YunOlB3mOcBcFYeBHr72kznvDs16rwnEU5r0P4AM aJL99ztCBGtDv1wnq+8F93fePAe9pcA2kxFhvAJjyatajBHd7b7b8cXzINfkjXPiWBNa drke8/1rJ6+LM2hvD0OdgYqxkLNeOmwm9QBsQXKcrbtJg9sckr+ZzMr2GmiGe4wpiwoz OaYhBGu8QnhhRSEk97e+4UOM3syHBvrM/FD8Xy7yXr/JRq9+n2WeBqbwm425YqhriAiQ YbEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712111851; x=1712716651; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dwUhQJCTiwA6K703L8j80vU3/B/zOGBbqsDy8+0IuWQ=; b=KV8IrqbOK+jvTU5kDOv+VwpmSGPHVK5/6/D6qwikNHg06pja9oghySIb/iGT60esFQ a/tidCEOvl1VYcHhlJAN+HJUkbJh7RHMKCIn7Lg5unQQTFMNmh6tqIzzUx+rgRVUgpIy GtZRUpQ7i9+zPmxMgw5p6q5hJUQJ1xS4ASokr+Si6ZFiAuPzeqWXo3c39TA+TQbCv6fp Gbrz3F3bkR8c0YNRfSZHnk8giGx6XIFhqiXxylXIILkxwucnCrMyajwMwD68smsmFXba 27oKKwibRyDCieX+2EGQdaupXqrsUfYn6K+HVoYBT6eJQYv5lch0fZ/5Ai51fBf9wATO k83Q== X-Forwarded-Encrypted: i=1; AJvYcCVQeYIx04yAAG7vtZgHVroNOfrsIVSb0VKElH2RAoWGOAh7Vz3lIbvJhGawJO1/3zX6HAUH4znWlblgQjJfJkfDqivPeJ4zu8zIBTZu X-Gm-Message-State: AOJu0YwPXePjP2KNDoVUrCtCFKyx+tatrHZE08TVGmWZTRws8NUj1RKB L9k4zxUUcagfN1bls2WDzFiQEDONrQiEABbOvUU/uVXsF/n13fofp6KrGeizWP8= X-Received: by 2002:a2e:8456:0:b0:2d4:94eb:e9fe with SMTP id u22-20020a2e8456000000b002d494ebe9femr2305538ljh.21.1712111851000; Tue, 02 Apr 2024 19:37:31 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzyjmhyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a00e:a300::227]) by smtp.gmail.com with ESMTPSA id t14-20020a2e9d0e000000b002d6cc01533esm1801932lji.36.2024.04.02.19.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 19:37:30 -0700 (PDT) Date: Wed, 3 Apr 2024 05:37:29 +0300 From: Dmitry Baryshkov To: Marijn Suijten Cc: Sumit Semwal , Caleb Connolly , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul , Caleb Connolly Subject: Re: [PATCH v3 4/4] drm: panel: Add LG sw43408 panel driver Message-ID: References: <20240402-lg-sw43408-panel-v3-0-144f17a11a56@linaro.org> <20240402-lg-sw43408-panel-v3-4-144f17a11a56@linaro.org> <3hh7nfqflj73422q47p6do7aiormxwspwkfg557epeqn2krtcc@dsufsohfaz4l> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3hh7nfqflj73422q47p6do7aiormxwspwkfg557epeqn2krtcc@dsufsohfaz4l> On Tue, Apr 02, 2024 at 11:17:52PM +0200, Marijn Suijten wrote: > On 2024-04-02 02:51:15, Dmitry Baryshkov wrote: > > From: Sumit Semwal > > > > LG SW43408 is 1080x2160, 4-lane MIPI-DSI panel, used in some Pixel3 > > phones. > > @60Hz? With the current settings and timings I'm only getting 30 Hz. I have to double the mode->clock to get 60. > > > > > Signed-off-by: Sumit Semwal > > [vinod: Add DSC support] > > Signed-off-by: Vinod Koul > > [caleb: cleanup and support turning off the panel] > > Signed-off-by: Caleb Connolly > > [DB: partially rewrote the driver and fixed DSC programming] > > Signed-off-by: Dmitry Baryshkov > > Some small nits but I think this deserves a: > > Reviewed-by: Marijn Suijten > > > --- > > MAINTAINERS | 8 + > > drivers/gpu/drm/panel/Kconfig | 11 ++ > > drivers/gpu/drm/panel/Makefile | 1 + > > drivers/gpu/drm/panel/panel-lg-sw43408.c | 326 +++++++++++++++++++++++++++++++ > > 4 files changed, 346 insertions(+) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index d36c19c1bf81..4cc43c16e07e 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -6789,6 +6789,14 @@ S: Maintained > > F: Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml > > F: drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c > > > > +DRM DRIVER FOR LG SW43408 PANELS > > +M: Sumit Semwal > > +M: Caleb Connolly > > +S: Maintained > > +T: git git://anongit.freedesktop.org/drm/drm-misc > > +F: Documentation/devicetree/bindings/display/panel/lg,sw43408.yaml > > +F: drivers/gpu/drm/panel/panel-lg-sw43408.c > > + > > DRM DRIVER FOR LOGICVC DISPLAY CONTROLLER > > M: Paul Kocialkowski > > S: Supported > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > > index 6dc451f58a3e..a55e9437c8cf 100644 > > --- a/drivers/gpu/drm/panel/Kconfig > > +++ b/drivers/gpu/drm/panel/Kconfig > > @@ -335,6 +335,17 @@ config DRM_PANEL_LG_LG4573 > > Say Y here if you want to enable support for LG4573 RGB panel. > > To compile this driver as a module, choose M here. > > > > +config DRM_PANEL_LG_SW43408 > > + tristate "LG SW43408 panel" > > + depends on OF > > + depends on DRM_MIPI_DSI > > + depends on BACKLIGHT_CLASS_DEVICE > > + help > > + Say Y here if you want to enable support for LG sw43408 panel. > > + The panel has a 1080x2160 resolution and uses > > + 24 bit RGB per pixel. It provides a MIPI DSI interface to > > + the host and has a built-in LED backlight. > > + > > config DRM_PANEL_MAGNACHIP_D53E6EA8966 > > tristate "Magnachip D53E6EA8966 DSI panel" > > depends on OF && SPI > > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > > index 24a02655d726..0b40b010e8e7 100644 > > --- a/drivers/gpu/drm/panel/Makefile > > +++ b/drivers/gpu/drm/panel/Makefile > > @@ -34,6 +34,7 @@ obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) += panel-leadtek-ltk050h3146w.o > > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o > > obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o > > obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o > > +obj-$(CONFIG_DRM_PANEL_LG_SW43408) += panel-lg-sw43408.o > > obj-$(CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966) += panel-magnachip-d53e6ea8966.o > > obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o > > obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3051D) += panel-newvision-nv3051d.o > > diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/panel/panel-lg-sw43408.c > > new file mode 100644 > > index 000000000000..c7611bfa796b > > --- /dev/null > > +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c > > @@ -0,0 +1,326 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > +/* > > + * Copyright (C) 2019-2024 Linaro Ltd > > + * Author: Sumit Semwal > > + * Dmitry Baryshkov > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include