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 5512BC19F28 for ; Wed, 3 Aug 2022 20:19:19 +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=CGvOwYzLPdzfDjamAnvOpOwHZwmkvtxn76VcLSKO1Y8=; b=p3lc9/ClmR5wph 9QSrq528EZ55okSOio2dTjZWxjkn6VlYVsJbSlAXm4sUPW2feSeJKlf1TRzaGhnK8xuTDPTMmxnEO 4IvgXaclhVWngDQybG8qYw/BJChiqdbKL1ueJIGKYogbXhfyO7Yx1s3fChQlm35ZtbrpBgUVHpfXL 70u0h+C/lCANF1+OVPGcWhWLPZvKB1KsXDLW1uu6tZYzSGKIrKkJ71fh06rBGxw89iLmQw0EVbmvQ kL2p3JxTmG9h3bb8E8h2vaA1rrApsZFXzLweZYK1MFg4/cTjeLT3gJUNJQpp7m+4ZJfQtqHqWMMKs ZUiZ2vRqDuJuo0XvTT2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJKo6-009DKn-KV; Wed, 03 Aug 2022 20:17:30 +0000 Received: from mail-io1-f48.google.com ([209.85.166.48]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJKo3-009DIO-TP for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2022 20:17:29 +0000 Received: by mail-io1-f48.google.com with SMTP id v185so13712789ioe.11 for ; Wed, 03 Aug 2022 13:17:27 -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=nFnsI0O1PrK2YgAMgRf5Rb1QEHWcYLli9kiS7QQAZkY=; b=0tX6ktgDCHMUp6xQtFGpsLXQ8VAJav2NOZsZcOoCTyweptUjpadZUe0fshl1RO885g BUFVXt/HUqQaE6WBu4mipCmLHsbuciQ/Ekw/Qy5Rdd0zG+g2dMAXDgT+RWxfwz/APxhr ViNXAyqNv9xSdZ70i+WRMOp06c/2AdWI2V4IcOzruSDNAaqxXoB1WCnApcxXZsnsclzg yDsd+Lh5kAWvfGSNy+ZzssJRUJiq93WH+5tUsU1Rnp7exXQaGXDF81+2ArTmR1bEDxTT MxvFOOQpzyMxK0rJKSSCCvWdSyFFOmsiyBkb/K0qLuaGsXRAfbLTOKsPQ4i89scPDFUM zVqA== X-Gm-Message-State: AJIora89fEpXsspFYRukguD44UZPKIBPfxrp9scb05+FhDzQqGQrnW3/ eYKvTxESxYSNUovMA6G61A== X-Google-Smtp-Source: AGRyM1swffRWGVQulzXOS7Iy/J4naxuEl70lKHfvAz/xYcBF5ZQMgQ/br5AD5IFtUlBJpyjkMNuLWQ== X-Received: by 2002:a05:6602:2d92:b0:67c:b00:422 with SMTP id k18-20020a0566022d9200b0067c0b000422mr10034331iow.187.1659557846511; Wed, 03 Aug 2022 13:17:26 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.248]) by smtp.googlemail.com with ESMTPSA id b6-20020a92c846000000b002ddf58d8828sm7225876ilq.19.2022.08.03.13.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 13:17:26 -0700 (PDT) From: Rob Herring To: Krzysztof Kozlowski , Lorenzo Pieralisi Cc: linux-arm-kernel@lists.infradead.org, Sudeep Holla , Marc Zyngier , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: arm: psci: Relax and simplify compatible constraints Date: Wed, 3 Aug 2022 14:16:38 -0600 Message-Id: <20220803201639.2552581-1-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-20220803_131727_993655_4405EF28 X-CRM114-Status: GOOD ( 10.16 ) 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 Even PSCI v1.0 compliant implementations may support v0.1 clients (i.e. "arm,psci"). Relax the compatible schema such that an implementation can claim 1.0, 0.2, and 0.1 compatibility. In the process, the schema can be simplified a bit by using 'minItems' instead of separate 'oneOf' entries. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/psci.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml index dd83ef278af0..3a2c908ff282 100644 --- a/Documentation/devicetree/bindings/arm/psci.yaml +++ b/Documentation/devicetree/bindings/arm/psci.yaml @@ -41,31 +41,26 @@ properties: For implementations complying to PSCI versions prior to 0.2. const: arm,psci - - description: - For implementations complying to PSCI 0.2. - const: arm,psci-0.2 - - description: For implementations complying to PSCI 0.2. Function IDs are not required and should be ignored by an OS with PSCI 0.2 support, but are permitted to be present for compatibility with existing software when "arm,psci" is later in the compatible list. + minItems: 1 items: - const: arm,psci-0.2 - const: arm,psci - - description: - For implementations complying to PSCI 1.0. - const: arm,psci-1.0 - - description: For implementations complying to PSCI 1.0. PSCI 1.0 is backward compatible with PSCI 0.2 with minor specification updates, as defined in the PSCI specification[2]. + minItems: 1 items: - const: arm,psci-1.0 - const: arm,psci-0.2 + - const: arm,psci method: description: The method of calling the PSCI firmware. -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel