Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp770308rwb; Thu, 18 Aug 2022 11:54:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xPabxrilDIj1ruCASpyjTWdNSlvvGmKgF1N5rbIRLF3jC5B9fSlGSQHtelXhr2renf+Ol X-Received: by 2002:a63:d1f:0:b0:422:7774:1969 with SMTP id c31-20020a630d1f000000b0042277741969mr3314791pgl.88.1660848854592; Thu, 18 Aug 2022 11:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660848854; cv=none; d=google.com; s=arc-20160816; b=JhfQeIJRa8UeEBOQ+f2QSjZX8BTOGkg+BQsZt4lFN1PSCy9aPYXYoMVCwjQrDhovBF TC1q9mATbj3jeOFy/xMtfUTASJBKFzIN1AT6ygvXPEwkozFBTyaguMgZ2pILGtzmgNWB U9BHlrMJ1sZ9tRgrAAoOZAb8MJUayq9a06v0XtFeYlMxlFBppJfiPw0A6MYUy42S3UZT CaUPi9hydZ+Sw2ntFg0iCmJv0nOSbR+ay5nqvQ4XjzeiPNNgw47OA8S8Lbgi4Xt2eCoG t5avaqdyo9R9xVFI1Kp47EjhBSzxNo1ZCQmcVgc1zYz/BLoOmNqwB5a0uJUNZNAgkkrE 97Uw== 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=cz4aqrtGrX+pP5uaPE+3Nxxzh1rZqJ7+xHhzxGrUvU8=; b=rwpw9k9+QEnmdnTYKrPZ9KB+Fo8bUoHoMskVx7FctmLXcby9ClCcFqsCXaPqziVnP8 ulz4UGOWaMJ9NBMtZC/RUp9C3MDiSQgVBrKlXYNKcAUI//XoBlRbT1GLbLYHAkue8ueB ftxr81y5rRECITVsrkq+Nq4tXZr1afUrh3h8BEzPEIv2HAoSp4kZUhdrbaPGjqeGhTf6 jJgl6K1r46KxDvMxvkmrZgd1LVrLGIbWsDNqsIW++gNh9Q+jZEE00D/zVAOw4wPBn+3G JWQ06YGqc4elLdYHTQjENHY7+wD91SuzEbDJnugAdLHSqlcCa6iYmYjRnE0ouTLCBuAS T+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N07iSmth; 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 m2-20020a170902db0200b001713e8ccef7si1985655plx.354.2022.08.18.11.54.03; Thu, 18 Aug 2022 11:54: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=N07iSmth; 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 S1345433AbiHRSVd (ORCPT + 99 others); Thu, 18 Aug 2022 14:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231651AbiHRSVb (ORCPT ); Thu, 18 Aug 2022 14:21:31 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA715CE451; Thu, 18 Aug 2022 11:21:30 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-334dc616f86so63515177b3.8; Thu, 18 Aug 2022 11:21:30 -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=cz4aqrtGrX+pP5uaPE+3Nxxzh1rZqJ7+xHhzxGrUvU8=; b=N07iSmth21aYe0Ug2MVhr/I18VG3BG3N9GJm8JMxKXfKTwT7UY2lN6G8a+5yndiAr/ e7g1JXUjnhuelsFLFgQlyid3CIddpKLQyFeVPBrOHf4hn0bUZ18t3OyyPfYKXhgqWQYB +azSBDHrs7PrupZeX4iD4WoftRPWLByOEjowiD1nm8/SPa3KtZSIaNBCrYvBZS76CmbQ rr4fcQU3Z3YytVkZW+J3x4SEBj4leZy6IsVa/QUCk19a/Q8O6XQGlS0k6ph9Nr1uvSGq LQCtKqhKZqKWCUG1D17OM3xTV9f4LakV3yDumJ++hNlRN993HxyLehQBHCiOoDEygRIw zTZg== 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=cz4aqrtGrX+pP5uaPE+3Nxxzh1rZqJ7+xHhzxGrUvU8=; b=IUory5Ee92y+YpavXEEl/WxlyFNCKAmI6amZvjGqVvzTHzZDIMdkOD21PfT64FiMAP bKw3R15Nxwg4iH2pAsiJ8JJSv7k8r1LCRt2R1D7iRb8AvM71r2v5h1C5Iy9mGo9D8svJ ayFAXd7Re2FDI52zRBybtSkl792FzVu6ok5r8bziNm6TNk8M3TES1XLM22RveZmQA8hM 5MGuSRh7vLFam60J958XtGpRf5Pe+PEi902JPbemCT379/RYepRuX3NIMiXbhqJ6osZV kTy3yIY+CD03pyWbbU1F24vWdSiOfvNrbupoJXTDbg59HkfAFRfHLtz6A+Tcu4MGLUEy +0tw== X-Gm-Message-State: ACgBeo33j+cjCPRsos1H2ParQz8qkQTE0WE75hUODd4by9iumDnA1aC2 VLwH3m5TF0oM4inAXLtVjBpiNgOWlonTMZqzB+M= X-Received: by 2002:a25:dc12:0:b0:68f:b662:e85d with SMTP id y18-20020a25dc12000000b0068fb662e85dmr4172606ybe.279.1660846890039; Thu, 18 Aug 2022 11:21:30 -0700 (PDT) MIME-Version: 1.0 References: <20220816083842.25925-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Thu, 18 Aug 2022 19:21:03 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: spi: renesas,sh-msiof: Fix 'unevaluatedProperties' warnings To: Krzysztof Kozlowski Cc: Lad Prabhakar , Mark Brown , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , linux-spi , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Linux-Renesas , Biju Das 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 Hi Krzysztof, Thank you for the review. On Tue, Aug 16, 2022 at 10:45 AM Krzysztof Kozlowski wrote: > > 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). > Agreed, I will fix it and send a v2. Cheers, Prabhakar