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

[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 .../bin

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-o

[PATCH 0/5] Fix and improve clock controller for the RK322x SoCs

2016-06-20 Thread Xing Zheng
Hi, These patchset fix some clocks bugs, and improve clock configuration for i2s/spdif/MAC on RK322x SoCs. Thanks. Xing Zheng (5): clk: rockchip: rk3228: fix incorrect clock node names clk: rockchip: rk3228: include downstream muxes into fractional dividers clk: rockchip: rk3228

[PATCH 2/5] clk: rockchip: rk3228: include downstream muxes into fractional dividers

2016-06-20 Thread Xing Zheng
During the initial conversion to the newly introduced combined fractional dividers+muxes the rk3228 clocks were left out, so convert them now. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3228.c | 79 - 1 file changed, 51 insertions(+), 28

[PATCH 1/5] clk: rockchip: rk3228: fix incorrect clock node names

2016-06-20 Thread Xing Zheng
Due to copy and paste carelessly, RK3288_CLKxxx nodes are incorrect, we need to fix them. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3228.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk

[PATCH 3/5] clk: rockchip: rk3228: export related i2s/spdif clocks

2016-06-20 Thread Xing Zheng
This patch exports related i2s/spdif clocks for dts reference. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3228.c |8 include/dt-bindings/clock/rk3228-cru.h |4 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk

[PATCH 4/5] clk: rockchip: rk3228: rename sclk_macphy_50m to sclk_mac_extclk

2016-06-20 Thread Xing Zheng
The sclk_macphy_50m is confusing, the sclk_mac_extclk describes a external clock clearly. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3228.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk

[PATCH 5/5] clk: rockchip: rk3228: export related MAC clocks

2016-06-20 Thread Xing Zheng
This patch exports related MAC clocks for dts reference. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3228.c | 22 +++--- include/dt-bindings/clock/rk3228-cru.h | 11 +++ 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/drivers/clk

[PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
Add constants and callback functions for the dwmac on rk322x socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Xing Zheng --- .../devicetree/bindings/net/rockchip-dwmac.txt |3 +- drivers/net/ethernet/stmicro/stmmac

[PATCH 3/3] ARM: dts: rockchip: add support rk3229 evb board

2016-06-21 Thread Xing Zheng
Initial release for rk3229 evb board, and turn the GMAC on. Signed-off-by: Xing Zheng --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3229-evb.dts | 90 ++ 2 files changed, 91 insertions(+) create mode 100644 arch/arm/boot/dts/rk3229

[PATCH 1/3] ARM: dts: rockchip: add i2s nodes for RK3228 SoCs

2016-06-21 Thread Xing Zheng
This patch add the i2s dt nodes for rk3228 SoCs. Signed-off-by: Xing Zheng --- arch/arm/boot/dts/rk3228.dtsi | 55 + 1 file changed, 55 insertions(+) diff --git a/arch/arm/boot/dts/rk3228.dtsi b/arch/arm/boot/dts/rk3228.dtsi index e23a22e..e224147

[PATCH 2/3] ARM: dts: rockchip: add GMAC nodes for RK3228 SoCs

2016-06-21 Thread Xing Zheng
This patch add the GMAC dt nodes for rk3228 SoCs. Signed-off-by: Xing Zheng --- arch/arm/boot/dts/rk3228.dtsi | 64 + 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/rk3228.dtsi b/arch/arm/boot/dts/rk3228.dtsi index e224147..4c0223c

[PATCH 0/3] Add i2s/gmac dts nodes for RK322x SoCs

2016-06-21 Thread Xing Zheng
Hi, These patchset add i2s/gmac dts nodes for RK322x SoCs, and add the new dts file of the rk3229 evb board. Thanks. Xing Zheng (3): ARM: dts: rockchip: add i2s nodes for RK3228 SoCs ARM: dts: rockchip: add GMAC nodes for RK3228 SoCs ARM: dts: rockchip: add support rk3229 evb board

Re: [PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
elow, just add a second compatible). OK, I try to just use "rockchip,rk3228-gmac" to point to "rk322x_ops" which is the same structure in MAC driver, and both rk3228 and rk3229 use it. Thanks -- - Xing Zheng

[PATCH v2] net: stmmac: dwmac-rk: add rk3228-specific data

2016-06-21 Thread Xing Zheng
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: Xing Zheng --- Changes in v2: - the "rk322x" is not clear to SoC decription, rename it

Re: [PATCH 0/5] Fix and improve clock controller for the RK322x SoCs

2016-06-21 Thread Xing Zheng
Hi Heiko, On 2016年06月22日 07:07, Heiko Stuebner wrote: Am Dienstag, 21. Juni 2016, 12:53:26 schrieb Xing Zheng: Hi, These patchset fix some clocks bugs, and improve clock configuration for i2s/spdif/MAC on RK322x SoCs. applied to my clock-branch with the following changes: - fixed the

[PATCH v2 2/4] ARM: dts: rockchip: add i2s nodes for RK322x SoCs

2016-06-21 Thread Xing Zheng
This patch add the i2s dt nodes for rk322x SoCs. Signed-off-by: Xing Zheng --- Changes in v2: None arch/arm/boot/dts/rk322x.dtsi | 55 + 1 file changed, 55 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index

[PATCH v2 1/4] ARM: dts: rockchip: rename rk3228.dtsi to rk322x.dtsi

2016-06-21 Thread Xing Zheng
We have the brother chipset that RK3228 and RK3229, they share most of dts configuration, but there are a number of different features. In order to develop the future when they are easy to distinguish, we need them to be independent. Signed-off-by: Xing Zheng --- Changes in v2: None arch/arm

[PATCH v2 4/4] ARM: dts: rockchip: add support rk3229 evb board

2016-06-21 Thread Xing Zheng
Initial release for rk3229 evb board, and turn the GMAC on. Signed-off-by: Xing Zheng --- Changes in v2: - rename rk3228.dtsi to rk322x.dtsi arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3229-evb.dts | 90 ++ arch/arm/boot/dts/rk3229

[PATCH v2 3/4] ARM: dts: rockchip: add GMAC nodes for RK322x SoCs

2016-06-21 Thread Xing Zheng
This patch add the GMAC dt nodes for rk322x SoCs. Signed-off-by: Xing Zheng --- Changes in v2: None arch/arm/boot/dts/rk322x.dtsi | 64 + 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi

[PATCH v2 0/4] Fix and add support i2s/spdif/gmac features for RK322x SoCs

2016-06-21 Thread Xing Zheng
RK322x SoCs, and add the new dts file of the rk3229 evb board. Thanks. Changes in v2: - rename rk3228.dtsi to rk322x.dtsi Xing Zheng (4): ARM: dts: rockchip: rename rk3228.dtsi to rk322x.dtsi ARM: dts: rockchip: add i2s nodes for RK322x SoCs ARM: dts: rockchip: add GMAC nodes for RK322x SoCs

[RESEND PATCH v2 2/4] ARM: dts: rockchip: add i2s nodes for RK322x SoCs

2016-06-21 Thread Xing Zheng
This patch add the i2s dt nodes for rk322x SoCs. Signed-off-by: Xing Zheng --- Changes in v2: None arch/arm/boot/dts/rk322x.dtsi | 55 + 1 file changed, 55 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index

[RESEND PATCH v2 1/4] ARM: dts: rockchip: rename rk3228.dtsi to rk322x.dtsi

2016-06-21 Thread Xing Zheng
We have the brother chipset that RK3228 and RK3229, they share most of dts configuration, but there are a number of different features. In order to develop the future when they are easy to distinguish, we need them to be independent. Signed-off-by: Xing Zheng --- Changes in v2: None arch/arm

[RESEND PATCH v2 4/4] ARM: dts: rockchip: add support rk3229 evb board

2016-06-21 Thread Xing Zheng
Initial release for rk3229 evb board, and turn the GMAC on. Signed-off-by: Xing Zheng --- Changes in v2: - rename rk3228.dtsi to rk322x.dtsi arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3229-evb.dts | 90 ++ arch/arm/boot/dts/rk3229

[RESEND PATCH v2 0/4] Add support i2s/spdif/gmac features for RK322x SoCs

2016-06-21 Thread Xing Zheng
RK322x SoCs, and add the new dts file of the rk3229 evb board. Thanks. Changes in v2: - rename rk3228.dtsi to rk322x.dtsi Xing Zheng (4): ARM: dts: rockchip: rename rk3228.dtsi to rk322x.dtsi ARM: dts: rockchip: add i2s nodes for RK322x SoCs ARM: dts: rockchip: add GMAC nodes for RK322x SoCs

[RESEND PATCH v2 3/4] ARM: dts: rockchip: add GMAC nodes for RK322x SoCs

2016-06-21 Thread Xing Zheng
This patch add the GMAC dt nodes for rk322x SoCs. Signed-off-by: Xing Zheng --- Changes in v2: None arch/arm/boot/dts/rk322x.dtsi | 64 + 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi

[PATCH 4/6] clk: rockchip: rk3399: add 65MHz and 106.5MHz clocks for HDMI

2016-07-31 Thread Xing Zheng
We need to add more clocks for supporting more display resolution for HDMI. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index ad3860a..74afec0

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

2016-07-31 Thread Xing Zheng
We export some 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 50a44cf..c4d8311

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

2016-07-31 Thread Xing Zheng
Export these source 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 78e51cb..f55f967f 100644 --- a/drivers

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

2016-07-31 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 --- drivers/clk/rockchip/clk-rk3399.c | 21 - 1

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

2016-07-31 Thread Xing Zheng
Hi: In the development work, we found that some of the previous incorrect clock configuration on the RK3399 platform, we should fix and optimize them. Elaine Zhang (1): clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie Xing Zheng (5): clk: rockchip: rk3399: export

[PATCH 3/6] clk: rockchip: rk3399: fix incorrect aclk_emmc source gate bits

2016-07-31 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 --- drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

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

2016-07-31 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 --- 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

[RESEND PATCH 4/6] clk: rockchip: rk3399: add 65MHz and 106.5MHz clocks for HDMI

2016-07-31 Thread Xing Zheng
We need to add more clocks for supporting more display resolution for HDMI. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index ad3860a..74afec0

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

2016-07-31 Thread Xing Zheng
Export these source 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 78e51cb..f55f967f 100644 --- a/drivers

[RESEND PATCH 5/6] clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie

2016-07-31 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 --- 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

[RESEND PATCH 0/6] fix and optimize some clock configuration for the RK3399 platfom

2016-07-31 Thread Xing Zheng
Hi: In the development work, we found that some of the previous incorrect clock configuration on the RK3399 platform, we should fix and optimize them. Elaine Zhang (1): clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie Xing Zheng (5): clk: rockchip: rk3399: export

[RESEND PATCH 6/6] clk: rockchip: rk3399: Add support frac mode frequencies

2016-07-31 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 --- drivers/clk/rockchip/clk-rk3399.c | 21 - 1

[RESEND PATCH 1/6] clk: rockchip: rk3399: export USBPHYx_480M_SRC clock IDs

2016-07-31 Thread Xing Zheng
We export some 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 50a44cf..c4d8311

[RESEND PATCH 3/6] clk: rockchip: rk3399: fix incorrect aclk_emmc source gate bits

2016-07-31 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 --- drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

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

2016-08-01 Thread Xing Zheng
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 parent for rk3399's {c, g}pll_aclk_perihp_src clk: r

[PATCH v2 3/7] clk: rockchip: rk3399: fix incorrect parent for rk3399's {c, g}pll_aclk_perihp_src

2016-08-01 Thread Xing Zheng
There was a typo, swapping 'c' <--> 'g'. And sorry to refer incorrect clock diagram, we double check it that the bits configuration of the Xpll_aclk_perihp_src need to be fixed: bit 1 - shows aclk_perihp_cpll_src_en bit 0 - shows aclk_perihp_gpll_src_en Signed-off-by:

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

2016-08-01 Thread Xing Zheng
Export these source clocks for usbphy. Signed-off-by: Xing Zheng --- 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/drivers/clk/rockchip/clk-rk3399.c index 78e51cb..f55f967f

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

2016-08-01 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 --- Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 del

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

2016-08-01 Thread Xing Zheng
We export some clock IDs for the usb phy 480m source clocks. Signed-off-by: Xing Zheng --- 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-cru.h b/include/dt-bindings/clock/rk3399-cru.h

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

2016-08-01 Thread Xing Zheng
We need to add more clocks for supporting more display resolution for HDMI. Signed-off-by: Xing Zheng --- 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/rockchip/clk-rk3399.c index

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

2016-08-01 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 v2: None drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk

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

2016-08-01 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 v2: - add the patch "fix incorrect parent for rk3399

[RESEND PATCH v2 3/8] clk: rockchip: rk3399: fix incorrect parent for rk3399's {c, g}pll_aclk_perihp_src

2016-08-01 Thread Xing Zheng
There was a typo, swapping 'c' <--> 'g'. (This patch is updated and am from https://patchwork.kernel.org/patch/9254067/) Signed-off-by: Xing Zheng Signed-off-by: Brian Norris Reviewed-by: Douglas Anderson --- Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |

[RESEND PATCH v2 2/8] clk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1

2016-08-01 Thread Xing Zheng
Export these source clocks for usbphy. Signed-off-by: Xing Zheng --- 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/drivers/clk/rockchip/clk-rk3399.c index 78e51cb..f55f967f

[RESEND PATCH v2 1/8] clk: rockchip: rk3399: export USBPHYx_480M_SRC clock IDs

2016-08-01 Thread Xing Zheng
We export some clock IDs for the usb phy 480m source clocks. Signed-off-by: Xing Zheng --- 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-cru.h b/include/dt-bindings/clock/rk3399-cru.h

[RESEND PATCH v2 0/8] fix and optimize some clock configuration for the RK3399 platfom

2016-08-01 Thread Xing Zheng
GATE bits for {c, g}pll_aclk_perihp_src" Elaine Zhang (1): clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie Xing Zheng (7): clk: rockchip: rk3399: export USBPHYx_480M_SRC clock IDs clk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1 clk: rockchip: rk3

[RESEND PATCH v2 4/8] clk: rockchip: rk3399: fix incorrect GATE bits for {c, g}pll_aclk_perihp_src

2016-08-01 Thread Xing Zheng
Sorry to refer incorrect clock diagram, we double check it that the bits configuration of the Xpll_aclk_perihp_src need to be fixed: bit 1 - shows aclk_perihp_cpll_src_en bit 0 - shows aclk_perihp_gpll_src_en Signed-off-by: Xing Zheng --- Changes in v2: None drivers/clk/rockchip/clk-rk3399.c

Re: [PATCH 2/2] clk: rockchip: fix incorrect parent for rk3399's {c,g}pll_aclk_perihp_src

2016-08-01 Thread Xing Zheng
. On 2016年05月16日 23:49, Doug Anderson wrote: Hi, On Fri, May 13, 2016 at 8:36 PM, Xing Zheng wrote: Hi Doug, On 2016年05月14日 04:10, Doug Anderson wrote: Hi, On Fri, May 13, 2016 at 11:42 AM, Brian Norris wrote: From: Xing Zheng There was a typo, swapping 'c' <--> 'g&#

[RESEND PATCH v2 6/8] clk: rockchip: rk3399: add 65MHz and 106.5MHz clocks for HDMI

2016-08-01 Thread Xing Zheng
We need to add more clocks for supporting more display resolution for HDMI. Signed-off-by: Xing Zheng --- 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/rockchip/clk-rk3399.c index

[RESEND PATCH v2 5/8] clk: rockchip: rk3399: fix incorrect aclk_emmc source gate bits

2016-08-01 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 --- Changes in v2: None drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 del

[RESEND PATCH v2 8/8] clk: rockchip: rk3399: Add support frac mode frequencies

2016-08-01 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 v2: - add the patch "fix incorrect parent for rk3399

[RESEND PATCH v2 7/8] clk: rockchip: rk3399: delete the CLK_IGNORE_UNUSED for aclk_pcie

2016-08-01 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 v2: None drivers/clk/rockchip/clk-rk3399.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk

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

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

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

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

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-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 2/3] dmaengine: pl330: enable burst mode by parsing dt

2016-08-07 Thread Xing Zheng
mprovement 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 ---

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

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

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

2016-08-25 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

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 v2] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

2016-08-26 Thread Xing Zheng
ll 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

[PATCH v1 2/3] pinctrl: rockchip: add support for the rk3036

2015-08-27 Thread Xing Zheng
Many parts of pinctrl rk3036 are similar to rk2928's. Signed-off-by: Xing Zheng --- Changes in v1: None drivers/pinctrl/pinctrl-rockchip.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c

[PATCH v1 0/3] Port and support rk3036 SoC platform

2015-08-27 Thread Xing Zheng
Hi, We need to support rk3036 soc platform via upstream, there are 3 parts for the initial release of minimum system: dts, pinctrl, and clock tree for rk3036, startup and run to init processs. Thanks. Changes in v1: Signed-off-by: Xing Zheng Xing Zheng (3): ARM: dts: rockchip: add core

[PATCH v1 3/3] clk: rockchip: add clock controller for rk3036

2015-08-27 Thread Xing Zheng
Add the clock tree definition for the new rk3036 SoC, but there are some issues to be fixed: 1. soc will crash if gpll run rate_change_remuxed 2. rk3036_clk_suspend and rk3036_clk_resume should be done in clk-rk3036.c --- Changes in v1: Signed-off-by: Xing Zheng drivers/clk/rockchip

[PATCH v1 1/3] ARM: dts: rockchip: add core rk3036 dts

2015-08-27 Thread Xing Zheng
Initial release for rk3036, node definitions rk3036 sdk board. Signed-off-by: Xing Zheng --- Changes in v1: None arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3036-sdk.dts | 362 ++ 2 files changed, 363 insertions(+) create mode 100644

Re: [PATCH v1 0/3] Port and support rk3036 SoC platform

2015-08-28 Thread Xing Zheng
HI Heiko, Thank you for your reply. I will improve them as quickly as possible. Thanks. :) On 2015年08月28日 17:59, Heiko Stuebner wrote: Hi, Am Freitag, 28. August 2015, 13:46:45 schrieb Xing Zheng: We need to support rk3036 soc platform via upstream, there are 3 parts for the initial release

[PATCH v4 0/8] Build and support rk3036 SoC platform

2015-10-24 Thread Xing Zheng
) ARM: dts: rockchip: add core rk3036 dts 4) clk: rockchip: add new pll-type for rk3036 and similar socs 3) clk: rockchip: add clock controller for rk3036 2) clk: rockchip: add dt-binding header for rk3036 1) dt-bindings: add documentation of rk3036 clock controller Changes in v4: Signed-off-by: Xin

[PATCH v4 2/8] clk: rockchip: add dt-binding header for rk3036

2015-10-24 Thread Xing Zheng
Add the dt-bindings header for the rk3036, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v4: None include/dt-bindings/clock/rk3036-cru.h | 195 1 file

[PATCH v4 4/8] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-10-24 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Ch

[PATCH v4 3/8] clk: rockchip: add clock controller for rk3036

2015-10-24 Thread Xing Zheng
Add the clock tree definition for the new rk3036 SoC. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v4: None drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3036.c | 500 + drivers/clk/rockchip/clk.h

[PATCH v4 1/8] dt-bindings: add documentation of rk3036 clock controller

2015-10-24 Thread Xing Zheng
Add the devicetree binding for the cru on the rk3036 which quite similar structured as previous clock controllers. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v4: None .../bindings/clock/rockchip,rk3036-cru.txt | 56 1 file changed, 56

[PATCH v4 5/8] ARM: dts: rockchip: add core rk3036 dts

2015-10-24 Thread Xing Zheng
Initial release for rk3036, node definitions rk3036 sdk board. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v4: None arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3036-evb.dts | 64 + arch/arm/boot/dts/rk3036.dtsi| 536

[PATCH v4 6/8] ARM: rockchip: add support smp for rk3036

2015-10-24 Thread Xing Zheng
powerdomain control. So allow that case by introducing a separate smp-enable-method, that simply disables powerdomain handling in the common code. Signed-off-by: Heiko Stuebner Tested-by: Xing Zheng Signed-off-by: Xing Zheng --- Changes in v4: None Documentation/devicetree/bindings/arm

[PATCH v4 7/8] ARM: dts: enable smp for rk3036

2015-10-24 Thread Xing Zheng
Enable smp for rk3036, and add the smp sram name for adapting. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v4: None arch/arm/boot/dts/rk3036.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi

[PATCH v4 8/8] rockchip: make sure timer5 is enabled on rk3036 platforms

2015-10-24 Thread Xing Zheng
The timer5 supplies the architected timer and thus as has to run when the system clocksource and clockevents drivers are registered. --- Changes in v4: Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner arch/arm/mach-rockchip/rockchip.c | 44 +++-- 1 file

[PATCH v5 1/8] dt-bindings: add documentation of rk3036 clock controller

2015-10-25 Thread Xing Zheng
Add the devicetree binding for the cru on the rk3036 which quite similar structured as previous clock controllers. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None .../bindings/clock/rockchip,rk3036-cru.txt | 56 1 file changed, 56

[PATCH v5 4/8] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-10-25 Thread Xing Zheng
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Ch

[PATCH v5 0/8] Build and support rk3036 SoC platform

2015-10-25 Thread Xing Zheng
mentation of rk3036 clock controller Changes in v5: Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner Heiko Stuebner (1): ARM: rockchip: add support smp for rk3036 Xing Zheng (7): dt-bindings: add documentation of rk3036 clock controller clk: rockchip: add dt-binding header for rk3036

[PATCH v5 3/8] clk: rockchip: add clock controller for rk3036

2015-10-25 Thread Xing Zheng
Add the clock tree definition for the new rk3036 SoC. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3036.c | 500 + drivers/clk/rockchip/clk.h

[PATCH v5 2/8] clk: rockchip: add dt-binding header for rk3036

2015-10-25 Thread Xing Zheng
Add the dt-bindings header for the rk3036, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None include/dt-bindings/clock/rk3036-cru.h | 195 1 file

[PATCH v5 5/8] ARM: dts: rockchip: add core rk3036 dts

2015-10-25 Thread Xing Zheng
Initial release for rk3036, node definitions rk3036 sdk board. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/rk3036-evb.dts | 64 + arch/arm/boot/dts/rk3036.dtsi| 536

[PATCH v5 6/8] ARM: rockchip: add support smp for rk3036

2015-10-25 Thread Xing Zheng
powerdomain control. So allow that case by introducing a separate smp-enable-method, that simply disables powerdomain handling in the common code. Signed-off-by: Heiko Stuebner Tested-by: Xing Zheng Signed-off-by: Xing Zheng --- Changes in v5: None Documentation/devicetree/bindings/arm

[PATCH v5 7/8] ARM: dts: enable smp for rk3036

2015-10-25 Thread Xing Zheng
Enable smp for rk3036, and add the smp sram name for adapting. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Changes in v5: None arch/arm/boot/dts/rk3036.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi

[PATCH v5 8/8] rockchip: make sure timer5 is enabled on rk3036 platforms

2015-10-25 Thread Xing Zheng
The timer5 supplies the architected timer and thus as has to run when the system clocksource and clockevents drivers are registered. --- Changes in v5: Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner arch/arm/mach-rockchip/rockchip.c | 44 +++-- 1 file

[PATCH v1] ASoC: rockchip: fix a misjudgement by return

2015-08-25 Thread Xing Zheng
Being careless, judge the return value of snd_soc_card_jack_new is opposite, so it should be fixed. --- Changes in v1: Signed-off-by: Xing Zheng Reviewed-by: Dylan Reid sound/soc/rockchip/rockchip_rt5645.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc

[PATCH v1 0/1] A misjudgement should be fixed

2015-08-25 Thread Xing Zheng
Hi, Being careless, judge the return value of snd_soc_card_jack_new is opposite, so it should be fixed. Thanks. Changes in v1: Signed-off-by: Xing Zheng Reviewed-by: Dylan Reid Xing Zheng (1): ASoC: rockchip: fix a misjudgement by return sound/soc/rockchip/rockchip_rt5645.c |2 +- 1

[RESEND PATCH v1 0/1] A misjudgement should be fixed

2015-08-25 Thread Xing Zheng
Hi, Being careless, judge the return value of snd_soc_card_jack_new is opposite, so it should be fixed. Thanks. Changes in v1: Signed-off-by: Xing Zheng Reviewed-by: Dylan Reid Xing Zheng (1): ASoC: rockchip: fix a misjudgement by return sound/soc/rockchip/rockchip_rt5645.c |2 +- 1

[RESEND PATCH v1] ASoC: rockchip: fix a misjudgement by return

2015-08-25 Thread Xing Zheng
Being careless, judge the return value of snd_soc_card_jack_new is opposite, so it should be fixed. --- Changes in v1: Signed-off-by: Xing Zheng Reviewed-by: Dylan Reid sound/soc/rockchip/rockchip_rt5645.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc

[PATCH v2] ASoC: rockchip: fix a misjudgement by return

2015-08-25 Thread Xing Zheng
Being careless, judge the return value of snd_soc_card_jack_new is opposite, so it should be fixed. --- Changes in v2: Signed-off-by: Xing Zheng Reviewed-by: Dylan Reid sound/soc/rockchip/rockchip_rt5645.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc

[PATCH v2 2/2] ASoC: rockchip: Add machine driver for rt5645/rt5650 codec

2015-07-17 Thread Xing Zheng
data(pdev); + + snd_soc_unregister_card(soc_card); + + return 0; +} + +static const struct of_device_id rockchip_rt5645_of_match[] = { + { .compatible = "rockchip,rockchip-audio-rt5645", }, + {}, +}; + +MODULE_DEVICE_TABLE(of, rockchip_rt5645_of_match); + +static st

[PATCH v2 0/2] Add codec machine driver for rockchip platform

2015-07-17 Thread Xing Zheng
From: zhengxing Hi, The simple-card is not common at present, soc maybe need own machine driver for jack detection. Add drivers for two families of rockchip-bases chromebooks. These machine drives don't use simplecard because we need custom jack detection plumbing. - use ts3a227e for ext ja

[PATCH v2 1/2] ASoC: rockchip: Add machine driver for max98090 codec

2015-07-17 Thread Xing Zheng
From: zhengxing The driver is used for rockchip board using a max98090. Reviewed-by: Dylan Reid Signed-off-by: zhengxing --- Changes in v2: None .../bindings/sound/rockchip-max98090.txt | 19 ++ sound/soc/rockchip/Kconfig | 10 + sound/soc/rockchip/Make

  1   2   3   4   >