Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp239000rwd; Wed, 17 May 2023 17:53:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74EzgqPjXUrJbw+znFhi8p7kMci9na09z2gGM/WZ90BHcVIdtbBwJ2+N/3KQOfDEn1BM0k X-Received: by 2002:a17:902:dac3:b0:1ac:8837:de9 with SMTP id q3-20020a170902dac300b001ac88370de9mr930519plx.3.1684371205328; Wed, 17 May 2023 17:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684371205; cv=none; d=google.com; s=arc-20160816; b=L3H3EOCmwbnwRg5mGOhfh0zSfGtFCJSN3ZfFO5uj+IfghJTosowlBKrx0CpIq8iyMf SG/SJ3ZbYBNBOWYhnavHXn5tET0WQhRFmQqBtrb56z0VZKJ6LOlhLHb33YQN3H+v/zLP zU0hh0W8QJfncHnmcJEUzu7hPZBxRPdM07G16a74Q71M1UTvT/UeH7nkJwfXMGxzVk+A M/h07OMe0oxkITLbidCgqE4KnihXLlX7OwEjRiYqrMJw/cPXHY+XrWCHriQzpQmuIPLX KTaEl9ToHIMDAjydDdnM9IlpiiAhK5ZErZbzejWg2JNtpxdGUWuqyCwmv2Y4/bLEBpR7 iV+g== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qfVizJG4+pB5hIddcf23TEpAYEuIGBETw1dqaeZusn8=; b=DxCPXuMl72BlNO7819+e2LEsnuvtuqc6B94Rls8otKscGhe359eQT+4554a5Q6VvD7 kvAkWp3QxR2dEyfYKwGHzgOzrbx1dD/CP9jDTFvi4mvAZiqrnbi7oNe27MRtPR5sdkPF VRRNVatWQsSgP6dwvXCBvNjAAqhCwfdqIXt+DXaPoI/7YumhSXpCP+AwYT1R2294NkW+ /61w9ZcsQu0wfpMxL9KRUpTwjkUinkmoODgPSfo62AggwqTaiHUuHxpbyrLqbMkNaUoJ eBWSVveN16eT8Q2eotMRPBEJl3zYW9xhWAEOyiNNyNHg+k7DOdSYdQoeqMwy5fS0yXQ7 8Smw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vYesJcLT; 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 x8-20020a170902ec8800b001a5abc9d9bcsi23475205plg.583.2023.05.17.17.53.10; Wed, 17 May 2023 17:53:25 -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=vYesJcLT; 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 S229680AbjERAUE (ORCPT + 99 others); Wed, 17 May 2023 20:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjERATy (ORCPT ); Wed, 17 May 2023 20:19:54 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1688F3AA1 for ; Wed, 17 May 2023 17:19:52 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4efe8b3f3f7so1726542e87.2 for ; Wed, 17 May 2023 17:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684369190; x=1686961190; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qfVizJG4+pB5hIddcf23TEpAYEuIGBETw1dqaeZusn8=; b=vYesJcLT6v/RC+hTNIUtHcEVeTUF+sxS9WEWxjCzPivrfMWFM6R3vYIPbC4kHtkOjQ dVvocClkkml9gf4SgJ3/6QXIjRS5+g5h+2oiCvZknJNpToLzXXG3XaGBLF8jwKoWdvsm ah/hBGxbuZtB/4vnOwalDvTyZX8+u6CN3AEtTuyGDP9maZ88I8kE15GoflHLbaAq8nNU uNbe0Nx770AFvRJji6rKxSoTA832buKW8XXMbYH9x6tVfoGP6n1q1udFBkxTOns+e8Gn xp7STfPpHBKY/aOjreExGsDDejiPZusdhuSl2mqs8ySOUCxPHn6hoOqJyhYAPzmY9lV/ Fr5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684369190; x=1686961190; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qfVizJG4+pB5hIddcf23TEpAYEuIGBETw1dqaeZusn8=; b=QSVs8HsJfRWFs9TqUfaFDgzG606TX/SjmO8VVOSv3fwhQbN9gErXoAJI69Lbo0nXEv dihQrgkkVj98RxDknO1mcZYQ4l5G3Nm+bmgwAfpYvdD4S/l2EqtoMTcIuoJ3kb7Ievoc ObAIh+0ULjwKipY6ij8tggoZjFORasglNC2I2DQBpQrbS+P0Wosx5Ek+0yUbLYfEZ8F5 Hd+FvWA9h7mnUIDMIeb0IgWnGTgf+rKGodIYwRE+1sdW72YObXzTrjHD5Z6rsi+zanhe FC7BDwSBJhLnW32vcU9ct1Bj1NZrw9PYyNBPZw9BCK14eLrCxnRz+OXlvmHzY9i2g+EI 2ODQ== X-Gm-Message-State: AC+VfDyiFRpdiC4GCZLj41BAh7RO75RAKXP/380Mp87hPqvRNJHjuMRq 0pEWVPeiE8B8PRp2+9m0gWFC/A== X-Received: by 2002:ac2:5ec8:0:b0:4e9:59cd:416c with SMTP id d8-20020ac25ec8000000b004e959cd416cmr811162lfq.0.1684369190197; Wed, 17 May 2023 17:19:50 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id q16-20020ac246f0000000b004f13b59307asm50041lfo.232.2023.05.17.17.19.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 17:19:49 -0700 (PDT) Message-ID: <3cca2809-fa26-f0cf-2ccc-6737d150b43d@linaro.org> Date: Thu, 18 May 2023 03:19:49 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel Content-Language: en-GB To: Jessica Zhang , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: Abhinav Kumar , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230516-b4-r66451-panel-driver-v1-0-4210bcbb1649@quicinc.com> <20230516-b4-r66451-panel-driver-v1-2-4210bcbb1649@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <20230516-b4-r66451-panel-driver-v1-2-4210bcbb1649@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 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=ham 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 16/05/2023 23:20, Jessica Zhang wrote: > Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that > comes with the Qualcomm HDK8350 display expansion pack. > > The panel enables display compression (DSC v1.2) by default. > > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/panel/Kconfig | 8 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-visionox-r66451.c | 395 ++++++++++++++++++++++++++ > 3 files changed, 404 insertions(+) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 29cf5fa39ff2..9c2c36dbddf3 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -766,6 +766,14 @@ config DRM_PANEL_VISIONOX_VTDR6130 > Say Y here if you want to enable support for Visionox > VTDR6130 1080x2400 AMOLED DSI panel. > > +config DRM_PANEL_VISIONOX_R66451 > + tristate "Visionox R66451" > + depends on OF > + depends on DRM_MIPI_DSI > + help > + Say Y here if you want to enable support for Visionox > + R66451 1080x2340 AMOLED DSI panel. > + > config DRM_PANEL_WIDECHIPS_WS2401 > tristate "Widechips WS2401 DPI panel driver" > depends on SPI && GPIOLIB > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index b3e8ba29edd3..e043a92ee676 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -78,5 +78,6 @@ obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o > obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o > obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o > obj-$(CONFIG_DRM_PANEL_VISIONOX_VTDR6130) += panel-visionox-vtdr6130.o > +obj-$(CONFIG_DRM_PANEL_VISIONOX_R66451) += panel-visionox-r66451.o > obj-$(CONFIG_DRM_PANEL_WIDECHIPS_WS2401) += panel-widechips-ws2401.o > obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o > diff --git a/drivers/gpu/drm/panel/panel-visionox-r66451.c b/drivers/gpu/drm/panel/panel-visionox-r66451.c > new file mode 100644 > index 000000000000..e3648ead3e84 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-visionox-r66451.c > @@ -0,0 +1,395 @@ > +//SPDX-License-Identifier: GPL-2.0-only > +//Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > + > +#include