arm: dts: DRA7: Add IVA and DSPEVE thermal domain data
cover arm: dts: DRA7: Add IVA and DSPEVE thermal domain data
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.
Tested on DRA7-EVM.
Keerthy (3):
arm: dts: DRA7: Add DSPEVE thermal data
arm: dts: DRA7: Add IVA thermal data
arm: dts: DRA7: Add missing IVA and DSPEVE thermal domain data
arch/arm/boot/dts/dra7-dspeve-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7-iva-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7.dtsi | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 arch/arm/boot/dts/dra7-dspeve-thermal.dtsi create mode 100644 arch/arm/boot/dts/dra7-iva-thermal.dtsi
Signature · 1 line
1.9.1
PATCH 1/3 arm: dts: DRA7: Add DSPEVE thermal data
This patch changes a dtsi file to contain the thermal data for DSPEVE domain. This data will enable a thermal shutdown at 125C.
--- arch/arm/boot/dts/dra7-dspeve-thermal.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/dra7-dspeve-thermal.dtsi
arch/arm/boot/dts/dra7-dspeve-thermal.dtsi new file +27 -0
@@ -0,0 +1,27 @@ +/* + * Device Tree Source for DRA7x SoC DSPEVE thermal + * + * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +#include <dt-bindings/thermal/thermal.h> + +dspeve_thermal: dspeve_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + + /* sensor ID */ + thermal-sensors = <&bandgap 3>; + + trips { + dspeve_crit: dspeve_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +};
Signature · 1 line
1.9.1
PATCH 2/3 arm: dts: DRA7: Add IVA thermal data
In reply to KeerthyThis patch changes a dtsi file to contain the thermal data for IVA domain. This data will enable a thermal shutdown at 125C.
--- arch/arm/boot/dts/dra7-iva-thermal.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/dra7-iva-thermal.dtsi
arch/arm/boot/dts/dra7-iva-thermal.dtsi new file +27 -0
@@ -0,0 +1,27 @@ +/* + * Device Tree Source for DRA7x SoC IVA thermal + * + * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +#include <dt-bindings/thermal/thermal.h> + +iva_thermal: iva_thermal { + polling-delay-passive = <250>; /* milliseconds */ + polling-delay = <500>; /* milliseconds */ + + /* sensor ID */ + thermal-sensors = <&bandgap 4>; + + trips { + iva_crit: iva_crit { + temperature = <125000>; /* milliCelsius */ + hysteresis = <2000>; /* milliCelsius */ + type = "critical"; + }; + }; +};
Signature · 1 line
1.9.1
PATCH 3/3 arm: dts: DRA7: Add missing IVA and DSPEVE thermal domain data
In reply to KeerthyOMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via device tree and the other 2 are getting added via kernel. Add the missing thermal domains in device tree so we can create the zones with the appropriate trip numbers, type and temperatures.
--- arch/arm/boot/dts/dra7.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/dra7.dtsi +2 -0
@@ -1603,6 +1603,8 @@ #include "omap4-cpu-thermal.dtsi" #include "omap5-gpu-thermal.dtsi" #include "omap5-core-thermal.dtsi" + #include "dra7-dspeve-thermal.dtsi" + #include "dra7-iva-thermal.dtsi" }; };
Signature · 1 line
1.9.1
Quoted 7 lines · Keerthy
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.Tested on DRA7-EVM.
Are these critical fixes to have for v4.5-rc cycle or can they wait for v4.6 merge window?
Regards,
Tony
Quoted 15 lines
Keerthy (3):
arm: dts: DRA7: Add DSPEVE thermal data
arm: dts: DRA7: Add IVA thermal data
arm: dts: DRA7: Add missing IVA and DSPEVE thermal domain dataarch/arm/boot/dts/dra7-dspeve-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7-iva-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7.dtsi | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 arch/arm/boot/dts/dra7-dspeve-thermal.dtsi create mode 100644 arch/arm/boot/dts/dra7-iva-thermal.dtsiSignature · 1 line
1.9.1
Quoted 11 lines · Tony Lindgren
Quoted 7 lines · Keerthy
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.Tested on DRA7-EVM.
Are these critical fixes to have for v4.5-rc cycle or can they wait for v4.6 merge window?
Driver configures some default thresholds that are a bit higher but there are some thresholds already for dspeve and iva too. So guess these can wait if its already too late.
Regards,
Keerthy
Quoted 20 lines
Regards,
Tony
Quoted 15 lines
Keerthy (3):
arm: dts: DRA7: Add DSPEVE thermal data
arm: dts: DRA7: Add IVA thermal data
arm: dts: DRA7: Add missing IVA and DSPEVE thermal domain dataarch/arm/boot/dts/dra7-dspeve-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7-iva-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7.dtsi | 2 ++ 3 files changed, 56 insertions(+)create mode 100644
arch/arm/boot/dts/dra7-dspeve-thermal.dtsicreate mode 100644arch/arm/boot/dts/dra7-iva-thermal.dtsi--
1.9.1
Quoted 10 lines · Keerthy
Quoted 7 lines · Tony Lindgren
Quoted 6 lines · Keerthy
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Tested on DRA7-EVM.
Are these critical fixes to have for v4.5-rc cycle or can they wait for v4.6 merge window?
Driver configures some default thresholds that are a bit higher but there are some thresholds already for dspeve and iva too. So guess these can wait if its already too late.
OK let's rather wait then.
Regards,
Tony
Quoted 7 lines · Keerthy
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.Tested on DRA7-EVM.
For the series:
Quoted 6 lines
Keerthy (3):
arm: dts: DRA7: Add DSPEVE thermal data
arm: dts: DRA7: Add IVA thermal data
arm: dts: DRA7: Add missing IVA and DSPEVE thermal domain data
Quoted 10 lines
arch/arm/boot/dts/dra7-dspeve-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7-iva-thermal.dtsi | 27 +++++++++++++++++++++++++++ arch/arm/boot/dts/dra7.dtsi | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 arch/arm/boot/dts/dra7-dspeve-thermal.dtsi create mode 100644 arch/arm/boot/dts/dra7-iva-thermal.dtsiSignature · 1 line
1.9.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160209/7401701f/attachment.sig>
Quoted 9 lines · Keerthy
Quoted 6 lines · Tony Lindgren
Quoted 5 lines · Keerthy
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.
But the driver would add these default domains only if booted /loaded with missing DT device entry, right?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160209/6e42b80d/attachment.sig>
Quoted 5 lines · Eduardo Valentin
Quoted 4 lines · Keerthy
Quoted 1 line · Tony Lindgren
* Keerthy <[email protected]> [160208 01:19]:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.But the driver would add these default domains only if booted /loaded with missing DT device entry, right?
Yes Eduardo, but with default trip values not the absolute which is added with this patch series.
Quoted 1 line
Quoted 7 lines · Eduardo Valentin
Quoted 6 lines · Keerthy
OMAP5 has 3 thermal zones cpu, core and multimedia.
On the other hand DRA7 has 5 thermal zones cpu, gpu, core, dspeve and iva. Currently cpu, core and multimedia are being added via dt and the other 2 are getting added via kernel. Add the missing thermal domains in dt so as give the correct trip numbers, type and temperatures.
Quoted 5 lines
Quoted 1 line
Tested on DRA7-EVM.
For the series:
Acked-by Eduardo Valentin <[email protected]>
Applying all into omap-for-v4.6/dt thanks.
Tony