Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1307949rwd; Tue, 16 May 2023 15:18:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/GqM7OI39DbAvdgdL79U1VrSahqOVHO7e2OdbPIrUId17IQcY+mYTEeQrk6Nj9whKGW49 X-Received: by 2002:a17:90b:388e:b0:23f:2661:f94c with SMTP id mu14-20020a17090b388e00b0023f2661f94cmr10997101pjb.47.1684275529118; Tue, 16 May 2023 15:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684275529; cv=none; d=google.com; s=arc-20160816; b=IKjyePYYdGw+S6H9DuI52rRrFGJZi0qiMRgJIJRxUTd/6hSawOgvy52kY6lqT8/EPd htgJ2J1yYrW6bHsKfDQt5GMFr1aLzd6Fku4KB65FXyrB9FUBoCZbuMugJSahwthIEq9j V2Z2qf/WO2rVVJPOo9csndiuP2uq4KwQH6xsKAXDSr2fuRYN7oKjMNnSGTH7ENNI9H5m KINPHYw2ct7LV0tpIeHnK+UMZ3WXsmpUIhS0AV2UQKUpklqQSv3ak5h4aKYbXjfRvBWx ZCq0hzAiAZZ3DviPqOJQX0LPKD1L3wgYl0mpb0mSV6f0Q/ka5MPCv9xBaIf+uUxeHDxJ PLEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=deLfvcQ8xa6CGUhVXRhGKunzIPsoCAcNdYd8Dsf32jM=; b=FropgYyOzUUWMfICB19cP6PG0EOZqziobTZKgICsJZq/SeDR+yQIR2BOa6amLDHb3A GnvVS+MSlm+CpmQkwLnhYLTsM7HvGpjzaoiJsNjGn3p0v3gqhQbQUl3sMl+ev5DwUycE phMDXMs7Eis4k7n+Z2EMKmXMuenfosR9IR5KpAjJ1PLWW5yyWEngibHKVJozbx2U7CLW k+TimgKRrfcBfje/pPGm5llszsneLn+AUlWiHchbXxjkXLic4vFQIlz7fUdlCqECteKJ 5WfWuPV1q79pejXofx1hHlUNJtfcdEsFf20TcacNTA8+LKAHcOyfz0YVCL7fftANJek+ X2aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cnRk6WTC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx10-20020a17090afd8a00b0025323913ae0si150799pjb.179.2023.05.16.15.18.35; Tue, 16 May 2023 15:18:49 -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=@gmail.com header.s=20221208 header.b=cnRk6WTC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229595AbjEPWNW (ORCPT + 99 others); Tue, 16 May 2023 18:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjEPWNV (ORCPT ); Tue, 16 May 2023 18:13:21 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A65446B0; Tue, 16 May 2023 15:13:19 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-24ded4b33d7so104696a91.3; Tue, 16 May 2023 15:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684275199; x=1686867199; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=deLfvcQ8xa6CGUhVXRhGKunzIPsoCAcNdYd8Dsf32jM=; b=cnRk6WTCmn7+02bJP06xojBUtFVAapIW8EBusy6jRtOAT6EtdBpWwOJR9b8slQU26J u4Yl3zSl5LPNX/vA6TQzHKcc/tM4bvGcbV9rpX9voRSJg5Bxnzu5MJI5E2tRZ4mlV8jZ qkV6PJETsXUiWE3ZcyAcKKhj99G/D/723PIUstPKQqT8RfuY9vaP7KecxQqG/DMQMoqY Sc+p7lP19ygaZutb+W100Trgktn7r9ziYcwCliq5SQfLQW7pGj4uB3BO1VGbDePkterP oTpTymNr/8vayPrlGXiQAKkZUNa+GqgeWwUk2UixHygCYFdpNRQ5K+fk1dQikQ7yR8nS 3Zuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684275199; x=1686867199; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=deLfvcQ8xa6CGUhVXRhGKunzIPsoCAcNdYd8Dsf32jM=; b=Nk2y9jI0bhmjCiozdsbeU+rVWg4Y7MbW8tnHtb0545O1GsVTYtLKdTXivLr50gPy0O 0zT7SrKKifPLnW/JXCrvfGoG7oBWe9HQhasESpwGGi6b/4fTyTNL8NjVAv0qMOcsWVW6 XLHj9THnp3GZ023x1JTxb33GqlTrPTCD3jOCa2RvtLXWU6rNx+I8jZm2BJu5InKNyT6S 05KAngrxkGi43uxo2qtOo/eogVIWhYThT6s77njtTtUqFrFVwtMnnEGtMB+eAV3ciJX0 R+TGoW49foByTC83vFk/H1P6B/GKpaB94uKD6Uijd8HwF3F+digN2zdxSbQ6t0lT/TLt MS5A== X-Gm-Message-State: AC+VfDw4icWABkuGmyzJi1Tpj0wEvtMZa0mFWR6FIf4CKrz/AcwHIZgq ipAbVLHaJNy8scAAt5Ongk5UbGUjEa+TdQrF6qIGuEQytGb+K6qm X-Received: by 2002:a17:90a:b297:b0:24d:ff56:f8c1 with SMTP id c23-20020a17090ab29700b0024dff56f8c1mr39160380pjr.13.1684275198705; Tue, 16 May 2023 15:13:18 -0700 (PDT) MIME-Version: 1.0 References: <023f6cf9-0f08-f27e-d203-5ff78faf110f@linaro.org> In-Reply-To: <023f6cf9-0f08-f27e-d203-5ff78faf110f@linaro.org> From: Paulo Pavacic Date: Wed, 17 May 2023 00:13:06 +0200 Message-ID: Subject: Re: [PATCH v2] dt-bindings: display: panel: add panel-mipi-dsi-bringup To: Krzysztof Kozlowski Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, neil.armstrong@linaro.org, sam@ravnborg.org, airlied@gmail.com, robh+dt@kernel.org, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Hello, thank you for your time to review this patch and sorry for not addressing all of the concerns, it was done unintentionally. This is my first contribution to the Linux kernel and it is quite a process. I have run those two scripts and haven't received any errors I have latest master cloned so I will check what I did wrong. The thing I would like to get approval on before I try anything else is the name 'panel-mipi-dsi-bringup': > Still wrong filename. You did not respond to my previous comments, so I don't really understand what's this. > > Judging by compatible, this should be fannal,c3004.yaml > > If not, explain please. > > Missing user of the bindings - driver or DTS. Please sent patches togethe= r as patchset. I wasn't sure how to name it and this name seemed fit. I'm not sure how to be concise about this, but here is the full story as to why I have done that: I got a task to enable panel for which working driver wasn't available. I have started testing raydium driver and modifying parts of it until I got it working. Driver was modified quite a lot, new functions, macros and structures were added which resulted in a new driver. Therefore I have made a simple driver which I have submitted for a review which will probably be rejected now due tomany reasons I have noticed after sending it: https://lore.kernel.org/lkml/CAO9szn03msW6pu37Zws5EaFGL10rjp9ugPdCuDvOPuQRU= 72gVQ@mail.gmail.com/T/ While talking with manufacturers of the panel I have figured out that they aren't that familiar with the Linux kernel. They had previously only enabled it on bare metal (PLA?) and provided me with the initialization sequences. Initialization sequences are hex values sent over MIPI DSI to initialize panel controller. Initialization sequences sometimes also require delays after certain commands and for different panels it can be very different. I believe I have simplified it so that someone can follow comments inside of the driver and try to enable mipi dsi panel by copy pasting initialization code from bare metal system and doing minor modifications. Since I have targeted this at people who need to enable their panels for the first time name seemed okay. I thought that since there is panel-simple.yml that panel-mipi-dsi-bringup.yml would be acceptable name. Best regards, Paulo uto, 16. svi 2023. u 17:57 Krzysztof Kozlowski napisao je: > > On 16/05/2023 15:09, Paulo Pava=C4=8Di=C4=87 wrote: > > Add dt-bindings documentation for panel-mipi-dsi-bringup which currentl= y > > supports fannal,c3004 panel. Also added fannal to vendor-prefixes. > > Thank you for your patch. There is something to discuss/improve. > > > > > v2 changelog: > > Please put changelog after --- > > Missing user of the bindings - driver or DTS. Please sent patches > together as patchset. > > > > > - revised driver title, now describes purpose > > - revised description, now describes hw > > - revised maintainers, now has only 1 mail > > - removed diacritics from commit/commit author > > - properties/compatible is now enum > > - compatible using only lowercase > > - revised dts example > > - modified MAINTAINERS in this commit (instead of driver commit) > > - dt_bindings_check checked yml > > - checkpatch warning fixed > > > > Signed-off-by: Paulo Pavacic > > --- > > .../display/panel/panel-mipi-dsi-bringup.yaml | 54 +++++++++++++++++++ > > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > > MAINTAINERS | 6 +++ > > 3 files changed, 62 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-bringup.= yaml > > Still wrong filename. You did not respond to my previous comments, so I > don't really understand what's this. > > Judging by compatible, this should be fannal,c3004.yaml > > If not, explain please. > > > > > diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi= -dsi-bringup.yaml > > b/Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-bringu= p.yaml > > new file mode 100644 > > index 000000000000..c9e2b545657e > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-br= ingup.yaml > > @@ -0,0 +1,54 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/panel/panel-mipi-dsi-bringu= p.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MIPI DSI Bringup Panel Porting Bindings > > Drop Bindings. I don't understand what is "Porting" in the terms of > hardware. If it these are bindings for Panel, please write here proper > hardware. > > > + > > +description: | > > + MIPI DSI Bringup Panel porting bindings to be used for a collection = of panels > > I have no clue what is "Bringup panel". Is it technical term for some > type of panels? > > > + from different manufacturers which don't require backlight control f= rom the > > + driver and have a single reset pin which is required to be passed as= an > > + argument. > > Drop "driver" > > > + > > +maintainers: > > + - Paulo Pavacic > > + > > +allOf: > > + - $ref: panel-common.yaml# > > + > > +properties: > > + > > Drop blank line. > > > + compatible: > > + enum: > > + # compatible must be listed in alphabetical order, ordered by co= mpatible. > > + # The description in the comment is mandatory for each compatibl= e. > > Drop above comment. > > > + > > + # Fannal 480x800 panel > > + - fannal,c3004 > > + > > + reg: true > > + reset-gpios: true > > + > > +required: > > + - compatible > > + - reg > > + - reset-gpios > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + //example on IMX8MM where GPIO pin 9 is used as a reset pin > > This is a friendly reminder during the review process. > > It seems my previous comments were not fully addressed. Maybe my > feedback got lost between the quotes, maybe you just forgot to apply it. > Please go back to the previous discussion and either implement all > requested changes or keep discussing them. > > Thank you. > > I asked to drop the comment. > > > + mipi_dsi@32e10000 { > > dsi { > > There is no way it was correct in current form. > > It does not look like you tested the bindings, at least after quick > look. Please run `make dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > Maybe you need to update your dtschema and yamllint. > > > + panel@0 { > > + compatible =3D "fannal,c3004"; > > + reg =3D <0>; > > + pinctrl-0 =3D <&pinctrl_mipi_dsi_rst>; > > + pinctrl-names =3D "default"; > > + reset-gpios =3D <&gpio1 9 GPIO_ACTIVE_LOW>; > > + }; > > + }; > > +... > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml > > b/Documentation/devicetree/bindings/vendor-prefixes.yaml > > index 82d39ab0231b..f962750f630a 100644 > > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml > > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml > > @@ -462,6 +462,8 @@ patternProperties: > > description: Facebook > > "^fairphone,.*": > > description: Fairphone B.V. > > + "^fannal,.*": > > + description: Fannal Electronics Co., Ltd > > "^faraday,.*": > > description: Faraday Technology Corporation > > "^fastrax,.*": > > diff --git a/MAINTAINERS b/MAINTAINERS > > index e0ad886d3163..46f988ee60bd 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -6566,6 +6566,12 @@ T: git git://anongit.freedesktop.org/drm/drm-= misc > > F: Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-s= pi.yaml > > F: drivers/gpu/drm/tiny/panel-mipi-dbi.c > > > > +DRM DRIVER FOR MIPI DSI BRINGUP > > +M: Paulo Pavacic > > +S: Maintained > > +C: mipi-dsi-bringup:matrix.org > > Missing protocol. See explanation of C: entry at the beginning. > > > +F: Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-b= ringup.yaml > > + > > DRM DRIVER FOR MSM ADRENO GPU > > M: Rob Clark > > M: Abhinav Kumar > > Best regards, > Krzysztof > --=20 Lijep pozdrav, Paulo