[U-Boot] [PATCH 0/7] Add uCdimm and Mercury's EP2500 support

2010-04-07 Thread David Wu
Hi list, This is my first time to submit a patch to this list. I hope it is in the correct format. All these patches are based on the Mar. 15's git tree plus 16 patches from TsiChung. David Wu (7): Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined AT49BV322A

[U-Boot] [PATCH 7/7] adding credit for uC5272, uC5274/5275 and uC5282

2010-04-07 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- CREDITS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/CREDITS b/CREDITS index 043ba6e..144fc27 100644 --- a/CREDITS +++ b/CREDITS @@ -513,7 +513,7 @@ D: Port to MPC555/556 microcontrollers and support for cmi

[U-Boot] [PATCH 1/7] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined

2010-04-07 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- cpu/mcf52x2/cpu_init.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c index 170bbfc..36f62cc 100644 --- a/cpu/mcf52x2/cpu_init.c +++ b/cpu/mcf52x2/cpu_init.c

[U-Boot] [PATCH 2/7] AT49BV322A Flash: the erase regions are in the wrong order.

2010-04-07 Thread David Wu
The device id for this Flash is 0xc8. Signed-off-by: David Wu davi...@arcturusnetworks.com --- drivers/mtd/cfi_flash.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index fdba297..af86f99 100644 --- a/drivers

[U-Boot] [PATCH 4/7] Adding uC5272 dimm module support

2010-04-07 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- Makefile | 46 + board/Arcturus/uC5272/Makefile | 44 + board/Arcturus/uC5272/config.mk |1 + board/Arcturus/uC5272/u-boot.lds | 142 +++ board/Arcturus/uC5272/uC5272.c | 57

[U-Boot] [PATCH 5/7] adding uC5274/5275 dimm module support

2010-04-07 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- Makefile | 21 +++ board/Arcturus/uC5275/Makefile | 44 +++ board/Arcturus/uC5275/config.mk | 23 board/Arcturus/uC5275/u-boot.lds | 139 board/Arcturus/uC5275/uC5275.c

[U-Boot] [PATCH 3/7] added Mercury EP2500 board support It uses the mcf5282 processor with real time clock and EEPROM.

2010-04-07 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- board/Mercury/ep2500/Makefile | 44 ++ board/Mercury/ep2500/config.mk | 23 +++ board/Mercury/ep2500/ep2500.c | 191 + board/Mercury/ep2500/u-boot.lds | 140 ++ include/configs

Re: [U-Boot] [PATCH 2/7] AT49BV322A Flash: the erase regions are in the wrong order.

2010-04-08 Thread David Wu
Hi Stefan, I am new here and I am not quite clear about how to split this patch. Any suggestion? Regards, David On Thu, 08 Apr 2010 05:35:35 -0400, Stefan Roese s...@denx.de wrote: On Thursday 08 April 2010 02:00:23 David Wu wrote: The device id for this Flash is 0xc8. Signed-off

Re: [U-Boot] [PATCH 2/7] AT49BV322A Flash: the erase regions are in the wrong order.

2010-04-08 Thread David Wu
Hi Stefan, On Thu, 08 Apr 2010 11:21:45 -0400, Stefan Roese s...@denx.de wrote: Hi David, On Thursday 08 April 2010 17:16:26 David Wu wrote: I am new here and I am not quite clear about how to split this patch. Any suggestion? I didn't mean that you should split this patch, but that you

Re: [U-Boot] [PATCH 2/7] AT49BV322A Flash: the erase regions are in the wrong order.

2010-04-09 Thread David Wu
Hi Stefan, I think those patches if I resubmit are same as before except the subjects differ. Anyway If no one complains then I will send. Regards, David On Fri, 09 Apr 2010 02:46:17 -0400, Stefan Roese s...@denx.de wrote: Hi David, On Thursday 08 April 2010 17:47:46 David Wu wrote: I

[U-Boot] [PATCH 1/6] Colfdfire MCF5282: enable icache if CONFIG_SYS_ENABLE_ICACHE is defined

2010-04-09 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- cpu/mcf52x2/cpu_init.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c index 170bbfc..36f62cc 100644 --- a/cpu/mcf52x2/cpu_init.c +++ b/cpu/mcf52x2

[U-Boot] [PATCH 2/6] added Mercury EP2500 board support It uses the mcf5282 processor with real time clock and EEPROM.

2010-04-09 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- board/Mercury/ep2500/Makefile | 44 ++ board/Mercury/ep2500/config.mk | 23 +++ board/Mercury/ep2500/ep2500.c | 191 + board/Mercury/ep2500/u-boot.lds | 140 ++ include

[U-Boot] [PATCH] AT49BV322A Flash: the erase regions are in the wrong order.

2010-04-09 Thread David Wu
The device id for this Flash is 0xc8. Signed-off-by: David Wu davi...@arcturusnetworks.com --- drivers/mtd/cfi_flash.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index fdba297..af86f99 100644

[U-Boot] [PATCH 3/6] Adding uC5272 dimm module support

2010-04-09 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- Makefile | 46 + board/Arcturus/uC5272/Makefile | 44 + board/Arcturus/uC5272/config.mk |1 + board/Arcturus/uC5272/u-boot.lds | 142 +++ board/Arcturus/uC5272/uC5272.c

[U-Boot] [PATCH 4/6] adding uC5274/5275 dimm module support

2010-04-09 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- Makefile | 21 +++ board/Arcturus/uC5275/Makefile | 44 +++ board/Arcturus/uC5275/config.mk | 23 board/Arcturus/uC5275/u-boot.lds | 139 board/Arcturus/uC5275

[U-Boot] [PATCH 6/6] adding credit for uC5272, uC5274/5275 and uC5282

2010-04-09 Thread David Wu
Signed-off-by: David Wu davi...@arcturusnetworks.com --- CREDITS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/CREDITS b/CREDITS index 043ba6e..144fc27 100644 --- a/CREDITS +++ b/CREDITS @@ -513,7 +513,7 @@ D: Port to MPC555/556 microcontrollers and support

[U-Boot] [PATCH V2] AT49BV322A Flash: the erase regions are in the wrong order.

2010-04-13 Thread David Wu
The device id for this Flash is 0xc8. Signed-off-by: David Wu davi...@arcturusnetworks.com --- drivers/mtd/cfi_flash.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index fdba297..af86f99 100644 --- a/drivers

Re: [U-Boot] [PATCH 3/7] added Mercury EP2500 board support It uses the mcf5282 processor with real time clock and EEPROM.

2010-04-13 Thread David Wu
Hi Wolfgang, Thanks for checking the patch, Please see inline. On Fri, 09 Apr 2010 18:51:06 -0400, Wolfgang Denk w...@denx.de wrote: Dear David Wu, In message op.vatgy2wjqig...@cyprus.local you wrote: Signed-off-by: David Wu davi...@arcturusnetworks.com --- board/Mercury/ep2500/Makefile

[U-Boot] rockchip: rk3288: grf: FIX the correct gmac tx_delay shift

2017-04-17 Thread David Wu
If the tx_delay is not enabled, the RGMII/1000M can't work. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3288.h b/ar

[U-Boot] rockchip: rk322x: Disable integrated macphy for saving power consuming

2017-08-14 Thread David Wu
Unfortunately, the integrated macphy default is enabled, which will increase power consuming, if we do not use this PHY. So let's disable it at first, which will save power consuming. If we really use it, then enable it in driver level. Signed-off-by: David Wu <david...@rock-chips.com> ---

[U-Boot] [U-Boot, v2, 07/14] clk: rockchip: Add rk3399 SARADC clock support

2017-09-19 Thread David Wu
nt preview: The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Review

[U-Boot] [U-Boot, v2, 10/14] arm: dts: Enable SARADC for rk3288-popmetal

2017-09-19 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/dts/rk3288-popmetal.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3288-popmetal.dtsi b/arch/arm/dts/rk3288-popmetal.dtsi index dd6ce8b..63785eb 100644 --- a/arch/arm/dts/rk3288-popmetal.dtsi +++

[U-Boot] [U-Boot, v2, 12/14] arm: dts: Enable SARADC for rk3368-px5-evb

2017-09-19 Thread David Wu
nt preview: Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/dts/rk3368-px5-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3368-px5-evb.dts b/arch/arm/dts/rk3368-px5-evb.dts index c7478f7..e9c5eba 100644 --- a/arch/arm/dts/rk3368-px5-evb.d

[U-Boot] [U-Boot,v2,11/14] arm: dts: Enable SARADC for rk3328-evb

2017-09-19 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/dts/rk3328-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index 8a14c65..df44ccb 100644 --- a/arch/arm/dts/rk3328-evb.dts +++ b/arch/arm/dts/rk3328-e

[U-Boot] [U-Boot, v2, 03/14] clk: rockchip: Add rv1108 SARADC clock support

2017-09-19 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 10-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich &

[U-Boot] [U-Boot, v2, 08/14] arm: dts: rv1108: Add SARADC node at dtsi level

2017-09-19 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rv1108.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --

[U-Boot] [U-Boot, v2, 05/14] clk: rockchip: Add rk3328 SARADC clock support

2017-09-19 Thread David Wu
nt preview: The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 10-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Review

[U-Boot] [U-Boot, v2, 06/14] clk: rockchip: Add rk3368 SARADC clock support

2017-09-19 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich &

[U-Boot] [U-Boot,v2,09/14] arm: dts: Enable SARADC for rv1108-evb

2017-09-19 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/dts/rv1108-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rv1108-evb.dts b/arch/arm/dts/rv1108-evb.dts index 0128dd8..e21b57f 100644 --- a/arch/arm/dts/rv1108-evb.dts +++ b/arch/arm/dts/rv1108-e

[U-Boot] [U-Boot,v2,00/14] Add rockchip SARADC support

2017-09-19 Thread David Wu
The SARADC is used for adc keys and charging detect at uboot loader. Except for the rk3036 and rk3228 Socs, the others support the SARADC IP. David Wu (14): adc: Add driver for Rockchip SARADC configs: rockchip: Enable the ROCKCHIP_SARADC config clk: rockchip: Add rv1108 SARADC clock

[U-Boot] [U-Boot, v2, 02/14] configs: rockchip: Enable the ROCKCHIP_SARADC config

2017-09-19 Thread David Wu
Except for 3036 and 3228 Socs, which don't support SARADC, enable the ROCKCHIP_SARADC config at the other Socs' defconfig. Signed-off-by: David Wu <david...@rock-chips.com> --- Change in v2: - Enable the ROCKCHIP_SARADC at other configs configs/chromebit_mickey_defconfig | 2 ++ c

[U-Boot] [U-Boot,v2,01/14] adc: Add driver for Rockchip SARADC

2017-09-19 Thread David Wu
The ADC can support some channels signal-ended some bits Successive Approximation Register (SAR) A/D Converter, like 6-channel and 10-bit. It converts the analog input signal into some bits binary digital codes. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp T

[U-Boot] [PATCH v3 03/14] rockchip: clk: Add rv1108 SARADC clock support

2017-09-20 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 10-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich &

[U-Boot] [PATCH v3 05/14] rockchip: clk: Add rk3328 SARADC clock support

2017-09-20 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 10-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich &

[U-Boot] [PATCH v3 09/14] rockchip: dts: Enable SARADC for rv1108-evb

2017-09-20 Thread David Wu
Enable the SARADC for download key pressed detect. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add commit message Changes in v2: None arch/arm/dts/rv1108-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rv1108-evb.dts b/arch/a

[U-Boot] [PATCH v3 02/14] rockchip: configs: Enable the ROCKCHIP_SARADC config

2017-09-20 Thread David Wu
nt preview: Except for 3036 and 3228 Socs, which don't support SARADC, enable the ROCKCHIP_SARADC config at the other Socs' defconfig. Signed-off-by: David Wu <david...@rock-chips.com> --- [...] Content analysis details: (5.6 points, 5.0 required) pts rule name

[U-Boot] [PATCH v3 04/14] rockchip: clk: Add SARADC clock support for rk3288

2017-09-20 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Acked-by: Philipp Tomsich &

[U-Boot] [PATCH v3 07/14] rockchip: clk: Add rk3399 SARADC clock support

2017-09-20 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich &

[U-Boot] [PATCH v3 06/14] rockchip: clk: Add rk3368 SARADC clock support

2017-09-20 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). SARADC integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich &

[U-Boot] [PATCH v3 14/14] rockchip: dts: Enable SARADC for rk3399-evb

2017-09-20 Thread David Wu
Enable the SARADC for download key pressed detect. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add commit message Changes in v2: None arch/arm/dts/rk3399-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/a

[U-Boot] [PATCH v3 13/14] rockchip: dts: Enable SARADC for rk3368-sheep

2017-09-20 Thread David Wu
nt preview: Enable the SARADC for download key pressed detect. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add commit message [...] Content analysis details: (5.6 points, 5.0 required) pts rule name

[U-Boot] [PATCH v3 12/14] rockchip: dts: Enable SARADC for rk3368-px5-evb

2017-09-20 Thread David Wu
Enable the SARADC for download key pressed detect. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add commit message Changes in v2: None arch/arm/dts/rk3368-px5-evb.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3368-px5-evb.dts b/ar

[U-Boot] [PATCH v3 00/14] Add rockchip SARADC support

2017-09-20 Thread David Wu
David Wu (14): dm: adc: Add driver for Rockchip SARADC rockchip: configs: Enable the ROCKCHIP_SARADC config rockchip: clk: Add rv1108 SARADC clock support rockchip: clk: Add SARADC clock support for rk3288 rockchip: clk: Add rk3328 SARADC clock support rockchip: clk: Add rk3368 SARADC

[U-Boot] [PATCH v3 10/14] rockchip: dts: Enable SARADC for rk3288-popmetal

2017-09-20 Thread David Wu
nt preview: Enable the SARADC for download key pressed detect. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add commit message [...] Content analysis details: (5.6 points, 5.0 required) pts rule name

[U-Boot] [PATCH 0/6] Add gmac support for rk3399-evb and rv1108-evb

2017-09-21 Thread David Wu
This serie of patches integrates the setup mac clock is internal or external, as well as the way for setting rmii or rgmii interface. David Wu (6): rockchip: clk: Add mac clock set for rk3399 rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality rockchip

[U-Boot] [PATCH 4/6] net: gmac_rockchip: Define the gmac grf register struct at gmac_rockchip.c

2017-09-21 Thread David Wu
If we include both the rk3288_grf.h and rv1108_grf.h, there is a number of compiling error for redefinition. So we define the reg structs of mac_grf at gmac_rockchip.c. Remove the rk**_grf.h files, give them own grf offset for their use. Signed-off-by: David Wu <david...@rock-chips.

[U-Boot] [PATCH 1/6] rockchip: clk: Add mac clock set for rk3399

2017-09-21 Thread David Wu
Assuming mac_clk is fed by an external clock, set clk_rmii_src clock select control register from IO for rgmii interface. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/clk/rockchip/clk_rk3399.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 3/6] rockchip: configs: Enable CONFIG_NET_RANDOM_ETHADDR for rk3288-evb

2017-09-21 Thread David Wu
If the Ethernet address is not set, the network can't work, enable the random address config for default use. Signed-off-by: David Wu <david...@rock-chips.com> --- configs/evb-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3288_defconfig b/confi

[U-Boot] [PATCH 2/6] rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality

2017-09-21 Thread David Wu
Give the mac controller the correct tx-delay and rx-delay value for the rgmii mode transmission. If they are not matched, there would be Ethernet packets lost, the net feature may not work. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/dts/rk3399-evb.dts | 4 ++--

[U-Boot] [PATCH 5/6] net: gmac_rockchip: Use the proerty of "clock_in_out" to set mac clock

2017-09-21 Thread David Wu
If the mac clock if from the external IO, set clock rate with 0; If the mac clock if from the internal divider pll, set 50M for rmii mode and set 125M for rgmii. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/gmac_rockchip.c | 23 +++ 1 file chang

[U-Boot] [PATCH 6/6] rockchip: gmac_rockchip: Add gmac support for rv1108

2017-09-21 Thread David Wu
The rv1108 mac only support rmii interface, so need to add the set_rmii() ops. Use the phy current interface to set rmii or rgmii ops. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/net/gmac_rockchip.c | 67 +++-- 1 file chang

[U-Boot] [PATCH 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-13 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). Saradc integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 5 drivers/clk/rockchip/clk_rk

[U-Boot] [PATCH 7/8] clk: rockchip: Add rk3399 Saradc clock support

2017-09-13 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). Saradc integer divider control register is 8-bits width. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/clk/rockchip/clk_rk3399.c | 34 ++ 1 file changed, 34 inse

[U-Boot] [PATCH 8/8] arm: dts: rv1108: Add Saradc node at dtsi level

2017-09-13 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/dts/rv1108.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/dts/rv1108.dtsi b/arch/arm/dts/rv1108.dtsi index 77ca24e..d6927ee 100644 --- a/arch/arm/dts/rv1108.dtsi +++ b/arch/arm/dts/rv1108.dtsi @@

[U-Boot] [PATCH 0/8] Add rockchip Saradc support

2017-09-13 Thread David Wu
The Saradc is used for adc keys and charging detect at uboot loader. Except for the rk3036 and rk3228 Socs, the others support the Saradc IP. David Wu (8): adc: Add driver for Rockchip saradc configs: rockchip: Enable the ROCKCHIP_SARADC config clk: rockchip: Add rv1108 SARADC clock support

[U-Boot] [PATCH 5/8] clk: rockchip: Add rk3328 Saradc clock support

2017-09-13 Thread David Wu
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1). Saradc integer divider control register is 10-bits width. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/clk/rockchip/clk_rk3328.c | 37 + 1 file chang

[U-Boot] [PATCH 3/8] clk: rockchip: Add rv1108 Saradc clock support

2017-09-13 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/cru_rv1108.h | 5 drivers/clk/rockchip/clk_rv1108.c | 35 + include/dt-bindings/clock/rv1108-cru.h | 2 ++ 3 files changed, 42 insertions(+) diff

[U-Boot] [PATCH 1/8] adc: Add driver for Rockchip Saradc

2017-09-13 Thread David Wu
The ADC can support some channels signal-ended some bits Successive Approximation Register (SAR) A/D Converter, like 6-channel and 10-bit. It converts the analog input signal into some bits binary digital codes. Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/adc/K

[U-Boot] [PATCH 2/8] configs: rockchip: Enable the ROCKCHIP_SARADC config

2017-09-13 Thread David Wu
Except for 3036 and 3228 Socs, which don't support Saradc, enable the ROCKCHIP_SARADC config at the other Socs' defconfig. Signed-off-by: David Wu <david...@rock-chips.com> --- configs/evb-rk3288_defconfig | 2 ++ configs/evb-rk3328_defconfig | 2 ++ configs/evb-rk3399_def

[U-Boot] [PATCH 4/8] clk: rockchip: Add Saradc clock support for rk3288

2017-09-13 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- drivers/clk/rockchip/clk_rk3288.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 478195b..29652b0 100644 --- a/d

[U-Boot] [PATCH v2 13/18] rockchip: dts: rk3328-evb: Enable gmac2io for rk3328-evb

2017-11-09 Thread David Wu
Add rk3328-evb gmac support. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch arch/arm/dts/rk3328-evb.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index 3

[U-Boot] [PATCH v2 03/18] rockchip: configs: Enable CONFIG_NET_RANDOM_ETHADDR for rk3288-evb

2017-11-09 Thread David Wu
If the Ethernet address is not set, the network can't work, enable the random address config for default use. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v2 04/18] rockchip: grf_rv1108.h: Fix the grf offsets

2017-11-09 Thread David Wu
The last 4 grf registers offset of rv1108 are wrong, fix them for correct usage. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch arch/arm/include/asm/arch-rockchip/grf_rv1108.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ar

[U-Boot] [PATCH v2 02/18] rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality

2017-11-09 Thread David Wu
nt preview: Give the mac controller the correct tx-delay and rx-delay value for the rgmii mode transmission. If they are not matched, there would be Ethernet packets lost, the net feature may not work. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsic

[U-Boot] [PATCH v2 06/18] net: gmac_rockchip: Add support for the RV1108 GMAC

2017-11-09 Thread David Wu
The rv1108 GMAC only support rmii interface, so need to add the set_rmii() ops. Use the phy current interface to set rmii or rgmii ops. At the same time, need to set the mac clock rate of rmii with 50M, the clock rate of rgmii with 125M. Signed-off-by: David Wu <david...@rock-chips.

[U-Boot] [PATCH v2 09/18] clk: rockchip: Add rk3328 gamc clock support

2017-11-09 Thread David Wu
The rk3328 soc has two gmac controllers, one is gmac2io, the other is gmac2phy. We use the gmac2io rgmii interface for 1000M phy here. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch drivers/clk/rockchip/clk_rk3328.c | 20 incl

[U-Boot] [PATCH v2 10/18] net: gmac_rockchip: Add rk3328 gmac support

2017-11-09 Thread David Wu
Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch drivers/net/gmac_rockchip.c | 85 + 1 file changed, 85 insertions(+) diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index 22e3941..f24c347 1006

[U-Boot] [PATCH v2 05/18] rockchip: pinctrl: rv1108: Move the iomux definitions into pinctrl-driver

2017-11-09 Thread David Wu
nt preview: If we include both the rk3288_grf.h and rv1108_grf.h, it will cause the conflicts of redefinition. Clean the iomux definitions at grf_rv1108.h, and move them into pinctrl-driver. Signed-off-by: David Wu <david...@rock-chips.com> --- [...] Content analysis details:

[U-Boot] [PATCH v2 15/18] rockchip: pinctrl: Add rk322x gmac pinctrl support

2017-11-09 Thread David Wu
Set gmac pins iomux and rgmii tx pins to 12ma drive-strength, clean others to 2ma. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch drivers/pinctrl/rockchip/pinctrl_rk322x.c | 138 ++ 1 file changed, 138 insertions(+) diff

[U-Boot] [PATCH v2 12/18] rockchip: dts: rk3328: Add gmac2io support

2017-11-09 Thread David Wu
nt preview: Add basic dts configuration for rk3328 gmac2io. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch [...] Content analysis details: (5.7 points, 5.0 required) pts rule name

[U-Boot] [PATCH v2 11/18] rockchip: configs: Enable GMAC configs for evb-rk3328

2017-11-09 Thread David Wu
Enable GMAC configs for evb-rk3328 Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch configs/evb-rk3328_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 3b8b104..3d8c04d

[U-Boot] [PATCH v2 01/18] rockchip: clk: Add mac clock set for rk3399

2017-11-09 Thread David Wu
nt preview: Assuming mac_clk is fed by an external clock, set clk_rmii_src clock select control register from IO for rgmii interface. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp

[U-Boot] [PATCH v2 00/18] Add gmac support for rk3399-evb rv1108-evb rk3328-evb and rk3229-evb

2017-11-09 Thread David Wu
the grf offset at gmac_rockchip.c - New patch - New patch - New patch - New patch - New patch - New patch - New patch - New patch - New patch - New patch - New patch - New patch David Wu (18): rockchip: clk: Add mac clock set for rk3399 rockchip: dts: rk3399-evb: Change the tx/rx delay value

[U-Boot] [PATCH v2 08/18] rockchip: pinctrl: Add rk3328 gmac pinctrl support

2017-11-09 Thread David Wu
Need to set gmac m1 pins iomux, gmac m0 tx pins, select bit2 and bit10 at com iomux register. After that, set rgmii m1 tx pins to 12ma drive-strength, and clean others to 2ma. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch drivers/pinctrl/ro

[U-Boot] [PATCH v2 16/18] clk: rockchip: Add rk322x gamc clock support

2017-11-09 Thread David Wu
Assuming mac_clk is fed by an external clock, set clk_rmii_src clock select control register from IO for rgmii interface. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch drivers/clk/rockchip/clk_rk322x.c | 13 + 1 file changed, 13 inse

[U-Boot] [PATCH v2 07/18] rockchip: pinctrl: rk3328: Move the iomux definitions into pinctrl-driver

2017-11-09 Thread David Wu
nt preview: Clean the iomux definitions at grf_rk3328.h, and move them into pinctrl-driver for resolving the compiling error of redefinition. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v2: - New patch [...] Content analysis details: (6.5 points, 5.0 required)

[U-Boot] [PATCH v2 14/18] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver

2017-11-09 Thread David Wu
nt preview: Clean the iomux definitions at grf_rk322x.h, and move them into pinctrl-driver for resolving the compiling error of redefinition. After that, define the uart2 iomux at rk322x-board file. Signed-off-by: David Wu <david...@rock-chips.com> --- [...] Content analysis detail

[U-Boot] [PATCH v3 00/20] Add gmac support for rk3399-evb rv1108-evb rk3328-evb and rk3229-evb

2018-01-12 Thread David Wu
use defined symbolic constants for drive-strength Changes in v2: - Add check whether the set rgmii/rmii function is a valid function pointer - Clean the grf offset at gmac_rockchip.c - New patch - None - Use current phy interface to set mac clock rate David Wu (20): rockchip: dts:

[U-Boot] [PATCH v3 02/20] rockchip: configs: Enable CONFIG_NET_RANDOM_ETHADDR for rk3288-evb

2018-01-12 Thread David Wu
If the Ethernet address is not set, the network can't work, enable the random address config for default use. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v3 04/20] rockchip: pinctrl: rv1108: Move the iomux definitions into pinctrl-driver

2018-01-12 Thread David Wu
If we include both the rk3288_grf.h and rv1108_grf.h, it will cause the conflicts of redefinition. Clean the iomux definitions at grf_rv1108.h, and move them into pinctrl-driver. Signed-off-by: David Wu <david...@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-sy

[U-Boot] [PATCH v3 01/20] rockchip: dts: rk3399-evb: Change the tx/rx delay value for transmission quality

2018-01-12 Thread David Wu
Give the mac controller the correct tx-delay and rx-delay value for the rgmii mode transmission. If they are not matched, there would be Ethernet packets lost, the net feature may not work. Signed-off-by: David Wu <david...@rock-chips.com> Acked-by: Philipp Tomsich <philipp.toms...@

[U-Boot] [PATCH v3 03/20] rockchip: grf_rv1108.h: Fix the grf offsets

2018-01-12 Thread David Wu
The last 4 grf registers offset of rv1108 are wrong, fix them for correct usage. Signed-off-by: David Wu <david...@rock-chips.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v3: - None Changes in v2: - New patch arch/arm/include/asm/arch-rockchip/grf_rv1108.h | 8

[U-Boot] [PATCH v3 13/20] rockchip: pinctrl: rk322x: Move the iomux definitions into pinctrl-driver

2018-01-12 Thread David Wu
Clean the iomux definitions at grf_rk322x.h, and move them into pinctrl-driver for resolving the compiling error of redefinition. After that, define the uart2 iomux at rk322x-board file. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Fix the wrong define for uart2

[U-Boot] [PATCH v3 15/20] clk: rockchip: Add rk322x gamc clock support

2018-01-12 Thread David Wu
Assuming mac_clk is fed by an external clock, set clk_rmii_src clock select control register from IO for rgmii interface. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add "set parent" for gmac - Add internal mac clk div_sel for gmac Changes in v2: - New

[U-Boot] [PATCH v3 11/20] rockchip: dts: rk3328: Add gmac2io support

2018-01-12 Thread David Wu
Add basic dts configuration for rk3328 gmac2io. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - None Changes in v2: - New patch arch/arm/dts/rk3328.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/dts/rk3328.dtsi b/arch/a

[U-Boot] [PATCH v3 08/20] clk: rockchip: Add rk3328 gamc clock support

2018-01-12 Thread David Wu
The rk3328 soc has two gmac controllers, one is gmac2io, the other is gmac2phy. We use the gmac2io rgmii interface for 1000M phy here. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - Add "set parent" for gmac2io - Add internal mac clk div_sel for gmac2i

[U-Boot] [PATCH v3 09/20] net: gmac_rockchip: Add rk3328 gmac support

2018-01-12 Thread David Wu
The GMAC2IO in the RK3328 once again is identical to the incarnation in the RK3288 and the RK3399, except for where some of the configuration and control registers are located in the GRF. This adds the RK3328-specific logic necessary to reuse this driver. Signed-off-by: David Wu <david...@r

[U-Boot] [PATCH v3 10/20] rockchip: configs: Enable GMAC configs for evb-rk3328

2018-01-12 Thread David Wu
Enable GMAC configs for evb-rk3328 Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - None Changes in v2: - New patch configs/evb-rk3328_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig

[U-Boot] [PATCH v3 14/20] rockchip: pinctrl: Add rk322x gmac pinctrl support

2018-01-12 Thread David Wu
Set gmac pins iomux and rgmii tx pins to 12ma drive-strength, clean others to 2ma. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - adhere to the established way of writing this to avoid future confusion - use defined symbolic constants for drive-strength Changes

[U-Boot] [PATCH v3 19/20] clk: rockchip: clk_rk3288: Implement "assign-clock-parent" and "assign-clock-rate"

2018-01-12 Thread David Wu
to signal success. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - New patch Changes in v2: None drivers/clk/rockchip/clk_rk3288.c | 106 ++--- include/dt-bindings/clock/rk3288-cru.h | 1 + 2 files changed, 99 insertions(+), 8 del

[U-Boot] [PATCH v3 18/20] ARM: dts: rk3288: Remove unused LCDC clock assigned

2018-01-12 Thread David Wu
The LCDC assigned rate is 0, it will make boot error, error log:"pll_para_config: the frequency can not be 0 Hz". Remove them, and the lcdc driver will do the correct clock rate setting. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - New patch Changes in

[U-Boot] [PATCH v3 17/20] config: evb-rk3229: Enable rk gmac configs

2018-01-12 Thread David Wu
Add gmac config support for rk3229 evb. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - None Changes in v2: - New patch configs/evb-rk3229_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_def

[U-Boot] [PATCH v3 20/20] clk: rockchip: clk_rk3368: Implement "assign-clock-parent"

2018-01-12 Thread David Wu
Implement the setting parent for gmac clock, and add internal pll div set for mac clk. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - New patch Changes in v2: None arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 7 ++ drivers/clk/rockchip/clk_rk

[U-Boot] [PATCH v3 12/20] rockchip: dts: rk3328-evb: Enable gmac2io for rk3328-evb

2018-01-12 Thread David Wu
Add rk3328-evb gmac support. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - None Changes in v2: - New patch arch/arm/dts/rk3328-evb.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/

[U-Boot] [PATCH v3 16/20] net: gmac_rockchip: Add support for the RK3228 GMAC

2018-01-12 Thread David Wu
The GMAC in the RK3228 once again is identical to the incarnation in the RK3288 and the RK3399, except for where some of the configuration and control registers are located in the GRF. This adds the RK3368-specific logic necessary to reuse this driver. Signed-off-by: David Wu <david...@r

[U-Boot] [PATCH v3 06/20] rockchip: pinctrl: rk3328: Move the iomux definitions into pinctrl-driver

2018-01-12 Thread David Wu
Clean the iomux definitions at grf_rk3328.h, and move them into pinctrl-driver for resolving the compiling error of redefinition. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - None Changes in v2: - New patch arch/arm/include/asm/arch-rockchip/grf_rk3328.h

[U-Boot] [PATCH v3 07/20] rockchip: pinctrl: Add rk3328 gmac pinctrl support

2018-01-12 Thread David Wu
Need to set gmac m1 pins iomux, gmac m0 tx pins, select bit2 and bit10 at com iomux register. After that, set rgmii m1 tx pins to 12ma drive-strength, and clean others to 2ma. Signed-off-by: David Wu <david...@rock-chips.com> --- Changes in v3: - adhere to the established way of w

[U-Boot] [PATCH v3 05/20] net: gmac_rockchip: Add support for the RV1108 GMAC

2018-01-12 Thread David Wu
The rv1108 GMAC only support rmii interface, so need to add the set_rmii() ops. Use the phy current interface to set rmii or rgmii ops. At the same time, need to set the mac clock rate of rmii with 50M, the clock rate of rgmii with 125M. Signed-off-by: David Wu <david...@rock-chips.

[U-Boot] [PATCH 4/9] ARM: rockchip: Remove the pinctrl request at rk3288-board-spl

2018-02-02 Thread David Wu
If we use the new pinctrl driver, the pinctrl setup will be done by device probe. Remove the pinctrl setup at rk3288-board-spl. Signed-off-by: David Wu <david...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288-board-spl.c | 79 --- 1 file changed, 79 del

[U-Boot] [PATCH 1/9] rockchip: rk3399-evb: defconfig: Disable SPL_OF_PLATDATA for new pinctrl driver

2018-02-02 Thread David Wu
The fdedesc is requested for new pinctrl driver, disable SPL_OF_PLATDATA to make fdedesc be built in. Signed-off-by: David Wu <david...@rock-chips.com> --- configs/evb-rk3399_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_def

  1   2   3   >