From patchwork Tue Aug 23 14:56:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 12952113 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 62829C32772 for ; Tue, 23 Aug 2022 15:01:21 +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: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:In-Reply-To:References: List-Owner; bh=iLvFyP7YRkTe/VS+SU1KE2dRV2B2TxE5uloopOJNOR8=; b=1nrIA4BWAHIZNp GRc6NtiCmrrjDhDjPe8WamTv8wUYS/o+1NsdmpBJmCvZI7ZVcsr42+vUgDDF0XPZN4aZEDejtKGfP Bs8EqQ4FndR0jF8EIDUe5njx0MPVs1K41PD/4w1hzrsKXS0gFeHeds+Mc7NUWyad7SJTgsmLrrcQf 4SGo51WTbXMEY2w586GWEY5lakprTnewAxswGep9FJCvuVTRXLdH23EHWFt81lFsm1H6zULofEA/y q7DYpkMC3aen2KEusUmH0DVOYOQTf88Q/WepwNYn4pljAJcJxmzg+Ns6FPEOaFSkBqh7gxMzIpJDM hIXeuLyqnScvQqc+DLcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQVNo-006neJ-LI; Tue, 23 Aug 2022 15:00:01 +0000 Received: from mail-oa1-f50.google.com ([209.85.160.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQVLb-006lrc-3t for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 14:57:45 +0000 Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-11c896b879bso17076469fac.3 for ; Tue, 23 Aug 2022 07:57:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=fZf+b2xrhMOCBDJvsl7BpbOyN0rxEBVJyk9d9rZqcQs=; b=qVJVsNQvcDC3i8i2XeW6w1N5Xk8X47qzKyDTqmVNxoIYkvbkDJcpt4kvmlp9LvQKN+ LhUDhq6ds8X5xNt7fjVF3+W+kme7lly5Ah12+DKJRPV5IuHIVhoFojybzllKWyhkWBfY ASnB/vsRB9NZ7SPrtwaA91kaNZlypeqclTeJOiJhg+hDblC+C6YEJR0Wv3EOac9xZox4 F1ldPP5yFYGWIv5t+tyPQuf2/F43LCFQ3ImjEj4uamLB3MS9T+B4jWnOttb/zcNbQkFe uWc35FndVH1x6vpO5dBUi2uAVLu565sKar5s1475wBVETSpln5xZs+j30Dr1X/kFA7SH HS6A== X-Gm-Message-State: ACgBeo0zmWNw0RpyuI2vibG3yG/9kbIPeh/FAS3ZgrqUJqXjSq0cQ4qP CV5AtmPQtAM+Oq/HH4mD5S+AVZCJ/A== X-Google-Smtp-Source: AA6agR5fcTOzMDeice78EIAxrozirEPJ4lnpIAKHlZmcNDbeGXu+oAcumcKKQMpwyZMTxpii9silyg== X-Received: by 2002:a05:6870:b52c:b0:10e:e9e2:81b2 with SMTP id v44-20020a056870b52c00b0010ee9e281b2mr1585639oap.75.1661266661060; Tue, 23 Aug 2022 07:57:41 -0700 (PDT) Received: from xps15.. (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.googlemail.com with ESMTPSA id t1-20020a056870600100b0011c65559b04sm3840637oaa.34.2022.08.23.07.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 07:57:40 -0700 (PDT) From: Rob Herring To: Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Ulf Hansson , Philipp Zabel , Andrey Smirnov Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes Date: Tue, 23 Aug 2022 09:56:46 -0500 Message-Id: <20220823145649.3118479-15-robh@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220823_075743_214745_39DFD19F X-CRM114-Status: GOOD ( 11.10 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Krzysztof Kozlowski Acked-by: Ulf Hansson --- .../bindings/power/domain-idle-state.yaml | 10 ++++++++++ .../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++ .../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml index 6a12efdf436a..4ee920a1de69 100644 --- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml +++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml @@ -20,6 +20,7 @@ properties: patternProperties: "^(cpu|cluster|domain)-": type: object + additionalProperties: false description: Each state node represents a domain idle state description. @@ -44,6 +45,15 @@ patternProperties: state will yield power benefits, after overcoming the overhead while entering the idle state. + arm,psci-suspend-param: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + power_state parameter to pass to the ARM PSCI suspend call. + + Device tree nodes that require usage of PSCI CPU_SUSPEND function + (i.e. idle states node with entry-method property is set to "psci") + must specify this property. + required: - compatible - entry-latency-us diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml index a055b3e819d8..777e1d852ddd 100644 --- a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml @@ -43,11 +43,21 @@ properties: pgc: type: object + additionalProperties: false description: list of power domains provided by this controller. + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + patternProperties: "power-domain@[0-9]$": type: object + additionalProperties: false + properties: '#power-domain-cells': @@ -78,6 +88,10 @@ properties: - '#power-domain-cells' - reg + required: + - '#address-cells' + - '#size-cells' + required: - compatible - reg diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml index 747622bdc57b..3b161e01f920 100644 --- a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml @@ -42,11 +42,21 @@ properties: pgc: type: object + additionalProperties: false description: list of power domains provided by this controller. + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + patternProperties: "power-domain@[0-9]$": type: object + additionalProperties: false + properties: '#power-domain-cells': @@ -85,6 +95,10 @@ properties: - '#power-domain-cells' - reg + required: + - '#address-cells' + - '#size-cells' + required: - compatible - reg