Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1935956rdh; Tue, 26 Sep 2023 07:47:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkhwRFf3NuvWZKaPpzBP5D1HOcu0koH516IQ+Nhwvkn8A994TgqTpSRpR2wTPVCRU+aqN8 X-Received: by 2002:a17:902:f54d:b0:1bb:e74b:39ff with SMTP id h13-20020a170902f54d00b001bbe74b39ffmr9142418plf.0.1695739672135; Tue, 26 Sep 2023 07:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695739672; cv=none; d=google.com; s=arc-20160816; b=dkFsfCNtWts7Dx261bYzIRVM2HJGsjszpbEj0mTDzwwEdtnCpxMwF4p9as1xmVsJoy NTj8Ez5g3/hAVpMWTfNZxLTqHgbhOaI6NAEkpHCYWgvB1pwv1VP8Kpr6tHH2C3V6iKoh 2nLhZhui/gkaHja60S0XeFVFhm4XTiyBa/AJhIHVbOfoviejDg+QVJDMfe/biSsTEcFH POzV9NYQPA8otg200RmNir5NiTG9YKjXNtyLK/7OaDOYsA2HQky2n4xHvSolb1vwYP9R frFHIoX9vCfMIyhhZxvtLwB5DPFy5+iVdsYv6fTcEny7eTrgeQa9n9SXoooImUPf0yUX azGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=ujWjVGuy4dT6unLLLWziSi5PLKzhpynPY9RTZBnxGwk=; fh=6WcWNMmGq03E8fgIoQeYGDwbAcswgMK7rEDQEtvtNO0=; b=UpPexQFBjVzi3WorO7lI4PYp3P7yY9BorRd5Rr6U1v5vxZY2u5JTpUdWiU93jpv6Qd k6fhhX2j2GhTCX3U6ywtjX6lfHF4oYLqLbj2pvy5ZoHNahq+mhjV0JmmTVRjvkAz71MU U19dnNQcLdhhNa/BDNCL87r3rLywxqPb64LTFVxTx4neVr68pYSVMih5cNIsthWcMgri hQyaidi8PpdPTnbWDJ0isFN6oJ+W7RzfOzpctWB5IFTE1bSnQd63Fettx4UotL9EDkqc wwd9jt4ui+JfES+dARmGFHnnIvETzcHl14bWLCtsRLl7TbT346c0W5dyMwtCjOoBP3E2 C5Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oIGO8IF3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y13-20020a17090322cd00b001c61b39cc9bsi5306891plg.170.2023.09.26.07.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 07:47:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oIGO8IF3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 40137803467C; Mon, 25 Sep 2023 23:16:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbjIZGQW (ORCPT + 99 others); Tue, 26 Sep 2023 02:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233707AbjIZGQV (ORCPT ); Tue, 26 Sep 2023 02:16:21 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34553B8; Mon, 25 Sep 2023 23:16:13 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id E4C8640002; Tue, 26 Sep 2023 06:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695708971; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ujWjVGuy4dT6unLLLWziSi5PLKzhpynPY9RTZBnxGwk=; b=oIGO8IF31DJJA2EGozaZKK2wlXz/swohWFBat1HvAudglHQA4x4gfzgF7oXHYynuEAs6CO mqUgtgucAH1exMSSkAv+EOEZ0c4NeVfOZlWIF3szEJo+9aMT119c2CPmaoMih9J8hX7EJp 2Pkg/zP427YLxkl6b4D2Nis7/eUV19HIimsagGaiCyrIeamOiYc+eNrC79Kqb5VqGuDae7 qkbb8UUbxndHfgymj9uehhZfmfyj/BKkC+W5XMWkwNIZzo8SONYG4Oqq/XKQZ+nbp5yufC 6vwKYX7BJulSOKEVgUXo8elNA23T8SeF1cnERnAlK1ZueLL/5puINDuXzlxgYg== Date: Tue, 26 Sep 2023 08:16:08 +0200 From: Herve Codina To: Rob Herring Cc: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Shenghao Ding , Kevin Lu , Baojun Xu , David Rau , Damien Horsley , Geert Uytterhoeven , Kuninori Morimoto , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] ASoC: dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas Message-ID: <20230926081608.2eea3919@bootlin.com> In-Reply-To: <20230925220947.2031536-1-robh@kernel.org> References: <20230925220947.2031536-1-robh@kernel.org> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 23:16:22 -0700 (PDT) On Mon, 25 Sep 2023 17:09:28 -0500 Rob Herring wrote: > Just as unevaluatedProperties or additionalProperties are required at > the top level of schemas, they should (and will) also be required for > child node schemas. That ensures only documented properties are > present for any node. > > Add unevaluatedProperties or additionalProperties as appropriate. > > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/sound/dialog,da7219.yaml | 1 + > Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml | 1 + > Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml | 1 + > 3 files changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/dialog,da7219.yaml b/Documentation/devicetree/bindings/sound/dialog,da7219.yaml > index eb7d219e2c86..19137abdba3e 100644 > --- a/Documentation/devicetree/bindings/sound/dialog,da7219.yaml > +++ b/Documentation/devicetree/bindings/sound/dialog,da7219.yaml > @@ -89,6 +89,7 @@ properties: > > da7219_aad: > type: object > + additionalProperties: false > description: > Configuration of advanced accessory detection. > properties: > diff --git a/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml b/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml > index ff5cd9241941..b522ed7dcc51 100644 > --- a/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml > +++ b/Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml > @@ -33,6 +33,7 @@ patternProperties: > description: > A DAI managed by this controller > type: object > + additionalProperties: false > > properties: > reg: > diff --git a/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml b/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml > index b6a4360ab845..0b4f003989a4 100644 > --- a/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml > +++ b/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml > @@ -60,6 +60,7 @@ properties: > > ports: > $ref: audio-graph-port.yaml#/definitions/port-base > + unevaluatedProperties: false > properties: > port@0: > $ref: audio-graph-port.yaml# At least for sound/fsl,qmc-audio.yaml: Acked-by: Herve Codina Best regards, Hervé