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 3F1ABC25B0E for ; Tue, 16 Aug 2022 11:21:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233849AbiHPLVe (ORCPT ); Tue, 16 Aug 2022 07:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233921AbiHPLVD (ORCPT ); Tue, 16 Aug 2022 07:21:03 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80A829D8DB for ; Tue, 16 Aug 2022 02:45:32 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id a9so14154108lfm.12 for ; Tue, 16 Aug 2022 02:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=egVgk37jsb5bP/NihMXfkkjt0RcB5vm1gJqee+Euv4k=; b=AEhcllsKHaBLOkNxBC/mnTGx3zk3qk8yoRqnZ7WCmJGbS7PCIItMYVqBHBJ8RrPJ2J 9poBL5mFBFE9bM4jkeKfNs0lFv6IeTx8vbs+pavY+LOMNn0tEGZxNBpExOkzgnbnXHqO 9tki8SV5kx3i+cmFC5iRLmMoMvYeQfd5OS9jl6yC6bEUEuhTyrhdxj82pDsEw2YaoyZE LVsqkTC3lSiqf2tjX9H4eUCQwZzgkqU5Po580Z+VU6WMhaGM2990D1wugUqmEdqMd+CL 3f9yNBJKdX9SmfXAUCiKWnA/FSINXAw5//bZQjFuWfLOpWfc0UOnAE7VMhsu1E2/H+qY MIfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=egVgk37jsb5bP/NihMXfkkjt0RcB5vm1gJqee+Euv4k=; b=Ao+5nXlat79yDaat655Q/rPjMqrNIpsmRU+pKMODfeFDi1LqQ/reHBJSoaJ8RwCyWD KEAlO2Q95tzpFyUkmQzxE4f/XDebuHiBpcl2M3q6yVkjSUa9l7FzKEQf8U+FbrsznQ9k Qn9mBj5rtveOsIu9ot9/yf3h6F9uXe0zeXlW5qd9BarcVwe3hkgXLQRwAS2O3BcaLo/Q qTHMb9/y27B/Q29Rx8/zEyPSeU49UmOIuW0clOHgQF2VOv7lYzLaQlSt9RA7poMreX9B TXUPoakwZesUr3fo5y4OzUmJKJFVIZe88ZY35J52rrdQquXvtnjaCT6JNnn3IvA5esRP hkWw== X-Gm-Message-State: ACgBeo2dFTT6IySsFMJ9a84tK5dDN9Fz2oiDNxD46OEumsYnYVgNxAxx hTs48HPuaP9ZLfYhpNiUxgmLKA== X-Google-Smtp-Source: AA6agR4GisQVfukKTkz/1D4XZ5iXpQMDvR/AIMZ05fuXqOeyj04c7DOKOOivIHMqeVge+x1lJphtng== X-Received: by 2002:a05:6512:a82:b0:48b:1241:f4cc with SMTP id m2-20020a0565120a8200b0048b1241f4ccmr6589955lfu.141.1660643130890; Tue, 16 Aug 2022 02:45:30 -0700 (PDT) Received: from ?IPV6:2001:14bb:ae:539c:1782:dd68:b0c1:c1a4? (d15l54g8c71znbtrbzt-4.rev.dnainternet.fi. [2001:14bb:ae:539c:1782:dd68:b0c1:c1a4]) by smtp.gmail.com with ESMTPSA id s1-20020a056512214100b0048b3581eb7dsm1332957lfr.260.2022.08.16.02.45.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 02:45:30 -0700 (PDT) Message-ID: Date: Tue, 16 Aug 2022 12:45:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] dt-bindings: spi: renesas,sh-msiof: Fix 'unevaluatedProperties' warnings Content-Language: en-US To: Lad Prabhakar , Mark Brown , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das References: <20220816083842.25925-1-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Krzysztof Kozlowski In-Reply-To: <20220816083842.25925-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 16/08/2022 11:38, Lad Prabhakar wrote: > With 'unevaluatedProperties' support implemented, there's a number of > warnings when running dtbs_check: > > arch/arm64/boot/dts/renesas/r8a77951-ulcb-kf.dtb: spi@e6e90000: Unevaluated properties are not allowed ('power-domains', 'resets' were unexpected) > From schema: Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml > > The main problem is that SoC DTSI's include power-domains and resets > property, whereas the renesas,sh-msiof.yaml has 'unevaluatedProperties: > false'. So just add optional power-domains and resets properties. > > Signed-off-by: Lad Prabhakar > --- > Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml b/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml > index 5de710adfa63..7bd86cf876f1 100644 > --- a/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml > +++ b/Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml > @@ -69,6 +69,10 @@ properties: > clocks: > maxItems: 1 > > + power-domains: true > + > + resets: true No. For both you need maxItems (or describe the items). Best regards, Krzysztof