Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6137858rdb; Mon, 18 Sep 2023 05:29:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+iscVPFFTD//bXtorzetR/xKP+2HRi51CGFfNltMnQ797SXSo560z18nhKhxcZOaLNTqY X-Received: by 2002:a17:90a:83:b0:274:a021:9383 with SMTP id a3-20020a17090a008300b00274a0219383mr8289627pja.17.1695040171467; Mon, 18 Sep 2023 05:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695040171; cv=none; d=google.com; s=arc-20160816; b=uXQUoeoBIXj5SsSaV9LDNv7tMfys8LE9DzE+CRaD4gX9BcntUuc8jYqrbEyWFXdOl0 z/RkDop2oCw0HdHSLWG056j4Zly5jr+1WVdBYgi5AISl3dTApEWZ46h9ACwpk2H5owJG KeYUCtR82rluk82aR+fVkol4BaTZhP5bW4cAFldGwS3ZNJqb4CLlJrFZGvB44mp51M43 NrmqfJStU0cv0jRmS4+8daI5L0MxNXkmh+jFf0q3/5MnFRksJU3tN9ePx2rlG0OD/lDo yfRrVTOPmBGdLNAfKJf5M/1XkMrVUMyqj4Cj52rKJRnDZc5kmZPEpsAg+FB6/YzGDlXI 76XA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sQmyBYN7YOoiZURhWmtepUPCuzSFlEdyM1qpHW9USwQ=; fh=+Cx8nnX2/sZUeHSpPizqQ0Cx/PwWE/qM81FLMiUV+18=; b=aeb+tew4WLoi52ESman6CPw8u97XLIY/MZe3xGTnFsLPOR9GpfokTtk3bs5cRI73hf osP/fxi66anWmMt74lRXGw2asfRzmqHhJR5d5pSjZ3fCgIlhkHpYVHjFYZrek/zFriIC texkUOTX6zN/Bmf9+1HXea/oDh4a8JlsEWe8kxSwt81cFqh8XLMhn1Nty8PS4ev8/7xg PRROiJdq5i7aHD/xeQOgjNqq0SOpsMF+Rtf0wwfl9TleexuxHGmCRmZBxNUtss1KkS0l BgzgVW3fXQaqcC+c1KqLWbaSeghCvCsNp8IW5HebhENOIR5evdPjhTa0kDPznt+OHQGh DQuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=j8kgdFNs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v20-20020a17090a899400b0026813cd5719si7811101pjn.128.2023.09.18.05.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 05:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=j8kgdFNs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0DBB280622AD; Sun, 17 Sep 2023 23:51:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236553AbjIRGuS (ORCPT + 99 others); Mon, 18 Sep 2023 02:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232571AbjIRGuH (ORCPT ); Mon, 18 Sep 2023 02:50:07 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468569F; Sun, 17 Sep 2023 23:50:00 -0700 (PDT) Received: from localhost (89-26-75-29.dyn.cablelink.at [89.26.75.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0203B66003B0; Mon, 18 Sep 2023 07:49:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695019797; bh=/fk3WgWVIYNC71tqjOyEDy5t6GDP5pCDuBwKWMnwgxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8kgdFNsDeMRL6vqcTTQWRS4ULKyBARTk6YDzIJGP0giAKjB77H8rH5FIkbfal5Lr m4qSH0C4uewsXm/CleX3j9mrtcuyNZ7Kh09gtuP0oVkZDTstRKcWyN8j1vCSdoIyJ4 cYN8W6nIJrOlyUQcyHVEc6SccOCFJFGCrNdMJ8htc95VcYYZSmxNtA/PD3WU2XkAFq 4AeJTjwplgQ92u/gkzWzl9LWIpuMx39KuwNqq16QRULcX955sCVeVB3npl1ZySq1Dl jIKotKXefBTLe0dLrwozioMgBz/jFmEOO6lOgnJPnhAjGY4X5p4GkGdItmtgVFCkJx 7Si/joxR7ImPg== Date: Mon, 18 Sep 2023 08:49:54 +0200 From: Sebastian Fricke To: Krzysztof Kozlowski Cc: Mauro Carvalho Chehab , Nas Chung , Sascha Hauer , Fabio Estevam , Rob Herring , Shawn Guo , Philipp Zabel , Jackson Lee , Krzysztof Kozlowski , NXP Linux Team , Hans Verkuil , Conor Dooley , Pengutronix Kernel Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Robert Beckett , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Nicolas Dufresne Subject: Re: [PATCH v12 6/7] dt-bindings: media: wave5: add yaml devicetree bindings Message-ID: <20230918064954.iuomunsckduawiay@basti-XPS-13-9310> References: <20230915-wave5_v12_on_media_master-v12-0-92fc66cd685d@collabora.com> <20230915-wave5_v12_on_media_master-v12-6-92fc66cd685d@collabora.com> <30384744-94d7-2675-63ad-d8531e3156d1@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30384744-94d7-2675-63ad-d8531e3156d1@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 17 Sep 2023 23:51:22 -0700 (PDT) Hey Krzysztof, thanks for your review. On 17.09.2023 09:56, Krzysztof Kozlowski wrote: >On 15/09/2023 23:11, Sebastian Fricke wrote: >> From: Robert Beckett >> >> Add bindings for the wave5 chips&media codec driver >> >> Signed-off-by: Robert Beckett >> Signed-off-by: Dafna Hirschfeld >> Signed-off-by: Sebastian Fricke > >So this is v12 and still no tested? I have tested it, multiple times actually since V11. (For some reason that indentation issue slipped by me though ...) If you mean the tested by tag, the patch was completely unnoticed until v10 by the community, which was partially because me and the previous commiters didn't use the right recipients for this patch. So from that point of view this is more like v2. > >A nit, subject: drop second/last, redundant "yaml devicetree indings". >The "dt-bindings" prefix is already stating that these are bindings. >Basically three words bringing zero information. Okay so: `dt-bindings: media: wave5: add devicetree` ? > >> --- >> .../devicetree/bindings/media/cnm,wave5.yaml | 66 ++++++++++++++++++++++ >> 1 file changed, 66 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/media/cnm,wave5.yaml b/Documentation/devicetree/bindings/media/cnm,wave5.yaml >> new file mode 100644 >> index 000000000000..b8f383621805 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/media/cnm,wave5.yaml >> @@ -0,0 +1,66 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/media/cnm,wave5.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Chips&Media Wave 5 Series multi-standard codec IP >> + >> +maintainers: >> + - Nas Chung >> + - Jackson Lee >> + >> +description: |- > >Do not need '|-' unless you need to preserve formatting. Ack. > >> + The Chips&Media WAVE codec IP is a multi format video encoder/decoder >> + >> +properties: >> + compatible: >> + enum: >> + - cnm,cm521c-vpu > >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. Here my testing output: ``` ❯ make dt_binding_check DT_SCHEMA_FILES=cnm,wave5.yaml HOSTCC scripts/basic/fixdep HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/dtc LINT Documentation/devicetree/bindings ./Documentation/devicetree/bindings/media/cnm,wave5.yaml:19:9: [warning] wrong indentation: expected 6 but found 8 (indentation) CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTEX Documentation/devicetree/bindings/media/cnm,wave5.example.dts DTC_CHK Documentation/devicetree/bindings/media/cnm,wave5.example.dtb ``` Again sorry about missing the indentation warning, but nothing else was highlighted. Both dtschema and yamllint seem to be up-to-date: ``` ❯ python3 -m pip --version pip 23.2.1 from /home/basti/.local/lib/python3.8/site-packages/pip (python 3.8) ❯ pip3 show dtschema Name: dtschema Version: 2023.7 Summary: DeviceTree validation schema and tools Home-page: https://github.com/devicetree-org/dt-schema Author: Rob Herring Author-email: robh@kernel.org License: BSD Location: /home/basti/.local/lib/python3.8/site-packages Requires: jsonschema, pylibfdt, rfc3987, ruamel.yaml Required-by: ❯ pip3 show yamllint Name: yamllint Version: 1.32.0 Summary: A linter for YAML files. Home-page: Author: Adrien Vergé Author-email: License: GPL-3.0-only Location: /home/basti/.local/lib/python3.8/site-packages Requires: pathspec, pyyaml Required-by: ``` > >Missing blank line Ack, will add that. > >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: VCODEC clock >> + >> + clock-names: >> + items: >> + - const: vcodec > >Drop clock-names, not really useful for one entry. Ack > >> + >> + interrupts: >> + maxItems: 1 >> + >> + power-domains: >> + maxItems: 1 >> + >> + resets: >> + maxItems: 1 >> + >> + sram: >> + $ref: /schemas/types.yaml#/definitions/phandle >> + > >Drop blank line Ack > >> + description: >> + The VPU uses the SRAM to store some of the reference data instead of >> + storing it on DMA memory. It is mainly used for the purpose of reducing >> + bandwidth. >> + >> +required: >> + - compatible >> + - reg >> + - interrupts > >Keep the same order as listed in properties: Ack > >> + - clocks >> + - clock-names >> + >> +additionalProperties: false >> + > >Best regards, >Krzysztof Sincerely, Sebastian > >_______________________________________________ >Kernel mailing list -- kernel@mailman.collabora.com >To unsubscribe send an email to kernel-leave@mailman.collabora.com