From: Tao Wang <kevin.wang...@linaro.org>
This series adds thermal support for Hi3660 Soc, which support
all the hardware temperture sensors and two virtual sensors(one
for maximum value of all and one for average value of all).
Patch 1 add dt-binding document to describe how to con
From: Tao Wang <kevin.wang...@linaro.org>
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang <kevin.wang...@linaro.org>
Signed-off-by: Leo Yan <leo@linaro.org>
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi| 10 ++
include/dt-bindings/thermal/hi3
From: Tao Wang <kevin.wang...@linaro.org>
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang <kevin.wang...@linaro.org>
Signed-off-by: Leo Yan <leo
From: Tao Wang <kevin.wang...@linaro.org>
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang <kevin.wang...@linaro.org>
---
.../devicetree/bindings/thermal/hisi-tsensor.txt | 23 ++
1 file
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
Signed-off-by: Leo Yan <leo@linaro.org>
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi |7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
Signed-off-by: Leo Yan <leo@linaro.org>
---
drivers/thermal/Kconfig
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
---
.../devicetree/bindings/thermal/hi3660-thermal.txt | 17 +
1 file changed, 17 insertions(+)
create mode
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
Signed-off-by: Leo Yan <leo@linaro.org>
---
Changes in v2:
- rebase changes on linux next
arch/arm64/boot/dts/hisilicon/hi3660.dtsi |6 ++
1 file changed, 6 insertions(+)
diff
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
---
Changes in v2:
- remove redundant property
.../devicetree/bindings/thermal/hi3660-thermal.txt | 16
1 file chang
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
Signed-off-by: Leo Yan <leo@linaro.org>
---
Changes in v2:
- correct al
Add the compatible string for supporting the generic device tree cpufreq-dt
driver on Hisilicon's 3660 SoC.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
---
drivers/cpufreq/cpufreq-dt-platdev.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/cpufreq/cpufreq-dt-pla
Add the compatible string for supporting the generic device tree cpufreq-dt
driver on Hisilicon's 3660 SoC.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
---
Changes in v2:
- changed order according to Viresh's suggestion
drivers/cpufreq/cpufreq-dt-platdev.c |1 +
1 file chan
gaps between cpu
OPPs.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
---
drivers/thermal/Kconfig| 17
drivers/thermal/cpu_cooling.c | 31 +
drivers/thermal/cpu_idle_cooling.c |5 +
include/linux/cpu_idle_coo
injection thread, idle injection thread use play_idle to enter
idle. In order to reach deepest idle state, all cores are aligned by
jiffies. the injected idle ratio can be controlled through cooling
device interface.
Signed-off-by: Tao Wang <kevin.wang...@hisilicon.com>
---
drivers/thermal/K
From: Kevin Wangtao
tsensor may have multi alarm levels, so we can support
more trip point interrupt.
Signed-off-by: Kevin Wangtao
---
drivers/thermal/hisi_thermal.c | 21 -
1 file changed, 12 insertions(+), 9
From: Kevin Wangtao
Use round up divide to ensure the programmed value of threshold and
lag not less than we set, and in order to keep the accuracy while
using round up divide, the step value should also be a round up value.
Then there is no need to use
From: Kevin Wangtao
This patch adds the support for thermal sensor of Hi3660 SoC.
Hi3660 tsensor support alarm interrupt and have three configurable
alarm thresholds, it also has a configurable hysteresis interval,
interrupt will be triggered when temperature rise above
From: Kevin Wangtao
For platform compatibility, add tsensor operation function pointer to
thermal data, and each platform has its own probe function to register
proper tsensor operation function to the pointer, platform related
resource request are also implemented in
From: Kevin Wangtao
The sensor's clock is enabled and disabled outside of the probe and
disable function. Moving the corresponding action in the
hisi_thermal_setup() and hisi_thermal_disable_sensor(), factors out
some lines of code and makes the code more symmetric.
From: Kevin Wangtao
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Kevin Wangtao
---
Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt | 9 +
1 file
From: Kevin Wangtao
reorganize code for follow-up patch, there is no functional change here.
Signed-off-by: Kevin Wangtao
---
drivers/thermal/hisi_thermal.c | 76 +-
1 file changed, 38 insertions(+),
From: Kevin Wangtao
add binding for tsensor on H3660, this tsensor is used for
SoC thermal control, it supports alarm interrupt.
Signed-off-by: Kevin Wangtao
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8
1 file changed, 8
From: Kevin Wangtao
reorganize code for follow-up patch, there is no functional change here.
Signed-off-by: Kevin Wangtao
---
drivers/thermal/hisi_thermal.c | 145 +
1 file changed, 73 insertions(+),
From: Kevin Wangtao
This patchset reorganize hisi thermal driver and make it both
support Hi6220 and Hi3660.
This patchset is based on Daniel thermal patch V2.
https://lkml.org/lkml/2017/9/4/432
Kevin Wangtao (9):
thermal/drivers/hisi: move clk operation to related
From: Tao Wang <kevin.wang...@linaro.org>
This series adds thermal support for Hi3660 Soc, which support
all the hardware temperture sensors and two virtual sensors(one
for maximum value of all and one for average value of all).
Patch 1 add dt-binding document to describe how to con
From: Tao Wang <kevin.wang...@linaro.org>
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang <kevin.wang...@linaro.org>
Signed-off-by: Leo Yan <leo@linaro.org>
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi| 14 +
include/dt-bindings/thermal/hi3
From: Tao Wang <kevin.wang...@linaro.org>
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang <kevin.wang...@linaro.org>
Signed-off-by: Leo Yan <leo
From: Tao Wang <kevin.wang...@linaro.org>
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang <kevin.wang...@linaro.org>
---
.../devicetree/bindings/thermal/hisi-tsensor.txt | 37 ++
1 file
From: Kevin Wangtao
multi alarm interrupt forced a re-trigger of power_allocator_throttle
which changes the PID's actual sampling rate, this isn't optimal for
IPA, it is best to disable multi alarm support now and sort out this
issue later.
Signed-off-by: Kevin Wangtao
From: Kevin Wangtao
multi alarm interrupt forced a re-trigger of power_allocator_throttle
which changes the PID's actual sampling rate, this isn't optimal for
IPA, it is best to disable multi alarm support now and sort out this
issue later.
Signed-off-by: Kevin Wangtao
---
From: Kevin Wangtao
This patchset reorganize hisi thermal driver and make it both
support Hi6220 and Hi3660.
This patchset is based on Daniel thermal patch V2.
https://lkml.org/lkml/2017/9/4/432
Kevin Wangtao (9):
thermal/drivers/hisi: move clk operation to related function
From: Kevin Wangtao
reorganize code for follow-up patch, there is no functional change here.
Signed-off-by: Kevin Wangtao
---
drivers/thermal/hisi_thermal.c | 145 +
1 file changed, 73 insertions(+), 72 deletions(-)
diff --git
From: Kevin Wangtao
add binding for tsensor on H3660, this tsensor is used for
SoC thermal control, it supports alarm interrupt.
Signed-off-by: Kevin Wangtao
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8
1 file changed, 8 insertions(+)
diff --git
From: Kevin Wangtao
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Kevin Wangtao
---
Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt | 9 +
1 file changed, 9 insertions(+)
diff --git
From: Kevin Wangtao
This patch adds the support for thermal sensor of Hi3660 SoC.
Hi3660 tsensor support alarm interrupt and have three configurable
alarm thresholds, it also has a configurable hysteresis interval,
interrupt will be triggered when temperature rise above the alarm
threshold or
From: Kevin Wangtao
For platform compatibility, add tsensor operation function pointer to
thermal data, and each platform has its own probe function to register
proper tsensor operation function to the pointer, platform related
resource request are also implemented in the platform probe
From: Kevin Wangtao
The sensor's clock is enabled and disabled outside of the probe and
disable function. Moving the corresponding action in the
hisi_thermal_setup() and hisi_thermal_disable_sensor(), factors out
some lines of code and makes the code more symmetric.
Signed-off-by: Kevin Wangtao
From: Kevin Wangtao
reorganize code for follow-up patch, there is no functional change here.
Signed-off-by: Kevin Wangtao
---
drivers/thermal/hisi_thermal.c | 76 +-
1 file changed, 38 insertions(+), 38 deletions(-)
diff --git
From: Kevin Wangtao
Use round up divide to ensure the programmed value of threshold and
lag not less than we set, and in order to keep the accuracy while
using round up divide, the step value should also be a round up value.
Then there is no need to use hisi_thermal_round_temp.
Signed-off-by:
From: Kevin Wangtao
tsensor may have multi alarm levels, so we can support
more trip point interrupt.
Signed-off-by: Kevin Wangtao
---
drivers/thermal/hisi_thermal.c | 21 -
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/drivers/thermal/hisi_thermal.c
From: Tao Wang
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi| 14 +
include/dt-bindings/thermal/hi3660-thermal.h | 31
2 files changed, 45 insertions(+)
create
From: Tao Wang
This series adds thermal support for Hi3660 Soc, which support
all the hardware temperture sensors and two virtual sensors(one
for maximum value of all and one for average value of all).
Patch 1 add dt-binding document to describe how to config dt
for the driver.
Patch 2
From: Tao Wang
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
drivers/thermal/Kconfig| 13 +++
drivers/thermal/Makefile
From: Tao Wang
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang
---
.../devicetree/bindings/thermal/hisi-tsensor.txt | 37 ++
1 file changed, 37 insertions(+)
create mode 100644 Documentation
From: Tao Wang
This series adds thermal support for Hi3660 Soc, which support
all the hardware temperture sensors and two virtual sensors(one
for maximum value of all and one for average value of all).
Patch 1 add dt-binding document to describe how to config dt
for the driver.
Patch 2
From: Tao Wang
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi| 10 ++
include/dt-bindings/thermal/hi3660-thermal.h | 30
2 files changed, 40 insertions(+)
create
From: Tao Wang
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang
---
.../devicetree/bindings/thermal/hisi-tsensor.txt | 23 ++
1 file changed, 23 insertions(+)
create mode 100644 Documentation
From: Tao Wang
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
drivers/thermal/Kconfig| 13 +++
drivers/thermal/Makefile
Add the compatible string for supporting the generic device tree cpufreq-dt
driver on Hisilicon's 3660 SoC.
Signed-off-by: Tao Wang
---
drivers/cpufreq/cpufreq-dt-platdev.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c
b/drivers/cpufreq/cpufreq-dt
Add the compatible string for supporting the generic device tree cpufreq-dt
driver on Hisilicon's 3660 SoC.
Signed-off-by: Tao Wang
---
Changes in v2:
- changed order according to Viresh's suggestion
drivers/cpufreq/cpufreq-dt-platdev.c |1 +
1 file changed, 1 insertion(+)
diff --git
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang
---
.../devicetree/bindings/thermal/hi3660-thermal.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi |7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index 3983086
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
drivers/thermal/Kconfig | 10 ++
drivers/thermal/Makefile |1
This adds documentation of device tree bindings for the
thermal sensor controller of hi3660 SoC.
Signed-off-by: Tao Wang
---
Changes in v2:
- remove redundant property
.../devicetree/bindings/thermal/hi3660-thermal.txt | 16
1 file changed, 16 insertions(+)
create mode
This patch adds the support for thermal sensor of Hi3660 SoC.
this will register sensors for thermal framework and use device
tree to bind cooling device.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
Changes in v2:
- correct alphabet order
- correct compatible name
drivers/thermal
Bind thermal sensor driver for Hi3660.
Signed-off-by: Tao Wang
Signed-off-by: Leo Yan
---
Changes in v2:
- rebase changes on linux next
arch/arm64/boot/dts/hisilicon/hi3660.dtsi |6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
b/arch
gaps between cpu
OPPs.
Signed-off-by: Tao Wang
---
drivers/thermal/Kconfig| 17
drivers/thermal/cpu_cooling.c | 31 +
drivers/thermal/cpu_idle_cooling.c |5 +
include/linux/cpu_idle_cooling.h | 38
injection thread, idle injection thread use play_idle to enter
idle. In order to reach deepest idle state, all cores are aligned by
jiffies. the injected idle ratio can be controlled through cooling
device interface.
Signed-off-by: Tao Wang
---
drivers/thermal/Kconfig| 13 +
drivers
58 matches
Mail list logo