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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECC4FECAAA2 for ; Thu, 25 Aug 2022 20:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8QF5aqjNCZB03Todm/n5GU6fWvNFgD8XVe6yt0Pc4dU=; b=xUHQ2PwNkDX3BI +0Hm6e8vtC6Vg8eCFFTtVgTcgpJzII9ID+bRB3ocpeVwvrXO/5/8Gr7KBz8mlKIF904OHDGIs1TkM dsnHTEJF724T3RV/xClnUzFHWkc+O8wIGg5eicNr5419WkHvtQMSSVhtZWS24qaLzbbbiBCO7rzzk 1j1leffzcejEfX9Igw5mLSAxWHgvomtDIZlq0Y/D9DV7RNvQiPKcqVaZsWc49xjnWveFrqniyeOMB w/LEBME7qJjYFdUm36DnKSHDn+kBFj9AwtSH3fnYGZGIq0YKazMzHHx57kCtA6mmU3rdGpF23bMjz GQotDm9WrNk6PvEgGVjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRJme-003DtG-Tm; Thu, 25 Aug 2022 20:49:01 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRJmb-003Drk-QJ; Thu, 25 Aug 2022 20:48:59 +0000 Received: by mail-wr1-x429.google.com with SMTP id e20so25535425wri.13; 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=5E7gU7uk6oSL16f5U1OP8ntn/Envabn8YibkdVsPzTC6fPAKT47/Wm4GZ4rD3lQOdV nuj7TpZafAu2m/aywAb/wlra5hybjcyPLy88oQt0tLLE9LGs2vGFs2AdKGbJ6al9Pjmn S4NcTkql+GBodi5f9en0wJRlTjPFoTDZy1ctG1jMBeS5xGvg9Hyl1TGtzxp/wbSFd2Qe JW+vtctSu7/Bw6zMGMlfY5jKLgXhTeSLdomBTtsfgLXuweRe1snD9gVkVJvx5zVg4wS2 mEaNpUX7ZiuNJzlZ2pvMdqXgWoIYCZ2B5ja86jq4QRBhIYPUcmjTdX2881FxjdCnoLYN db1Q== X-Gm-Message-State: ACgBeo13qNLNCF8XEwWwOcOX33UtMgV/bDLbe5uWycOgslijWTbIz4cH DP1j3d27razsohLIVKXEN0U= X-Google-Smtp-Source: AA6agR5luFniLeLJR/gpv3f8y8PSO9iYmRy9xopByet6i9pxvH109nYNZOhflEi5Ej+3VAkPWavVHw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220825_134857_887240_5C445F5D X-CRM114-Status: GOOD ( 15.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel