From patchwork Thu Mar 26 10:56:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 11459821 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DA2976CA for ; Thu, 26 Mar 2020 10:56:51 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B824C2070A for ; Thu, 26 Mar 2020 10:56:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="X42Gs7ql"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hV+MlhyX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B824C2070A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DtTRK5lgoPxaUY8s6F40qeu59h8iEdw7DgvvBTS2Cgo=; b=X42Gs7qlBXMUT2 Jz6VQLbMAO1bx7wAa4p8moRp6ApT5cE50KmEf/T4lrS9DZyZUXbJXCsVM4A4LRwCrwr8B0v+nfIDK uqVdrPnQmGgLH1dqJFoZ3Fc9i3CEW2+Medp8/MV13LGXMlWr9Cat5gbRfdFDV+UPrnOrQM4j9c7En bhuBn36SWIxnlOWi6q6BPtf+XuUDFyqaEzVPzcKYhm5HV3Dbck+0E7KessHDJwUqSxK/E1Z+aDRYx iUqR/ntCYOVBhmbGWjJmzrOoIpCqTpOdAxIYTxv3uuAhVO5uBUhA6jZxYjXJyUgJSiBVJ6C42LviJ fGty+lTNyUprG2ihUDdg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHQBs-0003Se-6C; Thu, 26 Mar 2020 10:56:48 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHQBh-0003J3-Sy for linux-arm-kernel@lists.infradead.org; Thu, 26 Mar 2020 10:56:39 +0000 Received: by mail-lj1-x243.google.com with SMTP id g27so5850540ljn.10 for ; Thu, 26 Mar 2020 03:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TuuxQjjiHA1MwNowGgc6IZfr8zLQ9maUJaFARjpxln4=; b=hV+MlhyXKY0QLDls81FMrAiwg7WjsXZvFNFQpl2GZ/rfzLdj3av/7+1J0ptLNp+gzl QbmKraoSSQviudWxJnYf0uzene7qz/a1lthvBy9lXmwaFz8FGa0P63JCqCUgMPg8TOvw sie5B0tgIFW8DTK6G2OSw9IULaAYxRDsqQau3ubnC1FLHieQEEsTQtpeBPvkA10fE1A1 tNICUqoXP4fOY1uGOw2Nf2rscKjTfD0CEkyNQZrAiCOQUOtOKWd/Zu8Xk/JLwZbdXrDU voFxWswR7S7twoZlfFLmDIzPJnPoGOCcEScswPEsOoF3SSexlMpcx2Zq96b5SBtiCJOb wnNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TuuxQjjiHA1MwNowGgc6IZfr8zLQ9maUJaFARjpxln4=; b=Jkz0Tgz0JkScFc2DBzy61lacKI6upF3S2vc+UzfhSfKSa7GD/Sfo8Tb4I2gsa3EMAr EqMj6GORyx+WDT5SmDC8hisKoyObc1vb4pbO0WJUGVx6E4DRfY2SN+oGMdXblpM5STO6 XM5HJiarddz74oWGCul9bZ4m3NeBq7VC3rk0LYS1uel+8DNVKm3GmKNVRaBmvVc1aYqR CnTZGvnJTYTAPtBE/9vNdzflM4QN8w2vozi8g9mSk1e862jAJZn43lCUtvtZVVkMb3NK tli8ORErLE7zPGx6W++a9aRdYUmxb5NUeoPx/pI1h4QLu72DlurffTYIII00hhXN9Rgk Z4bg== X-Gm-Message-State: ANhLgQ1EkfIr/AHKXaQ7+vF3ndpfQT/4/8yn4LeeZ0KpMf/WY0fOrU42 oo1oj+/9N+r7i9Uy0Q9J93NrqQ== X-Google-Smtp-Source: APiQypIh0oKPTy0rPtj3JtcsUXTdtYTXgTC+JrTuULTRNCFGhf6dAq2avCL1mE/6d8eDRPImbNdr2A== X-Received: by 2002:a2e:9013:: with SMTP id h19mr4933294ljg.101.1585220196103; Thu, 26 Mar 2020 03:56:36 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id z17sm1214653ljm.19.2020.03.26.03.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 03:56:35 -0700 (PDT) From: Ulf Hansson To: Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: arm: Add some constraints for PSCI nodes Date: Thu, 26 Mar 2020 11:56:25 +0100 Message-Id: <20200326105626.6369-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326105626.6369-1-ulf.hansson@linaro.org> References: <20200326105626.6369-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200326_035637_932281_2CD72F3D X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:243 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Lorenzo Pieralisi , linux-pm@vger.kernel.org, "Rafael J . Wysocki" , Lina Iyer , Sudeep Holla , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org There's no point allowing anything else but "psci" for the corresponding nodename of the PSCI node, so let's make this an explicit requirement. Moreover, let's also prevent additional properties, which also allows a better verification of the "patternProperties" bindings for subnodes. Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/arm/psci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml index 5e66934455bb..9247b58c26fc 100644 --- a/Documentation/devicetree/bindings/arm/psci.yaml +++ b/Documentation/devicetree/bindings/arm/psci.yaml @@ -32,6 +32,9 @@ description: |+ http://infocenter.arm.com/help/topic/com.arm.doc.den0022c/DEN0022C_Power_State_Coordination_Interface.pdf properties: + $nodename: + const: psci + compatible: oneOf: - description: @@ -141,6 +144,8 @@ allOf: - cpu_off - cpu_on +additionalProperties: false + examples: - |+ From patchwork Thu Mar 26 10:56:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 11459825 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DEE6A92A for ; Thu, 26 Mar 2020 10:57:14 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B7D382070A for ; Thu, 26 Mar 2020 10:57:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="atxAFSsa"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="I14sWrr1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7D382070A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pergdyACzBVUMR8iGzbicUneiIGeH648bANnK3QBX2k=; b=atxAFSsaoZORd+ bOUBgAd3PPWNyuuznsTy0yxxRmjrclcclK9Un8qTpuYsI9fN+Xac9W/33J4DK9WAqmcAqr48otMGF jzbGdp9BViaLoyWmah8HigQ1NXLc4Y7iuo2dOgomUzQu8mLCkC97YBFQgYkV97Cg0307J+f9C8OiH GCzat/FBG/B36hYPyCL46bNX5NVj0ImAgjpLY0CxjeMbpIN/PdoAt3Z+arRrpJcSZU5FORJMaboje qom0ijccARWvjqk0YTGOyEFu3W9dqxKIZKWF14ECvADQE3Rq6xv1E0kb3tZY22fymLbKktb/KByXh pyrRi+B90hchRwv4tFYw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHQCF-0003jV-00; Thu, 26 Mar 2020 10:57:11 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHQBi-0003JH-M9 for linux-arm-kernel@lists.infradead.org; Thu, 26 Mar 2020 10:56:39 +0000 Received: by mail-lj1-x243.google.com with SMTP id v16so5831072ljk.13 for ; Thu, 26 Mar 2020 03:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zynm4D4OhVzqu5xzlg0LOQ/tgbbw9PIYyorUbwLadTE=; b=I14sWrr1bBJtFvP4lIZjyDGCEseVkJH/gEWVc8y7qx0eryItq/r1uhn+cbfmhvtpUr HdWyQQO7UZVcpRWTpUOOk1lM1NeZo0sFP6VTJkkk0NDP+7UbV6PbKSoNdtcZvZ2ALwaL 4rqUnZxXUa2Jn1vLJ6/eomFnizUpThfEDhyrILxDJWfBw74jrO23CMOk0EYEh5mxYwOr /vfLsBwYaopOhEuBj9CRzp3zzPpVNyXPVRmXWK9QZVSGup3DSBODGsETnYaP0knbSUh3 Eq3I1bxdwj7bycZOwd+Vkiakl1/x8reyl9XUc2YqEGlNvs+TRrXA2/9rG8aKIsGHgoC5 BcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zynm4D4OhVzqu5xzlg0LOQ/tgbbw9PIYyorUbwLadTE=; b=C/i+t/tg3b69jKam5o7CBQUDbL0WqoHNx86gXY7/Yf7vRqudWXhYtmyElu75kwkFj0 DdjacBjlF9Zb/BSq38nb4JYvmf/sCvPlfifJ48H6wMFgs0L7BN5v46H1Jvvml0QLzavc 1ftmgxYAM39+xB3AdNmRfEDaceSt0fAywRYSPqZcMcCymUoo05AyySJmdST6ni6JtM3w fsdG1G1wLcJL4sSxyQei8Y7eX7uJ0R78j0fHVlsb6gIpUdmc4DQUCAoFhvVzcx5MgK+q 3Ei44R84pw7p8QslUpdorX203fVKFY0QP115TaFz+0go871a3U7HoOl/B7aZLf0eZdZW Jj4g== X-Gm-Message-State: ANhLgQ3u/L0cdkJOZ31qp5JktV3svotJagYwor587KkEiKM0mB2d+wJs TmeaMOdSXFYCSa1f1FtaHbWCug== X-Google-Smtp-Source: ADFU+vt/lXP4078IY8NgCcD2BqnTqfFJuO8JESvRGr9AomT5a/4ZEG2Qu0qn9it+6RpSJatr7K9XbQ== X-Received: by 2002:a2e:3211:: with SMTP id y17mr4792582ljy.23.1585220197358; Thu, 26 Mar 2020 03:56:37 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id z17sm1214653ljm.19.2020.03.26.03.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 03:56:36 -0700 (PDT) From: Ulf Hansson To: Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: power: Fix example for power-domain Date: Thu, 26 Mar 2020 11:56:26 +0100 Message-Id: <20200326105626.6369-3-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326105626.6369-1-ulf.hansson@linaro.org> References: <20200326105626.6369-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200326_035638_721811_D7EE18C7 X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:243 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Lorenzo Pieralisi , linux-pm@vger.kernel.org, "Rafael J . Wysocki" , Lina Iyer , Sudeep Holla , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The change that converted the domain-idle-states DT bindings to the json-schema, forgot to update the corresponding example for the power-domain binding. Let's fix it. Fixes: 3261227d136d ("dt-bindings: power: Convert domain-idle-states bindings to json-schema") Signed-off-by: Ulf Hansson --- .../bindings/power/power-domain.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/power/power-domain.yaml b/Documentation/devicetree/bindings/power/power-domain.yaml index 6047aacd7766..ff5936e4a215 100644 --- a/Documentation/devicetree/bindings/power/power-domain.yaml +++ b/Documentation/devicetree/bindings/power/power-domain.yaml @@ -114,18 +114,18 @@ examples: domain-idle-states = <&DOMAIN_PWR_DN>; }; - DOMAIN_RET: state@0 { - compatible = "domain-idle-state"; - reg = <0x0 0x0>; - entry-latency-us = <1000>; - exit-latency-us = <2000>; - min-residency-us = <10000>; - }; - - DOMAIN_PWR_DN: state@1 { - compatible = "domain-idle-state"; - reg = <0x1 0x0>; - entry-latency-us = <5000>; - exit-latency-us = <8000>; - min-residency-us = <7000>; + domain-idle-states { + DOMAIN_RET: domain-retention { + compatible = "domain-idle-state"; + entry-latency-us = <1000>; + exit-latency-us = <2000>; + min-residency-us = <10000>; + }; + + DOMAIN_PWR_DN: domain-pwr-dn { + compatible = "domain-idle-state"; + entry-latency-us = <5000>; + exit-latency-us = <8000>; + min-residency-us = <7000>; + }; };