Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1048792rwe; Thu, 25 Aug 2022 14:27:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR47G1WIT4P3ChyypqK1VnbC2/jmpg8II7cvZATGxBzrZhsOdYBsyzS3KaswxFu8ydHAKjlE X-Received: by 2002:a17:906:6a10:b0:73d:939a:ec93 with SMTP id qw16-20020a1709066a1000b0073d939aec93mr3527342ejc.112.1661462822211; Thu, 25 Aug 2022 14:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661462822; cv=none; d=google.com; s=arc-20160816; b=SMdk+oaOHzJeV/E1TrJWc6MO04lMIa1aXleLN97wXB9IAZ3ajs2V1QHAuRR4jzsAqb HaVP+6byprwS0FPrmX82xVNrZObDfrFihl4KsC5cv/d5nfP/305E+ZM2Ruu4lLLkSqmE CR0QZWhGjWWvWU/J4vwPSlHXB+3JdQGr4HKec1FJ1z3GKc62ejh9VsbSTemioDa5FcLA 1VJHYCu+Jnldwa5QDDoWjBhMqSkJKMM5BVP+nZSOtvi9h11FaUf559vwJQF8QzZ01o0+ IaaHoCo0MOpiw/b/jGfXOjlO8tO8PtdBTa9yFQGzQorN0fbo/zdIDTKg9Ch6ozRfcmYB GeFw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6UzUCNgt4y0AHaBNJHl0u/FLrxd0vX2AFvB+HEQd8NM=; b=CZr+zhTMW2V3vGpYGYPRfsOT2PM31QBJx+zjXk6W1C/1PHuj9VLZfFrKPC7Y1NhWkK 05jj6GTkvSiuJSSqB/hc5TAjliKVPGCingNedGe9Lw5vaDLYCGjnHAAVPa5ISZHBURIJ yypw+obqgCtmYpuwd/WUX9d//UXtbc0KXMut/t9wLJc1QkQ5KLWp5QWjJ5kx1zSHz1Hn bRY3HFFcTUAXBn3pEb+BtW2s0lAri3mXjaTS2NMdWwdzlRVUVA41ClpRCY8FWSJ31fqM KLGMdWyghPprpRH1SzG0+fzL5hPNRjZlWXBtQxVWVO1RQZA3SCE1E7OM3x9RL8+GDyJJ cnvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E96RMdPc; 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 v30-20020a50a45e000000b00447c8bf393dsi280660edb.229.2022.08.25.14.26.33; Thu, 25 Aug 2022 14:27:02 -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=E96RMdPc; 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 S234119AbiHYUtB (ORCPT + 99 others); Thu, 25 Aug 2022 16:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbiHYUs7 (ORCPT ); Thu, 25 Aug 2022 16:48:59 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C545AAE210; Thu, 25 Aug 2022 13:48:57 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id h5so25235220wru.7; Thu, 25 Aug 2022 13:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=6UzUCNgt4y0AHaBNJHl0u/FLrxd0vX2AFvB+HEQd8NM=; b=E96RMdPc6kX9TtDJzrOqo1gGRHBzfP6XCPrz5N8u6kh2oo7pX+NvWTtXitAGAyhOYZ dLItkLw4f906wzOWubVOl/F2SWCkaHk/7bPn+J3AUOnkJCWEAVLrTFRlPF9ems0p6hJ3 rqSs+G7ZXvCYbMxGQdTxdVkLQuSAS6snMZ7uZ7YmuI5cL9Qd6Kl17IYR8qF65hLEIzAz D7fnTM3kkZKCh29/6g/AIk87eu0ky3FNRGVFb95NdU1qt+007aFXG+0xtNjdzOgUvERN q5HP8HsJWwKJm/sRFdO/V+N0yfalBVs6XtPel5rDvkIRQifRPC/ddv7c1LEI1dUkh+5b R61w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=6UzUCNgt4y0AHaBNJHl0u/FLrxd0vX2AFvB+HEQd8NM=; b=22wxvcNHTn6FkCxq78hcN4tEwqesS4azE79NeIxSEEUea9+adpmrQh7BvDCs5HT+sy nqfYNMu1hhFdAnmo0FGk1emhsQRiobiUV5rSFubFXZqceeJJ6rINelHrfv5qwJ8Hkam6 kmi7mX7r++AGCiwgJumTd0PTTvSpp1VG749dRoTxs9PyiyVyWuLnk5dZYSK/2FGhQeZo fcVnfNbf7wIXIF1cLCQnBM1QwZzPhuTrdSjsoMo3sGdVvt+Mu1aF09C37HmsYa+b0L+8 YYlU5Rq/Hj7/bObU6U4s+5CdbFpYe2JLo9ZF/nk3ZEyXEb3o39sRqJrLPktZgHNE+3Qs bTFg== X-Gm-Message-State: ACgBeo3Ghm7/wcJ0hsWAp6tQB6mRtAQp1MgQNL+JTKCq4rLUghir4WgW KXybH3kGMJlyGQAvo3DXYQep5YlyaAqjHA== X-Received: by 2002:a5d:64e1:0:b0:225:5495:ff75 with SMTP id g1-20020a5d64e1000000b002255495ff75mr3216411wri.21.1661460536349; Thu, 25 Aug 2022 13:48:56 -0700 (PDT) Received: from kista.localnet (82-149-1-172.dynamic.telemach.net. [82.149.1.172]) by smtp.gmail.com with ESMTPSA id l14-20020a5d668e000000b002253fd19a6asm266939wru.18.2022.08.25.13.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 13:48:55 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Lee Jones , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Charles Keepax , Richard Fitzgerald , Tim Harvey , Robert Jones , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Heiko Stuebner , Fabrice Gasnier , Maxime Coquelin , Alexandre Torgue , Maxime Ripard , - , Steve Twiss , Chris Zhong , Zhang Qing , Alistair Francis , Amelie Delaunay , Linus Walleij , Renner Berthing , Rob Herring Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH] dt-bindings: mfd: Add missing (unevaluated|additional)Properties on child nodes Date: Thu, 25 Aug 2022 22:48:54 +0200 Message-ID: <13083804.uLZWGnKmhe@kista> In-Reply-To: <20220823145649.3118479-4-robh@kernel.org> References: <20220823145649.3118479-4-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 Dne torek, 23. avgust 2022 ob 16:56:35 CEST je Rob Herring napisal(a): > 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 > --- > .../mfd/allwinner,sun6i-a31-prcm.yaml | 40 +++++++++++++++++++ > .../mfd/allwinner,sun8i-a23-prcm.yaml | 10 +++++ > .../bindings/mfd/cirrus,lochnagar.yaml | 5 +++ > .../devicetree/bindings/mfd/dlg,da9063.yaml | 7 ++-- > .../bindings/mfd/gateworks-gsc.yaml | 5 ++- > .../bindings/mfd/maxim,max14577.yaml | 1 + > .../bindings/mfd/maxim,max77843.yaml | 1 + > .../bindings/mfd/rockchip,rk817.yaml | 2 + > .../bindings/mfd/silergy,sy7636a.yaml | 1 + > .../bindings/mfd/st,stm32-lptimer.yaml | 4 ++ > .../bindings/mfd/st,stm32-timers.yaml | 3 ++ > .../devicetree/bindings/mfd/st,stmfx.yaml | 1 + > .../bindings/mfd/stericsson,ab8500.yaml | 22 ++++++++++ > .../devicetree/bindings/mfd/ti,tps65086.yaml | 1 + > .../bindings/mfd/x-powers,axp152.yaml | 1 + > 15 files changed, 100 insertions(+), 4 deletions(-) > > diff --git > a/Documentation/devicetree/bindings/mfd/allwinner,sun6i-a31-prcm.yaml > b/Documentation/devicetree/bindings/mfd/allwinner,sun6i-a31-prcm.yaml index > d131759ccaf3..021d33cb3dd6 100644 > --- a/Documentation/devicetree/bindings/mfd/allwinner,sun6i-a31-prcm.yaml > +++ b/Documentation/devicetree/bindings/mfd/allwinner,sun6i-a31-prcm.yaml > @@ -22,6 +22,7 @@ properties: > patternProperties: > "^.*_(clk|rst)$": > type: object > + unevaluatedProperties: false > > properties: > compatible: > @@ -34,6 +35,45 @@ patternProperties: > - fixed-factor-clock > > allOf: > + - if: > + properties: > + compatible: > + contains: > + const: fixed-factor-clock > + > + then: > + $ref: /schemas/clock/fixed-factor-clock.yaml# > + > + - if: > + properties: > + compatible: > + contains: > + const: allwinner,sun4i-a10-mod0-clk > + > + then: > + properties: > + "#clock-cells": > + const: 0 > + > + # Already checked in the main schema > + compatible: true > + > + clocks: > + maxItems: 2 Last time node with allwinner,sun4i-a10-mod0-clk compatible was used, it had 3 clocks. See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/ arm/boot/dts/sun4i-a10.dtsi?id=f18698e1c66338b902de386e4ad97b8b1b9d999d#n406 Once that fixed, allwinner,sun6i-a31-prcm.yaml and allwinner,sun8i-a23- prcm.yaml are: Reviewed-by: Jernej Skrabec Best regards, Jernej > + > + clock-output-names: > + maxItems: 1 > + > + phandle: true > + > + required: > + - "#clock-cells" > + - compatible > + - clocks > + - clock-output-names > + > + additionalProperties: false > + > - if: > properties: > compatible: