Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp980414rwb; Wed, 7 Dec 2022 07:17:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ad0QVuqED4izJtSfyCna1zhPIUjylyoRvKGJJWEC55M+jbm3bQ4ajx8BTSNPzFFlg9Okn X-Received: by 2002:a17:90b:3706:b0:218:fb5c:a762 with SMTP id mg6-20020a17090b370600b00218fb5ca762mr66624763pjb.241.1670426257274; Wed, 07 Dec 2022 07:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670426257; cv=none; d=google.com; s=arc-20160816; b=GBWx7Bhd6HyNRSK1Wf2kKy4Fg7Q4dgZdH5YepzzIfs13AfB+22TdKYqO4AEAwBAuVs X4Jppi0FXbS09QeZ5qnCUpuOLja2HwmzH3tDld+30smuN18dDrz2CkIYakuCsaPohMRw 3lNnr2F4jkqaU4S7BnU/gM0Xs6PV0B3oxz9CZeUpNnH1ErOEVzVXAMLRWkJLcQdXFSel RazVeN7VBRdcDCt5yXiMQxJ/snySYeXjOMP+kOIaaQIthnw82J73F8OcW8VhHFPeQmIm hSTuizimczTQw3W1pUKkgXU3SCBneSdt/HgxJ1m6eDtwYXpqbflbQrgaiouDg+0RriWg E+9w== 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; bh=kAY+Ns+fkXwxWOUTvfqFDWkQ8IGGtbADgogVFPDLRAU=; b=fNGLoTGvFDdHogKoJHT3ItZLzs/nSrcVdWLVV/Z9QCCTp1o9myNiDUHvRgDrv1UvEO bWso0tTMhgJ49Y8X6bO3yjFyugXFv5Kc4hMkwwmrs8Cg7xdTwHOOayX0HKdRSwaBS7zg BC1X+zcr8Zqss3P7cK0oL1WPSxZoq8zQ1GoCtWqVi9QBCOhgdEnnzgwG/H79J5uRmtgx MWsQJAkNMykhax0656g2nj/OK+aj8TogasgBQuESGV/rqPrORBONN5LbgSH5VuH6PYx0 8oiekR1SlChNpSpAOhSJdsMX0WjgfrVxrQANI3sDizs+xcy7ado6I/V91CbhcSCcjafz kW6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZhVypiyi; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6302c6000000b00478fc0cb33bsi1223447pgc.210.2022.12.07.07.17.26; Wed, 07 Dec 2022 07:17:37 -0800 (PST) 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=@collabora.com header.s=mail header.b=ZhVypiyi; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiLGPJg (ORCPT + 77 others); Wed, 7 Dec 2022 10:09:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbiLGPJd (ORCPT ); Wed, 7 Dec 2022 10:09:33 -0500 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 2AC1A5BD63; Wed, 7 Dec 2022 07:09:30 -0800 (PST) Received: from localhost (89-26-75-29.goll.dyn.salzburg-online.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 7AF116602BB9; Wed, 7 Dec 2022 15:09:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1670425768; bh=4ObcAHwRV9dxMiI+YLG4qw8GWaJ1x1aWG49BDYqdCII=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZhVypiyiGCAUah9pISXuQOnBvkRc5wJnYPkU1ma0YI4PoRIeQ6GdQG03A76BCpv3D tvEi393RzUtwjyqGe6hAxVjLcF1I+qcHMakeN2hHWQNc0rN3w0fukJYALVAsiX42lE xot0c1btURasXWLlX8BZ5Qm6w+G/E9+psUXnptW1kwguLtEY/2RPI9gtlDVvM8XCs9 aGa5X3rN9Pkd3qM/zSXIMb+lU37DHNSMpLR4BW0TFaGU6qctpd5Q3+bTwSJTpwJF8a dWVGYDpiSr4LfOGyh8MFulAX5t3h8DLnLr9xY8zTBawjWLGt7czNph9x35B0PY5u4y w4hGB33sCYHuQ== Date: Wed, 7 Dec 2022 16:09:25 +0100 From: Sebastian Fricke To: Krzysztof Kozlowski Cc: linux-media@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , kernel@collabora.com, bob.beckett@collabora.com, hverkuil-cisco@xs4all.nl, nicolas.dufresne@collabora.com, nas.chung@chipsnmedia.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 5/6] dt-bindings: media: wave5: add yaml devicetree bindings Message-ID: <20221207150925.frotwpm3ukwwlnig@basti-XPS-13-9310> References: <20221207121350.66217-1-sebastian.fricke@collabora.com> <20221207121350.66217-6-sebastian.fricke@collabora.com> <48d60bd0-4de1-4a5e-eca1-1f8a9303cce0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <48d60bd0-4de1-4a5e-eca1-1f8a9303cce0@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 Hello Krzysztof, On 07.12.2022 13:31, Krzysztof Kozlowski wrote: >On 07/12/2022 13:13, 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 > >What's happening with this patch? Where is the changelog? The changelog is located in the cover letter. https://lore.kernel.org/linux-media/20221207121350.66217-1-sebastian.fricke@collabora.com/ >Why it is v11 and first time I see it? You actually replied to V10: https://lore.kernel.org/linux-media/20221023085341.s23qinjuw4qls3dn@basti-XPS-13-9310/ >And why it is v11 with basic mistakes and lack of testing?!? >I would assume that v11 was already seen and tested... Sorry I don't have a lot of experience with dt-bindings, thank you for highlighting the issues, I will correct them. And I forgot to build the documentation during my testing runs. I took over the patch set from another contributor and as no one complained about the dt-bindings for the last 10 versions, I concentrated my energy on other problems. > > >> --- >> .../devicetree/bindings/cnm,wave5.yml | 72 +++++++++++++++++++ >> 1 file changed, 72 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/cnm,wave5.yml > >Wrong directory. It wasn't here at all before, so I am really confused >how this could happen. Thanks for the highlight. I will move it to: Documentation/devicetree/bindings/media/cnm,wave5.yml > >Subject: drop redundant pieces: yaml, devicetree and bindings. I call it: dt-bindings: media: chips-media: add wave5 bindings in V12 Sincerely, Sebastian Fricke > > >> >> diff --git a/Documentation/devicetree/bindings/cnm,wave5.yml b/Documentation/devicetree/bindings/cnm,wave5.yml >> new file mode 100644 >> index 000000000000..01dddebb162e >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/cnm,wave5.yml >> @@ -0,0 +1,72 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/media/wave5.yaml# > >You clearly did not test them before sending. > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Chips&Media Wave 5 Series multi-standard codec IP >> + >> +maintainers: >> + - Nas Chung >> + - Robert Beckett >> + - Sebastian Fricke >> + >> +description: |- >> + The Chips&Media WAVE codec IP is a multi format video encoder/decoder >> + >> +properties: >> + compatible: >> + anyOf: > >Please start from example-schema or other recently approved bindings. No >anyOf. > >> + - items: > >No items... > >> + - enum: >> + - cnm,cm511-vpu >> + - cnm,cm517-vpu >> + - cnm,cm521-vpu >> + - cnm,cm521c-vpu >> + - cnm,cm521c-dual-vpu > >What's the difference between this and one above? > >> + - cnm,cm521e1-vpu >> + - cnm,cm537-vpu >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + minItems: 1 >> + maxItems: 4 > >This has to be specific. > >> + >> + clock-names: >> + minItems: 1 >> + maxItems: 4 > >You need to list the names. > >> + >> + interrupts: >> + maxItems: 1 >> + >> + power-domains: >> + maxItems: 1 >> + >> + resets: >> + maxItems: 1 >> + >> + sram: > >Missing vendor prefix. > >> + $ref: /schemas/types.yaml#/definitions/phandle >> + description: phandle pointing to the SRAM device node > >And what is it for? Why do you need SRAM? > >> + maxItems: 1 > >Drop > >> + >> +required: >> + - compatible >> + - reg >> + - interrupts >> + - clocks >> + - clock-names >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + vpu: video-codec@12345678 { >> + compatible = "cnm,cm521-vpu"; >> + reg = <0x12345678 0x1000>; >> + interrupts = <42>; >> + clocks = <&clks 42>; >> + clock-names = "vcodec"; >> + sram = <&sram>; >> + }; > >Best regards, >Krzysztof >