Re: [PATCH 1/2] dt-bindings: document Rockchip thermal

2014-08-26 Thread Caesar Wang
Heiko, 在 2014/8/24 7:03, Heiko Stübner 写道: Hi Caesar, Am Samstag, 23. August 2014, 08:15:33 schrieb Caesar Wang: This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip

[PATCH v2 2/2] dt-bindings: document Rockchip thermal

2014-08-26 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang Change-Id: I822eba808c76ab51a5562eb61020a4aed4ff555e --- .../bindings/thermal/rockchip-thermal.txt | 20 1 file changed, 20

[PATCH v2 0/2] Rockchip soc theamal driver

2014-08-26 Thread Caesar Wang
to merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() function style. Caesar Wang (2): thermal: rockchip: add driver for thermal dt-bindings: document Rockchip thermal .../bindings/thermal/

[PATCH v2 1/2] thermal: rockchip: add driver for thermal

2014-08-26 Thread Caesar Wang
-off-by: Caesar Wang Change-Id: I00e7df78c497704657aff16e602aa56b4c14c6f5 --- drivers/thermal/Kconfig|9 + drivers/thermal/Makefile |1 + drivers/thermal/rockchip_thermal.c | 644 3 files changed, 654 insertions(+) create mode

Re: [PATCH v2 1/2] thermal: rockchip: add driver for thermal

2014-08-27 Thread Caesar Wang
Hi Dmtry, 在 2014年08月27日 08:11, Dmitry Torokhov 写道: Hi Caesar, On Wed, Aug 27, 2014 at 07:41:42AM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC all the control signals entirely by software writing

Re: [PATCH v2 2/2] dt-bindings: document Rockchip thermal

2014-08-27 Thread Caesar Wang
Arnd, 在 2014年08月28日 04:17, Arnd Bergmann 写道: On Wednesday 27 August 2014 07:41:43 Caesar Wang wrote: +- clock-names : Shall be "tsadc_clk" for the transfer-clock, and "tsadc_pclk" for +the peripheral clock. Why not just name them "clk" and "p

Re: [PATCH v2 1/2] thermal: rockchip: add driver for thermal

2014-08-27 Thread Caesar Wang
Hi Dmitry, 在 2014年08月28日 02:02, Dmitry Torokhov 写道: On Thu, Aug 28, 2014 at 01:18:12AM +0800, Caesar Wang wrote: Hi Dmtry, 在 2014年08月27日 08:11, Dmitry Torokhov 写道: Hi Caesar, On Wed, Aug 27, 2014 at 07:41:42AM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user

[PATCH v3 2/4] dt-bindings: document Rockchip thermal

2014-08-27 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../devicetree/bindings/thermal/rockchip-thermal.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation

[PATCH v3 3/4] ARM: dts: add main Thermal info to rk3288

2014-08-27 Thread Caesar Wang
Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 36be7bb..3d672e3 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi

[PATCH v3 0/4] Rockchip soc theamal driver

2014-08-27 Thread Caesar Wang
ecessary. - fix the SIMPLE_DEV_PM_OPS() function style. Tested On rk3288 SDK board. Caesar Wang (4): thermal: rockchip: add driver for thermal dt-bindings: document Rockchip thermal ARM: dts: add main Thermal info to rk3288 ARM: dts: enable Thermal on rk3288-evb board .../bindings/thermal/

[PATCH v4 4/4] ARM: dts: enable Thermal on rk3288-evb board

2014-08-27 Thread Caesar Wang
Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-evb.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi index 2964370..fe85dde 100644 --- a/arch/arm/boot/dts/rk3288-evb.dtsi +++ b/arch/arm/boot/dts/rk3288

[PATCH v3 1/4] thermal: rockchip: add driver for thermal

2014-08-27 Thread Caesar Wang
-off-by: Caesar Wang --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 669 + 3 files changed, 679 insertions(+) create mode 100644 drivers/thermal/rockchip_thermal.c diff --git a

Re: [PATCH v3 1/4] thermal: rockchip: add driver for thermal

2014-08-28 Thread Caesar Wang
Arnd & Heiko & Eduardo, OK. Maybe you are right. This driver should be put into drivers/iio/adc/* , Anyway,I will re-edit it ASAP. 在 2014/8/29 0:16, Arnd Bergmann 写道: On Thursday 28 August 2014 18:11:43 Heiko Stübner wrote: Am Donnerstag, 28. August 2014, 10:37:35 schrieb Eduardo Valentin:

Re: [PATCH v4 3/4] ARM: dts: add main Thermal info to rk3288

2014-09-09 Thread Caesar Wang
Hi Heiko, 在 2014年09月09日 19:37, Heiko Stübner 写道: Am Mittwoch, 3. September 2014, 10:10:38 schrieb Caesar Wang: Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot

Re: [PATCH v4 1/4] thermal: rockchip: add driver for thermal

2014-09-09 Thread Caesar Wang
Dear Eduardo, I'm sorry for it. I just received this message.Maybe my mailbox has a problem. Thank you for your comments. 在 2014年08月31日 04:09, Eduardo Valentin 写道: Hello Ceasar, On Wed, Sep 03, 2014 at 10:10:36AM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports

Re: [PATCH v4 1/4] thermal: rockchip: add driver for thermal

2014-09-10 Thread Caesar Wang
Dear Eduardo, 在 2014/9/10 20:46, Eduardo Valentin 写道: Hello Caesar, On Wed, Sep 10, 2014 at 12:39:07PM +0800, Caesar Wang wrote: Dear Eduardo, I'm sorry for it. I just received this message.Maybe my mailbox has a problem. No problems. You can take your time. Thank you for your com

Re: [PATCH v3 2/4] pwm: rockchip: Allow polarity invert on rk3288

2014-08-19 Thread Caesar Wang
Hi Doug, I reviewed it, the change is need. Reviewed-on: https://github.com/rkchrome/kernel.git Reviewed-by: Caesar Wang 在 2014年08月20日 00:07, Doug Anderson 写道: The rk3288 has the ability to invert the polarity of the PWM. Let's enable that ability. To do this we increase the numb

Re: [PATCH v4 2/4] dt-bindings: document Rockchip thermal

2014-09-03 Thread Caesar Wang
在 2014年09月03日 16:07, Heiko Stübner 写道: Am Mittwoch, 3. September 2014, 10:10:37 schrieb Caesar Wang: This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../devicetree/bindings/thermal/rockchip

Re: [PATCH v4 1/4] thermal: rockchip: add driver for thermal

2014-09-04 Thread Caesar Wang
在 2014年09月05日 01:06, Dmitry Torokhov 写道: Hi Caesar, On Wed, Sep 03, 2014 at 10:10:36AM +0800, Caesar Wang wrote: +static int rockchip_thermal_remove(struct platform_device *pdev) +{ + struct rockchip_thermal_data *data = platform_get_drvdata(pdev); + + rockchip_thermal_control

[PATCH v4 3/4] ARM: dts: add main Thermal info to rk3288

2014-09-02 Thread Caesar Wang
Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 36be7bb..3d672e3 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi

[PATCH v4 1/4] thermal: rockchip: add driver for thermal

2014-09-02 Thread Caesar Wang
: Caesar Wang --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 669 + 3 files changed, 679 insertions(+) create mode 100644 drivers/thermal/rockchip_thermal.c diff --git a/drivers

[PATCH v4 4/4] ARM: dts: enable Thermal on rk3288-evb board

2014-09-02 Thread Caesar Wang
Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-evb.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi index 2964370..fe85dde 100644 --- a/arch/arm/boot/dts/rk3288-evb.dtsi +++ b/arch/arm/boot/dts/rk3288

[PATCH v4 0/4] Rockchip soc thermal driver

2014-09-02 Thread Caesar Wang
- remove Author mark - rename TSADC_XXX->TSADCV2_XXX,it eill ready to merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() function style. Tested on rk3288 SDK board Caesar

[PATCH v4 2/4] dt-bindings: document Rockchip thermal

2014-09-02 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../devicetree/bindings/thermal/rockchip-thermal.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation

[PATCH v5 2/2] pwm: rockchip: Added to support for RK3288 SoC

2014-08-08 Thread Caesar Wang
This patch added to support the PWM controller found on RK3288 SoC. Signed-off-by: Caesar Wang --- drivers/pwm/pwm-rockchip.c | 134 + 1 file changed, 110 insertions(+), 24 deletions(-) diff --git a/drivers/pwm/pwm-rockchip.c b/drivers/pwm/pwm

[PATCH v5 1/2] pwm: rockchip: document RK3288 SoC compatible

2014-08-08 Thread Caesar Wang
Document new compatible for PWM founding on RK3288 SoC Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/pwm/pwm-rockchip.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt b/Documentation/devicetree

[PATCH v5 0/2] This series adds support for RK3288 SoC integrated PWM

2014-08-08 Thread Caesar Wang
ers - Changed in rockchip_pwm_data struct - remove the devm_ioremap(),fixed in lcdc driver. Changes in v2: * address comments from Beniamino Galvani: - remove #include . - of_iomap be removed,and devm_ioremap replace it. - remove a line no be used. Caesar Wang (2): pwm: rockchip:

[PATCH v13 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-23 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board, TSHUT is low active on rk3288-evb board. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288

[PATCH v13 0/5] Rockchip soc thermal driver

2014-10-23 Thread Caesar Wang
(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() function style. Caesar Wang (5): thermal: rockchip: add driver for thermal dt-bindings: document Rockchip thermal ARM: dts: add RK3288 Thermal data ARM: dts: add main Thermal info to rk3288 ARM: dts: enable Thermal on rk

[PATCH v13 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-23 Thread Caesar Wang
This patch is depend on rk3288-thermal.dtsi,or it will compile error. If the temperature over a period of time High,over 120C the resulting TSHUT gave CRU module,let it reset the entire chip,or via GPIO give PMIC. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 21

[PATCH v13 3/5] ARM: dts: add RK3288 Thermal data

2014-10-23 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 125C. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-thermal.dtsi | 65 +++ 1 file changed, 65 insertions(+) create mode

[PATCH v13 2/5] dt-bindings: document Rockchip thermal

2014-10-23 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip-thermal.txt | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation

[PATCH v13 1/5] thermal: rockchip: add driver for thermal

2014-10-23 Thread Caesar Wang
: Caesar Wang --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 693 + 3 files changed, 703 insertions(+) create mode 100644 drivers/thermal/rockchip_thermal.c diff --git a/drivers

Re: [v17,1/5] thermal: rockchip: add driver for thermal

2014-11-05 Thread Caesar Wang
gave CRU module,let it reset the entire chip, or via GPIO give PMIC. Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 711

[PATCH v8 0/3] ARM: rk3288 : Add PM Domain support

2014-11-05 Thread Caesar Wang
ructure has changed - Decomposition power-controller, changed to multiple controller (gpu-power-controller, hevc-power-controller) Changes in v2: - remove the "pd->pd.of_node = np" - move clocks to "optional" - make pd_vio clocks all one entry per line

[PATCH v8 2/3] dt-bindings: add document of Rockchip power domain

2014-11-05 Thread Caesar Wang
Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v8: - document go back to v2 Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - DT structure has changed Changes in v2: - move clocks to

[PATCH v8 1/3] power-domain: rockchip: add power domain drivers

2014-11-05 Thread Caesar Wang
In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power ot the whole chip. Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang

[PATCH v8 3/3] ARM: dts: add rk3288 power-domain node

2014-11-05 Thread Caesar Wang
Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v8: - DTS go back to v2 Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Decomposition power-controller, changed to multiple controller

Re: [PATCH v8 3/3] ARM: dts: add rk3288 power-domain node

2014-11-06 Thread Caesar Wang
在 2014年11月06日 16:45, Kever Yang 写道: Hi Caesar, On 11/06/2014 02:22 PM, Caesar Wang wrote: Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang pls detail the reason why you need to add all the clocks into power-controller node. OK, I will fix in next patch v9 if

Re: [PATCH v8 1/3] power-domain: rockchip: add power domain drivers

2014-11-06 Thread Caesar Wang
在 2014年11月06日 17:06, Kever Yang 写道: On 11/06/2014 02:22 PM, Caesar Wang wrote: In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power ot the whole

Re: [PATCH v16 2/5] dt-bindings: document Rockchip thermal

2014-10-30 Thread Caesar Wang
Heiko, 在 2014年10月31日 04:17, Heiko Stübner 写道: Am Mittwoch, 29. Oktober 2014, 10:32:36 schrieb Caesar Wang: This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov

[PATCH v17 1/5] thermal: rockchip: add driver for thermal

2014-10-31 Thread Caesar Wang
: Caesar Wang Reviewed-by: Dmitry Torokhov --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 711 + 3 files changed, 721 insertions(+) create mode 100644 drivers/thermal

[PATCH v17 2/5] dt-bindings: document Rockchip thermal

2014-10-31 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- .../bindings/thermal/rockchip-thermal.txt | 63 ++ 1 file changed, 63 insertions(+) create

[PATCH v17 3/5] ARM: dts: add RK3288 Thermal data

2014-10-31 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 100C. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288-thermal.dtsi | 78 +++ 1 file changed

[PATCH v17 0/5] Rockchip soc thermal driver

2014-10-31 Thread Caesar Wang
r: - fix dt-bindings in rockchip-thermal.txt - remove Author mark - rename TSADC_XXX->TSADCV2_XXX,it eill ready to merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() functi

[PATCH v17 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-31 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board, TSHUT is low active on rk3288-evb board. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[PATCH v17 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-31 Thread Caesar Wang
gave CRU module,let it reset the entire chip,or via GPIO give PMIC. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi

Re: [PATCH v14 2/5] dt-bindings: document Rockchip thermal

2014-10-27 Thread Caesar Wang
Dmitry, 在 2014年10月28日 08:29, Dmitry Torokhov 写道: On Mon, Oct 27, 2014 at 10:39:45AM +0800, Caesar Wang wrote: This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip

Re: [PATCH v14 1/5] thermal: rockchip: add driver for thermal

2014-10-28 Thread Caesar Wang
Dmitry, 在 2014年10月28日 08:32, Dmitry Torokhov 写道: Hi Caesar, On Mon, Oct 27, 2014 at 10:39:44AM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC all the control signals entirely by software writing to

[PATCH v15 2/5] dt-bindings: document Rockchip thermal

2014-10-28 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip-thermal.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation

[PATCH v15 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-28 Thread Caesar Wang
gave CRU module,let it reset the entire chip,or via GPIO give PMIC. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi

[PATCH v15 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-28 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board, TSHUT is low active on rk3288-evb board. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[PATCH v15 0/5] Rockchip soc thermal driver

2014-10-28 Thread Caesar Wang
o merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() function style. Caesar Wang (5): thermal: rockchip: add driver for thermal dt-bindings: document Rockchip thermal ARM: dts: add RK3288 Ther

[PATCH v15 3/5] ARM: dts: add RK3288 Thermal data

2014-10-28 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 120C. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288-thermal.dtsi | 65 +++ 1 file changed

[PATCH v15 1/5] thermal: rockchip: add driver for thermal

2014-10-28 Thread Caesar Wang
: Caesar Wang --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 705 + 3 files changed, 715 insertions(+) create mode 100644 drivers/thermal/rockchip_thermal.c diff --git a/drivers

[PATCH v16 1/5] thermal: rockchip: add driver for thermal

2014-10-28 Thread Caesar Wang
: Caesar Wang Reviewed-by: Dmitry Torokhov --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 709 + 3 files changed, 719 insertions(+) create mode 100644 drivers/thermal

[PATCH v16 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-28 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board, TSHUT is low active on rk3288-evb board. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[PATCH v16 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-28 Thread Caesar Wang
gave CRU module,let it reset the entire chip,or via GPIO give PMIC. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi

[PATCH v16 2/5] dt-bindings: document Rockchip thermal

2014-10-28 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- .../bindings/thermal/rockchip-thermal.txt | 62 ++ 1 file changed, 62 insertions(+) create

[PATCH v16 3/5] ARM: dts: add RK3288 Thermal data

2014-10-28 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 120C. Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- arch/arm/boot/dts/rk3288-thermal.dtsi | 65 +++ 1 file changed

[PATCH v16 0/5] Rockchip soc thermal driver

2014-10-28 Thread Caesar Wang
* address comments from Heiko Stubner: - fix dt-bindings in rockchip-thermal.txt - remove Author mark - rename TSADC_XXX->TSADCV2_XXX,it eill ready to merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary

Re: [PATCH v15 1/5] thermal: rockchip: add driver for thermal

2014-10-28 Thread Caesar Wang
Dmitry, Fixed and sent in patch v16. 在 2014年10月29日 07:46, Dmitry Torokhov 写道: Hi Caesar, On Tue, Oct 28, 2014 at 04:51:23PM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC all the control signals

Re: [PATCH v15 2/5] dt-bindings: document Rockchip thermal

2014-10-28 Thread Caesar Wang
在 2014年10月29日 07:46, Dmitry Torokhov 写道: On Tue, Oct 28, 2014 at 04:51:24PM +0800, Caesar Wang wrote: This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov Added. Thank you

Re: [PATCH v9 1/5] thermal: rockchip: add driver for thermal

2014-10-14 Thread Caesar Wang
Doug, 在 2014年10月14日 00:11, Doug Anderson 写道: Caesar, On Sat, Oct 11, 2014 at 12:29 AM, Caesar Wang wrote: +static void rk_tsadcv2_initialize(int reset_mode, int chn, void __iomem *regs, + unsigned long hw_shut_temp) +{ + u32 shutdown_value

[PATCH v10 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-14 Thread Caesar Wang
This patch is depend on rk3288-thermal.dtsi,or it will compile error. If the temperature over a period of time High,over 120C the resulting TSHUT gave CRU module,let it reset the entire chip,or via GPIO give PMIC. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 20

[PATCH v10 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-14 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-evb.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi

[PATCH v10 1/5] thermal: rockchip: add driver for thermal

2014-10-14 Thread Caesar Wang
: Caesar Wang --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 667 + 3 files changed, 677 insertions(+) create mode 100644 drivers/thermal/rockchip_thermal.c diff --git a/drivers

[PATCH v10 0/5] Rockchip soc thermal driver

2014-10-14 Thread Caesar Wang
ADCV2_XXX,it eill ready to merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() function style. Caesar Wang (5): thermal: rockchip: add driver for thermal dt-bindings: document Rockchip thermal AR

[PATCH v10 3/5] ARM: dts: add RK3288 Thermal data

2014-10-14 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 125C. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-thermal.dtsi | 57 +++ 1 file changed, 57 insertions(+) create mode

[PATCH v10 2/5] dt-bindings: document Rockchip thermal

2014-10-14 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip-thermal.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation

Re: [PATCH v13 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-23 Thread Caesar Wang
Dmitry, 在 2014/10/24 8:46, Dmitry Torokhov 写道: Hi Caesar, On Thu, Oct 23, 2014 at 05:40:06PM +0800, Caesar Wang wrote: This patch is depend on rk3288-thermal.dtsi,or it will compile error. If the temperature over a period of time High,over 120C the resulting TSHUT gave CRU module,let it

Re: [PATCH v13 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-23 Thread Caesar Wang
在 2014/10/24 9:37, Dmitry Torokhov 写道: On October 23, 2014 6:08:52 PM PDT, Caesar Wang wrote: Dmitry, 在 2014/10/24 8:46, Dmitry Torokhov 写道: Hi Caesar, On Thu, Oct 23, 2014 at 05:40:06PM +0800, Caesar Wang wrote: This patch is depend on rk3288-thermal.dtsi,or it will compile error. If

Re: [PATCH v13 3/5] ARM: dts: add RK3288 Thermal data

2014-10-23 Thread Caesar Wang
Dmitry, 在 2014/10/24 8:48, Dmitry Torokhov 写道: Hi Caesar, On Thu, Oct 23, 2014 at 05:40:05PM +0800, Caesar Wang wrote: This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 125C. Signed-off-by: Caesar Wang

Re: [PATCH v13 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-23 Thread Caesar Wang
Dmitry, 在 2014/10/24 10:32, Dmitry Torokhov 写道: On Fri, Oct 24, 2014 at 10:06:43AM +0800, Caesar Wang wrote: 在 2014/10/24 9:37, Dmitry Torokhov 写道: On October 23, 2014 6:08:52 PM PDT, Caesar Wang wrote: Dmitry, 在 2014/10/24 8:46, Dmitry Torokhov 写道: Hi Caesar, On Thu, Oct 23, 2014 at 05

Re: [PATCH v13 1/5] thermal: rockchip: add driver for thermal

2014-10-24 Thread Caesar Wang
在 2014/10/24 16:21, Dmitry Torokhov 写道: On Thu, Oct 23, 2014 at 05:55:46PM -0700, Dmitry Torokhov wrote: Hi Caesar, On Thu, Oct 23, 2014 at 05:40:03PM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC

[PATCH v14 1/5] thermal: rockchip: add driver for thermal

2014-10-26 Thread Caesar Wang
: Caesar Wang --- drivers/thermal/Kconfig| 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rockchip_thermal.c | 699 + 3 files changed, 709 insertions(+) create mode 100644 drivers/thermal/rockchip_thermal.c diff --git a/drivers

[PATCH v14 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-26 Thread Caesar Wang
gave CRU module,let it reset the entire chip,or via GPIO give PMIC. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index cb18bb4..85855a6 100644

[PATCH v14 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-26 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board, TSHUT is low active on rk3288-evb board. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288

[PATCH v14 3/5] ARM: dts: add RK3288 Thermal data

2014-10-26 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 120C. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-thermal.dtsi | 65 +++ 1 file changed, 65 insertions(+) create mode

[PATCH v14 0/5] Rockchip soc thermal driver

2014-10-26 Thread Caesar Wang
ermal.txt - remove Author mark - rename TSADC_XXX->TSADCV2_XXX,it eill ready to merge compatible other SoCs. - fix a identation - remove clk_set_rate(),it's no necessary. - fix the SIMPLE_DEV_PM_OPS() function style. Caesar Wang (5): thermal: rockch

[PATCH v14 2/5] dt-bindings: document Rockchip thermal

2014-10-26 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip-thermal.txt | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation

[PATCH v9 1/3] dt-bindings: add document of Rockchip power domain

2014-11-06 Thread Caesar Wang
This add the necessary binding documentation for the power domain found on Rockchip Socs. Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v9: - add document decription Changes in v8: - document go back to v2 Changes in v7: None Changes

[PATCH v9 3/3] ARM: dts: add rk3288 power-domain node

2014-11-06 Thread Caesar Wang
syncchronous reset and then sync revoked.so we need to enable clocks of all devices. Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v9: - add decription for power-doamin node Changes in v8: - DTS go back to v2 Changes in v7: None Changes in

[PATCH v9 0/3] ARM: rk3288: Add PM Domain support

2014-11-06 Thread Caesar Wang
ntroller, changed to multiple controller (gpu-power-controller, hevc-power-controller) Changes in v2: - move clocks to "optional" - remove the "pd->pd.of_node = np" - make pd_vio clocks all one entry per line and alphabetize. - power: power-controller move ba

[PATCH v9 2/3] power-domain: rockchip: add power doamin driver

2014-11-06 Thread Caesar Wang
In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power ot the whole chip. Signed-off-by: Jack Dai Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang

[RESEND PATCH v16 1/4] dt-bindings: add document of Rockchip power domain

2015-08-25 Thread Caesar Wang
This add the necessary binding documentation for the power domain found on Rockchip Socs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v16: - remove the pmu node. Changes in v15: None Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None

[RESEND PATCH v16 0/4] ARM: rk3288: Add PM Domain support

2015-08-25 Thread Caesar Wang
position power-controller, changed to multiple controller (gpu-power-controller, hevc-power-controller). Changes in v2: - move clocks to "optional". - remove the "pd->pd.of_node = np". - make pd_vio clocks all one entry per line and alphabetize. - power: power-control

[RESEND PATCH v16 3/4] soc: rockchip: power-domain: Add power domain driver

2015-08-25 Thread Caesar Wang
corresponding registers. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v16: - the driver type from tristate to bool. - Letter misspelled. - As Ulf suggestion, remove #include , use "%pC" as the formatting string for the dev_dbg(). - As the Ulf suggestion, set the genpd

[RESEND PATCH v16 2/4] ARM: power-domain: rockchip: add all the domain type on RK3288 SoCs

2015-08-25 Thread Caesar Wang
| | - |-- -- | |VD_PMU |PD_PMU| - VD_* : voltage domain PD_* : power domain At the moment, we can support some power-domain type on RK3288. We can add more types on RK3288 in the future, that's need to do. Signed-off-by: Caesar

[RESEND PATCH v16 4/4] ARM: dts: add the support power-domain node on RK3288 SoCs

2015-08-25 Thread Caesar Wang
-off-by: Caesar Wang --- Changes in v16: - Manually copy the problem in patch v15. - rebase the description. Changes in v15: - As Tomasz remarked previously the dts should represent the hardware and the power-domains are part of the pmu. Changes in v14: - Remove essential clocks from rk3288

Re: [RESEND PATCH v16 4/4] ARM: dts: add the support power-domain node on RK3288 SoCs

2015-08-26 Thread Caesar Wang
在 2015年08月26日 06:45, Kevin Hilman 写道: Doug Anderson writes: Kevin, On Tue, Aug 25, 2015 at 2:07 PM, Kevin Hilman wrote: Caesar Wang writes: We can add more domains node in the future. This patch add the needed clocks into power-controller. As the discuess about all the device clocks

Re: [RESEND PATCH v16 3/4] soc: rockchip: power-domain: Add power domain driver

2015-08-26 Thread Caesar Wang
在 2015年08月26日 04:57, Kevin Hilman 写道: Caesar Wang writes: This driver is found on RK3288 SoCs. In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power

Re: [PATCH] thermal: rockchip: fix handling of invalid readings

2015-08-09 Thread Caesar Wang
Dear Dmitry, Thanks your patch. The code looks like fine,but I don't think the TS-ADC will work on rk3288 SoC. 在 2015年08月08日 04:59, Dmitry Torokhov 写道: We attempted to signal invalid code by returning -EAGAIN from rk_tsadcv2_code_to_temp(), unfortunately the return value was stuffed directly

Re: [PATCH] thermal: rockhip: fix setting thermal shutdown polarity

2015-08-09 Thread Caesar Wang
Sorry, forgot it! \s 'rockhip' to 'rockchip' :-) 在 2015年08月10日 14:34, Caesar Wang 写道: Dear Dmitry, Thanks to work for it. 在 2015年08月08日 05:00, Dmitry Torokhov 写道: When requested thermal shutdown signal polarity is low we need to make sure that the bit representing hig

Re: [PATCH] thermal: rockhip: fix setting thermal shutdown polarity

2015-08-09 Thread Caesar Wang
TSADCV2_INT_PD_CLEAR_MASK to better reflect its nature. Signed-off-by: Dmitry Torokhov Acked-by: Caesar Wang -- Thanks, Caesar --- drivers/thermal/rockchip_thermal.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers

Re: [PATCH] thermal: rockchip: fix handling of invalid readings

2015-08-10 Thread Caesar Wang
在 2015年08月10日 15:59, Dmitry Torokhov 写道: Hi Caesar, On Sun, Aug 9, 2015 at 11:30 PM, Caesar Wang wrote: Dear Dmitry, Thanks your patch. The code looks like fine,but I don't think the TS-ADC will work on rk3288 SoC. What do you mean? It seems to work when I ran it... Making a mi

[PATCH v2] net: arc/emac: Move arc_emac_tx_clean() into arc_emac_tx() and disable tx interrut

2016-05-06 Thread Caesar Wang
] r4: ... Signed-off-by: Shuyu Wei Tested-by: Michael Niewoehner Tested-by: Xing Zheng Cc: "David S. Miller" Cc: Alexander Kochetkov Cc: net...@vger.kernel.org Signed-off-by: Caesar Wang --- drivers/net/ethernet/arc/emac_main.c | 14 +++--- 1 file changed, 7 i

[PATCH] thermal: rockchip: use the usleep_range instead of udelay

2016-05-02 Thread Caesar Wang
ence for tsadc controller"). Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner Suggested-by: Eduardo Valentin Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/rockchip_thermal

Re: [PATCH 4/9] thermal: rockchip: handle the power sequence for tsadc controller

2016-05-02 Thread Caesar Wang
在 2016年04月28日 23:04, Eduardo Valentin 写道: On Thu, Apr 28, 2016 at 09:50:29AM +0800, Caesar Wang wrote: 在 2016年04月28日 07:48, Eduardo Valentin 写道: On Mon, Apr 18, 2016 at 11:35:56AM +0800, Caesar Wang wrote: + regmap_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_TSEN_PD_ON

Re: [PATCH 1/4] thermal: Add support for hardware-tracked trip points

2016-05-02 Thread Caesar Wang
在 2016年04月28日 05:48, Eduardo Valentin 写道: A couple of comments as follows, On Mon, Apr 25, 2016 at 11:02:44AM +0800, Caesar Wang wrote: From: Sascha Hauer This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary

<    1   2   3   4   5   6   7   8   9   10   >