Re: [PATCH 2/2] pwm: add this series patch to support for rk-pwm and vop-pwm.

2014-07-17 Thread caesar
Hi Beniamino, 于 2014年07月18日 03:24, Beniamino Galvani 写道: On Thu, Jul 17, 2014 at 02:08:14PM +0800, caesar wrote: Signed-off-by: caesar Hi Caesar, just a couple of comments below. --- drivers/pwm/pwm-rockchip.c | 108 - 1 file changed, 88

Re: [PATCH 2/2] pwm: add this series patch to support for rk-pwm and vop-pwm.

2014-07-18 Thread caesar
Hi Thierry, 于 2014年07月18日 18:03, Thierry Reding 写道: On Fri, Jul 18, 2014 at 01:05:56PM +0800, caesar wrote: 于 2014年07月18日 03:24, Beniamino Galvani 写道: On Thu, Jul 17, 2014 at 02:08:14PM +0800, caesar wrote: [...] @@ -119,9 +185,12 @@ static int rockchip_pwm_probe(struct platform_device

Re: [PATCH v2 1/2] pwm: add this patch to introduce for rk-pwm and vop-pwm

2014-07-21 Thread caesar
Hi Thierry, 于 2014年07月21日 16:57, Thierry Reding 写道: On Sat, Jul 19, 2014 at 08:55:28PM +0800, Caesar Wang wrote: Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/pwm/pwm-rockchip.txt | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a

Re: [PATCH v2 2/2] pwm: add this patch to support the new pwm of Rockchip SoCs

2014-07-21 Thread caesar
于 2014年07月21日 21:27, Thierry Reding 写道: On Mon, Jul 21, 2014 at 08:58:42PM +0800, caesar wrote: 于 2014年07月21日 16:50, Thierry Reding 写道: On Sat, Jul 19, 2014 at 08:55:29PM +0800, Caesar Wang wrote: [...] struct rockchip_pwm_chip *pc; struct resource *r; int ret

Re: [PATCH v2 2/2] pwm: add this patch to support the new pwm of Rockchip SoCs

2014-07-29 Thread caesar
Thierry, 在 2014年07月29日 18:22, Thierry Reding 写道: On Mon, Jul 28, 2014 at 07:19:18PM +0800, caesar wrote: Doug, 在 2014年07月28日 12:01, Doug Anderson 写道: Caesar, On Sun, Jul 27, 2014 at 7:00 AM, caesar wrote: /*I think will be show the faill log:-> * rockchip-pwm ff9301a0.pwm: can't

Re: [PATCH v2 2/2] pwm: add this patch to support the new pwm of Rockchip SoCs

2014-07-29 Thread caesar
Thierry, 在 2014年07月29日 19:38, Thierry Reding 写道: On Tue, Jul 29, 2014 at 07:09:07PM +0800, caesar wrote: Thierry, 在 2014年07月29日 18:22, Thierry Reding 写道: On Mon, Jul 28, 2014 at 07:19:18PM +0800, caesar wrote: Doug, 在 2014年07月28日 12:01, Doug Anderson 写道: Caesar, On Sun, Jul 27, 2014 at 7

Re: [PATCH v2 2/2] pwm: add this patch to support the new pwm of Rockchip SoCs

2014-07-25 Thread caesar
Hi Thierry, 在 2014年07月21日 21:27, Thierry Reding 写道: On Mon, Jul 21, 2014 at 08:58:42PM +0800, caesar wrote: 于 2014年07月21日 16:50, Thierry Reding 写道: On Sat, Jul 19, 2014 at 08:55:29PM +0800, Caesar Wang wrote: [...] struct rockchip_pwm_chip *pc; struct resource *r

Re: [PATCH v2 2/2] pwm: add this patch to support the new pwm of Rockchip SoCs

2014-07-28 Thread caesar
Doug, 在 2014年07月28日 12:01, Doug Anderson 写道: Caesar, On Sun, Jul 27, 2014 at 7:00 AM, caesar wrote: /*I think will be show the faill log:-> * rockchip-pwm ff9301a0.pwm: can't request region for resource [mem 0xff9301a0-0xff93019f] */ pc->base = devm_ioremap_resource(dev, regs

Re: [PATCH v2 2/2] pwm: add this patch to support the new pwm of Rockchip SoCs

2014-07-29 Thread caesar
Hi Olof, Sorry, I didn't understand all of what you mean. Please allow me to paste the following code [1]. 在 2014年07月29日 00:58, Olof Johansson 写道: On Mon, Jul 28, 2014 at 4:19 AM, caesar wrote: Doug, 在 2014年07月28日 12:01, Doug Anderson 写道: Caesar, On Sun, Jul 27, 2014 at 7:00 AM, c

[PATCH 0/2] This series adds support for Rockchip SoCs integrated PWM.

2014-07-16 Thread caesar
s. So we have to add support to the new pwm version and VOP_PWM for next genenation RK SoCs. Tested on RK3288 SDK board. caesar (2): [PATCH 1/2] pwm: add this series patch to introduce for rk-pwm and vop-pwm [PATCH 2/2] pwm: add this series patch to support for rk-pwm and vop-pwm. .../devicet

[PATCH 2/2] pwm: add this series patch to support for rk-pwm and vop-pwm.

2014-07-16 Thread caesar
Signed-off-by: caesar --- drivers/pwm/pwm-rockchip.c | 108 - 1 file changed, 88 insertions(+), 20 deletions(-) diff --git a/drivers/pwm/pwm-rockchip.c b/drivers/pwm/pwm-rockchip.c index eec2145..59b0380 100644 --- a/drivers/pwm/pwm-rockchip.c +++ b

[PATCH 1/2] pwm: add this series patch to introduce for rk-pwm and vop-pwm.

2014-07-16 Thread caesar
Signed-off-by: caesar --- Documentation/devicetree/bindings/pwm/pwm-rockchip.txt | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt b/Documentation/devicetree/bindings/pwm/pwm-rockchip.txt index 3182126

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

2014-07-23 Thread caesar
Hi Heiko & thierry, Thank you for your suggestion. 于 2014年07月24日 00:01, Heiko Stübner 写道: Hi Caesar. Am Mittwoch, 23. Juli 2014, 14:38:41 schrieb Caesar Wang: This patch added to support the PWM controller found on RK3288 SoC. Signed-off-by: Caesar Wang --- drivers/pwm/pwm-rockch

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

2014-07-24 Thread caesar
Hi Heiko, 在 2014年07月24日 16:05, Heiko Stübner 写道: Hi caesar. Am Donnerstag, 24. Juli 2014, 10:13:55 schrieb caesar: +static void rockchip_pwm_set_enable_v1(struct pwm_chip *chip, bool enable) +{ + struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); + u32 val = 0; + u32

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

2014-08-06 Thread caesar
Doug, 在 2014年08月07日 06:46, Doug Anderson 写道: Caesar, On Thu, Jul 24, 2014 at 3:21 AM, Caesar Wang wrote: +static const struct rockchip_pwm_data pwm_data_v1 = { + .regs.duty = PWM_HRC, + .regs.period = PWM_LRC, + .regs.cntr = PWM_CNTR, + .regs.ctrl = PWM_CTRL

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

2014-08-06 Thread caesar
在 2014年08月07日 10:16, Doug Anderson 写道: Caesar, On Wed, Aug 6, 2014 at 6:27 PM, caesar wrote: Doug, 在 2014年08月07日 06:46, Doug Anderson 写道: Caesar, On Thu, Jul 24, 2014 at 3:21 AM, Caesar Wang wrote: +static const struct rockchip_pwm_data pwm_data_v1 = { + .regs.duty = PWM_HRC

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

2014-08-06 Thread caesar
Doug, 在 2014年08月07日 11:26, Doug Anderson 写道: caesar, On Wed, Aug 6, 2014 at 8:23 PM, caesar wrote: 在 2014年08月07日 10:16, Doug Anderson 写道: Caesar, On Wed, Aug 6, 2014 at 6:27 PM, caesar wrote: Doug, 在 2014年08月07日 06:46, Doug Anderson 写道: Caesar, On Thu, Jul 24, 2014 at 3:21 AM

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

2014-08-06 Thread caesar
Doug, 在 2014年08月07日 11:46, Doug Anderson 写道: Caesar, On Wed, Aug 6, 2014 at 8:37 PM, caesar wrote: Doug, 在 2014年08月07日 11:26, Doug Anderson 写道: caesar, On Wed, Aug 6, 2014 at 8:23 PM, caesar wrote: 在 2014年08月07日 10:16, Doug Anderson 写道: Caesar, On Wed, Aug 6, 2014 at 6:27 PM, caesar

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

2014-08-07 Thread caesar
Thierry, 在 2014年08月07日 14:18, Thierry Reding 写道: On Thu, Jul 24, 2014 at 06:21:35PM +0800, Caesar Wang wrote: This patch added to support the PWM controller found on RK3288 SoC. Signed-off-by: Caesar Wang --- drivers/pwm/pwm-rockchip.c | 124

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

2014-08-07 Thread caesar
Thierry, 在 2014年08月07日 21:14, Thierry Reding 写道: On Thu, Aug 07, 2014 at 09:04:30PM +0800, caesar wrote: [...] As you say, I will rewrite the about if it's really need do so it. For example: static const struct rockchip_pwm_data pwm_data_v1 = { .regs = { .duty =

Re: [v11,3/3] Bluetooth: hci_uart: Support firmware download for Marvell

2016-06-20 Thread Caesar Wang
On 2016年05月06日 23:31, Amitkumar Karwar wrote: From: Ganapathi Bhat This patch implement firmware download feature for Marvell Bluetooth devices. If firmware is already downloaded, it will skip downloading. Signed-off-by: Ganapathi Bhat Signed-off-by: Amitkumar Karwar Tested-by: Caesar

[PATCH 2/2] thermal: rockchip: optimize sensor auto accessing period

2016-07-27 Thread Caesar Wang
same value, because normal temperature update speed is also our consern in IPA. Signed-off-by: Rocky Hao Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: Heiko Stuebner Cc: linux...@vger.kernel.org --- drivers/thermal/rockchip_thermal.c | 4 ++-- 1 file changed, 2 inser

[PATCH 1/2] thermal: rockchip: enhance the tsadc's bandgap feature for rk3399

2016-07-27 Thread Caesar Wang
Signed-off-by: Caesar Wang Cc: Eduardo Valentin Cc: Zhang Rui Cc: Heiko Stuebner Cc: linux...@vger.kernel.org --- drivers/thermal/rockchip_thermal.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal

[PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-27 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: linux-...@vger.kernel.org Cc: linux-rockc...@lists.infradead.org Tested-by: Guenter Roeck --- Changes

[PATCH v3 4/4] arm: dts: rockchip: add reset node for the exist saradc SoCs

2016-07-27 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3066a.dtsi | 2 ++ arch/arm/boot/dts/rk3288.dtsi | 2 ++ arch/arm/boot/dts/rk3xxx.dtsi | 2 ++ 3

[PATCH v3 3/4] arm64: dts: rockchip: add reset saradc node for rk3368 SoCs

2016-07-27 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang --- Changes in v3: - add Doug's reviewed tag. Changes in v2: None arch/arm64/boot/dts/rockchip/rk3368.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v3 2/4] arm64: dts: rockchip: add the saradc for rk3399

2016-07-27 Thread Caesar Wang
This patch adds saradc needed information on rk3399 SoCs. Signed-off-by: Caesar Wang Reviewed-by: Douglas Anderson --- Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Caesar Wang
On 2016年07月30日 05:28, Rob Herring wrote: On Wed, Jul 27, 2016 at 10:24:04PM +0800, Caesar Wang wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Caesar Wang
On 2016年07月30日 05:28, Rob Herring wrote: On Wed, Jul 27, 2016 at 10:24:04PM +0800, Caesar Wang wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-29 Thread Caesar Wang
On 2016年07月27日 22:47, Peter Meerwald-Stadler wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. nitpicking on wording below Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: linux

[RESEND PATCH 0/4] Support the rk3399 gmac pd function

2016-08-30 Thread Caesar Wang
This patch add to handle the gmac pd issue, and support the rk3399 gmac for devicetree. Caesar Wang (2): arm64: dts: rockchip: support gmac for rk3399 arm64: dts: rockchip: enable the gmac for rk3399 evb board David Wu (1): net: stmmac: dwmac-rk: add pd_gmac support for rk3399 Roger

[RESEND PATCH 2/4] net: stmmac: dwmac-rk: add pd_gmac support for rk3399

2016-08-30 Thread Caesar Wang
From: David Wu Add the gmac power domain support for rk3399, in order to save more power consumption. Signed-off-by: David Wu Signed-off-by: Caesar Wang --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/ethernet

[RESEND PATCH 1/4] net: stmmac: dwmac-rk: fixes the gmac resume after PD on/off

2016-08-30 Thread Caesar Wang
From: Roger Chen GMAC Power Domain(PD) will be disabled during suspend. That will causes GRF registers reset. So corresponding GRF registers for GMAC must be setup again. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 19

[RESEND PATCH 4/4] arm64: dts: rockchip: enable the gmac for rk3399 evb board

2016-08-30 Thread Caesar Wang
We add the required and optional properties for evb board. See the [0] to get the detail information. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 31

[RESEND PATCH 3/4] arm64: dts: rockchip: support gmac for rk3399

2016-08-30 Thread Caesar Wang
This patch adds needed gamc information for rk3399, also support the gmac pd. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 90 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip

[PATCH v3 3/5] arm64: dts: rockchip: add the gmac power domain on rk3399

2016-08-31 Thread Caesar Wang
This patch supports the gmac pd to save power consumption. Even though some boards not need Ethernet support, the driver core can also take care of powering up the pd before probe. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v3: - leave into two patches based on patchv2

[PATCH v3 0/5] Support the rk3399 gmac pd function

2016-08-31 Thread Caesar Wang
://patchwork.kernel.org/patch/9306339/ - generate a patch from https://patchwork.kernel.org/patch/9306339/. Changes in v2: - rk_gmac_powerup instead of the rk_gmac_init. - fixes the build error on next kernel. - Fixes the order, ss Heiko commnets on https://patchwork.kernel.org/patch/9305991/ Caesar

[PATCH v3 1/5] net: stmmac: dwmac-rk: fixes the gmac resume after PD on/off

2016-08-31 Thread Caesar Wang
From: Roger Chen GMAC Power Domain(PD) will be disabled during suspend. That will causes GRF registers reset. So corresponding GRF registers for GMAC must be setup again. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: - rk_gmac_powerup instead of

[PATCH v3 2/5] net: stmmac: dwmac-rk: add pd_gmac support for rk3399

2016-08-31 Thread Caesar Wang
From: David Wu Add the gmac power domain support for rk3399, in order to save more power consumption. Signed-off-by: David Wu Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: - fixes the build error on next kernel. drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 9

[PATCH v3 5/5] arm64: dts: rockchip: enable the gmac for rk3399 evb board

2016-08-31 Thread Caesar Wang
We add the required and optional properties for evb board. See the [0] to get the detail information. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip

[PATCH v3 4/5] arm64: dts: rockchip: add the gmac needed node for rk3399

2016-08-31 Thread Caesar Wang
, clocks, pinctrl and so on. The full details are in [0]. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Caesar Wang --- Changes in v3: - generate a patch from https://patchwork.kernel.org/patch/9306339/. Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399.dtsi

[PATCH v4 5/6] arm64: dts: rockchip: add the gmac needed node for rk3399

2016-09-01 Thread Caesar Wang
.: interrupts, grf, clocks, pinctrl and so on. The full details are in [0]. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v4: - The Roger had posted patch on https://patchwork.kernel.org/patch/9274561/. - re

[PATCH v4 0/6] Support the rk3399 gmac and pd function

2016-09-01 Thread Caesar Wang
ttps://lkml.org/lkml/2016/8/30/668 v2: https://lkml.org/lkml/2016/8/31/27 v3: https://lkml.org/lkml/2016/8/31/981 Thanks your reviewing! - Caesar Changes in v4: - Fixes from the original patch on https://patchwork.kernel.org/patch/9274557/ - remove the Roger signed-off for domain patch. - The R

[PATCH v4 1/6] net: stmmac: dwmac-rk: add rk3366 & rk3399 specific data

2016-09-01 Thread Caesar Wang
From: Roger Chen Add constants and callback functions for the dwmac on rk3228/rk3229 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang Reviewed-by: Heiko Stuebner --- Changes in v4

[PATCH v4 2/6] net: stmmac: dwmac-rk: fixes the gmac resume after PD on/off

2016-09-01 Thread Caesar Wang
From: Roger Chen GMAC Power Domain(PD) will be disabled during suspend. That will causes GRF registers reset. So corresponding GRF registers for GMAC must be setup again. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v4: None Changes in v3: None Changes in v2

[PATCH v4 6/6] arm64: dts: rockchip: enable the gmac for rk3399 evb board

2016-09-01 Thread Caesar Wang
From: Roger Chen We add the required and optional properties for evb board. See the [0] to get the detail information. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- Changes in v4: None Changes in v3: None Changes in v2

[PATCH v4 3/6] net: stmmac: dwmac-rk: add pd_gmac support for rk3399

2016-09-01 Thread Caesar Wang
From: David Wu Add the gmac power domain support for rk3399, in order to save more power consumption. Signed-off-by: David Wu Signed-off-by: Caesar Wang --- Changes in v4: None Changes in v3: None Changes in v2: - fixes the build error on next kernel. drivers/net/ethernet/stmicro/stmmac

[PATCH v4 4/6] arm64: dts: rockchip: add the gmac power domain on rk3399

2016-09-01 Thread Caesar Wang
This patch supports the gmac pd to save power consumption. Even though some boards not need Ethernet support, the driver core can also take care of powering up the pd before probe. Signed-off-by: Caesar Wang --- Changes in v4: - remove the Roger signed-off for domain patch. Changes in v3

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

2015-09-05 Thread Caesar Wang
Kevin, Thanks for having a look into it. 在 2015年09月03日 02:28, 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

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

2015-09-06 Thread Caesar Wang
Kevin, 在 2015年09月03日 02:12, Kevin Hilman 写道: Caesar Wang writes: This add the necessary binding documentation for the power domains found on Rockchip SoCs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v17: - add the decription in detail for RK3288 SoCs. Changes

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

2015-09-07 Thread Caesar Wang
According to a description from TRM, add all the power domains. At the moment, we can support some domains on RK3288. We can add more types on RK3288 in the future, that's need to do. Signed-off-by: Caesar Wang --- Changes in v18: None Changes in v17: - delete the ugly chart in the c

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

2015-09-07 Thread Caesar Wang
corresponding registers. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v18: - As Kevin suggestion, set pd->num_clks = 0 in rockchip_pm_remove_one_domain() ans add the mutex for protect - assign the order in rk3288_pm_domains[] in pm-domain driver. Changes in v17: - (re)defin

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

2015-09-07 Thread 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 --- Changes in v18: - remove the notes of domains from dt-binding. Changes in v17: - add the decription in detail for RK3288 SoCs. Changes in v16

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

2015-09-07 Thread Caesar Wang
f do that. The clocks in the dts are needed to enable before you want to happy work. At the moment, This patch is very good work for PM hardware. Also, we can add these clocks in the future if we have some hidden clocks. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang Reviewed-by: Mi

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

2015-09-07 Thread Caesar Wang
esume() and pm_clk_suspend(). - Decomposition 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 alph

Re: [PATCH 2/4] thermal: rockchip: ensure the otp state before resetting the controller

2015-10-20 Thread Caesar Wang
Doug, 在 2015年10月20日 23:52, Doug Anderson 写道: Caesar, On Tue, Oct 20, 2015 at 2:11 AM, Caesar Wang wrote: We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Says: The TSHUT temperature is setting more than 80 degree

Re: [PATCH 3/4] thermal: rockchip: change the TSHUT default state

2015-10-20 Thread Caesar Wang
Doug, 在 2015年10月21日 10:14, Doug Anderson 写道: Caesar, On Tue, Oct 20, 2015 at 6:47 PM, Caesar Wang wrote: Doug, 在 2015年10月21日 00:01, Doug Anderson 写道: Caesar, On Tue, Oct 20, 2015 at 2:11 AM, Caesar Wang wrote: As the TRM says, the TSHUT default state is high active. In general, the

[PATCH v1 0/2] fix the TSHUT issue on rockchip thermal

2015-10-20 Thread Caesar Wang
ent. - As the Doug comments, drop the thermal driver patchs since we can with pinctrl changing to work. - As the Doug's patch to add the 'init' property. Caesar Wang (2): dt-bindings: Sync the dts to this document ARM: dts: rockchip: Add the OTP gpio pinctrl Documenta

[PATCH v1 2/2] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-20 Thread Caesar Wang
We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Signed-off-by: Caesar Wang --- Changes in v1: - As the Doug comments, drop the thermal driver patchs since we can with pinctrl changing to work. - As the Doug&#

[PATCH v1 1/2] dt-bindings: Sync the dts to this document

2015-10-20 Thread Caesar Wang
Add the OTP gpio state, we need switch the pin to gpio state before the TSADC controller is reset. Signed-off-by: Caesar Wang --- Changes in v1: - As the Doug comments, add the 'init' property to sync document. Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | 5 +++

Re: [PATCH v1 1/2] dt-bindings: Sync the dts to this document

2015-10-21 Thread Caesar Wang
Hi Rob, 在 2015年10月21日 23:18, Rob Herring 写道: On Tue, Oct 20, 2015 at 9:42 PM, Caesar Wang wrote: Add the OTP gpio state, we need switch the pin to gpio state before the TSADC controller is reset. Signed-off-by: Caesar Wang --- Changes in v1: - As the Doug comments, add the '

[PATCH v2 1/2] dt-bindings: Add the "init" pinctrl in this document

2015-10-21 Thread Caesar Wang
re), the OTP output the *low* Signal. In some cases, the OTP pin is connected to the PMIC, maybe the PMIC can accept the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power. Signed-off-by: C

[PATCH v2 0/2] fix the TSHUT issue on rockchip thermal

2015-10-21 Thread Caesar Wang
r patchs since we can with pinctrl changing to work. - As the Doug's patch to add the 'init' property. Caesar Wang (2): dt-bindings: Add the "init" pinctrl in this document ARM: dts: rockchip: Add the OTP gpio pinctrl Documentation/devicetree/bindings/thermal

[PATCH v2 2/2] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-21 Thread Caesar Wang
h/7454311/ Signed-off-by: Caesar Wang Reviewed-by: Douglas Anderson --- Changes in v2: - Add some commits for more obvious in PATCH[2/2] Changes in v1: - As the Doug comments, drop the thermal driver patchs since we can with pinctrl changing to work. - As the Doug's patch to a

Re: [PATCH v1 1/2] dt-bindings: Sync the dts to this document

2015-10-21 Thread Caesar Wang
在 2015年10月22日 09:18, Rob Herring 写道: On Wed, Oct 21, 2015 at 11:48 AM, Rob Herring wrote: On Wed, Oct 21, 2015 at 10:45 AM, Caesar Wang wrote: Hi Rob, 在 2015年10月21日 23:18, Rob Herring 写道: On Tue, Oct 20, 2015 at 9:42 PM, Caesar Wang wrote: Add the OTP gpio state, we need switch the pin

Re: [PATCH v2 1/2] dt-bindings: Add the "init" pinctrl in this document

2015-10-21 Thread Caesar Wang
在 2015年10月22日 09:34, Rob Herring 写道: On Wed, Oct 21, 2015 at 8:25 PM, Caesar Wang wrote: The "init" pinctrl is defined we'll set pinctrl to this state before probe and then "default" after probe. Add the "init" pinctrl as the OTP gpio state, since we need

Re: [PATCH 1/3] dt-bindings: Add document of Rockchip mailbox

2015-10-21 Thread Caesar Wang
I'm missing this patch for long time. 在 2015年10月06日 22:50, Rob Herring 写道: On Mon, Sep 14, 2015 at 6:06 AM, Caesar Wang wrote: This add the necessary binding documentation for mailbox found on RK3368 SoC. Signed-off-by: Caesar Wang --- .../bindings/mailbox/rockchip-mailbo

Re: [PATCH 1/3] dt-bindings: Add document of Rockchip mailbox

2015-10-21 Thread Caesar Wang
Hello Jassi, Sorry for delay reply. 在 2015年10月06日 18:34, Jassi Brar 写道: On Mon, Sep 14, 2015 at 4:36 PM, Caesar Wang wrote: This add the necessary binding documentation for mailbox found on RK3368 SoC. Signed-off-by: Caesar Wang --- .../bindings/mailbox/rockchip-mailbox.txt | 33

[RESEND PATCH v2 1/2] dt-bindings: rockchip-thermal: Add the "init" pinctrl in this document

2015-10-21 Thread Caesar Wang
re), the OTP output the *low* Signal. In some cases, the OTP pin is connected to the PMIC, maybe the PMIC can accept the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power. Signed-off-by: C

[RESEND PATCH v2 0/2] fix the TSHUT issue on rockchip thermal

2015-10-21 Thread Caesar Wang
op the thermal driver patchs since we can with pinctrl changing to work. - As the Doug's patch to add the 'init' property. Caesar Wang (2): dt-bindings: rockchip-thermal: Add the "init" pinctrl in this document ARM: dts: rockchip: Add the OTP gpio p

[RESEND PATCH v2 2/2] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-21 Thread Caesar Wang
h/7454311/ Signed-off-by: Caesar Wang Reviewed-by: Douglas Anderson --- Changes in v2: - Add some commits for more obvious in PATCH[2/2] Changes in v1: - As the Doug comments, drop the thermal driver patchs since we can with pinctrl changing to work. - As the Doug's patch to a

Re: [RESEND PATCH v2 1/2] dt-bindings: rockchip-thermal: Add the "init" pinctrl in this document

2015-10-21 Thread Caesar Wang
在 2015年10月22日 11:45, Doug Anderson 写道: Caesar, On Wed, Oct 21, 2015 at 7:30 PM, Caesar Wang wrote: The "init" pinctrl is defined we'll set pinctrl to this state before probe and then "default" after probe. Add the "init" pinctrl as the OTP gpio state, s

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

2015-09-02 Thread Caesar Wang
According to a description from TRM, add all the power domains. At the moment, we can support some domains on RK3288. We can add more types on RK3288 in the future, that's need to do. Signed-off-by: Caesar Wang --- Changes in v17: - delete the ugly chart in the commit. Changes in v16:

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

2015-09-02 Thread 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 --- Changes in v17: - add the decription in detail for RK3288 SoCs. Changes in v16: - remove the pmu node. Changes in v15: None Changes in v14

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

2015-09-02 Thread Caesar Wang
idle_request(). Changes in v4: - use list storage dev. Changes in v3: - DT structure has changed. - change use pm_clk_resume() and pm_clk_suspend(). - Decomposition power-controller, changed to multiple controller (gpu-power-controller, hevc-power-controller). Changes in v2: - move clocks t

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

2015-09-02 Thread Caesar Wang
corresponding registers. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v17: - (re)defining config for ROCKCHIP. Changes in v16: - the driver type from tristate to bool. - Letter misspelled. - As Ulf suggestion, remove #include , use "%pC" as the formatting string for t

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

2015-09-02 Thread Caesar Wang
f do that. The clocks in the dts are needed to enable before you want to happy work. At the moment, This patch is very good work for PM hardware. Also, we can add it in the future if we have some hidden clocks. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang Reviewed-by: Michael Turquette

[PATCH 1/4] dt-bindings: Sync the dts to this document

2015-10-20 Thread Caesar Wang
Add the OTP gpio state, we need switch the pin to gpio state before the TSADC controller is reset. Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree

[PATCH 0/4]

2015-10-20 Thread Caesar Wang
pt the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power. Tested on box board. Caesar Wang (4): dt-bindings: Sync the dts to this document thermal: rockchip: ensure the otp

[PATCH 4/4] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-20 Thread Caesar Wang
We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288.dtsi | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi

[PATCH 3/4] thermal: rockchip: change the TSHUT default state

2015-10-20 Thread Caesar Wang
As the TRM says, the TSHUT default state is high active. In general, the TSHUT state can get from the dts. Otherwise it gets the state from this. Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 2/4] thermal: rockchip: ensure the otp state before resetting the controller

2015-10-20 Thread Caesar Wang
pt the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power. Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 32 1 file changed, 3

Re: [PATCH 0/4] Add the OTP gpio pinctrl to fix the TSHUT issue

2015-10-20 Thread Caesar Wang
The subject is deleted by my finger. 在 2015年10月20日 17:11, Caesar Wang 写道: We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Says: The TSHUT temperature is setting more than 80 degree, the default tshut polarity is

[PATCH v3 2/3] thermal: rockchip: ensure the otp states before resetting the controller

2015-10-22 Thread Caesar Wang
n accept the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power. Signed-off-by: Caesar Wang --- Changes in v3: - Add the pinctrl state for in the suspend/resume. Changes in v2: None C

[PATCH v3 3/3] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-22 Thread Caesar Wang
/patchwork.kernel.org/patch/7454311/ Signed-off-by: Caesar Wang Reviewed-by: Douglas Anderson --- Changes in v3: - Add the "sleep" pinctrl as the gpio state in PATCH[3/3] Changes in v2: - Add some commits for more obvious in PATCH[2/2] Changes in v1: - As the Doug comments, drop th

[PATCH v3 1/3] dt-bindings: rockchip-thermal: Add the pinctrl states in this document

2015-10-22 Thread Caesar Wang
tting temperature), the OTP output the *low* Signal. In some cases, the OTP pin is connected to the PMIC, maybe the PMIC can accept the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power

[PATCH v3 0/3] fix the TSHUT issue on rockchip thermal

2015-10-22 Thread Caesar Wang
the Doug comments, drop the thermal driver patchs since we can with pinctrl changing to work. - As the Doug's patch to add the 'init' property. Caesar Wang (3): dt-bindings: rockchip-thermal: Add the pinctrl states in this document thermal: rockchip: ensure the otp sta

Re: [PATCH v3 2/3] thermal: rockchip: ensure the otp states before resetting the controller

2015-10-22 Thread Caesar Wang
在 2015年10月23日 12:04, Doug Anderson 写道: Caesar, On Thu, Oct 22, 2015 at 9:54 PM, Caesar Wang wrote: We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Says: The TSHUT temperature is setting more than 80 degree, the

Re: [PATCH v3 2/3] thermal: rockchip: ensure the otp states before resetting the controller

2015-10-22 Thread Caesar Wang
在 2015年10月23日 12:04, Doug Anderson 写道: Caesar, On Thu, Oct 22, 2015 at 9:54 PM, Caesar Wang wrote: We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Says: The TSHUT temperature is setting more than 80 degree, the

[PATCH v4 0/3] fix the TSHUT issue on rockchip thermal

2015-10-23 Thread Caesar Wang
Doug comments, add the 'init' property to sync document. - As the Doug comments, drop the thermal driver patchs since we can with pinctrl changing to work. - As the Doug's patch to add the 'init' property. Caesar Wang (3): dt-bindings: rockchip-thermal: Add the pinctr

[PATCH v4 1/3] dt-bindings: rockchip-thermal: Add the pinctrl states in this document

2015-10-23 Thread Caesar Wang
tting temperature), the OTP output the *low* Signal. In some cases, the OTP pin is connected to the PMIC, maybe the PMIC can accept the reset response time to avoid this issue. In other words, the system will be always reboot if we make the OTP pin is connected the others IC to control the power

[PATCH v4 3/3] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-23 Thread Caesar Wang
/patchwork.kernel.org/patch/7454311/ Signed-off-by: Caesar Wang Reviewed-by: Douglas Anderson --- Changes in v4: None Changes in v3: - Add the "sleep" pinctrl as the gpio state in PATCH[3/3] Changes in v2: - Add some commits for more obvious in PATCH[2/2] Changes in v1: - As the

[PATCH v4 2/3] thermal: rockchip: support the sleep pinctrl state to avoid glitches in s2r

2015-10-23 Thread Caesar Wang
d avoid glitches when the system is resumed. Signed-off-by: Caesar Wang --- Changes in v4: - take the Doug's commit as correct decription. Changes in v3: - Add the pinctrl state for in the suspend/resume. Changes in v2: None Changes in v1: None drivers/thermal/rockchip_thermal.

[PATCH v1 1/3] dt-bindings: rockchip-mailbox: Add mailbox controller document on Rockchip SoCs

2015-10-27 Thread Caesar Wang
This add the necessary binding documentation for mailbox found on RK3368 SoC. Signed-off-by: Caesar Wang --- Changes in v1: - PATCH[1/3] doc: - As the Rob Herring comments, s/share/shared/ and specify the value of #mbox-cells. - Move the shared memory in mailbox, let's move the propert

[PATCH v1 0/3] mailbox: rockchip: Add mailbox driver for Rockchip platform

2015-10-27 Thread Caesar Wang
and tx buf into the client drivers. - PATCH[3/3] dts: - fix "processormZ"--> "processor",the miss-fingerboard. - Remove the shared memory in mailbox controller dtsi. Caesar Wang (3): dt-bindings: rockchip-mailbox: Add mailbox controller document on Rockchip SoCs mailbo

[PATCH v1 2/3] mailbox: rockchip: Add Rockchip mailbox driver

2015-10-27 Thread Caesar Wang
lock registers for software to use to indicate whether mailbox is occupied. Signed-off-by: Caesar Wang --- Changes in v1: - PATCH[2/3] driver: - The commit: %s/@/(num order). - Add the module authors to instead of the notes. - Add the COMPILE_TEST to auto compile test in Kconfig. - Let the

[PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes

2015-10-27 Thread Caesar Wang
This adds mailbox device nodes in dts. Mailbox is used by the Rockchip CPU cores to communicate requests to MCU processor. Signed-off-by: Caesar Wang --- Changes in v1: - PATCH[3/3] dts: - fix "processormZ"--> "processor",the miss-fingerboard. - Remove the shared memor

Re: [PATCH v2 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-10 Thread Caesar Wang
As we communicate through QQ, Shawn had been on vacation util next week. 在 2018年01月11日 01:46, Brian Norris 写道: + Caesar IIUC, you didn't CC him? Also, he already sent a v2 of this patchset, withi some minor difference. On Wed, Jan 10, 2018 at 06:49:22PM +0800, Shawn Lin wrote: Just us

Re: [PATCH v2 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-10 Thread Caesar Wang
at you're busy waiting. I'd vote for #2 unless you have some evidence that we often need long delays and we've started calling this code all the time. Agreed with #2 -Caesar + if (ret) { + pr_err("%s: dllrdy failed %d.\

[PATCH v3 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-10 Thread Caesar Wang
From: Shawn Lin Just use the API instead of open-coding it, no functional change intended. Signed-off-by: Shawn Lin Reviewed-by: Brian Norris Signed-off-by: Caesar Wang --- Changes in v3: - As Doug commented on https://patchwork.kernel.org/patch/10154797, Change "1, 50"

  1   2   3   4   5   6   7   8   9   10   >