From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 950F5C001DE for ; Tue, 25 Jul 2023 14:45:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232263AbjGYOpu (ORCPT ); Tue, 25 Jul 2023 10:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbjGYOpi (ORCPT ); Tue, 25 Jul 2023 10:45:38 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CFD1B0 for ; Tue, 25 Jul 2023 07:45:37 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fddd4e942eso8261121e87.3 for ; Tue, 25 Jul 2023 07:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690296336; x=1690901136; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/kUiRi3u6N/MlZfNyxNPzUi1P0ixrcFS1M9c/d06CFs=; b=r/jjD9Z+xBB2xS48NeGdh1lL2g6bxa+UQFoL4wsbT9TAkzPJTyl5CcrinTlF1B3wBj Ow7mLUGvdnCJ1NCIMLbyDQFNbe164vq+9RVLRS/qUiDIKGC8dsG0yOSNR1+73kf1UnTu Q9EKuSz0aur+6UlWGC0O/EXHRkmwNbiRwOa3zJUS3iOZMaa7VJVNkkZDFH4XgUcd1cE7 x23125TyRddoeKOgIP0+R8EZODBv1RWsq6+yP+5rPsM4Zqdq/XwDC606/PftMR5yVeq1 f0skiLUu+wleT3GxIJ+GRTmDX1nVPNLTFwQ7VYdh4zSe51pg6AU6rSm3SdrFDF4vbNc3 Zukw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690296336; x=1690901136; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/kUiRi3u6N/MlZfNyxNPzUi1P0ixrcFS1M9c/d06CFs=; b=hXYurOjiY9fOPpctyT/1o/5fdUnIfjInMD77LbTmn8l7IdTVJIcNc5/KqEMJhyaZF5 gdSes+nXyswTXAYWBiIk4hFVqmtI6ui9mJrr5C3WYj+8ctKHMwV7sMxTQacwhFJb9dZD W9y8WgWjEw6Z2BeGZ5nUu+MNJOSjsYWIfAc8torfRv/bdYvxicRnI94ibKjDnIeWgXRk JT8+8I7zQKbHagC0S2YlBIXLih6igwk5BA0sJowVmW0Hlmmm6ux5DZmnTRYW6lxJDIls ZKl+fAs6BKvuy1HogRfl59aI7kjmxsTd8KNf1yJDUKdwu5Ue9bb639rMLu3ec0fbHJo4 V2TA== X-Gm-Message-State: ABy/qLY6BrwtqC9K0u/kzA4Oxaalzv85N/CX8hvusv6ELdEszYed4Ajo YVF/3B6ExRWUVHawg0FMwVfFBw== X-Google-Smtp-Source: APBJJlEVKYMU8f4DH0Q82swoJYLy9X0XIaOIkFMSXGSpVuRgeC5yLC97u/k2iksHFXGURNITwuwbyw== X-Received: by 2002:ac2:5e71:0:b0:4fb:89bb:ca19 with SMTP id a17-20020ac25e71000000b004fb89bbca19mr6560739lfr.66.1690296335660; Tue, 25 Jul 2023 07:45:35 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id y11-20020a056402134b00b0051de018af1esm446407edw.59.2023.07.25.07.45.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jul 2023 07:45:35 -0700 (PDT) Message-ID: <11b08764-87bd-1d9b-a1d2-603193231f40@linaro.org> Date: Tue, 25 Jul 2023 16:45:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] dt-bindings: mfd: st,stpmic1: Add missing unevaluatedProperties for each regulator Content-Language: en-US To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , pascal Paillet , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230725123740.149559-1-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20230725123740.149559-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 25/07/2023 14:37, Krzysztof Kozlowski wrote: > Each regulator node, which references common regulator.yaml schema, > should disallow additional or unevaluated properties. Otherwise > mistakes in properties will go unnoticed. unevaluatedProperties:false > requires listing existing properties (present in example and in other > regulators of this device). > > Signed-off-by: Krzysztof Kozlowski > --- > Documentation/devicetree/bindings/mfd/st,stpmic1.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml > index 97c61097f9e2..1a1ced489ef7 100644 > --- a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml > +++ b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml > @@ -189,6 +189,16 @@ properties: > > "^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$": > $ref: ../regulator/regulator.yaml > + unevaluatedProperties: false > + > + properties: > + interrupts: > + maxItems: 1 > + > + st,mask-reset: > + description: mask reset for this regulator, the regulator configuration > + is maintained during pmic reset. > + $ref: /schemas/types.yaml#/definitions/flag After further testing I see this patch is wrong. There are already buck[1-4] entries, so this is duplicating things. I will send v2. Best regards, Krzysztof