* [PATCH 0/2] Enable SCPI sensors for Juno
@ 2016-06-13 15:15 ` Javi Merino
0 siblings, 0 replies; 12+ messages in thread
From: Javi Merino @ 2016-06-13 15:15 UTC (permalink / raw)
To: linux-arm-kernel
Cc: catalin.marinas, will.deacon, punit.agrawal, sudeep.holla,
linux-kernel, Javi Merino
Enable the ARM SCPI sensors in arm64 defconfig and add thermal zones
for the thermal scpi sensors on Juno. The hwmon support for SCPI
sensors was merged for v4.4, this just enables it by default.
Javi Merino (2):
arm64: defconfig: enable SENSORS_ARM_SCPI
arm64: dts: juno: add thermal zones for scpi sensors
arch/arm64/boot/dts/arm/juno-base.dtsi | 42 ++++++++++++++++++++++++++++++++++
arch/arm64/boot/dts/arm/juno-r1.dts | 16 +++++++++++++
arch/arm64/boot/dts/arm/juno-r2.dts | 16 +++++++++++++
arch/arm64/configs/defconfig | 1 +
4 files changed, 75 insertions(+)
--
1.9.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 0/2] Enable SCPI sensors for Juno
@ 2016-06-13 15:15 ` Javi Merino
0 siblings, 0 replies; 12+ messages in thread
From: Javi Merino @ 2016-06-13 15:15 UTC (permalink / raw)
To: linux-arm-kernel
Enable the ARM SCPI sensors in arm64 defconfig and add thermal zones
for the thermal scpi sensors on Juno. The hwmon support for SCPI
sensors was merged for v4.4, this just enables it by default.
Javi Merino (2):
arm64: defconfig: enable SENSORS_ARM_SCPI
arm64: dts: juno: add thermal zones for scpi sensors
arch/arm64/boot/dts/arm/juno-base.dtsi | 42 ++++++++++++++++++++++++++++++++++
arch/arm64/boot/dts/arm/juno-r1.dts | 16 +++++++++++++
arch/arm64/boot/dts/arm/juno-r2.dts | 16 +++++++++++++
arch/arm64/configs/defconfig | 1 +
4 files changed, 75 insertions(+)
--
1.9.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/2] arm64: defconfig: enable SENSORS_ARM_SCPI
2016-06-13 15:15 ` Javi Merino
@ 2016-06-13 15:15 ` Javi Merino
-1 siblings, 0 replies; 12+ messages in thread
From: Javi Merino @ 2016-06-13 15:15 UTC (permalink / raw)
To: linux-arm-kernel
Cc: catalin.marinas, will.deacon, punit.agrawal, sudeep.holla,
linux-kernel, Javi Merino
ARM SCPI Sensors were merged for v4.4 and they are defined in the Juno
dts. Enable it in the defconfig to get them registered automatically in
Juno by default.
Signed-off-by: Javi Merino <javi.merino@arm.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index fd2d74d0491e..1152c6d9f6e6 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -197,6 +197,7 @@ CONFIG_POWER_RESET_XGENE=y
CONFIG_POWER_RESET_SYSCON=y
CONFIG_SENSORS_LM90=m
CONFIG_SENSORS_INA2XX=m
+CONFIG_SENSORS_ARM_SCPI=y
CONFIG_THERMAL=y
CONFIG_THERMAL_EMULATION=y
CONFIG_EXYNOS_THERMAL=y
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 1/2] arm64: defconfig: enable SENSORS_ARM_SCPI
@ 2016-06-13 15:15 ` Javi Merino
0 siblings, 0 replies; 12+ messages in thread
From: Javi Merino @ 2016-06-13 15:15 UTC (permalink / raw)
To: linux-arm-kernel
ARM SCPI Sensors were merged for v4.4 and they are defined in the Juno
dts. Enable it in the defconfig to get them registered automatically in
Juno by default.
Signed-off-by: Javi Merino <javi.merino@arm.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index fd2d74d0491e..1152c6d9f6e6 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -197,6 +197,7 @@ CONFIG_POWER_RESET_XGENE=y
CONFIG_POWER_RESET_SYSCON=y
CONFIG_SENSORS_LM90=m
CONFIG_SENSORS_INA2XX=m
+CONFIG_SENSORS_ARM_SCPI=y
CONFIG_THERMAL=y
CONFIG_THERMAL_EMULATION=y
CONFIG_EXYNOS_THERMAL=y
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors
2016-06-13 15:15 ` Javi Merino
@ 2016-06-13 15:15 ` Javi Merino
-1 siblings, 0 replies; 12+ messages in thread
From: Javi Merino @ 2016-06-13 15:15 UTC (permalink / raw)
To: linux-arm-kernel
Cc: catalin.marinas, will.deacon, punit.agrawal, sudeep.holla,
linux-kernel, Javi Merino, Liviu Dudau, Lorenzo Pieralisi,
Rob Herring, Mark Rutland
The juno dts have entries for the hwmon scpi, let's create thermal zones
for the temperature sensors described in the Juno ARM Development
Platform Implementation Details.
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
---
arch/arm64/boot/dts/arm/juno-base.dtsi | 42 ++++++++++++++++++++++++++++++++++
arch/arm64/boot/dts/arm/juno-r1.dts | 16 +++++++++++++
arch/arm64/boot/dts/arm/juno-r2.dts | 16 +++++++++++++
3 files changed, 74 insertions(+)
diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index dee2386d3b9b..61ec045125ce 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -125,6 +125,48 @@
};
};
+ thermal-zones {
+ pmic {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 0>;
+ };
+
+ soc {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 3>;
+ };
+
+ big_cluster_thermal_zone: big_cluster {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 21>;
+ status = "disabled";
+ };
+
+ little_cluster_thermal_zone: little_cluster {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 22>;
+ status = "disabled";
+ };
+
+ gpu0_thermal_zone: gpu0 {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 23>;
+ status = "disabled";
+ };
+
+ gpu1_thermal_zone: gpu1 {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 24>;
+ status = "disabled";
+ };
+ };
+
/include/ "juno-clocks.dtsi"
dma@7ff00000 {
diff --git a/arch/arm64/boot/dts/arm/juno-r1.dts b/arch/arm64/boot/dts/arm/juno-r1.dts
index d95d9e7e2dc0..0f9c32ae1ce9 100644
--- a/arch/arm64/boot/dts/arm/juno-r1.dts
+++ b/arch/arm64/boot/dts/arm/juno-r1.dts
@@ -181,3 +181,19 @@
&pcie_ctlr {
status = "okay";
};
+
+&big_cluster_thermal_zone {
+ status = "okay";
+};
+
+&little_cluster_thermal_zone {
+ status = "okay";
+};
+
+&gpu0_thermal_zone {
+ status = "okay";
+};
+
+&gpu1_thermal_zone {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/arm/juno-r2.dts b/arch/arm64/boot/dts/arm/juno-r2.dts
index 88ecd6182b67..f20cf5654cca 100644
--- a/arch/arm64/boot/dts/arm/juno-r2.dts
+++ b/arch/arm64/boot/dts/arm/juno-r2.dts
@@ -181,3 +181,19 @@
&pcie_ctlr {
status = "okay";
};
+
+&big_cluster_thermal_zone {
+ status = "okay";
+};
+
+&little_cluster_thermal_zone {
+ status = "okay";
+};
+
+&gpu0_thermal_zone {
+ status = "okay";
+};
+
+&gpu1_thermal_zone {
+ status = "okay";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors
@ 2016-06-13 15:15 ` Javi Merino
0 siblings, 0 replies; 12+ messages in thread
From: Javi Merino @ 2016-06-13 15:15 UTC (permalink / raw)
To: linux-arm-kernel
The juno dts have entries for the hwmon scpi, let's create thermal zones
for the temperature sensors described in the Juno ARM Development
Platform Implementation Details.
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
---
arch/arm64/boot/dts/arm/juno-base.dtsi | 42 ++++++++++++++++++++++++++++++++++
arch/arm64/boot/dts/arm/juno-r1.dts | 16 +++++++++++++
arch/arm64/boot/dts/arm/juno-r2.dts | 16 +++++++++++++
3 files changed, 74 insertions(+)
diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index dee2386d3b9b..61ec045125ce 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -125,6 +125,48 @@
};
};
+ thermal-zones {
+ pmic {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 0>;
+ };
+
+ soc {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 3>;
+ };
+
+ big_cluster_thermal_zone: big_cluster {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 21>;
+ status = "disabled";
+ };
+
+ little_cluster_thermal_zone: little_cluster {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 22>;
+ status = "disabled";
+ };
+
+ gpu0_thermal_zone: gpu0 {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 23>;
+ status = "disabled";
+ };
+
+ gpu1_thermal_zone: gpu1 {
+ polling-delay = <1000>;
+ polling-delay-passive = <100>;
+ thermal-sensors = <&scpi_sensors0 24>;
+ status = "disabled";
+ };
+ };
+
/include/ "juno-clocks.dtsi"
dma at 7ff00000 {
diff --git a/arch/arm64/boot/dts/arm/juno-r1.dts b/arch/arm64/boot/dts/arm/juno-r1.dts
index d95d9e7e2dc0..0f9c32ae1ce9 100644
--- a/arch/arm64/boot/dts/arm/juno-r1.dts
+++ b/arch/arm64/boot/dts/arm/juno-r1.dts
@@ -181,3 +181,19 @@
&pcie_ctlr {
status = "okay";
};
+
+&big_cluster_thermal_zone {
+ status = "okay";
+};
+
+&little_cluster_thermal_zone {
+ status = "okay";
+};
+
+&gpu0_thermal_zone {
+ status = "okay";
+};
+
+&gpu1_thermal_zone {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/arm/juno-r2.dts b/arch/arm64/boot/dts/arm/juno-r2.dts
index 88ecd6182b67..f20cf5654cca 100644
--- a/arch/arm64/boot/dts/arm/juno-r2.dts
+++ b/arch/arm64/boot/dts/arm/juno-r2.dts
@@ -181,3 +181,19 @@
&pcie_ctlr {
status = "okay";
};
+
+&big_cluster_thermal_zone {
+ status = "okay";
+};
+
+&little_cluster_thermal_zone {
+ status = "okay";
+};
+
+&gpu0_thermal_zone {
+ status = "okay";
+};
+
+&gpu1_thermal_zone {
+ status = "okay";
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors
2016-06-13 15:15 ` Javi Merino
@ 2016-06-14 10:35 ` Punit Agrawal
-1 siblings, 0 replies; 12+ messages in thread
From: Punit Agrawal @ 2016-06-14 10:35 UTC (permalink / raw)
To: Javi Merino
Cc: linux-arm-kernel, catalin.marinas, will.deacon, sudeep.holla,
linux-kernel, Liviu Dudau, Lorenzo Pieralisi, Rob Herring,
Mark Rutland
Javi Merino <javi.merino@arm.com> writes:
> The juno dts have entries for the hwmon scpi, let's create thermal zones
> for the temperature sensors described in the Juno ARM Development
> Platform Implementation Details.
>
> Cc: Liviu Dudau <liviu.dudau@arm.com>
> Cc: Sudeep Holla <sudeep.holla@arm.com>
> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Javi Merino <javi.merino@arm.com>
I've reviewed the sensor ids against documentation and tested this on
Juno r2. For the cluster and gpu thermal zones to function, I had to
update the firmware.
For the device tree changes -
Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Thanks
> ---
> arch/arm64/boot/dts/arm/juno-base.dtsi | 42 ++++++++++++++++++++++++++++++++++
> arch/arm64/boot/dts/arm/juno-r1.dts | 16 +++++++++++++
> arch/arm64/boot/dts/arm/juno-r2.dts | 16 +++++++++++++
> 3 files changed, 74 insertions(+)
>
[...]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors
@ 2016-06-14 10:35 ` Punit Agrawal
0 siblings, 0 replies; 12+ messages in thread
From: Punit Agrawal @ 2016-06-14 10:35 UTC (permalink / raw)
To: linux-arm-kernel
Javi Merino <javi.merino@arm.com> writes:
> The juno dts have entries for the hwmon scpi, let's create thermal zones
> for the temperature sensors described in the Juno ARM Development
> Platform Implementation Details.
>
> Cc: Liviu Dudau <liviu.dudau@arm.com>
> Cc: Sudeep Holla <sudeep.holla@arm.com>
> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Javi Merino <javi.merino@arm.com>
I've reviewed the sensor ids against documentation and tested this on
Juno r2. For the cluster and gpu thermal zones to function, I had to
update the firmware.
For the device tree changes -
Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Thanks
> ---
> arch/arm64/boot/dts/arm/juno-base.dtsi | 42 ++++++++++++++++++++++++++++++++++
> arch/arm64/boot/dts/arm/juno-r1.dts | 16 +++++++++++++
> arch/arm64/boot/dts/arm/juno-r2.dts | 16 +++++++++++++
> 3 files changed, 74 insertions(+)
>
[...]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors
2016-06-13 15:15 ` Javi Merino
@ 2016-06-16 10:56 ` Sudeep Holla
-1 siblings, 0 replies; 12+ messages in thread
From: Sudeep Holla @ 2016-06-16 10:56 UTC (permalink / raw)
To: Javi Merino, linux-arm-kernel
Cc: Sudeep Holla, catalin.marinas, will.deacon, punit.agrawal,
linux-kernel, Liviu Dudau, Lorenzo Pieralisi, Rob Herring,
Mark Rutland
On 13/06/16 16:15, Javi Merino wrote:
> The juno dts have entries for the hwmon scpi, let's create thermal zones
> for the temperature sensors described in the Juno ARM Development
> Platform Implementation Details.
>
> Cc: Liviu Dudau <liviu.dudau@arm.com>
> Cc: Sudeep Holla <sudeep.holla@arm.com>
Applied with Punit's ack
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors
@ 2016-06-16 10:56 ` Sudeep Holla
0 siblings, 0 replies; 12+ messages in thread
From: Sudeep Holla @ 2016-06-16 10:56 UTC (permalink / raw)
To: linux-arm-kernel
On 13/06/16 16:15, Javi Merino wrote:
> The juno dts have entries for the hwmon scpi, let's create thermal zones
> for the temperature sensors described in the Juno ARM Development
> Platform Implementation Details.
>
> Cc: Liviu Dudau <liviu.dudau@arm.com>
> Cc: Sudeep Holla <sudeep.holla@arm.com>
Applied with Punit's ack
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: enable SENSORS_ARM_SCPI
2016-06-13 15:15 ` Javi Merino
@ 2016-06-21 17:53 ` Sudeep Holla
-1 siblings, 0 replies; 12+ messages in thread
From: Sudeep Holla @ 2016-06-21 17:53 UTC (permalink / raw)
To: Javi Merino, linux-arm-kernel
Cc: Sudeep Holla, catalin.marinas, will.deacon, punit.agrawal, linux-kernel
On 13/06/16 16:15, Javi Merino wrote:
> ARM SCPI Sensors were merged for v4.4 and they are defined in the Juno
> dts. Enable it in the defconfig to get them registered automatically in
> Juno by default.
>
Applied, thanks.
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/2] arm64: defconfig: enable SENSORS_ARM_SCPI
@ 2016-06-21 17:53 ` Sudeep Holla
0 siblings, 0 replies; 12+ messages in thread
From: Sudeep Holla @ 2016-06-21 17:53 UTC (permalink / raw)
To: linux-arm-kernel
On 13/06/16 16:15, Javi Merino wrote:
> ARM SCPI Sensors were merged for v4.4 and they are defined in the Juno
> dts. Enable it in the defconfig to get them registered automatically in
> Juno by default.
>
Applied, thanks.
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2016-06-21 17:53 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-13 15:15 [PATCH 0/2] Enable SCPI sensors for Juno Javi Merino
2016-06-13 15:15 ` Javi Merino
2016-06-13 15:15 ` [PATCH 1/2] arm64: defconfig: enable SENSORS_ARM_SCPI Javi Merino
2016-06-13 15:15 ` Javi Merino
2016-06-21 17:53 ` Sudeep Holla
2016-06-21 17:53 ` Sudeep Holla
2016-06-13 15:15 ` [PATCH 2/2] arm64: dts: juno: add thermal zones for scpi sensors Javi Merino
2016-06-13 15:15 ` Javi Merino
2016-06-14 10:35 ` Punit Agrawal
2016-06-14 10:35 ` Punit Agrawal
2016-06-16 10:56 ` Sudeep Holla
2016-06-16 10:56 ` Sudeep Holla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.