Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1504257rdh; Mon, 25 Sep 2023 15:10:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3oxg6cg6dDuMT2SgGDhu9RHyymDs16k8ytoINu/VveFTX9Z1/xpH+3hpzRzj3acxyVYEe X-Received: by 2002:a17:902:d34c:b0:1c5:ed6e:2534 with SMTP id l12-20020a170902d34c00b001c5ed6e2534mr5841598plk.26.1695679809578; Mon, 25 Sep 2023 15:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695679809; cv=none; d=google.com; s=arc-20160816; b=MfuoIXRuuaJM2tA5WDT/TAPzd7uYsfte3q7ejBV1vodVhDeVBetEdTace9E7WbPVBp U15eMhrSVnXxV7JOHJJlJTfhrpWRZueXBVDeahd/GeIf9ZQmKYnQhJps57zmJG9ffq5G 8UD61xVTeOV2fqO0HX1+d2JQ2MeZIklcMliAGrPGWHMeIO/ZxA9gHiZ6dE2CslVKNZox RmsTUCDXIldL+dFNh6sceDQOK1peaQp/NsjLo/KzCmlWfAukWBYDTqeErc3OKtIxVrnX KRJMmJi3jHHk06xEsGZiv6i83+DimrxvW9KL4qLAZKjCyf39Q01sjT6XGTIbV+EOFxaz f9Rw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=S5D9xdsBlAEohAFykJd/Q64w5vJNpp7WH7T/0MlEdGI=; fh=wGDqLXXDUA38vpt104oPOMrSvQhGOJRUuKRkWixLQnQ=; b=GYiXcWbt1+obah8QSqx9dVZTjEjLFuyIzfWKIJNbcqRKjAwH8gpsIx70J7q+L+OKU4 atb+Ub9ulhSfG+Jq4W1D2l5UFKyaGLEGYVMrm+b4H8FvBrN/qZvF4yg945P+PQXRiOoc AMUnRcgQnKa8CxLM7ax2nzsjJuSvxsPnE6G7w2hjB5GArEu/Fv12I4BWegKpaPzFUt3O J08KM3jG+ORC7xXCJYYz7gSVFdrI/pUnC9ofv71XSHElVdGa88hCygeiUrGkQhWIipZl tbHyTPha0gJsTEGiiGKj3F1NsZGasHCnkdUrWrAM4yFt/T3gxLkIkNzETMmiMtHqoxgZ U64g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HKJjdNu7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u11-20020a170902e5cb00b001bdd35033f7si11705036plf.366.2023.09.25.15.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 15:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HKJjdNu7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1EFCC8266516; Mon, 25 Sep 2023 15:10:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbjIYWKG (ORCPT + 99 others); Mon, 25 Sep 2023 18:10:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230486AbjIYWKF (ORCPT ); Mon, 25 Sep 2023 18:10:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7EC107 for ; Mon, 25 Sep 2023 15:09:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04C8AC433C7; Mon, 25 Sep 2023 22:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695679798; bh=wrZGhwKs0rxrVrvNQeQFjjkktFc24Ckyd2CV5SBPQrA=; h=From:To:Cc:Subject:Date:From; b=HKJjdNu7I9LITZhQdye8D0M0nnFZYNtbr48LOBgybs4ESmzZ1jinSTTG0X5I3ipM2 amIUnjlHqMhCLW2TaN7r84iAgQKrw2MLIkSyYAj7WOTwnMPsFzSV9ga2tWRAR4/+/i svBCPoG48zk80LZfpx3zR9nCSFCnk850xTx2sor61/oeNn0IDUFHmI6n6kffFX91cO fuADG8CXuh/85ckjurBU2qnIrSLr8eZUh2zyH+c1H01fe+/QrMfHKGuyQWqc9jtQ5z wmOccTN4V+AkEuxjeRsOel1AM5GLLTRoKaaAHXpkT3wnhU1vIqFX2/RV91W9WoIzq0 XdRGDIkjlYfhg== Received: (nullmailer pid 2032130 invoked by uid 1000); Mon, 25 Sep 2023 22:09:56 -0000 From: Rob Herring To: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Herve Codina , Shenghao Ding , Kevin Lu , Baojun Xu , David Rau , Damien Horsley , Geert Uytterhoeven , Kuninori Morimoto Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] ASoC: dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas Date: Mon, 25 Sep 2023 17:09:28 -0500 Message-Id: <20230925220947.2031536-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 15:10:07 -0700 (PDT) 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# -- 2.40.1