From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lorenzo Pieralisi Subject: [PATCH v5 2/8] Documentation: devicetree: psci: define CPU suspend parameter Date: Wed, 25 Jun 2014 15:10:15 +0100 Message-ID: <1403705421-17597-3-git-send-email-lorenzo.pieralisi@arm.com> References: <1403705421-17597-1-git-send-email-lorenzo.pieralisi@arm.com> Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1403705421-17597-1-git-send-email-lorenzo.pieralisi@arm.com> Sender: linux-pm-owner@vger.kernel.org To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Cc: Lorenzo Pieralisi , Mark Rutland , Sudeep Holla , Catalin Marinas , Charles Garcia Tobin , Nicolas Pitre , Rob Herring , Grant Likely , Peter De Schrijver , Santosh Shilimkar , Daniel Lezcano , Amit Kucheria , Vincent Guittot , Antti Miettinen , Stephen Boyd , Kevin Hilman , Sebastian Capella , Tomasz Figa , Mark Brown , Paul Walmsley , Chander Kashyap List-Id: devicetree@vger.kernel.org OS layers built on top of PSCI to enter low-power states require the power_state parameter to be passed to the PSCI CPU suspend method. This parameter is specific to a power state and platform specific, therefore must be provided by firmware to the OS in order to enable proper call sequence. This patch adds a property in the PSCI bindings that describes how the CPU suspend power_state parameter should be defined in DT in all device nodes that rely on PSCI CPU suspend method usage. Reviewed-by: Sebastian Capella Signed-off-by: Lorenzo Pieralisi --- Documentation/devicetree/bindings/arm/psci.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation= /devicetree/bindings/arm/psci.txt index b4a58f3..fae3eed 100644 --- a/Documentation/devicetree/bindings/arm/psci.txt +++ b/Documentation/devicetree/bindings/arm/psci.txt @@ -50,6 +50,14 @@ Main node optional properties: =20 - migrate : Function ID for MIGRATE operation =20 +Device tree nodes that require usage of PSCI CPU_SUSPEND function (ie idle +states bindings[1]) must specify the following properties: + +- entry-method-param +=09=09Usage: Required for idle states bindings [1]. +=09=09Value type: +=09=09Definition: power_state parameter to pass to the PSCI +=09=09=09 suspend call. =20 Example: =20 @@ -64,7 +72,6 @@ Case 1: PSCI v0.1 only. =09=09migrate=09=09=3D <0x95c10003>; =09}; =20 - Case 2: PSCI v0.2 only =20 =09psci { @@ -88,3 +95,6 @@ Case 3: PSCI v0.2 and PSCI v0.1. =20 =09=09... =09}; + +[1] Kernel documentation - ARM idle states bindings + Documentation/devicetree/bindings/arm/idle-states.txt --=20 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: lorenzo.pieralisi@arm.com (Lorenzo Pieralisi) Date: Wed, 25 Jun 2014 15:10:15 +0100 Subject: [PATCH v5 2/8] Documentation: devicetree: psci: define CPU suspend parameter In-Reply-To: <1403705421-17597-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1403705421-17597-1-git-send-email-lorenzo.pieralisi@arm.com> Message-ID: <1403705421-17597-3-git-send-email-lorenzo.pieralisi@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org OS layers built on top of PSCI to enter low-power states require the power_state parameter to be passed to the PSCI CPU suspend method. This parameter is specific to a power state and platform specific, therefore must be provided by firmware to the OS in order to enable proper call sequence. This patch adds a property in the PSCI bindings that describes how the CPU suspend power_state parameter should be defined in DT in all device nodes that rely on PSCI CPU suspend method usage. Reviewed-by: Sebastian Capella Signed-off-by: Lorenzo Pieralisi --- Documentation/devicetree/bindings/arm/psci.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/psci.txt b/Documentation/devicetree/bindings/arm/psci.txt index b4a58f3..fae3eed 100644 --- a/Documentation/devicetree/bindings/arm/psci.txt +++ b/Documentation/devicetree/bindings/arm/psci.txt @@ -50,6 +50,14 @@ Main node optional properties: - migrate : Function ID for MIGRATE operation +Device tree nodes that require usage of PSCI CPU_SUSPEND function (ie idle +states bindings[1]) must specify the following properties: + +- entry-method-param + Usage: Required for idle states bindings [1]. + Value type: + Definition: power_state parameter to pass to the PSCI + suspend call. Example: @@ -64,7 +72,6 @@ Case 1: PSCI v0.1 only. migrate = <0x95c10003>; }; - Case 2: PSCI v0.2 only psci { @@ -88,3 +95,6 @@ Case 3: PSCI v0.2 and PSCI v0.1. ... }; + +[1] Kernel documentation - ARM idle states bindings + Documentation/devicetree/bindings/arm/idle-states.txt -- 1.9.1