Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1345234imw; Sat, 9 Jul 2022 02:31:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubw+lacj3YiHDbaFnk/0euTuA22RFHgMAs4JLaYT6/0JwjMdu1YqA3otAZJMwRLlTn5jaE X-Received: by 2002:a63:fe13:0:b0:412:1e19:4f9c with SMTP id p19-20020a63fe13000000b004121e194f9cmr7127131pgh.314.1657359089593; Sat, 09 Jul 2022 02:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657359089; cv=none; d=google.com; s=arc-20160816; b=sMtcIx3OApP8/5HidqKs61QFrn+CANSoJ5imJMZK7Yld3mXnh+Hs2nXgPs7DBkOseh X68RUYaa+wSuyb+wssTDtW5U3oNZNmO/CguVZNW8ZhgPM88reBKCwF1eUj/B8HCziJjJ KTpe+027KC6n+Fp3TMPNdQHgl+MzxxGJ2ODZehcGd8BZnI4AXImkKPKT+MKD0pC9ZjX1 JD+8iHWrJWZkxJd9dcqwWNfSQNSsk+E/9Ulys1y60InMNei3UJIVluMdkguzcITPenxw xPGZtbcPAF58GAmDiEj7BJGgFli2ZgFhRHd0b/YCY981gjRkOOGYsafZXdLms+97tPaY anVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=bQao0uhcvp+1LML5tn0jIDi+JBcfo6KzruckDKC3200=; b=Ku1sfSvoz7l83uaOllDu0MCPQjl/NV8aUBeu0mIofMYgCTue8Iux8I29qZlz+pjM8E VI+pFhNq/sEJX6DX3BcUkidwShsQuL5+mlqlEmViagLyPTqxqpnVruFYNt4jzq2fXwxc RsPhF/WtTJMWMi4mxCuVhW4pNPVvKOloELCfrjAcGXQ1v+zKO/GzbZjYfdKDMy32eVyu EZwkFsr3bqvmVO1NX16uZNTVJPt2efBH4V3O7+bszBNTmsf6qMiXP+P+TIrlUlw7SbZj n1e2vGF3MA1HDFPPY4QbZHJ1sAGUfmSaDcUVqwTmeAK+nWnFdH0XO06zVFJp1dKHbxRv +peA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=Zx7kpXnd; dkim=neutral (no key) header.i=@ravnborg.org header.b=iLvft4rl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ix21-20020a170902f81500b0016bf7f945eesi1580335plb.371.2022.07.09.02.31.14; Sat, 09 Jul 2022 02:31:29 -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=@ravnborg.org header.s=rsa1 header.b=Zx7kpXnd; dkim=neutral (no key) header.i=@ravnborg.org header.b=iLvft4rl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229515AbiGIJHN (ORCPT + 99 others); Sat, 9 Jul 2022 05:07:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiGIJHL (ORCPT ); Sat, 9 Jul 2022 05:07:11 -0400 Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com (mailrelay3-1.pub.mailoutpod1-cph3.one.com [46.30.210.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C57AC72 for ; Sat, 9 Jul 2022 02:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=bQao0uhcvp+1LML5tn0jIDi+JBcfo6KzruckDKC3200=; b=Zx7kpXndr5SVSWcRnKMCgbXGc41CeI+YBqFqw9lfB9KyhGx7kx6LILIip5cIKSq66lnHckwdThCH6 EvkXHVzjn4AWSTT8FaGwVS/OK3j1w9BazJy/bg9s5aosL293b1f4BzssBH0bvj4D3hLzQiPXt2YYhf U3nRlwzNTuOvRMCG47AqXDryAjBS2v0B1rlKkgplcw9xa0cPxistjxJrO0ATmUPVOOck0PfEyAm/de Gy8X5kUDOipjR5Sf2i/DoCaoBPOFed4YxKx0+ikFATPhp0Kcv20pK581tYO2ztkqTLTCMJbfDwGzti v4E0foZa6DWsS7Wefq2UC7JaRzVLMGg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=bQao0uhcvp+1LML5tn0jIDi+JBcfo6KzruckDKC3200=; b=iLvft4rlxwG6L3oaWSPOLOufdauTPHbYccYyEMqEW2sMLdLHTEJovzFCWbf0h//uiGB67ygy/dCmC 5NjgJFQCg== X-HalOne-Cookie: d1d041af6dd76b0adfe09725c6a117cc2310e10a X-HalOne-ID: 811e08aa-ff66-11ec-be7e-d0431ea8bb03 Received: from mailproxy3.cst.dirpod3-cph3.one.com (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 811e08aa-ff66-11ec-be7e-d0431ea8bb03; Sat, 09 Jul 2022 09:07:06 +0000 (UTC) Date: Sat, 9 Jul 2022 11:07:04 +0200 From: Sam Ravnborg To: MollySophia Cc: Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: display: panel: Add Novatek NT35596S panel bindings Message-ID: References: <20220708021824.9167-1-mollysophia379@gmail.com> <20220708021824.9167-2-mollysophia379@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220708021824.9167-2-mollysophia379@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,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 Molly, On Fri, Jul 08, 2022 at 10:18:24AM +0800, MollySophia wrote: > Add documentation for "novatek,nt35596s" panel. As a general note, we cannot apply a driver without the binding. So this patch should be the first in the series. Not a big deal, but it makes it easier on the committer later. A few comments below. Sam > > Signed-off-by: MollySophia > --- > .../display/panel/novatek,nt35596s.yaml | 88 +++++++++++++++++++ > 1 file changed, 88 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/novatek,nt35596s.yaml > > diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt35596s.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt35596s.yaml > new file mode 100644 > index 000000000000..937b194a6f18 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt35596s.yaml > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/panel/novatek,nt35596s.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Novatek NT35596S based DSI display Panels > + > +maintainers: > + - Molly Sophia > + > +description: | > + The nt35596s IC from Novatek is a generic DSI Panel IC used to drive dsi > + panels. > + Right now, support is added only for a JDI FHD+ LCD display panel with a > + resolution of 1080x2160. It is a video mode DSI panel. > + > +allOf: > + - $ref: panel-common.yaml# > + > +properties: > + compatible: > + items: > + - enum: > + - jdi,fhd-nt35596s > + - const: novatek,nt35596s > + description: This indicates the panel manufacturer of the panel that is > + in turn using the NT35596S panel driver. This compatible string > + determines how the NT35596S panel driver is configured for the indicated > + panel. The novatek,nt35596s compatible shall always be provided as a fallback. > + > + reset-gpios: > + maxItems: 1 > + description: phandle of gpio for reset line - This should be 8mA, gpio > + can be configured using mux, pinctrl, pinctrl-names (active high) reset-gpios is part of panel-common and there is no need to describe it here. The description, which looks like a copy from another binding, does not really tell anything that is specific for this HW. So replace it with a reset-gpios: true later in the binding would be better. > + > + vddi0-supply: > + description: phandle of the regulator that provides the supply voltage > + Power IC supply Please drop the "phandle of the" part. This is implicit and does not provide any extra info on the actual HW. This comments applies for all *-supply. > + > + vddpos-supply: > + description: phandle of the positive boost supply regulator > + > + vddneg-supply: > + description: phandle of the negative boost supply regulator > + > + reg: true > + port: true > + backlight: true > + > +required: > + - compatible > + - reg > + - vddi0-supply > + - vddpos-supply > + - vddneg-supply > + - reset-gpios > + - port > + > +unevaluatedProperties: false Use: additionalProperties: false This will catch if the DT file contains any properties that is not mentioned here. The use of unevaluatedProperties in the file you copied from looks wrong. > + > +examples: > + - |+ No need for the + sign here. > + #include > + > + dsi0 { dsi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + panel@0 { > + compatible = "jdi,fhd-nt35596s", "novatek,nt35596s"; > + reg = <0>; > + vddi0-supply = <&vreg_l14a_1p88>; > + vddpos-supply = <&lab>; > + vddneg-supply = <&ibb>; > + > + backlight = <&pmi8998_wled>; > + reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; > + > + port { > + jdi_nt35596s_in_0: endpoint { > + remote-endpoint = <&dsi0_out>; > + }; > + }; > + }; > + }; > + > +... > -- > 2.37.0