From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lorenzo Pieralisi Subject: [PATCH v5 8/8] arm64: boot: dts: update rtsm aemv8 dts with PSCI and idle states Date: Wed, 25 Jun 2014 15:10:21 +0100 Message-ID: <1403705421-17597-9-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 This patch updates the RTSM dts file with PSCI bindings and nodes describing the AEMv8 model idle states parameters. Signed-off-by: Lorenzo Pieralisi --- arch/arm64/boot/dts/rtsm_ve-aemv8a.dts | 44 +++++++++++++++++++++++++++---= ---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts b/arch/arm64/boot/dts/r= tsm_ve-aemv8a.dts index d79de9c..4051ffb 100644 --- a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts +++ b/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts @@ -27,37 +27,65 @@ =09=09serial3 =3D &v2m_serial3; =09}; =20 +=09psci { +=09=09compatible =3D "arm,psci-0.2"; +=09=09method =3D "smc"; +=09=09cpu_suspend =3D <0xc4000001>; +=09=09cpu_off =3D <0x84000002>; +=09=09cpu_on =3D <0xc4000003>; +=09}; + =09cpus { =09=09#address-cells =3D <2>; =09=09#size-cells =3D <0>; =20 +=09=09idle-states { +=09=09=09entry-method =3D "arm,psci"; + +=09=09=09CPU_SLEEP_0: cpu-sleep-0 { +=09=09=09=09compatible =3D "arm,idle-state"; +=09=09=09=09entry-method-param =3D <0x0010000>; +=09=09=09=09entry-latency-us =3D <40>; +=09=09=09=09exit-latency-us =3D <100>; +=09=09=09=09min-residency-us =3D <150>; +=09=09=09}; + +=09=09=09CLUSTER_SLEEP_0: cluster-sleep-0 { +=09=09=09=09compatible =3D "arm,idle-state"; +=09=09=09=09entry-method-param =3D <0x1010000>; +=09=09=09=09entry-latency-us =3D <500>; +=09=09=09=09exit-latency-us =3D <1000>; +=09=09=09=09min-residency-us =3D <2500>; +=09=09=09}; +=09=09}; + =09=09cpu@0 { =09=09=09device_type =3D "cpu"; =09=09=09compatible =3D "arm,armv8"; =09=09=09reg =3D <0x0 0x0>; -=09=09=09enable-method =3D "spin-table"; -=09=09=09cpu-release-addr =3D <0x0 0x8000fff8>; +=09=09=09enable-method =3D "psci"; +=09=09=09cpu-idle-states =3D <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; =09=09}; =09=09cpu@1 { =09=09=09device_type =3D "cpu"; =09=09=09compatible =3D "arm,armv8"; =09=09=09reg =3D <0x0 0x1>; -=09=09=09enable-method =3D "spin-table"; -=09=09=09cpu-release-addr =3D <0x0 0x8000fff8>; +=09=09=09enable-method =3D "psci"; +=09=09=09cpu-idle-states =3D <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; =09=09}; =09=09cpu@2 { =09=09=09device_type =3D "cpu"; =09=09=09compatible =3D "arm,armv8"; =09=09=09reg =3D <0x0 0x2>; -=09=09=09enable-method =3D "spin-table"; -=09=09=09cpu-release-addr =3D <0x0 0x8000fff8>; +=09=09=09enable-method =3D "psci"; +=09=09=09cpu-idle-states =3D <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; =09=09}; =09=09cpu@3 { =09=09=09device_type =3D "cpu"; =09=09=09compatible =3D "arm,armv8"; =09=09=09reg =3D <0x0 0x3>; -=09=09=09enable-method =3D "spin-table"; -=09=09=09cpu-release-addr =3D <0x0 0x8000fff8>; +=09=09=09enable-method =3D "psci"; +=09=09=09cpu-idle-states =3D <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; =09=09}; =09}; =20 --=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:21 +0100 Subject: [PATCH v5 8/8] arm64: boot: dts: update rtsm aemv8 dts with PSCI and idle states 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-9-git-send-email-lorenzo.pieralisi@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This patch updates the RTSM dts file with PSCI bindings and nodes describing the AEMv8 model idle states parameters. Signed-off-by: Lorenzo Pieralisi --- arch/arm64/boot/dts/rtsm_ve-aemv8a.dts | 44 +++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts b/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts index d79de9c..4051ffb 100644 --- a/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts +++ b/arch/arm64/boot/dts/rtsm_ve-aemv8a.dts @@ -27,37 +27,65 @@ serial3 = &v2m_serial3; }; + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + cpu_suspend = <0xc4000001>; + cpu_off = <0x84000002>; + cpu_on = <0xc4000003>; + }; + cpus { #address-cells = <2>; #size-cells = <0>; + idle-states { + entry-method = "arm,psci"; + + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + entry-method-param = <0x0010000>; + entry-latency-us = <40>; + exit-latency-us = <100>; + min-residency-us = <150>; + }; + + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + entry-method-param = <0x1010000>; + entry-latency-us = <500>; + exit-latency-us = <1000>; + min-residency-us = <2500>; + }; + }; + cpu at 0 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x0>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; cpu at 1 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x1>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; cpu at 2 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x2>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; cpu at 3 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x3>; - enable-method = "spin-table"; - cpu-release-addr = <0x0 0x8000fff8>; + enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; }; }; -- 1.9.1