Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3924641rwa; Tue, 23 Aug 2022 12:37:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Lb/JWsNiphQJqxy3gwzcCCRZ+7kaCRyhG8+Si5p+hvlzjUBiV4OGXAFR+n+06NfVQhJDf X-Received: by 2002:a17:907:868a:b0:73d:6ec5:82bb with SMTP id qa10-20020a170907868a00b0073d6ec582bbmr718569ejc.225.1661283434609; Tue, 23 Aug 2022 12:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661283434; cv=none; d=google.com; s=arc-20160816; b=uiYjHBvAcVciL2PUbzAK7HGfa0CE0Zx4BE1VS8QwFrO+I6DsrrsrQk+uvkEqz2Q9+i /MvjNqejO3XGWUPHFPwY4YSgXU5MJRe7BjtWJlhYAhzKEAVtHnPCnJbhGP4PbJx6dd2d 3hdEyCvYIYd2j2ayjV58+FSmWegs38RvPiZeTEUGzdzoyuKFC8C/2Aw7iJ8cAfhqoxHj 5gSX4q6jsfxT1BdfWhbitmGExGfTIcxcxF8ezS7nnSJEPCjYpRTpUuN0E116je2jHapf B/hfa97unO+oBQPwSST0IXuZ6j6qzr0D4bBvavP5FLlrcLSZ5ERye8gSMgLeY7b4D7J6 8MoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hl2ZhT5jYud6nqmuitdZrPDQAyGkFVueC+KbleXIJi0=; b=w2AWUNBIYXLmT3Wq+mWreDLZ0Ze/HZhfy21vlE73JCZDkMqM7GaUldmZ1RrERi4fZF 4vhduESMT1fZnvrUFR7K4jrtcSWVnAiKS6BiepASoDbRqWs7Lf0YBVe1DdLmnqEJ8X8S SU6+Z2N6CYVmyleBA7CYe9r8e9zDMm1kbwAlXMvOK6zglDIUP+x3DyUdA3XAU1pMjdRR Wb4oHNGar6sJbRCC1ieN+vAknO722hXl2BXHXMxAOY8Odda2qW3hOV8HWEAMK54sG35v JTn1Aci3kiIqWRk0XA+sQPJBU7zgse4VQ5z6ueFojUMgqvRkamTAAInhB8WCP5skFzfW 5kkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JrIa1OFD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt5-20020a170907728500b00730ac298aa9si494793ejc.783.2022.08.23.12.36.48; Tue, 23 Aug 2022 12:37:14 -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=@gmail.com header.s=20210112 header.b=JrIa1OFD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232086AbiHWTcQ (ORCPT + 99 others); Tue, 23 Aug 2022 15:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231258AbiHWTbx (ORCPT ); Tue, 23 Aug 2022 15:31:53 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA8F8501B4; Tue, 23 Aug 2022 11:23:25 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id f4so10939612qkl.7; Tue, 23 Aug 2022 11:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=hl2ZhT5jYud6nqmuitdZrPDQAyGkFVueC+KbleXIJi0=; b=JrIa1OFDqt41Da0UO3IcnulL7dkdWXnYr6hnZMzWYSbcrkSN7ou30SIEnzMbJrKsY6 u5CuHohXigZbEbyhpYK9JlS6swj+dpVrb1cli96GwuysoJtnaf2+65TX34uEdUsOtCoN Fr6Njl3SuprVW+ahKp2U4qoTQ3hDUR702g2c1SyBlYjS9leEBj6OQiQj0QI40xwIp8pV juISk+iYdvTEfJSIedYrRpGdJbMj8Zp6RupnPX6dBLSeTZSa1DM96OsTPNrOMaxdFA9J 8dbyE9d9W5uHSlC468z302NWFPX5zLLvxWhAtaTmnaK2pV/VKA28fCze7L4vEn2F+6jT 7DYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=hl2ZhT5jYud6nqmuitdZrPDQAyGkFVueC+KbleXIJi0=; b=iwSt0Q1Z3B2nElEaomzGS0zsLBw9LmjEal8PNXk0akSMFaMLULx4gFZVi70w+9xDMB Nu4gaWpml0i1DKUhjsu1BD/Iiw0yjuCbvH4ersHr8nJC4oBpyqlzI6YuMMybZuLbsxLF bbzD0XITSVQGdWjwMv5ckZrsz5WJVAYCIDPeEYUOph23/P+q5azWZezb61riBMH0NvkB xCoeYfzpdwO+RZwPffBEVrNL9/ljteeUPkAdl1yZF+aDDaucu2JhNQ9hkihshkUGuF6r 2O6XDAl+RsXv3wU8HT0JmllJvHHj3K+b/2uSg6qdpl8mr623M2s6i4aCq8JYCubagJlA ublw== X-Gm-Message-State: ACgBeo0UzFEKZF5TuxFS7b5rPdA2diOO+KgHbXz+aNPl8VECl9MVY0uI gyC2x2rmXQJQMX+wMgaqtDmiznFz0w5kd/GVwTQ= X-Received: by 2002:a37:27c1:0:b0:6bb:41b5:2d89 with SMTP id n184-20020a3727c1000000b006bb41b52d89mr17033459qkn.679.1661279004133; Tue, 23 Aug 2022 11:23:24 -0700 (PDT) MIME-Version: 1.0 References: <20220823145649.3118479-7-robh@kernel.org> In-Reply-To: <20220823145649.3118479-7-robh@kernel.org> From: Robert Marko Date: Tue, 23 Aug 2022 20:23:13 +0200 Message-ID: Subject: Re: [PATCH] regulator: dt-bindings: Add missing (unevaluated|additional)Properties on child nodes To: Rob Herring Cc: Support Opensource , Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Javier Martinez Canillas , Matthias Brugger , Andy Gross , Bjorn Andersson , Konrad Dybcio , Adam Ward , Hsin-Hsiung Wang , Sumit Semwal , ChiYuan Huang , Matti Vaittinen , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 On Tue, 23 Aug 2022 at 16:57, Rob Herring wrote: > > In order to ensure only documented properties are present, node schemas > must have unevaluatedProperties or additionalProperties set to false > (typically). > > Signed-off-by: Rob Herring > --- > .../bindings/regulator/dlg,da9121.yaml | 1 + > .../bindings/regulator/maxim,max77802.yaml | 1 + > .../bindings/regulator/maxim,max8997.yaml | 1 + > .../bindings/regulator/mt6315-regulator.yaml | 1 + > .../bindings/regulator/qcom,spmi-regulator.yaml | 1 + > .../regulator/qcom-labibb-regulator.yaml | 16 ++++++++++++++++ > .../regulator/richtek,rt4801-regulator.yaml | 1 + > .../regulator/rohm,bd71815-regulator.yaml | 1 + > 8 files changed, 23 insertions(+) > > diff --git a/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml b/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml > index 24ace6e1e5ec..63e1161a87de 100644 > --- a/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml > +++ b/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml > @@ -83,6 +83,7 @@ properties: > > regulators: > type: object > + additionalProperties: false > description: | > List of regulators provided by the device > > diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml b/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml > index 236348c4710c..71138c611b6c 100644 > --- a/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml > +++ b/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml > @@ -79,6 +79,7 @@ patternProperties: > patternProperties: > regulator-state-(standby|mem|disk): > type: object > + additionalProperties: true > properties: > regulator-mode: false > > diff --git a/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml b/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml > index 4321f061a7f6..2b266ea43716 100644 > --- a/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml > +++ b/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml > @@ -111,6 +111,7 @@ properties: > > regulators: > type: object > + additionalProperties: false > description: > List of child nodes that specify the regulators. > > diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml > index 37402c370fbb..364b58730be2 100644 > --- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml > @@ -29,6 +29,7 @@ properties: > "^vbuck[1-4]$": > type: object > $ref: "regulator.yaml#" > + unevaluatedProperties: false > > properties: > regulator-compatible: > diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml > index 8b7c4af4b551..3266cd0c580f 100644 > --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml > @@ -35,6 +35,7 @@ patternProperties: > description: List of regulators and its properties > type: object > $ref: regulator.yaml# > + unevaluatedProperties: false > > properties: > qcom,ocp-max-retries: > diff --git a/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml > index 1ddc1efd19e2..f97b8083678f 100644 > --- a/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml > @@ -20,6 +20,7 @@ properties: > > lab: > type: object > + additionalProperties: false > > properties: > qcom,soft-start-us: > @@ -33,11 +34,19 @@ properties: > description: > Short-circuit and over-current interrupts for lab. > > + interrupt-names: > + minItems: 1 > + items: > + - const: sc-err > + - const: ocp > + > required: > - interrupts > + - interrupt-names > > ibb: > type: object > + additionalProperties: false > > properties: > qcom,discharge-resistor-kohms: > @@ -52,8 +61,15 @@ properties: > description: > Short-circuit and over-current interrupts for ibb. > > + interrupt-names: > + minItems: 1 > + items: > + - const: sc-err > + - const: ocp > + > required: > - interrupts > + - interrupt-names > > required: > - compatible > diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml > index 091150c4e579..4a8a221bc902 100644 > --- a/Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml > @@ -42,6 +42,7 @@ patternProperties: > "^DSV(P|N)$": > type: object > $ref: regulator.yaml# > + unevaluatedProperties: false > description: > Properties for single display bias regulator. > > diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml b/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml > index 7d0adb74a396..d61e8675f067 100644 > --- a/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml > @@ -27,6 +27,7 @@ properties: > description: > properties for wled regulator > $ref: regulator.yaml# > + unevaluatedProperties: false > > properties: > regulator-name: > -- > 2.34.1 For qcom,spmi-regulator.yaml: Reviewed-by: Robert Marko >