[PATCH] clk: rockchip: fix the incorrect pclk_edp div width for RK3399

2017-01-17 Thread Xing Zheng
The range of the pclk_edp_div_con is [13:8] and 6 bits, not 5. Reported-by: Lin Huang <h...@rock-chips.com> Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/

[PATCH] clk: rockchip: fix the incorrect pclk_edp div width for RK3399

2017-01-17 Thread Xing Zheng
The range of the pclk_edp_div_con is [13:8] and 6 bits, not 5. Reported-by: Lin Huang Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c

Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-10 Thread Xing Zheng
. Right now I only see pclkin_isp1_wrapper describing such a mux, but it would be cool if you could check again. OK, we will check these. :) Thanks. -- - Xing Zheng

Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-10 Thread Xing Zheng
. Right now I only see pclkin_isp1_wrapper describing such a mux, but it would be cool if you could check again. OK, we will check these. :) Thanks. -- - Xing Zheng

Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-10 Thread Xing Zheng
Hi Doug, On 2017年01月11日 02:45, Doug Anderson wrote: Hi, On Mon, Jan 9, 2017 at 10:15 PM, Xing Zheng <zhengx...@rock-chips.com> wrote: The structure rockchip_clk_provider needs to refer the GRF regmap in somewhere, if the CRU node has not "rockchip,grf" p

Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-10 Thread Xing Zheng
Hi Doug, On 2017年01月11日 02:45, Doug Anderson wrote: Hi, On Mon, Jan 9, 2017 at 10:15 PM, Xing Zheng wrote: The structure rockchip_clk_provider needs to refer the GRF regmap in somewhere, if the CRU node has not "rockchip,grf" property, calling syscon_regmap_lookup_by_phandle w

[PATCH v4 2/2] dt-bindings: clk: add rockchip,grf property for RK3399

2017-01-09 Thread Xing Zheng
Add support for rockchip,grf property which is used for GRF muxes on RK3399. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v4: - update the decription for rockchip,grf property Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/clock/ro

[PATCH v4 2/2] dt-bindings: clk: add rockchip,grf property for RK3399

2017-01-09 Thread Xing Zheng
Add support for rockchip,grf property which is used for GRF muxes on RK3399. Signed-off-by: Xing Zheng --- Changes in v4: - update the decription for rockchip,grf property Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.txt | 6 ++ 1

[PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v4: - separte the binding patch Changes in v3: - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message arch/arm64/boo

[PATCH v4 0/2] Add support rockchip,grf property for RK3399 PMU/GRU

2017-01-09 Thread Xing Zheng
o add them. Thanks. Changes in v4: - separte the binding patch - update the decription for rockchip,grf property Changes in v3: - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message Xing Zhe

[PATCH v4 0/2] Add support rockchip,grf property for RK3399 PMU/GRU

2017-01-09 Thread Xing Zheng
o add them. Thanks. Changes in v4: - separte the binding patch - update the decription for rockchip,grf property Changes in v3: - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message Xing Zhe

[PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
Signed-off-by: Xing Zheng --- Changes in v4: - separte the binding patch Changes in v3: - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 +

Re: [PATCH v3] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
Hi, Doug On 2017年01月10日 11:06, Doug Anderson wrote: Hi, On Mon, Jan 9, 2017 at 5:27 PM, Xing Zheng <zhengx...@rock-chips.com> wrote: The structure rockchip_clk_provider needs to refer the GRF regmap in somewhere, if the CRU node has not "rockchip,grf" p

Re: [PATCH v3] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
Hi, Doug On 2017年01月10日 11:06, Doug Anderson wrote: Hi, On Mon, Jan 9, 2017 at 5:27 PM, Xing Zheng wrote: The structure rockchip_clk_provider needs to refer the GRF regmap in somewhere, if the CRU node has not "rockchip,grf" property, calling syscon_regmap_lookup_by_phandle w

[PATCH v3] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v3: - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message Documentation/devicetree/bindings/clock/rockchip,rk33

[PATCH v3] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
Signed-off-by: Xing Zheng --- Changes in v3: - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.txt | 5 + arch/arm64/boot

Re: [PATCH v2] arm64: dts: rockchip: add "rockchip,grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
that actually uses this new functionality. Sorry to miss it. Thanks for your reminding me. -- - Xing Zheng

Re: [PATCH v2] arm64: dts: rockchip: add "rockchip,grf" property for RK3399 PMUCRU/CRU

2017-01-09 Thread Xing Zheng
that actually uses this new functionality. Sorry to miss it. Thanks for your reminding me. -- - Xing Zheng

[PATCH v2] arm64: dts: rockchip: add "rockchip,grf" property for RK3399 PMUCRU/CRU

2017-01-08 Thread Xing Zheng
Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.d

[PATCH v2] arm64: dts: rockchip: add "rockchip,grf" property for RK3399 PMUCRU/CRU

2017-01-08 Thread Xing Zheng
Signed-off-by: Xing Zheng --- Changes in v2: - referring pmugrf for PMUGRU - fix the typo "invaild" in COMMIT message arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockch

[PATCH] arm64: dts: rockchip: add "rockchip,grf" property for RK3399 PMUCRU/CRU

2017-01-07 Thread Xing Zheng
Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 92b731f..7790634 100644 --- a/arch/arm64/boot/dts

[PATCH] arm64: dts: rockchip: add "rockchip,grf" property for RK3399 PMUCRU/CRU

2017-01-07 Thread Xing Zheng
Signed-off-by: Xing Zheng --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 92b731f..7790634 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/

Re: [RESEND PATCH v2] arm64: dts: rockchip: add u2phy clock for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
Hi Doug, 在 2016年12月22日 08:47, Doug Anderson 写道: Hi, On Wed, Dec 21, 2016 at 2:41 AM, Xing Zheng <zhengx...@rock-chips.com> wrote: From: William wu <w...@rock-chips.com> We found that the suspend process was blocked when it run into ehci/ohci module due to clk-480m of usb2-phy

Re: [RESEND PATCH v2] arm64: dts: rockchip: add u2phy clock for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
Hi Doug, 在 2016年12月22日 08:47, Doug Anderson 写道: Hi, On Wed, Dec 21, 2016 at 2:41 AM, Xing Zheng wrote: From: William wu We found that the suspend process was blocked when it run into ehci/ohci module due to clk-480m of usb2-phy was disabled. The root cause is that usb2-phy suspended

Re: [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
Hi Heiko, Doug 在 2016年12月17日 01:28, Doug Anderson 写道: Hi, On Thu, Dec 15, 2016 at 10:57 PM, Xing Zheng <zhengx...@rock-chips.com> wrote: Hi Heiko, Doug, On 2016年12月16日 02:18, Heiko Stuebner wrote: Am Donnerstag, 15. Dezember 2016, 08:34:09 CET schrieb Doug Anderson: I still need to

Re: [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
Hi Heiko, Doug 在 2016年12月17日 01:28, Doug Anderson 写道: Hi, On Thu, Dec 15, 2016 at 10:57 PM, Xing Zheng wrote: Hi Heiko, Doug, On 2016年12月16日 02:18, Heiko Stuebner wrote: Am Donnerstag, 15. Dezember 2016, 08:34:09 CET schrieb Doug Anderson: I still need to digest all of the things

[RESEND PATCH v2] arm64: dts: rockchip: add u2phy clock for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
@rock-chips.com> Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v2: - update the commit message - remove patches whic add and export the USBPHYx_480M_SRC clock IDs arch/arm64/boot/dts/rockchip/rk3399.dtsi | 28 1 file changed, 20 inser

[RESEND PATCH v2] arm64: dts: rockchip: add u2phy clock for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
CLK -> | EHCI | OSC_24M ---|---> PHY_PLL|| |^___||-> 480M_CLK ---|G|---> | USBPHY_480M_SRC| > USBPHY_480M for SoC | | GRF === Signed-off-by: William wu Signed-off-by: Xing Zheng --- Chang

[PATCH v2] arm64: dts: rockchip: add u2phy clock for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
> USBPHY_480M for SoC | | GRF --- Signed-off-by: William wu <w...@rock-chips.com> Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 28 1 file changed, 20 inser

[PATCH v2] arm64: dts: rockchip: add u2phy clock for ehci and ohci of rk3399

2016-12-21 Thread Xing Zheng
SBPHY_480M for SoC | | GRF --- Signed-off-by: William wu Signed-off-by: Xing Zheng --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/a

Re: [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-14 Thread Xing Zheng
. I think Frank and William will help us to continue checking these. Thanks 在 2016年12月15日 08:10, Doug Anderson 写道: Hi, On Wed, Dec 14, 2016 at 2:11 AM, Xing Zheng <zhengx...@rock-chips.com> wrote: From: William wu <w...@rock-chips.com> We found that the suspend process was blocked

Re: [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-14 Thread Xing Zheng
. I think Frank and William will help us to continue checking these. Thanks 在 2016年12月15日 08:10, Doug Anderson 写道: Hi, On Wed, Dec 14, 2016 at 2:11 AM, Xing Zheng wrote: From: William wu We found that the suspend process was blocked when it run into ehci/ohci module due to clk-480m of usb2

[PATCH 0/3] Add and export clk-480m clocks for ehci and ohci on RK3399

2016-12-14 Thread Xing Zheng
Hi, This patches would like to fix the USB suspend block without the clk-480m clock. Let's add and export them to control them. Thanks. William wu (1): arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399 Xing Zheng (2): clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs

[PATCH 0/3] Add and export clk-480m clocks for ehci and ohci on RK3399

2016-12-14 Thread Xing Zheng
Hi, This patches would like to fix the USB suspend block without the clk-480m clock. Let's add and export them to control them. Thanks. William wu (1): arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399 Xing Zheng (2): clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs

[PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-14 Thread Xing Zheng
he clk-480m provided by it was disabled if no module used. However, some suspend process related ehci/ohci are base on this clock, so we should refer it into ehci/ohci driver to prevent this case. Signed-off-by: William wu <w...@rock-chips.com> Signed-off-by: Xing Zheng <zhengx...

[PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-14 Thread Xing Zheng
by it was disabled if no module used. However, some suspend process related ehci/ohci are base on this clock, so we should refer it into ehci/ohci driver to prevent this case. Signed-off-by: William wu Signed-off-by: Xing Zheng --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 28

[PATCH 1/3] clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs

2016-12-14 Thread Xing Zheng
This patch add two clock IDs for the usb phy 480m source clocks. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- include/dt-bindings/clock/rk3399-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399

[PATCH 1/3] clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs

2016-12-14 Thread Xing Zheng
This patch add two clock IDs for the usb phy 480m source clocks. Signed-off-by: Xing Zheng --- include/dt-bindings/clock/rk3399-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 220a60f..224daf7

[PATCH 2/3] clk: rockchip: rk3399: export 480M_SRC clocks id for usbphy0/usbphy1

2016-12-14 Thread Xing Zheng
This patch exports USBPHYx_480M_SRC clocks for usbphy. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c

[PATCH 2/3] clk: rockchip: rk3399: export 480M_SRC clocks id for usbphy0/usbphy1

2016-12-14 Thread Xing Zheng
This patch exports USBPHYx_480M_SRC clocks for usbphy. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 3490887..cf2af4c 100644

[PATCH] clk: rockchip: optimize the configuration for 800MHz and 1GHz on RK3399

2016-10-31 Thread Xing Zheng
are lower: 800 MHz: - FVCO == 2.4 GHz, revdiv == 1. 1 GHz: - FVCO == 3 GHz, revdiv == 1. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drive

[PATCH] clk: rockchip: optimize the configuration for 800MHz and 1GHz on RK3399

2016-10-31 Thread Xing Zheng
are lower: 800 MHz: - FVCO == 2.4 GHz, revdiv == 1. 1 GHz: - FVCO == 3 GHz, revdiv == 1. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index

[PATCH] clk: rockchip: add 533.25MHz to rk3399 clock rates table

2016-10-20 Thread Xing Zheng
We need to get the accurate 533.25MHz for the DP display. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 2c7cba7..a

[PATCH] clk: rockchip: add 533.25MHz to rk3399 clock rates table

2016-10-20 Thread Xing Zheng
We need to get the accurate 533.25MHz for the DP display. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 2c7cba7..a87cb49 100644 --- a/drivers/clk

Re: [PATCH] ASoC: rk3399_gru_sound: fix recording pop at first attempt

2016-09-22 Thread Xing Zheng
Hi Mark, On 2016年09月19日 22:44, Mark Rutland wrote: On Mon, Sep 19, 2016 at 10:29:39PM +0800, Xing Zheng wrote: From: Wonjoon Lee <woojoo@samsung.com> Pop happens when mclk applied but dmic's own boot-time Specify dmic delay times in dt to make sure clocks are ready earlier tha

Re: [PATCH] ASoC: rk3399_gru_sound: fix recording pop at first attempt

2016-09-22 Thread Xing Zheng
Hi Mark, On 2016年09月19日 22:44, Mark Rutland wrote: On Mon, Sep 19, 2016 at 10:29:39PM +0800, Xing Zheng wrote: From: Wonjoon Lee Pop happens when mclk applied but dmic's own boot-time Specify dmic delay times in dt to make sure clocks are ready earlier than dmic working Signed-off

[PATCH v2] ASoC: rk3399_gru_sound: fix recording pop at first attempt

2016-09-22 Thread Xing Zheng
From: Wonjoon Lee <woojoo@samsung.com> Pop happens when mclk applied but dmic's own boot-time Specify dmic delay times in dt to make sure clocks are ready earlier than dmic working Signed-off-by: Wonjoon Lee <woojoo@samsung.com> Signed-off-by: Xing Zheng <zhengx...

[PATCH v2] ASoC: rk3399_gru_sound: fix recording pop at first attempt

2016-09-22 Thread Xing Zheng
From: Wonjoon Lee Pop happens when mclk applied but dmic's own boot-time Specify dmic delay times in dt to make sure clocks are ready earlier than dmic working Signed-off-by: Wonjoon Lee Signed-off-by: Xing Zheng --- Changes in v2: - rename dmic-delay to dmic-wakeup-delay-ms .../bindings

[PATCH] ASoC: rk3399_gru_sound: fix recording pop at first attempt

2016-09-19 Thread Xing Zheng
From: Wonjoon Lee <woojoo@samsung.com> Pop happens when mclk applied but dmic's own boot-time Specify dmic delay times in dt to make sure clocks are ready earlier than dmic working Signed-off-by: Wonjoon Lee <woojoo@samsung.com> Signed-off-by: Xing Zheng <zhengx...

[PATCH] ASoC: rk3399_gru_sound: fix recording pop at first attempt

2016-09-19 Thread Xing Zheng
From: Wonjoon Lee Pop happens when mclk applied but dmic's own boot-time Specify dmic delay times in dt to make sure clocks are ready earlier than dmic working Signed-off-by: Wonjoon Lee Signed-off-by: Xing Zheng --- .../bindings/sound/rockchip,rk3399-gru-sound.txt |6 ++ sound

[PATCH v2] ASoC: da7219: software reset codec at probe

2016-09-14 Thread Xing Zheng
From: Hsin-Yu Chao <hyc...@chromium.org> Da7219 does not trigger interrupt to report jack status when system boots from warm reset because its power remains on during warm reset. Doing software reset at probe to handle this. Signed-off-by: Hsin-Yu Chao <hyc...@chromium.org> Signed-

[PATCH v2] ASoC: da7219: software reset codec at probe

2016-09-14 Thread Xing Zheng
From: Hsin-Yu Chao Da7219 does not trigger interrupt to report jack status when system boots from warm reset because its power remains on during warm reset. Doing software reset at probe to handle this. Signed-off-by: Hsin-Yu Chao Signed-off-by: Xing Zheng --- Changes in v2: - change

[PATCH] ASoC: da7219: software reset codec at probe

2016-09-14 Thread Xing Zheng
From: Hsin-Yu Chao <hyc...@chromium.org> On some platform da7219 codec has persistent power across reboot so it doesn't reset and cause abnormal jack detection. Workaround this issue by doing software reset at probe. Signed-off-by: Hsin-Yu Chao <hyc...@chromium.org> Signed-off-by

[PATCH] ASoC: da7219: software reset codec at probe

2016-09-14 Thread Xing Zheng
From: Hsin-Yu Chao On some platform da7219 codec has persistent power across reboot so it doesn't reset and cause abnormal jack detection. Workaround this issue by doing software reset at probe. Signed-off-by: Hsin-Yu Chao Signed-off-by: Xing Zheng --- sound/soc/codecs/da7219.c | 8

[PATCH] ASoC: da7219: make sure the valid event when startup

2016-09-09 Thread Xing Zheng
We need to ensure the master bias and jack detection to be enabled before reporting event at the da7219_aad_irq_thread. Otherwise, we may acquire the incorrect the unplug event when the DUT startup with a plugged headphone. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- sou

[PATCH] ASoC: da7219: make sure the valid event when startup

2016-09-09 Thread Xing Zheng
We need to ensure the master bias and jack detection to be enabled before reporting event at the da7219_aad_irq_thread. Otherwise, we may acquire the incorrect the unplug event when the DUT startup with a plugged headphone. Signed-off-by: Xing Zheng --- sound/soc/codecs/da7219-aad.c | 7

Re: [PATCH] clk: rockchip: add 2016M to big cpu clk rate table

2016-09-01 Thread Xing Zheng
, 9, 9), RK3399_CPUCLKB_RATE(189600, 1, 9, 9), RK3399_CPUCLKB_RATE(18, 1, 8, 8), It looks good to me. Reviewed-by: Xing Zheng <zhengx...@rock-chips.com> Thanks. -- - Xing Zheng

Re: [PATCH] clk: rockchip: add 2016M to big cpu clk rate table

2016-09-01 Thread Xing Zheng
), RK3399_CPUCLKB_RATE(18, 1, 8, 8), It looks good to me. Reviewed-by: Xing Zheng Thanks. -- - Xing Zheng

Re: [PATCH] ASoC: rockchip: use SPI dependency for rt5514

2016-08-27 Thread Xing Zheng
epends on SND_SOC_ROCKCHIP&& I2C&& GPIOLIB&& CLKDEV_LOOKUP + depends on SND_SOC_ROCKCHIP&& I2C&& GPIOLIB&& CLKDEV_LOOKUP&& SPI select SND_SOC_ROCKCHIP_I2S select SND_SOC_MAX98357A select SND_SOC_RT5514 So s

Re: [PATCH] ASoC: rockchip: use SPI dependency for rt5514

2016-08-27 Thread Xing Zheng
IP&& I2C&& GPIOLIB&& CLKDEV_LOOKUP + depends on SND_SOC_ROCKCHIP&& I2C&& GPIOLIB&& CLKDEV_LOOKUP&& SPI select SND_SOC_ROCKCHIP_I2S select SND_SOC_MAX98357A select SND_SOC_RT5514 So sorry to miss it... Thanks to help us to fix it. :-) Tested-by: Xing Zheng Thanks. -- - Xing Zheng

[PATCH v2] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
will update the TRM to fix it. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v2: - rename node name "watchdog" to "watchdog0" explicitly arch/arm64/boot/dts/rockchip/rk3399.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
will update the TRM to fix it. Signed-off-by: Xing Zheng --- Changes in v2: - rename node name "watchdog" to "watchdog0" explicitly arch/arm64/boot/dts/rockchip/rk3399.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/roc

Re: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
Hi Shawn, On 2016年08月26日 17:41, Shawn Lin wrote: On 2016/8/26 14:22, Xing Zheng wrote: Dues to incorrect description in the TRM, the WDTs base address should be fixed and swap them like this: WDT0 - 0xff848000 WDT1 - 0xff84 And, it is right that only WDT0 can generate global software

Re: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
Hi Shawn, On 2016年08月26日 17:41, Shawn Lin wrote: On 2016/8/26 14:22, Xing Zheng wrote: Dues to incorrect description in the TRM, the WDTs base address should be fixed and swap them like this: WDT0 - 0xff848000 WDT1 - 0xff84 And, it is right that only WDT0 can generate global software

[PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
Dues to incorrect description in the TRM, the WDTs base address should be fixed and swap them like this: WDT0 - 0xff848000 WDT1 - 0xff84 And, it is right that only WDT0 can generate global software reset. We will update the TRM to fix it. Signed-off-by: Xing Zheng <zhengx...@rock-chips.

[PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
Dues to incorrect description in the TRM, the WDTs base address should be fixed and swap them like this: WDT0 - 0xff848000 WDT1 - 0xff84 And, it is right that only WDT0 can generate global software reset. We will update the TRM to fix it. Signed-off-by: Xing Zheng --- arch/arm64/boot/dts

[PATCH] ASoC: rockchip: Add support rt5514 dsp summy dailink

2016-08-19 Thread Xing Zheng
This patch can attach automaticlly rt5514 spi DAI with driver name "rt5514" in the snd_soc_find_dai process. Turn this feature on, we can enable the voice wake up via rt5514 dsp for RK3399 Gru Boards. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- sound/soc/

[PATCH] ASoC: rockchip: Add support rt5514 dsp summy dailink

2016-08-19 Thread Xing Zheng
This patch can attach automaticlly rt5514 spi DAI with driver name "rt5514" in the snd_soc_find_dai process. Turn this feature on, we can enable the voice wake up via rt5514 dsp for RK3399 Gru Boards. Signed-off-by: Xing Zheng --- sound/soc/rockchip/Kconfig|1 +

Re: [v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-10 Thread Xing Zheng
AGS), Sorry to broken copy, thanks to fix the incorrect bit. Reviewed-by: Xing Zheng <zhengx...@rock-chips.com> Thanks. COMPOSITE_NOMUX(PCLK_VIO, "pclk_vio", "aclk_vio", 0, RK3399_CLKSEL_CON(43), 0, 5, DFLAGS,

Re: [v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-10 Thread Xing Zheng
orrect bit. Reviewed-by: Xing Zheng Thanks. COMPOSITE_NOMUX(PCLK_VIO, "pclk_vio", "aclk_vio", 0, RK3399_CLKSEL_CON(43), 0, 5, DFLAGS, RK3399_CLKGATE_CON(11), 1, GFLAGS), @@ -1470,6 +1470,9 @@ static const char *co

Re: [PATCH 3/3] dmaengine: pl330: support transfer unaligned with (burst len * burst size)

2016-08-07 Thread Xing Zheng
:DMAFLUSHP 12 f0041030:DMALPENDA_1 bjmpto_7 f0041032:DMASEV 0 f0041034:DMAEND Signed-off-by: Shawn Lin <shawn@rock-chips.com> Tested-by: Xing Zheng <zhengx...@rock-chips.com> Thanks. -- - Xing Zheng

Re: [PATCH 3/3] dmaengine: pl330: support transfer unaligned with (burst len * burst size)

2016-08-07 Thread Xing Zheng
:DMAFLUSHP 12 f0041030:DMALPENDA_1 bjmpto_7 f0041032:DMASEV 0 f0041034:DMAEND Signed-off-by: Shawn Lin Tested-by: Xing Zheng Thanks. -- - Xing Zheng

Re: [PATCH 2/3] dmaengine: pl330: enable burst mode by parsing dt

2016-08-07 Thread Xing Zheng
significantly when tesing SPI transfer etc. default single mode [ 88.292550] spi write 65536*1 cost 32402us speed:2022KB/S After applied with burst mode(len 16) [ 17.625296] spi write 65536*1 cost 17830us speed:3675KB/S Cc: Huibin Hong <huibin.h...@rock-chips.com> Cc: Xing Zheng &

Re: [PATCH 2/3] dmaengine: pl330: enable burst mode by parsing dt

2016-08-07 Thread Xing Zheng
significantly when tesing SPI transfer etc. default single mode [ 88.292550] spi write 65536*1 cost 32402us speed:2022KB/S After applied with burst mode(len 16) [ 17.625296] spi write 65536*1 cost 17830us speed:3675KB/S Cc: Huibin Hong Cc: Xing Zheng Signed-off-by: Shawn Lin --- Tested

Re: [PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-05 Thread Xing Zheng
Hi Heiko, On 2016年08月05日 16:48, Heiko Stübner wrote: Hi Xing, Am Freitag, 5. August 2016, 10:26:57 schrieb Xing Zheng: On 2016年08月05日 03:19, Heiko Stübner wrote: Am Dienstag, 2. August 2016, 15:22:59 schrieb Xing Zheng: We need to support various display resolutions for external display

Re: [PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-05 Thread Xing Zheng
Hi Heiko, On 2016年08月05日 16:48, Heiko Stübner wrote: Hi Xing, Am Freitag, 5. August 2016, 10:26:57 schrieb Xing Zheng: On 2016年08月05日 03:19, Heiko Stübner wrote: Am Dienstag, 2. August 2016, 15:22:59 schrieb Xing Zheng: We need to support various display resolutions for external display

Re: [PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-04 Thread Xing Zheng
Hi Heiko, On 2016年08月05日 03:19, Heiko Stübner wrote: Hi Xing, Am Dienstag, 2. August 2016, 15:22:59 schrieb Xing Zheng: We need to support various display resolutions for external display devices like HDMI/DP, the frac mode can help us to acquire almost any frequencies, and need higher VCOs

Re: [PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-04 Thread Xing Zheng
Hi Heiko, On 2016年08月05日 03:19, Heiko Stübner wrote: Hi Xing, Am Dienstag, 2. August 2016, 15:22:59 schrieb Xing Zheng: We need to support various display resolutions for external display devices like HDMI/DP, the frac mode can help us to acquire almost any frequencies, and need higher VCOs

[PATCH v7] ASoC: rockchip: Add machine driver for RK3399 GRU Boards

2016-08-03 Thread Xing Zheng
Because we need to support the multiple codecs (MAX98357A/RT5514/DA7219) on the RK3399 GRU boards, this patch can help us to support these codecs. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v7: - add default MCLK and

[PATCH v7] ASoC: rockchip: Add machine driver for RK3399 GRU Boards

2016-08-03 Thread Xing Zheng
Because we need to support the multiple codecs (MAX98357A/RT5514/DA7219) on the RK3399 GRU boards, this patch can help us to support these codecs. Signed-off-by: Xing Zheng Acked-by: Rob Herring --- Changes in v7: - add default MCLK and PLL settings for the da7219_init() so

Re: [PATCH] clk: rockchip: rk3399: add pll up and down when change pll freq

2016-08-02 Thread Xing Zheng
Hi Doug, On 2016年08月03日 08:49, Doug Anderson wrote: Xing, On Tue, Aug 2, 2016 at 6:13 AM, Xing Zheng <zhengx...@rock-chips.com> wrote: From: Elaine Zhang <zhangq...@rock-chips.com> The suggestion that is from IC designer, the correct pll sequence setting should be like these: ---

Re: [PATCH] clk: rockchip: rk3399: add pll up and down when change pll freq

2016-08-02 Thread Xing Zheng
Hi Doug, On 2016年08月03日 08:49, Doug Anderson wrote: Xing, On Tue, Aug 2, 2016 at 6:13 AM, Xing Zheng wrote: From: Elaine Zhang The suggestion that is from IC designer, the correct pll sequence setting should be like these: set pll to slow mode or other plls set pll down set

[RFC PATCH] clk: rockchip: rk3399: support pll setting automatically

2016-08-02 Thread Xing Zheng
chips.com> Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- drivers/clk/rockchip/clk-pll.c | 213 +--- 1 file changed, 200 insertions(+), 13 deletions(-) diff --git a/drivers/clk/rockchip/clk-pll.c b/drivers/clk/rockchip/clk-pll.c index 35994

[RFC PATCH] clk: rockchip: rk3399: support pll setting automatically

2016-08-02 Thread Xing Zheng
From: Elaine Zhang The goal is that we can configure the most suitable pll params automatically. If setting freq is not supported in rockchip_pll_rate_table rk3399_pll_rates[], we can set pll params automatically. Signed-off-by: Elaine Zhang Signed-off-by: Xing Zheng --- drivers/clk

[PATCH] clk: rockchip: rk3399: add pll up and down when change pll freq

2016-08-02 Thread Xing Zheng
Hence, there are potential risks that we need to fix: rockchip_rk3399_wait_pll_lock - timeout waiting for pll to lock rockchip_rk3399_pll_set_params - pll update unsucessful, trying to restore old params Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Xing Zheng <zhengx...

[PATCH] clk: rockchip: rk3399: add pll up and down when change pll freq

2016-08-02 Thread Xing Zheng
need to fix: rockchip_rk3399_wait_pll_lock - timeout waiting for pll to lock rockchip_rk3399_pll_set_params - pll update unsucessful, trying to restore old params Signed-off-by: Elaine Zhang Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-pll.c | 10 ++ 1 file changed, 10

[PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-02 Thread Xing Zheng
We need to support various display resolutions for external display devices like HDMI/DP, the frac mode can help us to acquire almost any frequencies, and need higher VCOs to reduce clock jitters. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v3: None Changes in v2

[PATCH v3 7/7] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-02 Thread Xing Zheng
We need to support various display resolutions for external display devices like HDMI/DP, the frac mode can help us to acquire almost any frequencies, and need higher VCOs to reduce clock jitters. Signed-off-by: Xing Zheng --- Changes in v3: None Changes in v2: None drivers/clk/rockchip/clk

[PATCH v3 3/7] clk: rockchip: rk3399: fix incorrect GATE bits for {c, g}pll_aclk_perihp_src

2016-08-02 Thread Xing Zheng
4 0x03e1 plug/unplug, the DUT is crashed Summary: bit 1 - shows aclk_perihp_cpll_src_en bit 0 - shows aclk_perihp_gpll_src_en Fixes: 3bd14ae9da91 ("clk: rockchip: fix incorrect parent for rk3399's {c,g}pll_aclk_perihp_src") Signed-off-by: Xing Zheng <zhengx...@rock-chips.com>

[PATCH v3 0/7] fix and optimize some clock configuration for the RK3399 platfom

2016-08-02 Thread Xing Zheng
clk_perihp_src" into the patchset Elaine Zhang (1): clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie Xing Zheng (6): clk: rockchip: rk3399: export USBPHYx_480M_SRC clock IDs clk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1 clk: rockchip:

[PATCH v3 5/7] clk: rockchip: rk3399: add 65MHz and 106.5MHz clocks for HDMI

2016-08-02 Thread Xing Zheng
We need to add more clocks for supporting more display resolution for HDMI. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockch

[PATCH v3 6/7] clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie

2016-08-02 Thread Xing Zheng
From: Elaine Zhang <zhangq...@rock-chips.com> allow aclk_pcie and aclk_perf_pcie disabled when unused. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/clk/roc

[PATCH v3 3/7] clk: rockchip: rk3399: fix incorrect GATE bits for {c, g}pll_aclk_perihp_src

2016-08-02 Thread Xing Zheng
4 0x03e1 plug/unplug, the DUT is crashed Summary: bit 1 - shows aclk_perihp_cpll_src_en bit 0 - shows aclk_perihp_gpll_src_en Fixes: 3bd14ae9da91 ("clk: rockchip: fix incorrect parent for rk3399's {c,g}pll_aclk_perihp_src") Signed-off-by: Xing Zheng --- Changes in v3: - list more

[PATCH v3 0/7] fix and optimize some clock configuration for the RK3399 platfom

2016-08-02 Thread Xing Zheng
chset Elaine Zhang (1): clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie Xing Zheng (6): clk: rockchip: rk3399: export USBPHYx_480M_SRC clock IDs clk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1 clk: rockchip: rk3399: fix incorrect GATE bits for {c,

[PATCH v3 5/7] clk: rockchip: rk3399: add 65MHz and 106.5MHz clocks for HDMI

2016-08-02 Thread Xing Zheng
We need to add more clocks for supporting more display resolution for HDMI. Signed-off-by: Xing Zheng --- Changes in v3: None Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk

[PATCH v3 6/7] clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie

2016-08-02 Thread Xing Zheng
From: Elaine Zhang allow aclk_pcie and aclk_perf_pcie disabled when unused. Signed-off-by: Elaine Zhang Signed-off-by: Xing Zheng --- Changes in v3: None Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v3 4/7] clk: rockchip: rk3399: fix incorrect aclk_emmc source gate bits

2016-08-02 Thread Xing Zheng
Dues to incorrect diagram, we need to fix incorrect bits for (c/g)pll_aclk_emmc_src: cpll_aclk_emmc_src --> G6[13] gpll_aclk_emmc_src --> G6[12] Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> Reviewed-by: Shawn Lin <shawn@rock-chips.com> --- Changes in v3: - add &

[PATCH v3 4/7] clk: rockchip: rk3399: fix incorrect aclk_emmc source gate bits

2016-08-02 Thread Xing Zheng
Dues to incorrect diagram, we need to fix incorrect bits for (c/g)pll_aclk_emmc_src: cpll_aclk_emmc_src --> G6[13] gpll_aclk_emmc_src --> G6[12] Signed-off-by: Xing Zheng Reviewed-by: Shawn Lin --- Changes in v3: - add "Reviewed-by: Shawn Lin " Changes in v2: None drivers/

[PATCH v3 2/7] clk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1

2016-08-02 Thread Xing Zheng
Export these source clocks for usbphy. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drive

[PATCH v3 1/7] clk: rockchip: rk3399: export USBPHYx_480M_SRC clock IDs

2016-08-02 Thread Xing Zheng
We export some clock IDs for the usb phy 480m source clocks. Signed-off-by: Xing Zheng <zhengx...@rock-chips.com> --- Changes in v3: None Changes in v2: None include/dt-bindings/clock/rk3399-cru.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rk3399

  1   2   3   4   5   6   7   >