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
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
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
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
: 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
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
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
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
/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
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
在 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
在 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
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
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
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
...
[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
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
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
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
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
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
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
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
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
: 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
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.
在 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
...
[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
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
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
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
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
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
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
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
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
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
在 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
在 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
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
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
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
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
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
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
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
在 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
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
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
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
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 :-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
在 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
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
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
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
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
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
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
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
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
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
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
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
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
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
501 - 600 of 936 matches
Mail list logo