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

2014-10-11 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 | 24

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

2014-10-11 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

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

2014-10-11 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 v9 3/5] ARM: dts: add RK3288 Thermal data

2014-10-11 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 v9 1/5] thermal: rockchip: add driver for thermal

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

Re: [PATCH] i2c: rk3x: Increase wait timeout to 1 second

2015-04-30 Thread Caesar Wang
00644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -72,7 +72,7 @@ enum { #define REG_INT_ALL 0x7f /* Constants */ -#define WAIT_TIMEOUT 200 /* ms */ +#define WAIT_TIMEOUT 1000 /* ms */ Yeah, verified on veyron device. Tested-by: Caesar Wang

Re: [PATCH] i2c: rk3x: Increase wait timeout to 1 second

2015-04-30 Thread Caesar Wang
00644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -72,7 +72,7 @@ enum { #define REG_INT_ALL 0x7f /* Constants */ -#define WAIT_TIMEOUT 200 /* ms */ +#define WAIT_TIMEOUT 1000 /* ms */ Yeah,verified on veyron device. Tested-by: Caesar Wan

[PATCH v3 0/1] thermal: rockchip: make temperature reporting much more accurate

2015-01-21 Thread Caesar Wang
ewed-by: Dmitry Torokhov Caesar Wang (1): thermal: rockchip: make temperature reporting much more accurate drivers/thermal/rockchip_thermal.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the li

[PATCH v3] thermal: rockchip: make temperature reporting much more accurate

2015-01-21 Thread Caesar Wang
/thermal_zone2/temp:39540 /sys/class/thermal/thermal_zone1/temp:39540 /sys/class/thermal/thermal_zone2/temp:39540 /sys/class/thermal/thermal_zone1/temp:39540 /sys/class/thermal/thermal_zone2/temp:39994 Signed-off-by: Caesar Wang Reviewed-by: Dmitry Torokhov --- Changes in v3: Sugge

Re: [PATCH] drm/rockchip: vop: fix vop vsync/hsync polarity

2015-01-21 Thread Caesar Wang
s & DRM_MODE_FLAG_NHSYNC) ? 0 : 1; + val |= (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) ? 0 : (1 << 1); Tested-by: Caesar Wang VOP_CTRL_SET(vop, pin_pol, val); VOP_CTRL_SET(vop, htotal_pw, (htotal << 16) | hsync_len); -- To unsubscribe from this list: send t

Re: [PATCH v3] thermal: rockchip: make temperature reporting much more accurate

2015-01-21 Thread Caesar Wang
在 2015年01月22日 12:01, Daniel Kurtz 写道: On Thu, Jan 22, 2015 at 1:29 AM, Caesar Wang wrote: In general, the kernel should report temperature readings exactly as reported by the hardware. The cpu / gpu thermal driver works in 5 degree increments,but we ought to do more accurate. The temperature

Re: [PATCH v3] thermal: rockchip: make temperature reporting much more accurate

2015-01-21 Thread Caesar Wang
在 2015年01月22日 12:25, Daniel Kurtz 写道: On Thu, Jan 22, 2015 at 12:21 PM, Caesar Wang wrote: 在 2015年01月22日 12:01, Daniel Kurtz 写道: On Thu, Jan 22, 2015 at 1:29 AM, Caesar Wang wrote: In general, the kernel should report temperature readings exactly as reported by the hardware. The cpu / gpu

Re: [PATCH 7/9] thermal: of: Add support for hardware-tracked trip points

2016-04-21 Thread Caesar Wang
Hi Brian, Eduardo, Sascha 在 2016年04月21日 09:12, Brian Norris 写道: + Sascha On Wed, Apr 20, 2016 at 04:48:18PM -0700, Eduardo Valentin wrote: On Mon, Apr 18, 2016 at 11:35:59AM +0800, Caesar Wang wrote: From: Mikko Perttunen This adds support for hardware-tracked trip points to the device

[RESEND PATCH 3/8] thermal: rockchip: update the tsadc table for rk3399

2016-04-22 Thread Caesar Wang
This patch fixes the incorrect conversion table. The Code to Temperature mapping is updated based on sillcon results. Fixes commit b0d70338bca22cb14 ("thermal: rockchip: Support the RK3399 SoCs in thermal driver"). Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin

[RESEND PATCH 6/8] thermal: rockchip: add the notes for better reading

2016-04-22 Thread Caesar Wang
To update the notes for keeping in mind that quickly in case someone re-read this driver in the future. Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- drivers/thermal/rockchip_thermal.c | 74 +++--- 1 file changed, 53

[RESEND PATCH 2/8] thermal: rockchip: fixes the code_to_temp for tsadc driver

2016-04-22 Thread Caesar Wang
... [1.441102] adc_val=410,temp=-4 [1.441416] adc_val=411,temp=-34445 [1.441737] adc_val=412,temp=-33889 ... Let's fix it right now. Fixes commit 020ba95dbbbe ("thermal: rockchip: Add the sort mode for adc value increment or decrement"). Reported-by: Rocky Hao Signed

[RESEND PATCH 0/8] thermal: rockchip: Support rk3366/rk3399 SoCS and fixes the driver

2016-04-22 Thread Caesar Wang
on https://patchwork.kernel.org/patch/8905841/. --- Caesar Wang (6): thermal: rockchip: fixes the code_to_temp for tsadc driver thermal: rockchip: update the tsadc table for rk3399 thermal: rockchip: handle the power sequence for tsadc controller thermal: rockchip: add the notes for bet

[RESEND PATCH 7/8] ARM: dts: rockchip: move the rk3288 thermal data into rk3288.dtsi

2016-04-22 Thread Caesar Wang
In order to be standard to manage for rockchip SoCs, move the thermal data into rk3288 dtsi, we needn't to add a new file for thermal. Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- arch/arm/boot/dts/rk3288-thermal.dtsi

[RESEND PATCH 5/8] thermal: rockchip: Support RK3366 SoCs in the thermal driver

2016-04-22 Thread Caesar Wang
From: Elaine Zhang The RK3366 SoCs have two Temperature Sensors, channel 0 is for CPU channel 1 is for GPU. Signed-off-by: Elaine Zhang Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers

[RESEND PATCH 8/8] arm64: dts: rockchip: move the rk3368 thermal data into rk3368.dtsi

2016-04-22 Thread Caesar Wang
In order to be standard to manage for rockchip SoCs, move the thermal data into rk3368 dtsi, we needn't to add a new file for thermal. Fixes commit f990238f859e ("arm64: dts: rockchip: Add main thermal info to rk3368.dtsi") Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduar

[RESEND PATCH 4/8] thermal: rockchip: handle the power sequence for tsadc controller

2016-04-22 Thread Caesar Wang
ss/thermal/thermal_zone0/temp:40555 /sys/class/thermal/thermal_zone1/temp:4 /sys/class/thermal/thermal_zone0/temp:40555 Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- drivers/thermal/rockchip_thermal.c | 103 ++--- 1 file c

[RESEND PATCH 1/8] thermal: rockchip: disable thermal->clk in err case

2016-04-22 Thread Caesar Wang
From: Shawn Lin Disable thermal->clk when enabling pclk fails in resume routine. Signed-off-by: Shawn Lin Reviewed-by: Heiko Stuebner Reviewed-by: Caesar Wang Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

Re: [PATCH 7/9] thermal: of: Add support for hardware-tracked trip points

2016-04-22 Thread Caesar Wang
Hi Sascha, These are still the newest patches. I won't have any resources in the near future for continuing the work on them, so feel free to pick them up. There hasn't been much discussion around these patches which was the reason I abandoned them. Okay. I start to pick them up and do some te

Re: [PATCH v5 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-03-09 Thread Caesar Wang
Hi Heiko & Elain, 在 2016年03月09日 17:55, Heiko Stübner 写道: Hi Caesar, Am Dienstag, 8. März 2016, 18:45:06 schrieb Caesar Wang: 在 2016年03月03日 16:03, Elaine Zhang 写道: According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/p

Re: [PATCH 10/13] thermal: convert rockchip_thermal to use devm_thermal_zone_of_sensor_register

2016-03-09 Thread Caesar Wang
: linux-rockc...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin Tested-by: Caesar Wang Reviewed-by: Caesar Wang I just cherry-pick the devm* patches to test the rockchip thermal. --- drivers/thermal/rockchip_thermal.c | 17 - 1 file changed

[PATCH v2] pinctrl: rockchip: add support the get_direction

2016-03-15 Thread Caesar Wang
the gpio53 should be out value, but the direction is the default value 'in', since the get_direction didn't supported in rockchip pinctrl. So, we should add this patch to support it. Reported-by: Jeffy Chen Signed-off-by: Caesar Wang Cc: Linus Walleij Cc: Heiko Stuebner Cc: linux-g.

Re: [PATCH v14 11/17] drm: bridge: analogix/dp: add some rk3288 special registers setting

2016-03-18 Thread Caesar Wang
在 2016年02月15日 19:10, Yakir Yang 写道: RK3288 need some special registers setting, we can separate them out by the dev_type of plat_data. Signed-off-by: Yakir Yang Tested-by: Caesar Wang --- Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10

[PATCH 2/9] thermal: rockchip: fixes the code_to_temp for tsadc driver

2016-04-17 Thread Caesar Wang
... [1.441102] adc_val=410,temp=-4 [1.441416] adc_val=411,temp=-34445 [1.441737] adc_val=412,temp=-33889 ... Let's fix it right now. Fixes commit 020ba95dbbbe ("thermal: rockchip: Add the sort mode for adc value increment or decrement"). Reported-by: Rocky Hao Signed

[PATCH 1/9] thermal: rockchip: disable thermal->clk in err case

2016-04-17 Thread Caesar Wang
From: Shawn Lin Disable thermal->clk when enabling pclk fails in resume routine. Signed-off-by: Shawn Lin Reviewed-by: Heiko Stuebner Reviewed-by: Caesar Wang Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

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

2016-04-17 Thread Caesar Wang
ss/thermal/thermal_zone0/temp:40555 /sys/class/thermal/thermal_zone1/temp:4 /sys/class/thermal/thermal_zone0/temp:40555 Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- drivers/thermal/rockchip_thermal.c | 87 +++--- 1 file c

[PATCH 3/9] thermal: rockchip: update the tsadc table for rk3399

2016-04-17 Thread Caesar Wang
This patch fixes the incorrect conversion table. The Code to Temperature mapping is updated based on sillcon results. Fixes commit b0d70338bca22cb14 ("thermal: rockchip: Support the RK3399 SoCs in thermal driver"). Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin

[PATCH 8/9] thermal: rockchip: add the set_trips function

2016-04-17 Thread Caesar Wang
leing rate and throttle frequency to limit the temperature rising When performing passive cooling. Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- drivers/thermal/rockchip_thermal.c | 39 ++ 1 file changed, 39 inser

[PATCH 6/9] thermal: rockchip: add the notes for better reading

2016-04-17 Thread Caesar Wang
To update the notes for keeping in mind that quickly in case someone re-read this driver in the future. Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- drivers/thermal/rockchip_thermal.c | 74 +++--- 1 file changed, 53

[PATCH 7/9] thermal: of: Add support for hardware-tracked trip points

2016-04-17 Thread Caesar Wang
by: David Riley Reviewed-by: David Riley (cherry-picked from https://chromium.googlesource.com/chromiumos/ third_party/kernel/+/v3.18 commit 397befabb2a52fc16586509a970f8c98268b8040) Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner --- drivers/thermal/of

[PATCH 0/9] thermal: rockchip: Support rk3366/rk3399 SoCS and fixes the driver

2016-04-17 Thread Caesar Wang
hip inside kernel(develop4.4). The rk3399 dtsi has benn sent on https://patchwork.kernel.org/patch/8462441/. The dts thermal will be updated in later. --- Caesar Wang (6): thermal: rockchip: fixes the code_to_temp for tsadc driver thermal: rockchip: update the tsadc table for rk3399 ther

[PATCH 5/9] thermal: rockchip: Support RK3366 SoCs in the thermal driver

2016-04-17 Thread Caesar Wang
From: Elaine Zhang The RK3366 SoCs have two Temperature Sensors, channel 0 is for CPU channel 1 is for GPU. Signed-off-by: Elaine Zhang Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers

[PATCH 9/9] arm64: dts: rockchip: move the rk3368 thermal data into rk3368.dtsi

2016-04-17 Thread Caesar Wang
In order to be standard to manage for rockchip SoCs, move the thermal data into rk3368 dtsi, we needn't to add a new file for thermal. Fixes commit f990238f859e ("arm64: dts: rockchip: Add main thermal info to rk3368.dtsi") Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduar

Re: [PATCH RESEND v2 4/4] ARM64: dts: rockchip: add dts file for RK3399 evaluation board

2016-04-24 Thread Caesar Wang
在 2016年04月22日 13:51, Jianqun Xu 写道: This patch add rk3399-evb.dts for RK3399 evaluation board. Tested on RK3399 evb. Signed-off-by: Jianqun Xu --- changes in v2: - remove rk808 since without i2c, which will upstream independently - remove es8316 since without i2c, which will upstream independ

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

2016-04-24 Thread Caesar Wang
on an earlier version from Mikko Perttunen Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org --- drivers/thermal/thermal_core.c | 48 ++ include/linux/thermal.h| 3 +++ 2 files ch

[PATCH 2/4] thermal: of: implement .set_trips for device tree thermal zones

2016-04-24 Thread Caesar Wang
From: Sascha Hauer Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org --- drivers/thermal/of-thermal.c | 12 include/linux/thermal.h | 4 2 files changed, 16 insertions(+) diff --git a/drivers

[PATCH 0/4] Thermal: Support for hardware-tracked trip points

2016-04-24 Thread Caesar Wang
The history patches come from Mikko and Sascha. http://thread.gmane.org/gmane.linux.power-management.general/59451 Now, I pick them up to continue upstream. Nevermind! Tis series adds support for hardware trip points. It picks up earlier work from Mikko Perttunen. Mikko implemented hardware trip

[PATCH 3/4] thermal: streamline get_trend callbacks

2016-04-24 Thread Caesar Wang
Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org --- drivers/thermal/of-thermal.c | 11 +- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 25 +++--- include/linux/thermal.h

[PATCH 4/4] thermal: bang-bang governor: act on lower trip boundary

2016-04-24 Thread Caesar Wang
governor does not react. Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org --- drivers/thermal/gov_bang_bang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/gov_bang_bang.c b/drivers

Re: [PATCH] regulator: reorder initialization steps in regulator_register()

2016-04-12 Thread Caesar Wang
oltage() is called. Signed-off-by: Boris Brezillon Reported-by: Stephen Barber Tested-by: Caesar Wang Yep, do many reboot tests on my rk3399 evb board. that's seem fix the crash issue. [ 0.744584] task: ffc0edab8000 ti: ffc0edac task.ti: ffc0edac [ 0.752803

Re: [PATCH v1 3/6] thermal: rockchip: Support the RK3368 SoCs in thermal driver

2015-11-04 Thread Caesar Wang
Hello Eduardo, Thanks your comments. 在 2015年11月04日 01:48, Eduardo Valentin 写道: Hello Caesar, On Thu, Oct 29, 2015 at 03:14:15PM +0800, Caesar Wang wrote: The RK3368 SoCs support to 2 channel TS-ADC, the temperature criteria of each channel can be configurable. The system has two Temperature

[PATCH v2 0/9] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-04 Thread Caesar Wang
ges: 1 - As Dmitry comment, make the conversion table in as a parameter. - remove some unused, completed on other patchs. - fix a copy wrong name. Series-changes: 1 - support the opt gpio pinctrl state Changes in v1: - %s/thermal/rockchip-thermal in subject. - add a new patch for thermal driver to su

[PATCH v2 1/9] dt-bindings: rockchip-thermal: Support the RK3368 SoCs compatible

2015-11-04 Thread Caesar Wang
This patchset attempts to new compatible for thermal founding on RK3368 SoCs. Signed-off-by: Caesar Wang --- Changes in v2: None Changes in v1: - %s/thermal/rockchip-thermal in subject. Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v2 3/9] thermal: rockchip: trivial: fix typo in commit

2015-11-04 Thread Caesar Wang
Signed-off-by: Caesar Wang --- Changes in v2: - As Eduardo comments on patch v1, split in smaller changes. Changes in v1: None drivers/thermal/rockchip_thermal.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/rockchip_thermal.c b

[PATCH v2 2/9] thermal: rockchip: better to compatible the driver for different SoCs

2015-11-04 Thread Caesar Wang
The current driver is default to register the two thermal sensors in probe since some SoCs maybe only have one sensor for thermal. In some cases, the channel 0 is not always the cpu or gpu sensor. So add the channel can be configured for sensors. Signed-off-by: Caesar Wang --- Changes in v2

[PATCH v2 7/9] arm64: dts: Add the thermal data found on RK3368

2015-11-04 Thread Caesar Wang
critical temperature for thermal over-tempeature protection on Software. Signed-off-by: Caesar Wang --- Changes in v2: None Changes in v1: None arch/arm64/boot/dts/rockchip/rk3368-thermal.dtsi | 112 +++ 1 file changed, 112 insertions(+) create mode 100644 arch/arm64/boot/dts

[PATCH v2 5/9] thermal: rockchip: Add the flag for adc value increment or decrement

2015-11-04 Thread Caesar Wang
The conversion table has the adc value and temperature. In fact, the adc value only has the increment or decrement mode in conversion table. Moment, we can add the flag to be better support the *code_to_temp* for differenr SoCs. Signed-off-by: Caesar Wang --- Changes in v2: None Changes in v1

[PATCH v2 4/9] thermal: rockchip: improve the conversion function

2015-11-04 Thread Caesar Wang
We should make the conversion table in as a parameter since the different SoCs have the different conversionion table. Signed-off-by: Caesar Wang --- Changes in v2: - make the conversion table in as a parameter both code_to_temp and temp_to_code function. Series-changes: 1 - As Dmitry comment

[PATCH v2 8/9] arm64: dts: Add main Thermal info to rk3368.dtsi

2015-11-04 Thread Caesar Wang
This patch add the thermal needed info on RK3368. Meanwhile, support the trips to throttle for thermal. Signed-off-by: Caesar Wang --- Changes in v2: - fix a copy wrong name. Series-changes: 1 - support the opt gpio pinctrl state Changes in v1: None arch/arm64/boot/dts/rockchip/rk3368.dtsi

[PATCH v2 6/9] thermal: rockchip: Support the RK3368 SoCs in thermal drivers

2015-11-04 Thread Caesar Wang
The RK3368 SoCs support to 2 channel TS-ADC, the temperature criteria of each channel can be configurable. The system has two Temperature Sensors, channel 0 is for CPU, and channel 1 is for GPU. Signed-off-by: Caesar Wang --- Changes in v2: - remove some unused, completed on other patchs

[PATCH v2 9/9] arm64: dts: Enable the Thermal on R88 board

2015-11-04 Thread Caesar Wang
This patch enable the TS-ADC. When a thermal temperature is invoked use the CRU to reset the chip on R88 board. TSHUT is low active on this board. Signed-off-by: Caesar Wang --- Changes in v2: None Changes in v1: None arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 6 ++ 1 file changed, 6

Re: linux-next: build failure after merge of the thermal-soc tree

2015-11-05 Thread Caesar Wang
在 2015年11月05日 13:01, Stephen Rothwell 写道: Hi Eduardo, After merging the thermal-soc tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/thermal/rockchip_thermal.c: In function 'rockchip_thermal_suspend': drivers/thermal/rockchip_thermal.c:641:2: error: implicit dec

Re: [PATCH v2 0/4] Crypto: add crypto accelerator support for rk3288

2015-11-05 Thread Caesar Wang
Hi 在 2015年11月06日 09:17, Zain Wang 写道: This commit support three cipher(AES/DES/DES3) and two chainmode(ecb/cbc), and the more algorithms and new hash drivers will be added later on. Changed in v2: - remove some part about hash - add weak key detection - changed some variate's type Changed in v

Re: [PATCH v2 1/4] Crypto: Crypto driver support aes/des/des3 for rk3288

2015-11-05 Thread Caesar Wang
I guess the subject: "crypto: rockchip: " Maybe better. 在 2015年11月06日 09:17, Zain Wang 写道: The names registered are: ecb(aes) cbc(aes) ecb(des) cbc(des) ecb(des3_ede) cbc(des3_ede) You can alloc tags above in your case. And other algorithms and platforms will be added later on. Signe

Re: [PATCH v2 3/4] ARM: dts: rockchip: Add Crypto drivers for rk3288

2015-11-05 Thread Caesar Wang
the subject should be add the node/info for crypto... 在 2015年11月06日 09:17, Zain Wang 写道: Add Crypto drivers for rk3288 including crypto controller and dma clk. Signed-off-by: Zain Wang --- Changed in v2: - None Changed in v1: - remove the _crypto suffix - use "rockchip,rk3288-crypto" instead

[PATCH v2 0/3] Support more sample rates, let the rates normal work

2015-11-06 Thread Caesar Wang
on devices. Changes in v2: - move the set clock divider into rockchip i2s. - add the 64000 sample rates for max98090. - add the 64000 sample rate for rt5645. Caesar Wang (3): ASoC: rockchip: i2s: change bclk and lrck according to sample rates ASoC: rockchip-max98090: Allow more sample ra

[PATCH v2 1/3] ASoC: rockchip: i2s: change bclk and lrck according to sample rates

2015-11-06 Thread Caesar Wang
and LRCK to transmitter and receiver. Signed-off-by: Caesar Wang --- Changes in v2: - move the set clock divider into rockchip i2s. sound/soc/rockchip/rockchip_i2s.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc

[PATCH v2 2/3] ASoC: rockchip-max98090: Allow more sample rates

2015-11-06 Thread Caesar Wang
The MAX98090 audio codec support sample rates from 8 to 96 kHz as the dai claim. Signed-off-by: Caesar Wang --- Changes in v2: - add the 64000 sample rates for max98090. sound/soc/rockchip/rockchip_max98090.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/rockchip

[PATCH v2 3/3] ASoC: rockchip-rt5645: Allow more sample rates

2015-11-06 Thread Caesar Wang
The RT5645 audio codec support sample rates from 8 to 96 kHz as the dai claim. Signed-off-by: Caesar Wang --- Changes in v2: - add the 64000 sample rate for rt5645. sound/soc/rockchip/rockchip_rt5645.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/rockchip

Re: [PATCH v2 6/9] thermal: rockchip: Support the RK3368 SoCs in thermal drivers

2015-11-07 Thread Caesar Wang
在 2015年11月07日 03:39, Andy Shevchenko 写道: On Thu, Nov 5, 2015 at 7:18 AM, Caesar Wang wrote: The RK3368 SoCs support to 2 channel TS-ADC, the temperature criteria of each channel can be configurable. The system has two Temperature Sensors, channel 0 is for CPU, and channel 1 is for GPU

Re: [PATCH v2 4/9] thermal: rockchip: improve the conversion function

2015-11-07 Thread Caesar Wang
Hello Eduardo, 在 2015年11月07日 03:00, Eduardo Valentin 写道: Hello Caesar, On Thu, Nov 05, 2015 at 01:18:00PM +0800, Caesar Wang wrote: We should make the conversion table in as a parameter since the different SoCs have the different conversionion table. Signed-off-by: Caesar Wang --- Changes

Re: [PATCH v2 5/9] thermal: rockchip: Add the flag for adc value increment or decrement

2015-11-07 Thread Caesar Wang
Hello Eduardo, 在 2015年11月07日 03:11, Eduardo Valentin 写道: On Thu, Nov 05, 2015 at 01:18:01PM +0800, Caesar Wang wrote: The conversion table has the adc value and temperature. In fact, the adc value only has the increment or decrement mode in conversion table. Moment, we can add the flag to be

Re: [PATCH v2 0/9] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-07 Thread Caesar Wang
Hi Eduardo, 在 2015年11月07日 02:47, Eduardo Valentin 写道: Caesar, On Thu, Nov 05, 2015 at 01:17:56PM +0800, Caesar Wang wrote: This series patchs are working for RK3368 on Rockchip platform. Good to see the perseverance! :-) I will send th patch [4-6] next version and another pacth(fix the

Re: [PATCH v2 0/9] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-07 Thread Caesar Wang
Heiko, 在 2015年11月07日 03:03, Heiko Stuebner 写道:[] [] I call dibs on the devicetree patches :-) . Code and dt parts are very much separate, so I'd like to take the dt parts though my tree and arm-soc to keep further dts changes together. Of course only once you are ok with the code parts :-

[PATCH v3 00/10] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-08 Thread Caesar Wang
a copy wrong name. Series-changes: 1 - support the opt gpio pinctrl state. Changes in v1: - %s/thermal/rockchip-thermal in subject. - add a new patch for thermal driver to support more SoCs. Caesar Wang (10): dt-bindings: rockchip-thermal: Support the RK3368 SoCs compatible thermal: rockc

[PATCH v3 10/10] arm64: dts: Enable the Thermal on R88 board

2015-11-08 Thread Caesar Wang
This patch enable the TS-ADC. When a thermal temperature is invoked use the CRU to reset the chip on R88 board. TSHUT is low active on this board. Signed-off-by: Caesar Wang Acked-by: Eduardo Valentin --- Changes in v3: None Changes in v2: None Changes in v1: None arch/arm64/boot/dts

[PATCH v3 01/10] dt-bindings: rockchip-thermal: Support the RK3368 SoCs compatible

2015-11-08 Thread Caesar Wang
This patchset attempts to new compatible for thermal founding on RK3368 SoCs. Signed-off-by: Caesar Wang Acked-by: Rob Herring --- Changes in v3: None Changes in v2: None Changes in v1: - %s/thermal/rockchip-thermal in subject. Documentation/devicetree/bindings/thermal/rockchip-thermal.txt

[PATCH v3 06/10] thermal: rockchip: consistently use int for temperatures

2015-11-08 Thread Caesar Wang
As Temperature is currently represented as int not long in the thermal framework since use int intead of unsigned long/long to represent temperature to avoid bogus overheat detection when negative temperature reported. Signed-off-by: Caesar Wang --- Changes in v3: - As the Patch v2 comments

[PATCH v3 08/10] arm64: dts: Add the thermal data found on RK3368

2015-11-08 Thread Caesar Wang
critical temperature for thermal over-tempeature protection on Software. Signed-off-by: Caesar Wang Acked-by: Eduardo Valentin --- Changes in v3: None Changes in v2: None Changes in v1: None arch/arm64/boot/dts/rockchip/rk3368-thermal.dtsi | 112 +++ 1 file changed, 112 insertions

[PATCH v3 05/10] thermal: rockchip: Add the sort flag for adc value increment or decrement

2015-11-08 Thread Caesar Wang
The conversion table has the adc value and temperature. In fact, the adc value only has the increment or decrement mode in conversion table. Moment, we can add the sort flag to be better support the *code_to_temp* for differenr SoCs. Signed-off-by: Caesar Wang --- Changes in v3: - rename the

[PATCH v3 07/10] thermal: rockchip: Support the RK3368 SoCs in thermal drivers

2015-11-08 Thread Caesar Wang
The RK3368 SoCs support to 2 channel TS-ADC, the temperature criteria of each channel can be configurable. The system has two Temperature Sensors, channel 0 is for CPU, and channel 1 is for GPU. Signed-off-by: Caesar Wang --- Changes in v3: - :%s/flag/sort_flag - fix the rk3368 sort_flag as

[PATCH v3 09/10] arm64: dts: Add main Thermal info to rk3368.dtsi

2015-11-08 Thread Caesar Wang
This patch add the thermal needed info on RK3368. Meanwhile, support the trips to throttle for thermal. Signed-off-by: Caesar Wang Acked-by: Eduardo Valentin --- Changes in v3: None Changes in v2: - fix a copy wrong name. Series-changes: 1 - support the opt gpio pinctrl state. Changes in v1

[PATCH v3 04/10] thermal: rockchip: improve the conversion function

2015-11-08 Thread Caesar Wang
We should make the conversion table in as a parameter since the different SoCs have the different conversionion table. Signed-off-by: Caesar Wang --- Changes in v3: - As Eduardo comments, let's change data_mask type with 'u32' instead of 'unsigned long'. Ser

[PATCH v3 03/10] thermal: rockchip: trivial: fix typo in commit

2015-11-08 Thread Caesar Wang
Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: - As Eduardo comments on patch v1, split in smaller changes. Changes in v1: None drivers/thermal/rockchip_thermal.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/thermal

[PATCH v3 02/10] thermal: rockchip: better to compatible the driver for different SoCs

2015-11-08 Thread Caesar Wang
The current driver is default to register the two thermal sensors in probe since some SoCs maybe only have one sensor for thermal. In some cases, the channel 0 is not always the cpu or gpu sensor. So add the channel can be configured for sensors. Signed-off-by: Caesar Wang --- Changes in v3

Re: [PATCH v2 0/9] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-08 Thread Caesar Wang
Hi Heiko, 在 2015年11月08日 07:13, Heiko Stuebner 写道: Hi Caesar, Am Samstag, 7. November 2015, 23:53:30 schrieb Caesar Wang: 在 2015年11月07日 03:03, Heiko Stuebner 写道:[] [] I call dibs on the devicetree patches :-) . Code and dt parts are very much separate, so I'd like to take the dt

[PATCH] thermal: rockchip: fix compile error

2015-11-08 Thread Caesar Wang
on] ^pinctrl_pm_select_default_state(dev); cc1: some warnings being treated as errors Fixes: 7e38a5b1daa1 ("thermal: rockchip: support the sleep pinctrl state to avoid glitches") Reported-by: Stephen Rothwell Reported-by: kbuild test robot Signed-off-by: Caesar Wang --- drivers/t

Re: [PATCH v2 1/4] clocksource: rockchip: Make the driver more compatible

2015-10-29 Thread Caesar Wang
Hi Daniel, 在 2015年10月01日 03:14, Heiko Stübner 写道: Hi Daniel, Am Dienstag, 29. September 2015, 06:18:03 schrieb Daniel Lezcano: On 09/25/2015 04:14 AM, Caesar Wang wrote: Build the arm64 SoCs (e.g.: RK3368) on Rockchip platform, There are some failure with build up on timer driver for

[PATCH 1/3] ASoC: rockchip: i2s: Add set the divider clock API

2015-11-01 Thread Caesar Wang
In order to support more rates, add the divider clock api. As the input source clock to the module is MCLK_I2S, and by the divider of the module, the clock generator generates SCLK and LRCK to transmitter and receiver. Signed-off-by: Caesar Wang --- sound/soc/rockchip/rockchip_i2s.c | 29

[PATCH 2/3] ASoC: rockchip-max98090: add the divider the clock for cpu

2015-11-01 Thread Caesar Wang
Add to set the cpu/codec DAI configure, let's divider the Transmit/Receive clock for cpu. In master mode, The SCLK and LRCK are configured as output, this patch should can set each divider to arrange the clock distribution. Signed-off-by: Caesar Wang --- sound/soc/rockchip/rockchip_max98

[PATCH 3/3] ASoC: rockchip-rt5645: add the divider the clock for cpu

2015-11-01 Thread Caesar Wang
Add to set the cpu/codec DAI configure, let's divider the Transmit/Receive clock for cpu. In master mode, The SCLK and LRCK are configured as output, this patch should can set each divider to arrange the clock distribution. Signed-off-by: Caesar Wang --- sound/soc/rockchip/rockchip_rt5

Re: [PATCH v18 1/4] dt-bindings: add document of Rockchip power domains

2015-09-14 Thread Caesar Wang
Hi Heiko, 在 2015年09月15日 02:40, Heiko Stübner 写道: Hi Caesar, Jinkun, Am Dienstag, 8. September 2015, 14:18:20 schrieb Caesar Wang: This add the necessary binding documentation for the power domains found on Rockchip SoCs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang What is Jinkun

Re: [PATCH v2 5/9] thermal: rockchip: Add the flag for adc value increment or decrement

2015-11-08 Thread Caesar Wang
在 2015年11月07日 23:38, Caesar Wang 写道: Hello Eduardo, 在 2015年11月07日 03:11, Eduardo Valentin 写道: On Thu, Nov 05, 2015 at 01:18:01PM +0800, Caesar Wang wrote: The conversion table has the adc value and temperature. In fact, the adc value only has the increment or decrement mode in conversion

[PATCH v4 00/10] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-08 Thread Caesar Wang
function. - remove some unused, completed on other patchs. - fix a copy wrong name. Changes in v1: - %s/thermal/rockchip-thermal in subject. - add a new patch for thermal driver to support more SoCs. - As Dmitry comment, make the conversion table in as a parameterm. - support the opt gpio

[PATCH v4 07/10] thermal: rockchip: Support the RK3368 SoCs in thermal driver

2015-11-08 Thread Caesar Wang
The RK3368 SoCs support to 2 channel TS-ADC, the temperature criteria of each channel can be configurable. The system has two Temperature Sensors, channel 0 is for CPU, and channel 1 is for GPU. Signed-off-by: Caesar Wang --- Changes in v4: - :%s/sort_flag/mode. - rename the 'driver

[PATCH v4 01/10] dt-bindings: rockchip-thermal: Support the RK3368 SoCs compatible

2015-11-08 Thread Caesar Wang
This patchset attempts to new compatible for thermal founding on RK3368 SoCs. Signed-off-by: Caesar Wang Acked-by: Rob Herring --- Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: - %s/thermal/rockchip-thermal in subject. Documentation/devicetree/bindings/thermal

[PATCH v4 06/10] thermal: rockchip: consistently use int for temperatures

2015-11-08 Thread Caesar Wang
As Temperature is currently represented as int not long in the thermal framework since use int intead of unsigned long/long to represent temperature to avoid bogus overheat detection when negative temperature reported. Signed-off-by: Caesar Wang --- Changes in v4: - fix the warning from the

[PATCH v4 05/10] thermal: rockchip: Add the sort mode for adc value increment or decrement

2015-11-08 Thread Caesar Wang
The conversion table has the adc value and temperature. In fact, the adc value only has the increment or decrement mode in conversion table. Moment, we can add the sort mode to be better support the *code_to_temp* for differenr SoCs. Signed-off-by: Caesar Wang --- Changes in v4: - rename the

[PATCH v4 08/10] arm64: dts: Add the thermal data found on RK3368

2015-11-08 Thread Caesar Wang
critical temperature for thermal over-tempeature protection on Software. Signed-off-by: Caesar Wang Acked-by: Eduardo Valentin --- Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None arch/arm64/boot/dts/rockchip/rk3368-thermal.dtsi | 112 +++ 1 file

[PATCH v4 04/10] thermal: rockchip: improve the conversion function

2015-11-08 Thread Caesar Wang
We should make the conversion table in as a parameter since the different SoCs have the different conversionion table. Signed-off-by: Caesar Wang --- Changes in v4: None Changes in v3: - As Eduardo comments, let's change data_mask type with 'u32' instead of 'unsigned l

[PATCH v4 09/10] arm64: dts: Add main Thermal info to rk3368.dtsi

2015-11-08 Thread Caesar Wang
This patch add the thermal needed info on RK3368. Meanwhile, support the trips to throttle for thermal. Signed-off-by: Caesar Wang Acked-by: Eduardo Valentin --- Changes in v4: None Changes in v3: None Changes in v2: - fix a copy wrong name. Changes in v1: - support the opt gpio pinctrl

[PATCH v4 03/10] thermal: rockchip: trivial: fix typo in commit

2015-11-08 Thread Caesar Wang
Signed-off-by: Caesar Wang --- Changes in v4: None Changes in v3: None Changes in v2: - As Eduardo comments on patch v1, split in smaller changes. Changes in v1: None drivers/thermal/rockchip_thermal.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git

[PATCH v4 10/10] arm64: dts: Enable the Thermal on R88 board

2015-11-08 Thread Caesar Wang
This patch enable the TS-ADC. When a thermal temperature is invoked use the CRU to reset the chip on R88 board. TSHUT is low active on this board. Signed-off-by: Caesar Wang Acked-by: Eduardo Valentin --- Changes in v4: - Missing the ";" caused compile error. Changes in v3: None

[PATCH v4 02/10] thermal: rockchip: better to compatible the driver for different SoCs

2015-11-08 Thread Caesar Wang
The current driver is default to register the two thermal sensors in probe since some SoCs maybe only have one sensor for thermal. In some cases, the channel 0 is not always the cpu or gpu sensor. So add the channel can be configured for sensors. Signed-off-by: Caesar Wang --- Changes in v4

[PATCH 3/4] ARM: dts: rockchip: add eFuse node for rk3066a SoCs

2015-11-10 Thread Caesar Wang
This patch add the eFuse dt node for rk3066a SoCs. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3066a.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi index 946f187..f61bb8a 100644 --- a/arch/arm/boot

[PATCH 2/4] nvmem: rockchip: trivial: Make the driver more readability

2015-11-10 Thread Caesar Wang
1) Make the include file to sort from order 2) clean up the driver to make more readability Let's clean up such trivial details. Signed-off-by: Caesar Wang --- drivers/nvmem/rockchip-efuse.c | 90 -- 1 file changed, 42 insertions(+), 48 dele

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