Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2053296rwd; Fri, 26 May 2023 00:36:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68u44uCJpuTfJnbBydktvFqJGKwvv6CpQ3m3ESTvgg4CcXTsXA+lDpIcIo8l9ukc1zMmiW X-Received: by 2002:a05:6a20:9146:b0:10a:9f45:e3f with SMTP id x6-20020a056a20914600b0010a9f450e3fmr1706879pzc.12.1685086578424; Fri, 26 May 2023 00:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685086578; cv=none; d=google.com; s=arc-20160816; b=Lg4ZzeL+Vm3bBsOxfxkTSbAdXzAcTKpCsY/ailYjneB5Q8SifVDvUgxz4f7bSw5MFE iswsKPTuZw95Fo0umfm3Vqk1Wq6P9yyxwFT2ppJ0V1B4jU2z5XclyZh3kkJ8UTBjwQs4 ckQzC2DsjK8ND3LQwi2+CFz+wfndbOq1K+APWYoP86Gw1ex5yptVXDQYOG4LQ8Y3waon gnllTIEzP5bBNYIiuwraqITm+pbQDdkLkUs4CFpnrrdTtZPs1Dp2ml6RX0tv36liFN55 2+cKqQnVoXgYGHT+2wz04qH5/9mH/Qbd1X700XorPEzBSr2d+8YInvjTmH1knlpQmQSt Dcqg== 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=ZN/4JZuQHY1T1h2dkOqoyyUUMJ5n63R18ZrD1fL2PYc=; b=XL38JbsJ7wJMYRpgZ0ISY8k3UDpLfjQ8t6+uomz61VrsFcON0XrxURZBOcTZULTxLA Am6Gg7bxTC03pUccv6t6nNTTMkCmew6qTXOq8d8YBGKnxPh9RmqGiFVF1i2VNCWwej71 vvHzUa7kmEoRyAp6biGEQAmiuP2lUnUe0eNsPs7tPHg2IN6sw0yDkjCG6ZhQYQpX2dSG F4etBu39DayZHD8CoDJz7woL+SVDoYXCuOH8mCg7daqvIeEi4c9rPyp8oytj1cEpe/ru rCqb6kFq5inrvhYjkDkhKYuitTsqJWve9tzKB5jmDrzQi+nyziTT8IZyvOC0qiXpDjNW n6hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dg8GAdcN; 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 g192-20020a636bc9000000b00537c6c285a0si3007207pgc.167.2023.05.26.00.36.03; Fri, 26 May 2023 00:36:18 -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=Dg8GAdcN; 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 S236878AbjEZHcx (ORCPT + 99 others); Fri, 26 May 2023 03:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbjEZHcv (ORCPT ); Fri, 26 May 2023 03:32:51 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D792B6 for ; Fri, 26 May 2023 00:32:48 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f611ccd06eso2847435e9.0 for ; Fri, 26 May 2023 00:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685086367; x=1687678367; 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=ZN/4JZuQHY1T1h2dkOqoyyUUMJ5n63R18ZrD1fL2PYc=; b=Dg8GAdcNEtta8bRzMU/es2FoyLd5f5CJzrwNvCeSBNqlFvxj50Vwb/227XJ1Uz4uC+ KugAgKgsAGa8KCwJQdmdB9dGhQ1diC2caRiTYj5cVb6nIqsrcDkC8pA2SjXXaKu89RSD iMI9NEkyvoanyH7D1gqjesA/TSG70N5OECkIDSfEspsnr7eOlXTlkB8MEUYC+z3rhQD/ jFghhVGqzeb+eFHzmY5UvOtdmGkx1FQdX3Bqg48H8htumqkrdSx04jW4FbztK15IvVeS w2P5js0117ighSJEASbGvM+BZqzWKdDZE6z7b797lLwvsvYIPmvSeXhvub8175sWmIUL KI8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685086367; x=1687678367; 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=ZN/4JZuQHY1T1h2dkOqoyyUUMJ5n63R18ZrD1fL2PYc=; b=g9sBDMBJO7/6kGhqAs8Eu1+WJgxODDbF5fsP8TGwc5GWOBQngDTJIjvZ5k0gFbzM5O KDG1ddDf3ubZCB/LIGG/hmaxp85TT2GnRjL/MWSRnNZwMMq+AYw94UB38GrdJslhoAQN 6cStA3NG0+bdv2lDxuc/cEKPXDGPvUutP8ojayBxs9IuAFO2x+lnqnnRmPOGXn2oQBlk wL39Kn+Z9L6LLvQzEbgdvzJtcFmmZQ0FkIJLogmKdux7Eow95COt6JdMFEZuLJIU1sjF R94ISY55k34DV3TVqKN5/aW+SVAqhINr6jYNWfC0mb4sOBBzjSXX0GGmER9+gayLBWP7 iQzQ== X-Gm-Message-State: AC+VfDwFJd6NBQcvLPMZsO4BdUVhK//EOGbNzrKvfHUBU3QD2P3TwuLX L94lBApxaJt/VTKsbmHq2zYDPg== X-Received: by 2002:a7b:cd8e:0:b0:3f6:113a:2023 with SMTP id y14-20020a7bcd8e000000b003f6113a2023mr877858wmj.12.1685086366782; Fri, 26 May 2023 00:32:46 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:15d9:4dfb:95d6:f5a0? ([2a01:e0a:982:cbb0:15d9:4dfb:95d6:f5a0]) by smtp.gmail.com with ESMTPSA id a10-20020a05600c224a00b003f4247fbb5fsm7884106wmm.10.2023.05.26.00.32.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 00:32:46 -0700 (PDT) Message-ID: <5becf303-8a23-6ace-2379-0a002e9b48f7@linaro.org> Date: Fri, 26 May 2023 09:32:45 +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 2/2] drm/panel: Add driver for Visionox r66451 panel Content-Language: en-US To: Jessica Zhang , Marijn Suijten , Dmitry Baryshkov Cc: devicetree@vger.kernel.org, Sam Ravnborg , Abhinav Kumar , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski References: <20230516-b4-r66451-panel-driver-v1-0-4210bcbb1649@quicinc.com> <20230516-b4-r66451-panel-driver-v1-2-4210bcbb1649@quicinc.com> <3cca2809-fa26-f0cf-2ccc-6737d150b43d@linaro.org> <2d9d7454-0e7d-b6f2-93ff-9eca69380e47@quicinc.com> <9d50bc4e-e747-47fa-03cf-4dbd33f778dd@quicinc.com> Organization: Linaro Developer Services In-Reply-To: <9d50bc4e-e747-47fa-03cf-4dbd33f778dd@quicinc.com> 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,URIBL_BLOCKED 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 26/05/2023 00:28, Jessica Zhang wrote: > > > On 5/23/2023 1:33 PM, Jessica Zhang wrote: >> >> >> On 5/21/2023 3:28 AM, Marijn Suijten wrote: >>> On 2023-05-18 03:19:49, Dmitry Baryshkov wrote: >>>> 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