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: 184849 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp1701735ile; Thu, 26 Mar 2020 03:56:36 -0700 (PDT) X-Received: by 2002:a05:6512:3188:: with SMTP id i8mr5614795lfe.26.1585220196522; Thu, 26 Mar 2020 03:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585220196; cv=none; d=google.com; s=arc-20160816; b=RmSukYXcI2iiUvsQhYrSeKMzdO82trAnKpbfqrNpVZUOetIb65vCmAP9RogP9bWMVB Cn947kQ9YoZC7N10qfOtHZyspMiUSS+m8TUBdg98rA6GmwsAmuGm2dLmyU926LMmZiYH 2Pom9YSUU6xRM1xU3JFOgagjRJxpnteZ/jnqpip5rh4z0nl0ZZYFGqG3BsdxunygIxLo SiLHmKnCm1az/3hGYPsvnSlrou2Zgw8VWziGDfds/TcCjzdsrYDGw+Kq/2TaUKeGydUZ Df7wgoWgoY1gd2eJJWrA6t52Wd+/JXEoD3TiFz0/9J9DhBxrtTMaFYJ2FeK92N4xwRlJ Yqdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=TuuxQjjiHA1MwNowGgc6IZfr8zLQ9maUJaFARjpxln4=; b=hUxfWvmMKOzxTnzsTEZqVYGxdr320G99eCBIJNcHAwqkQTEP7v4/7gSlr4eb/yuSxE hQ2vlSzNQ7NW/57UkKIND4tngV0ljd6/b4ZOTO+jwIWdgoFAg+rfoXWvdWSBcpm5Q5sH MuQz+NvrMnlopM/AFHFF9+aJStqE1vT/KiIifC6BRrtRKRzgEkaJrpYT/OZDNPU8t25l 43h9a18aZ2Ehemryd11L6vIYgk06VosVLlH/Msj654AKoGQer2z8DESZLrBOjNxI9o5s 8ChZWLXUU/a1wark2o/6JPDURmlapzeXs9G2mZQ5WrUM5tUU5AuKiNDs0iCfvl/hy6zE 6OpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hV+MlhyX; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t11sor1294934ljg.10.2020.03.26.03.56.36 for (Google Transport Security); Thu, 26 Mar 2020 03:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hV+MlhyX; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=aXkQTrX66LjIBfdVSaVLNOosp4bbJy9HVmEkfVZs2/H21gpXVNBrjzayaUjyqPFnIt VtOeJmvdP0N2JLkMsleFhXAbg6hIoSyPosYJyG039lth/CovNFjPlSNXDRIEBwCJLz8n OAlF+EPfqH2FYwOACCv9QRBpmV1brIPuM/+BLqcRX/Qds+Nw7u/+AKBy5WdqDLfwA3l8 fsm/6FjkNVu4lorGOvoZTVIGQuNuGheEG/hvWcOY5RG+CGv2lvrqb4rqG+GJQrWr6fUO 6qe2KgaGUZgJQdI/SKbfGML6VZsInecXGh144x7FCkXo3sawIAv27QN8FRa+bpsM7NhJ qsyg== X-Gm-Message-State: ANhLgQ3ICI5uv7dxZjoyqWHgJLznvDLzR+zRZWb7ChPNcun8ShfS5SGu VvaJeMF90JJz2HAsDJhG99vGH3vx 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) Return-Path: 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 Cc: Sudeep Holla , Lorenzo Pieralisi , "Rafael J . Wysocki" , Lina Iyer , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-pm@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 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(+) -- 2.20.1 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: 184850 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp1701757ile; Thu, 26 Mar 2020 03:56:37 -0700 (PDT) X-Received: by 2002:ac2:4c3b:: with SMTP id u27mr4700241lfq.7.1585220197716; Thu, 26 Mar 2020 03:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585220197; cv=none; d=google.com; s=arc-20160816; b=hHEdvbimDAny+xZAEtcaBPtxDOqGmA+xzY5UKfc6NlFmirbvkNzILtspVYcFnp5cRG 9OEpf4JtvMv0fjYmlWjqnh2uJEdqyuVxYbcVLE5XfB/ZkNQwE0fE1jJf5iRIQFdZnTFI XDY7LL3AKmgbD1ps8D+1Cx5zRrpFDknwEIbSRkCL6ciSZN0W8QhblBEkrTVPyvtJlLB4 pq97Inh041XZlu5SnxI3Xqb+VJqzPzkkFGyzysYSLiR4zWTYequjPbmQdnjtwoTbOgbB /99dkBVzaYRspT+f12e85AR5ayce040FawpwVsi7lZjzOTASxxAWWP6SAPxNTdIgsJfI cg/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zynm4D4OhVzqu5xzlg0LOQ/tgbbw9PIYyorUbwLadTE=; b=RgWf70wWA9v9ELUQh6PiJerKhjA8LcBXtNx558XnT+bMcmLOaunDgSg06vHxAp0Hbv brB53hOBLs+whyeFYwYPKmhyne6mxXj46VMgXZBcWzcMgj8XjgDg+OrFSaR7gKm3fBUp NVr47Na88Jn3wXPlectEwIFR2Y9V2F7vpYCSCYyKxZ224GTaMPh2fwWIyw1H2ZOzU05e uYKdqIKzn025ACdexWS+hj071YmVoNFEX2Znd0vmqvlKB7MVlDr1PXxI92OEI3I6Y5kO upfgOmEvphbNoeLuT5g0S2TJzIjsMnESuRDxYqXwLVBjzwNjaDkWV/67cH27r9adX5FL 9bpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I14sWrr1; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h26sor1292876ljj.16.2020.03.26.03.56.37 for (Google Transport Security); Thu, 26 Mar 2020 03:56:37 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I14sWrr1; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=IluqzEnPhhGena6HPhij9InKpqrdRyR2/g4pnFY6pNrHKARHtlRKErB1FTa16L10nz 2Zwz6tSWO9Tb7p5oPmoiib4TdQernPL1Au4N0p06v1kaUtVk6f85RWpqUWEocOWQFxeg FqOrJJqqTjAEYEGdNG3oXVrTj15VIHQ/vhDhx9ij6t1Z20OWH1TwUx3WrWXOk2O1AsAr 3tIkuA5YLFhrb8o0QtM8IPFA1wnQ0/RkgVSeIjkNqIJF6BTTXa/W38DsI0s/xhTDcZwt jmS3hzsTh3LGsNgKf9zygIbmjGS6wjb7WsW66lhSjqWcHdj9ykSVdpyQilZ6NI9wODY+ bYFg== X-Gm-Message-State: ANhLgQ2swfLe3BMll0Uk0rdGIdM5HFqGz3OyCtzy8WCqoZf+8uMUmbMX KEJ5P8TRGdYn4NRx/VUnm7oF3Q1Z 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) Return-Path: 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 Cc: Sudeep Holla , Lorenzo Pieralisi , "Rafael J . Wysocki" , Lina Iyer , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-pm@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 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(-) -- 2.20.1 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>; + }; };