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 97AB8C678DB for ; Tue, 7 Mar 2023 09:16:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230266AbjCGJQr (ORCPT ); Tue, 7 Mar 2023 04:16:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjCGJQo (ORCPT ); Tue, 7 Mar 2023 04:16:44 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DF758C32 for ; Tue, 7 Mar 2023 01:16:40 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so9916269wmb.5 for ; Tue, 07 Mar 2023 01:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678180599; 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=+bUYd4G9NQ4z4t2jaozJLOIRO5/FCt3H5a9intpHyF0=; b=uhZ7wvwJofSHPsn7Oj35/c8oXHQMQ5zv2823tF5vMBl0Xgql2FZJ5Z4tWp0k8IJPQC 9MkEy3aKrAJFrGhY+VX2ccURVdV6vR59V68nvC46LPdNTF4lTqKnN8l0RgDOR6JcUpRh zm6csufiVgZaIZu45NOTXHWJShL7AbWav34w8mhjN7BmInnx/8uEDKBqyaRfTqeFrYmA PLQz1RWA4nxAIEM/Ox2JJvva+sWtI2JUyg2OCyxgX6z/+TU90Tuj1dyTiPWEjl9JvHXj 3eiL0Idl1mQ9BQwLjpo+fl/PaVWKwINvyrFrGcOT0Kf76SPaonlJkOIBMgScb//X2+Q/ 1n5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678180599; 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=+bUYd4G9NQ4z4t2jaozJLOIRO5/FCt3H5a9intpHyF0=; b=rmKR4CXy7nxvF11r6D+OPC7w5YljObJyN2N/fcD0aPqGmFskjFdTnZDkgrSbEauLVC kbbAZCNrYA+7yr1haolb9WYcrRktjYfs+2ur7Re1UpzSaldJ+c8ZBdyby/jQrjGur8gx FBjgpB2RWNTJGKJ/LesO1ngxpWzXXixOx0jEOVltmGjJkppV0LDQ7kNu6KJE1+pJbwbX ys5y9pD2+sduTvSoYzZ94At8tAygAPP4CQC9yEJ37eZ4YHR1uLgHKyd0xqh37zCb1dao y0m2MLThWNEbaRCV/A+AXBXpBjRgzMm4tTRNOO16HjPpMS+8pZXF7IX9n6VxmSN+Kd+z 8JqA== X-Gm-Message-State: AO0yUKUozrawHGW2daIHqqvo6oYTE5Jqa78AOjk3rn33fhqfnSHUUhRX /9F9IoPsDtVbBFP9tHUuiooIwQ== X-Google-Smtp-Source: AK7set/+vhLK/3jPdg0WA6HOh4Fvv8P96NBY1YeICh1gM/j9bwG/PfAkYAGO7T1WMYoNQG6RkttriQ== X-Received: by 2002:a05:600c:4509:b0:3eb:399d:ab28 with SMTP id t9-20020a05600c450900b003eb399dab28mr11850917wmo.37.1678180598780; Tue, 07 Mar 2023 01:16:38 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:6faa:6d13:586e:871d? ([2a01:e0a:982:cbb0:6faa:6d13:586e:871d]) by smtp.gmail.com with ESMTPSA id u8-20020a5d4688000000b002c5544b3a69sm12203761wrq.89.2023.03.07.01.16.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Mar 2023 01:16:38 -0800 (PST) Message-ID: <6a08b1ff-e63d-4541-3725-fd31320730eb@linaro.org> Date: Tue, 7 Mar 2023 10:16:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 2/2] gpu/drm/panel: Add Lenovo NT36523W BOE panel Content-Language: en-US To: Konrad Dybcio , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230217-topic-lenovo-panel-v1-0-9d7ee1602089@linaro.org> <20230217-topic-lenovo-panel-v1-2-9d7ee1602089@linaro.org> Organization: Linaro Developer Services In-Reply-To: <20230217-topic-lenovo-panel-v1-2-9d7ee1602089@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/02/2023 12:29, Konrad Dybcio wrote: > Introduce support for the BOE panel with a NT36523W touch/driver IC > found on some Lenovo Tab P11 devices. It's a 2000x1200, 24bit RGB > MIPI DSI panel with integrated DCS-controlled backlight (that expects > big-endian communication). > > Signed-off-by: Konrad Dybcio > --- > drivers/gpu/drm/panel/Kconfig | 12 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c | 751 ++++++++++++++++++++++ > 3 files changed, 764 insertions(+) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 8eeee71c0000..2abc89284a77 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -297,6 +297,18 @@ config DRM_PANEL_LEADTEK_LTK500HD1829 > 24 bit RGB per pixel. It provides a MIPI DSI interface to > the host and has a built-in LED backlight. > > +config DRM_PANEL_LENOVO_NT36523W_BOE > + tristate "Lenovo NT36523W BOE 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 BOE display panel with > + NT36523W driver/touch IC, found on some Lenovo Tab P11 devices. The > + panel has a 2000x1200 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_SAMSUNG_LD9040 > tristate "Samsung LD9040 RGB/SPI panel" > depends on OF && SPI > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index c05aa9e23907..7ed908cc83a6 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -27,6 +27,7 @@ obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) += panel-khadas-ts050.o > obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) += panel-leadtek-ltk050h3146w.o > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o > +obj-$(CONFIG_DRM_PANEL_LENOVO_NT36523W_BOE) += panel-lenovo-nt36523w-boe.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_NEC_NL8048HL11) += panel-nec-nl8048hl11.o > diff --git a/drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c b/drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c > new file mode 100644 > index 000000000000..83478e471493 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c > @@ -0,0 +1,751 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2023 Linaro Limited > + * > + * Generated with linux-mdss-dsi-panel-driver-generator with > + * some manual adjustments. > + */ > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include