[U-Boot] [PATCH v4 4/4] config: rk3399: add support for dwc3 gadget

2016-08-31 Thread Kever Yang
To support fastboot, we need to enable the controller first. rk3399 is using dwc3 as usb device controller, this patch enable the configs for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v4: None Changes in v3: - move the config into Kconfig file. C

Re: [U-Boot] [PATCH v3 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-08-31 Thread Kever Yang
Hi Marek, On 08/31/2016 08:30 PM, Marek Vasut wrote: On 08/31/2016 10:40 AM, Kever Yang wrote: This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - remove utmi width DT parse from borad in

Re: [U-Boot] [PATCH 6/7] dts: evb-rk3399: add init voltage node for vdd-center

2016-09-06 Thread Kever Yang
Hi Simon, On 09/06/2016 09:04 AM, Simon Glass wrote: Hi Kever, On 29 August 2016 at 21:02, Kever Yang <kever.y...@rock-chips.com> wrote: This patch add regulator-init-microvolt for pwm regulator to get a init value when driver do probe init. How about: Add a regulator-init-microvolt

Re: [U-Boot] [PATCH 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency

2016-09-06 Thread Kever Yang
Hi Simon, On 09/06/2016 09:03 AM, Simon Glass wrote: Hi Kever, On 29 August 2016 at 21:02, Kever Yang <kever.y...@rock-chips.com> wrote: This patch update PPLL to 676MHz and PMU_PCLK to 48MHz. Why? 1. 48MHz can make sure the pwm can get exact 50% duty ratio, but 99MHz can not,

Re: [U-Boot] [PATCH 3/7] power: regulator: add pwm regulator

2016-09-06 Thread Kever Yang
Hi Simon, On 09/06/2016 09:03 AM, Simon Glass wrote: Hi Kever, On 29 August 2016 at 21:02, Kever Yang <kever.y...@rock-chips.com> wrote: This driver add support for pwm regulator. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...

[U-Boot] [PATCH 1/2] rk3288: sdram: auto-detect the capacity

2016-09-08 Thread Kever Yang
-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 237 ++- 1 file changed, 198 insertions(+), 39 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288/sdram_rk3288.c b/arch/arm/mach-rockchip/rk3288/sdram_rk3288.c index c

[U-Boot] [PATCH 2/2] dts: rk3288: remove node in dmc which not need anymore

2016-09-08 Thread Kever Yang
Since we implement the dram capacity auto detect, we don't need to set the channel number and sdram-channel in dts. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/rk3288-evb.dts | 3 --- arch/arm/dts/rk3288-fennec.dts | 3 --- arch/arm/dts/

[U-Boot] [PATCH 0/2] Add sdram capacity auto detect for rk3288

2016-09-08 Thread Kever Yang
the size issue. This patch has test with 2GB DDR3 and 2GB/4GB LPDDR3. Kever Yang (2): rk3288: sdram: auto-detect the capacity dts: rk3288: remove node in dmc which not need anymore arch/arm/dts/rk3288-evb.dts | 3 - arch/arm/dts/rk3288-fennec.dts | 3

Re: [U-Boot] [PATCH v4 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-09-02 Thread Kever Yang
Hi Marek, On 09/01/2016 05:09 PM, Marek Vasut wrote: On 09/01/2016 04:14 AM, Kever Yang wrote: The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one variable in dwc3/dwc3_device struct to support 16 bit UTMI+ interface on some SoCs like Rockchip rk3399. Signed-off

Re: [U-Boot] [PATCH v3 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-09-02 Thread Kever Yang
Hi Marek, On 09/01/2016 04:58 PM, Marek Vasut wrote: On 09/01/2016 04:21 AM, Kever Yang wrote: Hi Marek, On 08/31/2016 08:30 PM, Marek Vasut wrote: On 08/31/2016 10:40 AM, Kever Yang wrote: This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang

Re: [U-Boot] [PATCH v4 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-09-02 Thread Kever Yang
Hi Marek, On 09/01/2016 04:59 PM, Marek Vasut wrote: On 09/01/2016 04:14 AM, Kever Yang wrote: This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v4: - parse DT for quirk, base address and maximum

[U-Boot] [PATCH 4/7] rockchip: evb_rk3399: init vdd_center regulator

2016-08-29 Thread Kever Yang
This patch add vdd_center pwm regulator get_device to enable this regulator. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- board/rockchip/evb_rk3399/evb-rk3399.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/ro

[U-Boot] [PATCH 2/7] rockchip: rkpwm: fix the register sequence

2016-08-29 Thread Kever Yang
Reference to kernel source code, rockchip pwm has three type, we are using v2 for rk3288 and rk3399, so let's update the register to sync with pwm_data_v2 in kernel. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/pwm.h | 2 +- 1 file chan

[U-Boot] [PATCH 3/7] power: regulator: add pwm regulator

2016-08-29 Thread Kever Yang
This driver add support for pwm regulator. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/power/regulator/Kconfig | 9 ++ drivers/power/regulator/Makefile| 1 + drivers/power/regulator/pwm

[U-Boot] [PATCH 6/7] dts: evb-rk3399: add init voltage node for vdd-center

2016-08-29 Thread Kever Yang
This patch add regulator-init-microvolt for pwm regulator to get a init value when driver do probe init. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/rk3399-evb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/

[U-Boot] [PATCH 5/7] Kconfig: rockchip: enable DM_PWM and DM_REGULATOR

2016-08-29 Thread Kever Yang
This patch enable DM_PWM and DM_REGULATOR on rockchip SoCs. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4928206..c877f5d 100644 --- a/arch/arm/Kconfig +++ b/ar

[U-Boot] [PATCH 7/7] config: evb-rk3399: enable pwm regulator

2016-08-29 Thread Kever Yang
This patch enable the pwm regulator for evb-rk3399. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 9a6d422..62081a4 100644 --- a/c

[U-Boot] [PATCH 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency

2016-08-29 Thread Kever Yang
This patch update PPLL to 676MHz and PMU_PCLK to 48MHz. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/ar

[U-Boot] [PATCH 0/7] add pwm regulator driver

2016-08-29 Thread Kever Yang
This patch set add pwm regulator driver and enable it on rk3399, also do some update and fix to make the regulator driver work properly. Kever Yang (7): rockchip: rk3399: update PPLL and pmu_pclk frequency rockchip: rkpwm: fix the register sequence power: regulator: add pwm regulator

Re: [U-Boot] [PATCH v2 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-29 Thread Kever Yang
Hi Marek, On 08/29/2016 09:01 AM, Marek Vasut wrote: On 08/29/2016 02:55 AM, Kever Yang wrote: Hi Marek, On 08/26/2016 05:09 PM, Marek Vasut wrote: On 08/25/2016 03:17 AM, Kever Yang wrote: Hi Marek, On 08/24/2016 07:38 PM, Marek Vasut wrote: On 08/24/2016 05:46 AM, Kever Yang wrote

[U-Boot] [PATCH v3 4/4] config: rk3399: add support for dwc3 gadget

2016-08-31 Thread Kever Yang
To support fastboot, we need to enable the controller first. rk3399 is using dwc3 as usb device controller, this patch enable the configs for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - move the config into Kconfig file. Changes in v2: -

[U-Boot] [PATCH v3 1/4] rk3399: add a empty "sys_proto.h" header file

2016-08-31 Thread Kever Yang
driver/usb/dwc3/gadget.c need a "sys_proto.h" header file, add a empty one to make compile success. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-roc

[U-Boot] [PATCH v3 0/4] rk3399: enable dwc3 gadget and fastboot

2016-08-31 Thread Kever Yang
to identify utmi+ bus width instead of CONFIG MACRO - remove config for USB2PHY UTMI BITS Kever Yang (4): rk3399: add a empty "sys_proto.h" header file board: evb-rk3399: add api to support dwc3 gadget usb: dwc3: add support for 16 bit UTMI+ interface config: rk3399: add support for d

[U-Boot] [PATCH v3 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-31 Thread Kever Yang
The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one variable in dwc3/dwc3_device struct to support 16 bit UTMI+ interface on some SoCs like Rockchip rk3399. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - Parse the DT for utmi+ interface

[U-Boot] [PATCH v3 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-08-31 Thread Kever Yang
This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - remove utmi width DT parse from borad init Changes in v2: - parse dt for utmi width board/rockchip/evb_rk3399/evb-rk3399.

[U-Boot] [PATCH v2 0/7] add pwm regulator driver

2016-09-08 Thread Kever Yang
-by tag from Simon and commit message fix - update the commit message Kever Yang (7): rockchip: rk3399: update PPLL and pmu_pclk frequency rockchip: rkpwm: fix the register sequence power: regulator: add pwm regulator rockchip: evb_rk3399: init vdd_center regulator Kconfig: rockchip: enable

[U-Boot] [PATCH v2 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency

2016-09-08 Thread Kever Yang
for kernel,it suppose not to change the bus clock like pmu_pclk in kernel, so we want to change it in uboot. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: None arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[U-Boot] [PATCH v2 2/7] rockchip: rkpwm: fix the register sequence

2016-09-08 Thread Kever Yang
Reference to kernel source code, rockchip pwm has three type, we are using v2 for rk3288 and rk3399, so let's update the register to sync with pwm_data_v2 in kernel. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: Non

[U-Boot] [PATCH v2 3/7] power: regulator: add pwm regulator

2016-09-08 Thread Kever Yang
add driver support for pwm regulator. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - add comments for pwm_regulator_info struct member - do not init pwm_id if there is none - other fix for comment

[U-Boot] [PATCH v2 7/7] config: evb-rk3399: enable pwm regulator

2016-09-08 Thread Kever Yang
Enable the pwm regulator for evb-rk3399. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None configs/evb-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3399_defconfig b

[U-Boot] [PATCH v2 6/7] dts: evb-rk3399: add init voltage node for vdd-center

2016-09-08 Thread Kever Yang
Add a regulator-init-microvolt for vdd_center regulator so that we can get a init value for driver probe. Not like pmic regulator, the PWM regulator do not have a known default output value, so we would like to init the regulator when driver probe. Signed-off-by: Kever Yang <kever.y...@r

[U-Boot] [PATCH v2 5/7] Kconfig: rockchip: enable DM_PWM and DM_REGULATOR

2016-09-08 Thread Kever Yang
Enable DM_PWM and DM_REGULATOR on rockchip SoCs. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig i

[U-Boot] [PATCH v2 4/7] rockchip: evb_rk3399: init vdd_center regulator

2016-09-08 Thread Kever Yang
Add vdd_center pwm regulator get_device to enable this regulator. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: - add Acked-by tag from Simon and commit message fix board/rockchip/evb_rk3399/evb-rk3399.c | 6 ++

Re: [U-Boot] [PATCH v2] mmc: sdhci: Add the programmable clock mode support

2016-09-30 Thread Kever Yang
Hi Wenyou, I can not enable my emmc device on my evb-rk3399 with this patch, could you help to fix it? Here is the debug info may help: mmc->cfg->f_max is 2; [with this patch] I get host->clk_mul 16 ; When driver want to set clock to 40, always get div 1024, and then write

[U-Boot] [PATCH] rk3399: disable the clock multiplier support when SoC init

2016-10-07 Thread Kever Yang
The Clock Multiplier in rk3399 EMMC programmable clock generator is broken, we can remove its support from SoC GRF register. Without this patch, rk3399 emmc driver is not work after below patch applied: 6dffdbc mmc: sdhci: Add the programmable clock mode support Signed-off-by: Kever Yang

Re: [U-Boot] [PATCH v2] mmc: sdhci: Add the programmable clock mode support

2016-10-07 Thread Kever Yang
Hi Jaehoon, On 09/30/2016 06:48 PM, Jaehoon Chung wrote: Hi Kever, On 09/30/2016 07:05 PM, Kever Yang wrote: Hi Wenyou, I can not enable my emmc device on my evb-rk3399 with this patch, could you help to fix it? Here is the debug info may help: mmc->cfg->f_max is 200

[U-Boot] [PATCH] rk3288: fix reg address for GRF_SOC_CON2

2016-10-07 Thread Kever Yang
The GRF base address is missing, fix it. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288/rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c

[U-Boot] [PATCH] evb-rk3399: config: set emmc as default boot dev

2016-10-07 Thread Kever Yang
rk3399 has two mmc dev controller: mmc 0: SD card; mmc 1: EMMC U-Boot will scan the mmc boot device configured by CONFIG_SYS_MMC_ENV_DEV, since evb has emmc on board, let's set the EMMC as default. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- include/configs/evb_rk3399.h | 2

[U-Boot] [PATCH] rk3288: kconfig: remove duplicate definition of SPL_MMC_SUPPORT

2016-10-08 Thread Kever Yang
SPL_MMC_SUPPORT defined in rockchip top level Kconfig instead of inside rk3288 and default to disable if ROCKCHIP_SPL_BACK_TO_BROM defined. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/mach-rockchip/rk3288/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 1/2] rockchip: use rockchip linux partitions layout

2016-10-08 Thread Kever Yang
ved1,size=64K,uuid=${uuid_gpt_reserved1};" \ + "name=reserved2,size=4M,uuid=${uuid_gpt_reserved2};" \ + "name=loader2,size=4MB,uuid=${uuid_gpt_loader2};" \ + "name=atf,size=4M,uuid=${uuid_gpt_atf};" \ + "name=boot,size=128M,bootable,uuid=${uui

Re: [U-Boot] [PATCH v2 3/3] rockchip: rk3288: Move rockchip_get_cru() out of the driver

2016-10-07 Thread Kever Yang
const struct pll_div *div) { Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Thanks, - Kever ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 1/2] rockchip: use rockchip linux partitions layout

2016-10-07 Thread Kever Yang
Hi Jacob, On 10/07/2016 02:06 PM, Jacob Chen wrote: Unify the partitions of each chip then it will be more easy for us to write scripts, tools or guides no more than 75 for one line in commit message. for rockchip chips. Those extra partitions mostly are used to be compatible with our

Re: [U-Boot] [PATCH v2 1/3] rockchip: rk3036: Move rockchip_get_cru() out of the driver

2016-10-07 Thread Kever Yang
SS_CLK, .of_match = rk3036_clk_ids, Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Thanks, - Kever ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/3] rockchip: rk3399: Move rockchip_get_cru() out of the driver

2016-10-07 Thread Kever Yang
BOOT_DRIVER(pmuclk_rk3399) = { +U_BOOT_DRIVER(rockchip_rk3399_pmuclk) = { .name = "pmuclk_rk3399", .id = UCLASS_CLK, .of_match = rk3399_pmuclk_ids, Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Thanks, - Kever _

Re: [U-Boot] [PATCH v2 2/3] rk3288: sdram: auto-detect the capacity

2016-10-07 Thread Kever Yang
Hi Simon, On 09/23/2016 10:53 AM, Simon Glass wrote: Hi Kever, On 19 September 2016 at 21:28, Kever Yang <kever.y...@rock-chips.com> wrote: Add support for rk3288 dram capacity auto detect, support DDR3 and LPDDR3, DDR2 is not supported. The program will automatically detect: - channel

[U-Boot] [PATCH] mmc: rockchip_sdhci: add clock init for mmc

2016-10-07 Thread Kever Yang
Init the clock rate to CONFIG_ROCKCHIP_SDHCI_MAX_FREQ with clock driver api. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/mmc/rockchip_sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index c

[U-Boot] [PATCH v3 2/3] rk3288: sdram: auto-detect the capacity

2016-10-07 Thread Kever Yang
-by: Kever Yang <kever.y...@rock-chips.com> Tested-by: Simon Glass <s...@chromium.org> Tested-by: Vagrant Cascadian <vagr...@debian.org> --- Changes in v3: - add error report and return value when error happen - add comments for stride and address bits. Changes in v2: - update co

[U-Boot] [PATCH v3 0/3] Add sdram capacity auto detect for rk3288

2016-10-07 Thread Kever Yang
in v2: - update code for OF_PLATDATA enabled - bug fix for ddrconfig Kever Yang (3): rk3288: config change for enable dram capacity auto-detect. rk3288: sdram: auto-detect the capacity dts: rk3288: remove node in dmc which not need anymore arch/arm/dts/rk3288-evb.dts | 3

[U-Boot] [PATCH v3 1/3] rk3288: config change for enable dram capacity auto-detect.

2016-10-07 Thread Kever Yang
Enable ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT to save memory in order to enable add source code for dram capacity auto-detect. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - move the config into defconfig file Changes in v2: None confi

[U-Boot] [PATCH v3 3/3] dts: rk3288: remove node in dmc which not need anymore

2016-10-07 Thread Kever Yang
Since we implement the dram capacity auto detect, we don't need to set the channel number and sdram-channel in dts. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> Tested-by: Simon Glass <s...@chromium.org> Tested-by: Vagra

Re: [U-Boot] [PATCH 0/2] Add sdram capacity auto detect for rk3288

2016-09-17 Thread Kever Yang
On 2016-09-08, Kever Yang wrote: The rk3288 spl size is very close to 32KB while the rk3288 bootrom has the limitation of maximum size of SPL is 32KB. After apply this patch, the SPL size will

Re: [U-Boot] [PATCH 0/2] Add sdram capacity auto detect for rk3288

2016-09-19 Thread Kever Yang
Hi Sandy, On 09/19/2016 09:33 PM, Sandy Patterson wrote: Hi Kever and Vagrant, I tested this patch on my rock2 board against 2016.09. (I didn't have my board with me over the weekend) Thanks for your test and for your log, my source code do have one bug and I have fix and upload the V2

[U-Boot] [PATCH v2 0/3] Add sdram capacity auto detect for rk3288

2016-09-19 Thread Kever Yang
the size issue. This patch has test with 2GB DDR3 and 2GB/4GB LPDDR3. V2 add patch to clean some source code size for some rk3288 board to make the SPL size in the 32KB limitation. Changes in v2: - update code for OF_PLATDATA enabled - bug fix for ddrconfig Kever Yang (3): rk3288: config

[U-Boot] [PATCH v2 2/3] rk3288: sdram: auto-detect the capacity

2016-09-19 Thread Kever Yang
-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - update code for OF_PLATDATA enabled - bug fix for ddrconfig arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 244 ++- 1 file changed, 202 insertions(+), 42 deletions(-) diff --git a/arch/arm/mach-ro

[U-Boot] [PATCH v2 3/3] dts: rk3288: remove node in dmc which not need anymore

2016-09-19 Thread Kever Yang
Since we implement the dram capacity auto detect, we don't need to set the channel number and sdram-channel in dts. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: None arch/arm/dts/rk3288-evb.dts | 3 --- arch/arm/dts/rk3288-fennec.dts | 3 --- ar

[U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.

2016-09-19 Thread Kever Yang
Enable ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT to save memory in order to enable add source code for dram capacity auto-detect. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: None include/configs/evb_rk3288.h | 3 +-- include/c

[U-Boot] [PATCH v3 0/7] add pwm regulator driver

2016-09-23 Thread Kever Yang
_id if there is none - other fix for comments from Simon - add Acked-by tag from Simon and commit message fix - update the commit message Kever Yang (7): rockchip: rk3399: update PPLL and pmu_pclk frequency rockchip: rkpwm: fix the register sequence power: regulator: add pwm regulator rockc

Re: [U-Boot] Rockchip patches for testing

2016-09-23 Thread Kever Yang
Hi Simon, On 09/23/2016 11:17 AM, Simon Glass wrote: Hi, I have pushed a branch to u-boot-rockchip/testing. Please take a look and let me know if any of these patches need rework. Are there more patches coming for this merge window? Re rk3399, one of the patches causes a build error on

[U-Boot] [PATCH v3 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency

2016-09-23 Thread Kever Yang
for kernel,it suppose not to change the bus clock like pmu_pclk in kernel, so we want to change it in uboot. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/

[U-Boot] [PATCH v3 4/7] rockchip: evb_rk3399: init vdd_center regulator

2016-09-23 Thread Kever Yang
Add vdd_center pwm regulator get_device to enable this regulator. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: - add Acked-by tag from Simon and commit message fix board/rockchip/evb_rk3399/

[U-Boot] [PATCH v3 2/7] rockchip: rkpwm: fix the register sequence

2016-09-23 Thread Kever Yang
Reference to kernel source code, rockchip pwm has three type, we are using v2 for rk3288 and rk3399, so let's update the register to sync with pwm_data_v2 in kernel. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3:

[U-Boot] [PATCH v3 6/7] dts: evb-rk3399: add init voltage node for vdd-center

2016-09-23 Thread Kever Yang
Add a regulator-init-microvolt for vdd_center regulator so that we can get a init value for driver probe. Not like pmic regulator, the PWM regulator do not have a known default output value, so we would like to init the regulator when driver probe. Signed-off-by: Kever Yang <kever.y...@r

[U-Boot] [PATCH v3 5/7] Kconfig: rockchip: enable DM_PWM and DM_REGULATOR

2016-09-23 Thread Kever Yang
Enable DM_PWM and DM_REGULATOR on rockchip SoCs. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfi

[U-Boot] [PATCH v3 3/7] power: regulator: add pwm regulator

2016-09-23 Thread Kever Yang
add driver support for pwm regulator. Signed-off-by: Elaine Zhang <zhangq...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: - remove priv->boot_on to fix compile error Changes

[U-Boot] [PATCH v3 7/7] config: evb-rk3399: enable pwm regulator

2016-09-23 Thread Kever Yang
Enable the pwm regulator for evb-rk3399. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None configs/evb-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3399

Re: [U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.

2016-09-21 Thread Kever Yang
Hi Sandy, On 09/21/2016 07:53 PM, Sandy Patterson wrote: On Tue, Sep 20, 2016 at 11:00 PM, Kever Yang <kever.y...@rock-chips.com <mailto:kever.y...@rock-chips.com>> wrote: Hi Sandy, On 09/20/2016 09:21 PM, Sandy Patterson wrote: You're probably going to ne

Re: [U-Boot] [PATCH v2 0/3] Add sdram capacity auto detect for rk3288

2016-09-21 Thread Kever Yang
Hi Sandy, On 09/21/2016 08:41 PM, Sandy Patterson wrote: On Tue, Sep 20, 2016 at 10:56 PM, Kever Yang <kever.y...@rock-chips.com <mailto:kever.y...@rock-chips.com>> wrote: parameters changes from dts to auto-detect including those I removed from dts and ddrco

Re: [U-Boot] [PATCH v2 0/3] Add sdram capacity auto detect for rk3288

2016-09-20 Thread Kever Yang
Hi Sandy, On 09/20/2016 11:04 PM, Sandy Patterson wrote: I can confirm that this boots on rock2 with current master branch. 9b1b6d42256a4c2e59c803afdbf90d39371e61ba Thanks for your test. It doesn't boot for me using rock2 on v2016.09 tag. I get: U-Boot SPL 2016.09-2-g690a8a3 (Sep 20

Re: [U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.

2016-09-20 Thread Kever Yang
default y On Mon, Sep 19, 2016 at 11:28 PM, Kever Yang <kever.y...@rock-chips.com <mailto:kever.y...@rock-chips.com>> wrote: Enable ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT to save memory in order to enable add source code for dram capacity auto-detect.

[U-Boot] [PATCH 0/2] Kconfig USB_XHCI_ROCKCHIP fixup

2016-09-20 Thread Kever Yang
New config option must using Kconfig, move USB_XHCI_ROCKCHIP into Kconfig to follow the rule. Kever Yang (2): usb: host: add Kconfig for USB_XHCI_ROCKCHIP rk3399: move the USB_XHCI_ROCKCHIP into Kconfig configs/evb-rk3399_defconfig| 2 ++ drivers/usb/host/Kconfig| 7

[U-Boot] [PATCH 1/2] usb: host: add Kconfig for USB_XHCI_ROCKCHIP

2016-09-20 Thread Kever Yang
Add a Kconfig for Rockchip xhci controller. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/usb/host/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index e0699d4..afb2e97 100644 --- a/drivers/us

[U-Boot] [PATCH 2/2] rk3399: move the USB_XHCI_ROCKCHIP into Kconfig

2016-09-20 Thread Kever Yang
Move USB_XHCI_ROCKCHIP define from soc header file into board defconfig. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399_defconfig| 2 ++ include/configs/rk3399_common.h | 4 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/confi

Re: [U-Boot] [PATCH 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-08-17 Thread Kever Yang
+ Simon, On 08/16/2016 06:03 PM, Kever Yang wrote: This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- board/rockchip/evb_rk3399/evb-rk3399.c | 22 ++ 1 file changed, 22 insertions(+)

Re: [U-Boot] [PATCH 1/4] rk3399: add a empty "sys_proto.h" header file

2016-08-17 Thread Kever Yang
+ Simon, On 08/16/2016 06:03 PM, Kever Yang wrote: driver/usb/dwc3/gadget.c need a "sys_proto.h" header file, add a empty one to make compile success. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/include/asm/arch-rockchip/sys_proto.h | 10 ++

[U-Boot] [PATCH 2/7] rockchip: select DM_USB for rockchip SoC

2016-08-17 Thread Kever Yang
From: MengDongyang <daniel.m...@rock-chips.com> Select DM_USB to compatible with USB DM driver model. Signed-off-by: MengDongyang <daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) dif

[U-Boot] [PATCH 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-08-17 Thread Kever Yang
;daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- drivers/usb/host/Makefile| 3 + drivers/usb/host/xhci-rockchip.c | 226 +++ include/linux/usb/dwc3.h | 9 ++ 3 files changed, 238 insertions(+)

[U-Boot] [PATCH 6/7] board: evb-rk3399: enable usb 2.0 host vbus power on board_init

2016-08-17 Thread Kever Yang
rk3399 using one gpio control signal for two usb 2.0 host port, it's better to enable the power in board file instead of in usb driver. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- board/rockchip/evb_rk3399/evb-rk3399.c | 16 +++- 1 file changed, 15 insertions

[U-Boot] [PATCH 5/7] dts: rk3399-evb: add regulator-fixed for usb host vbus

2016-08-17 Thread Kever Yang
rk3399 evb using one gpio to enable 5V output for both USB 2.0 host port, let's use fixed regulator for them. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/rk3399-evb.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3399-evb.dts b/ar

[U-Boot] [PATCH 3/7] config: rk3399: add usb related configs

2016-08-17 Thread Kever Yang
From: MengDongyang <daniel.m...@rock-chips.com> This patch to enable configs for usb module - xhci - ehci - usb storage - usb net Signed-off-by: MengDongyang <daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399

[U-Boot] [PATCH 0/7] rk3399: enable host controllers

2016-08-17 Thread Kever Yang
devices on rk3399 evb. Note: type-C port only support usb 2.0 currently because the PD driver and USB 3.0 phy driver not enabled. Kever Yang (3): dts: rk3399-evb: add regulator-fixed for usb host vbus board: evb-rk3399: enable usb 2.0 host vbus power on board_init config: evb-rk3399: enable

[U-Boot] [PATCH 4/7] dts: rk3399: add dwc3_typec node for rk3399

2016-08-17 Thread Kever Yang
From: MengDongyang <daniel.m...@rock-chips.com> rk3399 has two dwc3 controller for type-C port, add the dts node and enable them. Signed-off-by: MengDongyang <daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- arch/arm/dts/rk3399-evb.dts |

[U-Boot] [PATCH 7/7] config: evb-rk3399: enable fixed regulator

2016-08-17 Thread Kever Yang
This patch enable fixed regulator driver for rk3399 evb. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- configs/evb-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 378111f..9a6d422

Re: [U-Boot] [PATCH 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-08-17 Thread Kever Yang
Hi Marek, On 08/17/2016 04:13 PM, Marek Vasut wrote: On 08/17/2016 09:42 AM, Kever Yang wrote: From: MengDongyang <daniel.m...@rock-chips.com> This patch add support for rockchip dwc3 controller, which corresponding to the two type-C port on rk3399 evb. Only support usb2.0 currently

Re: [U-Boot] [PATCH 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-18 Thread Kever Yang
Hi Marek, On 08/17/2016 04:07 PM, Marek Vasut wrote: On 08/17/2016 04:06 AM, Kever Yang wrote: Hi Marek, On 08/17/2016 09:39 AM, Marek Vasut wrote: On 08/17/2016 03:31 AM, Kever Yang wrote: Hi Marek, Hi, On 08/16/2016 09:18 PM, Marek Vasut wrote: On 08/16/2016 12:03 PM, Kever Yang wrote

Re: [U-Boot] [PATCH v2 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-08-23 Thread Kever Yang
Hi Simon, On 08/22/2016 12:20 PM, Simon Glass wrote: Hi Kever, On 19 August 2016 at 01:19, Kever Yang <kever.y...@rock-chips.com> wrote: From: MengDongyang <daniel.m...@rock-chips.com> This patch add support for rockchip dwc3 controller, which corresponding to the two type-C po

[U-Boot] [PATCH v2 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-23 Thread Kever Yang
The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one variable in dwc3/dwc3_device struct to support 16 bit UTMI+ interface on some SoCs like Rockchip rk3399. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v2: - use a variable to identify utm

[U-Boot] [PATCH v2 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-08-23 Thread Kever Yang
This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - parse dt for utmi width board/rockchip/evb_rk3399/evb-r

[U-Boot] [PATCH v2 0/4] rk3399: enable dwc3 gadget and fastboot

2016-08-23 Thread Kever Yang
This patch set enable rk3399 dwc3 controller and gadget driver for fastboot. Changes in v2: - parse dt for utmi width - use a variable to identify utmi+ bus width instead of CONFIG MACRO - remove config for USB2PHY UTMI BITS Kever Yang (4): rk3399: add a empty "sys_proto.h" h

[U-Boot] [PATCH v2 1/4] rk3399: add a empty "sys_proto.h" header file

2016-08-23 Thread Kever Yang
driver/usb/dwc3/gadget.c need a "sys_proto.h" header file, add a empty one to make compile success. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm/include/asm/arch-rockchip/sys_proto.h |

[U-Boot] [PATCH v2 4/4] config: rk3399: add support for dwc3 gadget

2016-08-23 Thread Kever Yang
To support fastboot, we need to enable the controller first. rk3399 is using dwc3 as usb device controller, this patch enable the configs for dwc3 gadget. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - r

Re: [U-Boot] [PATCH v2 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-08-23 Thread Kever Yang
Hi Marek, On 08/19/2016 06:52 PM, Marek Vasut wrote: On 08/19/2016 09:19 AM, Kever Yang wrote: From: MengDongyang <daniel.m...@rock-chips.com> This patch add support for rockchip dwc3 controller, which corresponding to the two type-C port on rk3399 evb. Only support usb2.0 currently

[U-Boot] [PATCH v3 0/7] rk3399: enable host controllers

2016-08-23 Thread Kever Yang
Changes in v2: - update for comments from Marek - use regulator_get_by_platname instead of uclass_get_device_by_name - add Acked-by Tag from Simon Kever Yang (3): dts: rk3399-evb: add regulator-fixed for usb host vbus board: evb-rk3399: enable usb 2.0 host vbus power on board_init config

[U-Boot] [PATCH v3 2/7] rockchip: select DM_USB for rockchip SoC

2016-08-23 Thread Kever Yang
From: MengDongyang <daniel.m...@rock-chips.com> Select DM_USB to compatible with USB DM driver model. Signed-off-by: MengDongyang <daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes i

[U-Boot] [PATCH v3 7/7] config: evb-rk3399: enable fixed regulator

2016-08-23 Thread Kever Yang
This patch enable fixed regulator driver for rk3399 evb. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: - add Acked-by Tag from Simon configs/evb-rk3399_defconfig | 2 ++ 1 file changed,

[U-Boot] [PATCH v3 3/7] config: rk3399: add usb related configs

2016-08-23 Thread Kever Yang
From: MengDongyang <daniel.m...@rock-chips.com> This patch to enable configs for usb module - xhci - ehci - usb storage - usb net Signed-off-by: MengDongyang <daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chrom

[U-Boot] [PATCH v3 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-08-23 Thread Kever Yang
;daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v3: - using fdtdec_get_bool and fdtdec_get_int instead of fdt_get_property - other update by follow comments from Marek and Simon Changes in v2: - update for comments from Marek drivers

[U-Boot] [PATCH v3 5/7] dts: rk3399-evb: add regulator-fixed for usb host vbus

2016-08-23 Thread Kever Yang
rk3399 evb using one gpio to enable 5V output for both USB 2.0 host port, let's use fixed regulator for them. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None arch/arm/dts/rk3399-evb.dts |

[U-Boot] [PATCH v3 4/7] dts: rk3399: add dwc3_typec node for rk3399

2016-08-23 Thread Kever Yang
From: MengDongyang <daniel.m...@rock-chips.com> rk3399 has two dwc3 controller for type-C port, add the dts node and enable them. Signed-off-by: MengDongyang <daniel.m...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chrom

[U-Boot] [PATCH v3 6/7] board: evb-rk3399: enable usb 2.0 host vbus power on board_init

2016-08-23 Thread Kever Yang
rk3399 using one gpio control signal for two usb 2.0 host port, it's better to enable the power in board file instead of in usb driver. Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Simon Glass <s...@chromium.org> --- Changes in v3: - add Acked-by tag from Simon C

Re: [U-Boot] [PATCH v2 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-28 Thread Kever Yang
Hi Marek, On 08/26/2016 05:09 PM, Marek Vasut wrote: On 08/25/2016 03:17 AM, Kever Yang wrote: Hi Marek, On 08/24/2016 07:38 PM, Marek Vasut wrote: On 08/24/2016 05:46 AM, Kever Yang wrote: The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one variable in dwc3

<    1   2   3   4   5   6   7   8   9   10   >