Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2648221rwd; Mon, 22 May 2023 02:01:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mkf1IuxvZku0A1/V0riouuK5pPcdD9cB+3ETgmKLA4xsRoXOZsNqXBAjSFQKRbzcFUvZN X-Received: by 2002:a05:6a20:1448:b0:10b:9dc1:c5db with SMTP id a8-20020a056a20144800b0010b9dc1c5dbmr2803326pzi.28.1684746112680; Mon, 22 May 2023 02:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684746112; cv=none; d=google.com; s=arc-20160816; b=Yjj94SnUoW34MN6z3nnnn96PUicmTkGCG+I22fz+/X6u8S5cFkBUvdb/2Z9uCaiPlQ nte0TgtcB7zPGFUZVN8PJbX6p2CHuRPa396BFg4OHaAhxjasauYNwWLu2eoDJQfX4nZQ iZw6PDWLO8+TlFIz8La5FNQLXbRsmVBn7YoRHbXZ0NfRIijP386VPwuMD/n77unyW9qQ IAg/3zAYRsiVjbZwkAdu19o8U+Iq95F4yOJHjJ21GDynaC14gI//dnMkwEb0L+1ehAUD 03zg+9hxBnTIJ+BjVspIRvPSXlgLXURDt+CfxuSqX2XUg75ZgiqmClMUYKZyn0nG6nhK 7Z3A== 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=Bn+PTA8n/nfSJn1x28IoYhw3xhY/k9giVeeX+BEj9PA=; b=EuVhlhUIfp6/5BNYF6nmz5XP8sv++684IB1ojoT8tRLMNFeub/tzNgpmCYqSjHrJ04 TTeKdTKozmf/dGFx83MwIzexF2psMlVrv5YlfIyUxS4ALXRHF6RUDyJtVxA2LgssKILx Z/1Abec1yknkRU2XI/mb6l0WqfF7oAUyJ7EBHX75JD3gPoor4rqttnR/D3vEdiUs0eQz xTS6Ndb5qvYHyrGA0IMtXaHXeGOPkXXBVcXIxj9y1koYZbu8ts4/0/Qhqy4A+lv3YRMt TrJuuGqyWW2U1pPbqCG2uRcQWDAdzqKi9QkTtTc+AZNywBhjp8uWZFRxkAavEBdEnEVu Sy4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nPw8y4gg; 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 g17-20020a633751000000b005321c9c8aadsi22001pgn.720.2023.05.22.02.01.39; Mon, 22 May 2023 02:01:52 -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=nPw8y4gg; 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 S232602AbjEVIzi (ORCPT + 99 others); Mon, 22 May 2023 04:55:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbjEVIzI (ORCPT ); Mon, 22 May 2023 04:55:08 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 689EC18B for ; Mon, 22 May 2023 01:55:04 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-309438004a6so3510675f8f.2 for ; Mon, 22 May 2023 01:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684745702; x=1687337702; 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=Bn+PTA8n/nfSJn1x28IoYhw3xhY/k9giVeeX+BEj9PA=; b=nPw8y4gg1rmHEf2gjKdDr/xNtrjMmFmSgX2W7FFIxhm583UvyOQaIaPpHG+6M2DwIV s2XHvVrmXbdaop3HGu0WleC17cAuL91JCG/87T1HgUC9B4JUiSNJyXBvZf+dlt9iXIwY /rKrG+MM/hJeR3GEL2DCoEstuemz+KBfU3tmsb7LmyTZaC9oU9YWjei0+w5U2+tyN9hX GaCIK+Vh0WNMb8Hx4AlSojwXZKf3YksDgRN0cn9/757la7b4iX1ggbsrdtT5IquYOstv R44InDEwgW70cGL//wOhdeFgcytormatAFqxKIprovEsxx37oOb9Ln2NdoU4T856walo x+XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684745702; x=1687337702; 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=Bn+PTA8n/nfSJn1x28IoYhw3xhY/k9giVeeX+BEj9PA=; b=isflDyEknJBknmufnmIBuUNG6MF4kyF348rtfqvApkWMPDYrVi0k12TaGnEpQ1Fy5Z R7dRW1rrbVTNgy0ix6lCOyf6dEPQ4T/t1BRvedAPr+Sk6xvtEsRKxsqHmLHNgM1IuAZP jH8XG3eODdiiEaxHLNJPtJr6nj4tyJSU8/WanWTo2AI9eb6t6BMc0LkmE9MrR1d4deDo dMK7hmrXDsojM3Zp9xnGn+EJkzGlCzTRO85gdVJGSBjCPnWG6QF0z98FmJqQPRp8vGS3 J8ZMB7i7pnUTU7DdAisYXu9DH/8VCrTRwSVlmkV/jYx9P9dZJ2NL163+375PswLNPaAp 74oQ== X-Gm-Message-State: AC+VfDywW3R4fnda2rjr3na9/gVXpwErSmBsGwNBb/sq3h/4WlRQya0I F95tpJ+szt+nfo6DyBFzOMCrow== X-Received: by 2002:a5d:514b:0:b0:307:a8e8:ca80 with SMTP id u11-20020a5d514b000000b00307a8e8ca80mr7355555wrt.18.1684745702533; Mon, 22 May 2023 01:55:02 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id f15-20020a0560001b0f00b003062c609115sm6976342wrz.21.2023.05.22.01.55.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 01:55:02 -0700 (PDT) Message-ID: <610f6023-04ea-0209-0038-05ae9b9ea58e@linaro.org> Date: Mon, 22 May 2023 10:55:00 +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@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 2/2] drm/panel-fannal-c3004: Add fannal c3004 DSI panel Content-Language: en-US To: Paulo Pavacic , sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230519142456.2588145-1-pavacic.p@gmail.com> <20230519142456.2588145-3-pavacic.p@gmail.com> Organization: Linaro Developer Services In-Reply-To: <20230519142456.2588145-3-pavacic.p@gmail.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 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 Hi, On 19/05/2023 16:24, Paulo Pavacic wrote: > > Fannal C3004 is a 480x800 display made by fannal that requires > DCS initialization sequences. > > Signed-off-by: Paulo Pavacic > --- > v2 changelog: > - renamed from panel-mipi-dsi-bringup > - only one MAINTAINER e-mail > --- > MAINTAINERS | 1 + > drivers/gpu/drm/panel/Kconfig | 11 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-fannal-c3004.c | 405 +++++++++++++++++++++ > 4 files changed, 418 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-fannal-c3004.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index 62374c8424b9..93fc1ae6832f 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -6432,6 +6432,7 @@ M: Paulo Pavacic > S: Maintained > C: matrix:r/mipi-dsi-bringup:matrix.org > F: Documentation/devicetree/bindings/display/panel/panel-fannal,c3004.yaml > +F: drivers/gpu/drm/panel/panel-fannal-c3004.c > > DRM DRIVER FOR FARADAY TVE200 TV ENCODER > M: Linus Walleij > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 2b9d6db7860b..a1041c1e6bf6 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -144,6 +144,17 @@ config DRM_PANEL_ELIDA_KD35T133 > KD35T133 controller for 320x480 LCD panels with MIPI-DSI > system interfaces. > > +config DRM_PANEL_FANNAL_C3004 > + tristate "Fannal C3004 panel" > + depends on OF > + depends on DRM_MIPI_DSI > + help > + Say Y here if you want to enable support for the Fannal C3004 > + 2-lane 480x800 MIPI DSI panel which requires initialization > + sequence. > + > + If M is selected the module will be called panel-fannal-c3004. > + > config DRM_PANEL_FEIXIN_K101_IM2BA02 > tristate "Feixin K101 IM2BA02 panel" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index ff169781e82d..13c0f00038b5 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -12,6 +12,7 @@ obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o > obj-$(CONFIG_DRM_PANEL_EDP) += panel-edp.o > obj-$(CONFIG_DRM_PANEL_EBBG_FT8719) += panel-ebbg-ft8719.o > obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o > +obj-$(CONFIG_DRM_PANEL_FANNAL_C3004) += panel-fannal-c3004.o > obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o > obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o > obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.o > diff --git a/drivers/gpu/drm/panel/panel-fannal-c3004.c b/drivers/gpu/drm/panel/panel-fannal-c3004.c > new file mode 100644 > index 000000000000..decbd0c59093 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-fannal-c3004.c > @@ -0,0 +1,405 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * MIPI DSI driver for Fannal C3004. > + * Copyright (C) 2023, Zenitel > + * Author: Paulo Pavacic > + */ > + > +// ↓ include headers, static values, static functions ↓ This comment is unneeded, please remove it > +#include > +#include > +#include > +#include > +#include > + > +#include