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

2016-06-20 Thread Caesar Wang
luetooth/hci_uart.h index 17ba3b4..8c53b50 100644 --- a/drivers/bluetooth/hci_uart.h +++ b/drivers/bluetooth/hci_uart.h @@ -35,7 +35,7 @@ #define HCIUARTGETFLAGS _IOR('U', 204, int) /* UART protocols */ -#define HCI_UART_MAX_PROTO 10 +#define HCI_UART_MAX_PROTO 11 #define HCI_UART_H4 0 #define HCI_UART_BCSP 1 @@ -47,6 +47,7 @@ #define HCI_UART_BCM 7 #define HCI_UART_QCA 8 #define HCI_UART_AG6XX9 +#define HCI_UART_MRVL 10 #define HCI_UART_RAW_DEVICE 0 #define HCI_UART_RESET_ON_INIT1 @@ -192,3 +193,8 @@ int qca_deinit(void); int ag6xx_init(void); int ag6xx_deinit(void); #endif + +#ifdef CONFIG_BT_HCIUART_MRVL +int mrvl_init(void); +int mrvl_deinit(void); +#endif -- caesar wang | software engineer | w...@rock-chip.com

[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
atch/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 Wang (1): arm64: dts: rockchip: add the gmac power domain on rk3399 David Wu (1):

[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
e the API instead of open-coding it, no functional change intended. Signed-off-by: Shawn Lin Reviewed-by: Brian Norris Tested-by: Caesar Wang Tested-by: Ziyuan Xu --- Changes in v2: - propagate the error and print it - avoid using busy wait drivers/phy/rockchip/phy-rockchip-emmc.c

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

2018-01-10 Thread Caesar Wang
在 2018年01月11日 03:36, Doug Anderson 写道: Hi, On Wed, Jan 10, 2018 at 9:46 AM, Brian Norris wrote: */ - timeout = jiffies + msecs_to_jiffies(50); - do { - udelay(1); - - regmap_read(rk_phy->reg_base, - rk_phy->reg_offset + GRF_EMMCPHY_ST

[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"

[PATCH v3 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-10 Thread Caesar Wang
From: Shawn Lin It turns out that 5us isn't enough for all cases, so let's retry some more times to wait for caldone. Signed-off-by: Shawn Lin Tested-by: Ziyuan Xu Signed-off-by: Caesar Wang --- Changes in v3: - As Doug commented on both upstream and gerrit. Change "5, 50&q

[PATCH v3 0/2] phy: rockchip-emmc: fixes emmc-phy power on failed with rk3399 SoCs

2018-01-10 Thread Caesar Wang
Hi Kishon, Since the Shawn isn't available, I take over this series patches for now. As the original bug had tracked on https://issuetracker.google.com/71561742. In some cases, the mmc phy power on failed during booting up. The log as below: ... [ 2.375333] rockchip_emmc_phy_power: caldone time

Re: [PATCH 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-04 Thread Caesar Wang
e. Signed-off-by: Shawn Lin Tested-by: Caesar Wang I had tested on rk3399 chromebook, so feel free to add my tag. -Caesar --- drivers/phy/rockchip/phy-rockchip-emmc.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-

[PATCH v2 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-09 Thread Caesar Wang
From: Shawn Lin It turns out that 5us isn't enough for all cases, so let's retry some more times to wait for caldone. Signed-off-by: Shawn Lin Tested-by: Ziyuan Xu Signed-off-by: Caesar Wang --- Changes in v2: - print the return valut with regmap_read_poll_timeout failing. d

[PATCH v2 0/2] phy: rockchip-emmc: fixes emmc-phy power on failed with rk3399 SoCs

2018-01-09 Thread Caesar Wang
Hi Kishon, Since the Shawn isn't available, I take over this series patches for now. As the original bug had tracked on https://issuetracker.google.com/71561742. In some cases, the mmc phy power on failed during booting up. The log as below: ... [ 2.375333] rockchip_emmc_phy_power: caldone time

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

2018-01-09 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 v2: - As Brian commented on https://patchwork.kernel.org/patch/10139891/, changed the note and added to

Re: [PATCH v2 17/19] mailbox: rockchip: Use device-managed registration API

2018-12-17 Thread Caesar Wang
On 2018/12/17 下午11:02, Thierry Reding wrote: From: Thierry Reding Get rid of some boilerplate driver removal code by using the newly added device-managed registration API. Reviewed-by: Caesar Wang Thanks, Caesar Cc: Caesar Wang Signed-off-by: Thierry Reding --- drivers/mailbox

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

2015-01-22 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 v4: &

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

2015-01-22 Thread Caesar Wang
doesn't reject "code == 0xfff" Fixed in rk_tsadcv2_code_to_temp(u32 code) Changes in v2: Reviewed-by: Dmitry Torokhov Caesar Wang (1): thermal: rockchip: make temperature reporting much more accurate drivers/thermal/rockchip_thermal.c | 32 ++-- 1

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

2015-01-23 Thread Caesar Wang
sted-by Daniel Kurtz, the check doesn't reject "code == 0xfff" Fixed in rk_tsadcv2_code_to_temp(u32 code) Changes in v2: Reviewed-by: Dmitry Torokhov Caesar Wang (1): thermal: rockchip: make temperature reporting much more accurate drivers/thermal/rockchip_thermal.c | 38 ++

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

2015-01-23 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 v5: Fi

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

2015-01-24 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 Reviewed-by: Daniel Kurtz

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

2015-01-24 Thread Caesar Wang
rn -EAGAIN" instead of "return rk_tsadcv2_code_to_temp(code)" Changes in v3: Suggested-by Daniel Kurtz, the check doesn't reject "code == 0xfff" Fixed in rk_tsadcv2_code_to_temp(u32 code) Changes in v2: Reviewed-by: Dmitry Torokhov Caesar Wang (1): thermal: rockch

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

2015-01-18 Thread Caesar Wang
This patch is merged on chromiumos/third_party/kernel. https://chromium-review.googlesource.com/#/c/239190/ Tested on veyron boards. Caesar Wang (1): thermal: rockchip: make temperature reporting much more accurate drivers/thermal/rockchip_thermal.c | 26 +- 1 file

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

2015-01-18 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 --- drivers/thermal/rockchip_

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

2015-01-18 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 v2: Revie

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

2015-01-18 Thread Caesar Wang
This patch is merged on chromiumos/third_party/kernel. https://chromium-review.googlesource.com/#/c/239190/ Tested on veyron boards. Changes in v2: Reviewed-by: Dmitry Torokhov Caesar Wang (1): thermal: rockchip: make temperature reporting much more accurate drivers/thermal

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

2015-04-24 Thread Caesar Wang
for next kernel. Caesar Wang (3): dt-bindings: add document of Rockchip power domain power-domain: rockchip: add power domain driver ARM: dts: add RK3288 power-domain node .../bindings/arm/rockchip/power_domain.txt | 48 ++ arch/arm/boot/dts/rk3288.dtsi | 59

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

2015-04-24 Thread Caesar Wang
In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power ot the whole chip. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- arch/arm/mach

[PATCH v14 3/3] ARM: dts: add RK3288 power-domain node

2015-04-24 Thread Caesar Wang
syncchronous reset and then sync revoked.so we need to enable clocks of all devices. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v14: - does not need to set an owner,remove the "THIS_MODULE". Changes in v13: - Remove essential clocks from rk3288 PD_

  1   2   3   4   5   6   7   8   9   10   >