[PATCH 0/4] usb: dwc2: add suport for Rockchip dwc2 controller

2014-07-29 Thread Kever Yang
This path is to add the support for dwc2 controller found ind Rockchip processors rk3066, rk3188 and rk3288 This patch also add dr_mode for dwc2 driver. Kever Yang (4): Documentation: dt-bindings: add dt binding info for Rockchip dwc2 ARM: dts: add rk3288 dwc2 controller support usb: dwc2

[PATCH 1/4] Documentation: dt-bindings: add dt binding info for Rockchip dwc2

2014-07-29 Thread Kever Yang
This add necessary dwc2 binding documentation for Rockchip socs: rk3066, rk3188 and rk3288 add dr_mode as optional properties. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Documentation/devicetree/bindings/usb/dwc2.txt |5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 2/4] ARM: dts: add rk3288 dwc2 controller support

2014-07-29 Thread Kever Yang
rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 20 1 file changed, 20 insertions

[PATCH 4/4] usb: dwc2: add dr_mode support for dwc2

2014-07-29 Thread Kever Yang
Some devices with A female host port and without use of usb_id pin will need this for the otg controller works as device role during firmware period and works as host role in rich os. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/usb/dwc2/core.c | 13

[PATCH 3/4] usb: dwc2: add compatible data for rockchip soc

2014-07-29 Thread Kever Yang
This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/usb/dwc2/platform.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/usb

Re: [PATCH] ARM: errata: Workaround for Cortex-A12 erratum 818325

2014-08-26 Thread Kever Yang
Hi Russell, I'd value your feedback on this if you have a moment. I think this will need by rk3288 soc. Thanks On 08/18/2014 05:58 PM, Kever Yang wrote: From: Huang Tao huang...@rock-chips.com On Cortex-A12 (r0p0..r0p1-00lac0-rc11), when a CPU executes a sequence of two conditional store

[PATCH] ARM: dts: make arch-timer always on in rk3288 soc

2014-08-26 Thread Kever Yang
We need use the hrtimer, which need the arch-timer to be 'always-on' Signed-off-by: Kever Yang kever.y...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 5950b0a..698e6ea

[PATCH v2 1/2] Documentation: dt-bindings: add dt binding info for dwc2 dr_mode

2014-07-30 Thread Kever Yang
Indicate that the generic dr_mode binding should be used for dwc2. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - Split out dr_mode and rk3288 bindings. Documentation/devicetree/bindings/usb/dwc2.txt |2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 0/2] Patches to add dr_mode for dwc2

2014-07-30 Thread Kever Yang
These two patches enable the dr_mode for the dwc2 usb controller. These are split from the patch series adding rk3288 dwc2 support. Changes in v2: - Split out dr_mode and rk3288 bindings. - put spaces around '+' operator - expand the comment for dr_mode - handle dr_mode is USB_DR_MODE_OTG Kever

[PATCH v2 2/2] usb: dwc2: add dr_mode support for dwc2

2014-07-30 Thread Kever Yang
Some devices with A female host port and without use of usb_id pin will need this for the otg controller works as device role during firmware period and works as host role in rich os. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - put spaces around '+' operator

[PATCH v2 3/4] ARM: dts: add rk3288 dwc2 controller support

2014-07-30 Thread Kever Yang
rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - change the node name from 'dwc2' to 'usb' arch/arm/boot/dts/rk3288

[PATCH v2 4/4] ARM: dts: Enable USB otg and host1(dwc) on rk3288-evb

2014-07-30 Thread Kever Yang
USB otg port is the usb3.0 b-port on the board. USB host1 port is the host A port nearby the otg port. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - evb patch added in version 2 arch/arm/boot/dts/rk3288-evb.dtsi |6 ++ 1 file changed, 6 insertions(+) diff

[PATCH v2 0/4] Patches to add support for Rockchip dwc2 controller

2014-07-30 Thread Kever Yang
From: Kever Yang kever.y...@gmail.com These patches to add support for dwc2 controller found in Rockchip processors rk3066, rk3188 and rk3288, and enable dts for rk3288 evb. Changes in v2: - Split out dr_mode and rk3288 bindings. - add compatible snps,dwc2 bingding info - set most parameters

[PATCH v2 2/4] usb: dwc2: add compatible data for rockchip soc

2014-07-30 Thread Kever Yang
This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - set most parameters as driver auto-detect drivers/usb/dwc2/platform.c | 29 + 1

[PATCH v2 1/4] Documentation: dt-bindings: add dt binding info for Rockchip dwc2

2014-07-30 Thread Kever Yang
This add necessary dwc2 binding documentation for Rockchip socs: rk3066, rk3188 and rk3288 Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - Split out dr_mode and rk3288 bindings. - add compatible snps,dwc2 bingding info Documentation/devicetree/bindings/usb/dwc2.txt

[PATCH v3 5/5] ARM: dts: Enable USB otg and host1(dwc) on rk3288-evb

2014-07-31 Thread Kever Yang
USB otg port is the usb3.0 b-port on the board. USB host1 port is the host A port nearby the otg port. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - Rebase Changes in v2: - evb patch added in version 2 arch/arm/boot/dts/rk3288-evb.dtsi |6 ++ 1 file changed

[PATCH v3 4/5] ARM: dts: Fix the sort ordering of EHCI and HSIC in rk3288.dtsi

2014-07-31 Thread Kever Yang
From: Doug Anderson diand...@chromium.org The EHCI and HSIC device tree nodes were added in the wrong place. Fix them. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - EHCI and HSIC move new for version 3. Changes in v2

[PATCH v3 3/5] ARM: dts: add rk3288 dwc2 controller support

2014-07-31 Thread Kever Yang
rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - Moved out of pin control and sort by base address Changes in v2

[PATCH v3 0/5] Patches to add support for Rockchip dwc2 controller

2014-07-31 Thread Kever Yang
and rk3288 bindings. - add compatible snps,dwc2 bingding info - set most parameters as driver auto-detect - change the node name from 'dwc2' to 'usb' - evb patch added in version 2 Doug Anderson (1): ARM: dts: Fix the sort ordering of EHCI and HSIC in rk3288.dtsi Kever Yang (4): Documentation: dt

[PATCH v3 2/5] usb: dwc2: add compatible data for rockchip soc

2014-07-31 Thread Kever Yang
This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v3: None Changes in v2: - set most parameters as driver auto-detect

[PATCH v3 1/5] Documentation: dt-bindings: add dt binding info for Rockchip dwc2

2014-07-31 Thread Kever Yang
This add necessary dwc2 binding documentation for Rockchip socs: rk3066, rk3188 and rk3288 Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Stephen Warren swar...@nvidia.com --- Changes in v3: None Changes in v2: - Split out dr_mode and rk3288 bindings. - add compatible snps,dwc2

[REPOST PATCH v3 2/5] usb: dwc2: add compatible data for rockchip soc

2014-07-31 Thread Kever Yang
This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v3: None Changes in v2: - set most parameters as driver auto-detect

[REPOST PATCH v3 5/5] ARM: dts: Enable USB otg and host1(dwc) on rk3288-evb

2014-07-31 Thread Kever Yang
USB otg port is the usb3.0 b-port on the board. USB host1 port is the host A port nearby the otg port. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - Rebase Changes in v2: - evb patch added in version 2 arch/arm/boot/dts/rk3288-evb.dtsi |6 ++ 1 file changed

[REPOST PATCH v3 4/5] ARM: dts: Fix the sort ordering of EHCI and HSIC in rk3288.dtsi

2014-07-31 Thread Kever Yang
From: Doug Anderson diand...@chromium.org The EHCI and HSIC device tree nodes were added in the wrong place. Fix them. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - EHCI and HSIC move new for version 3. Changes in v2

[REPOST PATCH v3 3/5] ARM: dts: add rk3288 dwc2 controller support

2014-07-31 Thread Kever Yang
rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - Moved out of pin control and sort by base address Changes in v2

[REPOST PATCH v3 0/5] Patches to add support for Rockchip dwc2 controller

2014-07-31 Thread Kever Yang
in rk3288.dtsi Kever Yang (4): Documentation: dt-bindings: add dt binding info for Rockchip dwc2 usb: dwc2: add compatible data for rockchip soc ARM: dts: add rk3288 dwc2 controller support ARM: dts: Enable USB otg and host1(dwc) on rk3288-evb Documentation/devicetree/bindings/usb/dwc2.txt |3

[REPOST PATCH v3 1/5] Documentation: dt-bindings: add dt binding info for Rockchip dwc2

2014-07-31 Thread Kever Yang
This add necessary dwc2 binding documentation for Rockchip socs: rk3066, rk3188 and rk3288 Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Stephen Warren swar...@nvidia.com --- Changes in v3: None Changes in v2: - Split out dr_mode and rk3288 bindings. - add compatible snps,dwc2

[PATCH v3 0/2] Patches to add dr_mode for dwc2

2014-08-04 Thread Kever Yang
bindings. - put spaces around '+' operator - expand the comment for dr_mode - handle dr_mode is USB_DR_MODE_OTG Kever Yang (2): Documentation: dt-bindings: add dt binding info for dwc2 dr_mode usb: dwc2: add 'mode' which based on Kconfig select or dts setting Documentation/devicetree/bindings

[PATCH v3 1/2] Documentation: dt-bindings: add dt binding info for dwc2 dr_mode

2014-08-04 Thread Kever Yang
Indicate that the generic dr_mode binding should be used for dwc2. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: None Changes in v2: - Split out dr_mode and rk3288 bindings. Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v3 2/2] usb: dwc2: add 'mode' which based on Kconfig select or dts setting

2014-08-04 Thread Kever Yang
According to the dr_mode, the otg controller can work as device role during firmware period, and work as host role in the kernel, without use of usb_id pin. As the commit usb: dwc3: set 'mode' based on selected Kconfig choices. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes

Re: [PATCH v3 2/2] usb: dwc2: add 'mode' which based on Kconfig select or dts setting

2014-08-04 Thread Kever Yang
Doug, On 08/05/2014 12:34 AM, Doug Anderson wrote: Kever, On Mon, Aug 4, 2014 at 6:45 AM, Kever Yang kever.y...@rock-chips.com wrote: According to the dr_mode, the otg controller can work as device role during firmware period, and work as host role in the kernel, without use of usb_id pin

[PATCH v4 0/2] Patches to add dr_mode for dwc2

2014-08-05 Thread Kever Yang
struct - From Jingoo's suggestion: change the commit message - add dr_mode init from Kconfig Changes in v2: - Split out dr_mode and rk3288 bindings. - put spaces around '+' operator - expand the comment for dr_mode - handle dr_mode is USB_DR_MODE_OTG Kever Yang (2): Documentation: dt

[PATCH v4 2/2] usb: dwc2: add 'mode' which based on Kconfig select or dts setting

2014-08-05 Thread Kever Yang
According to the dr_mode, the otg controller can work as device role and host role. Some boards always want to use host mode and some other boards want to use gadget mode. We use the dts setting to set dwc2's mode, rather than fixing it to whatever hardware says. Signed-off-by: Kever Yang kever.y

[PATCH v4 1/2] Documentation: dt-bindings: add dt binding info for dwc2 dr_mode

2014-08-05 Thread Kever Yang
Indicate that the generic dr_mode binding should be used for dwc2. Signed-off-by: Kever Yang kever.y...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v4: None Changes in v3: None Changes in v2: - Split out dr_mode and rk3288 bindings. Documentation/devicetree

[PATCH v4 0/4] Patches to add support for Rockchip dwc2 controller

2014-08-07 Thread Kever Yang
bingding info - set most parameters as driver auto-detect - evb patch added in version 2 Kever Yang (4): Documentation: dt-bindings: add dt binding info for Rockchip dwc2 usb: dwc2: add compatible data for rockchip soc ARM: dts: add rk3288 dwc2 controller support ARM: dts: Enable USB otg

[PATCH v4 2/4] usb: dwc2: add compatible data for rockchip soc

2014-08-07 Thread Kever Yang
This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v4: - max_transfer_size change to 65536, this should be enough for most

[PATCH v4 3/4] ARM: dts: add rk3288 dwc2 controller support

2014-08-07 Thread Kever Yang
rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v4: None Changes in v3: - EHCI and HSIC move new for version 3. Changes

[PATCH v4 4/4] ARM: dts: Enable USB otg and host1(dwc) on rk3288-evb

2014-08-07 Thread Kever Yang
USB otg port is the usb3.0 b-port on the board. USB host1 port is the host A port nearby the otg port. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v4: None Changes in v3: - Rebase Changes in v2: - evb patch added in version 2 arch/arm/boot/dts/rk3288-evb.dtsi | 6

[PATCH v4 1/4] Documentation: dt-bindings: add dt binding info for Rockchip dwc2

2014-08-07 Thread Kever Yang
This add necessary dwc2 binding documentation for Rockchip socs: rk3066, rk3188 and rk3288 Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Stephen Warren swar...@nvidia.com --- Changes in v4: None Changes in v3: None Changes in v2: - Split out dr_mode and rk3288 bindings. - add

Re: [PATCH v4 2/4] usb: dwc2: add compatible data for rockchip soc

2014-08-07 Thread Kever Yang
Paul, On 08/08/2014 02:26 AM, Paul Zimmerman wrote: From: Kever Yang [mailto:kever.y...@gmail.com] On Behalf Of Kever Yang Sent: Thursday, August 07, 2014 2:35 AM This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off

Re: [PATCH] usb: dwc2: Read GNPTXFSIZ when in forced HOST mode.

2014-08-07 Thread Kever Yang
this value if they use the dwc2 controller. The way we get the register value here can not make sure this is the power-on value which we actually need. Let me do more test for that, and maybe we need another patch. Anyway, this patch works and reasonable. Reviewed-by: Kever Yang kever.y...@rock

[PATCH v5 2/4] usb: dwc2: add compatible data for rockchip soc

2014-08-07 Thread Kever Yang
This patch add compatible data for dwc2 controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v5: - max_transfer_size change to 65535 to met the requirement

[PATCH v5 4/4] ARM: dts: Enable USB host1(dwc) on rk3288-evb

2014-08-07 Thread Kever Yang
USB host1 port is the host A port nearby the otg port. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: - don't enable otg port for evb Changes in v4: None Changes in v3: - Rebase Changes in v2: - evb patch added in version 2 arch/arm/boot/dts/rk3288-evb.dtsi | 4

[PATCH v5 3/4] ARM: dts: add rk3288 dwc2 controller support

2014-08-07 Thread Kever Yang
rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang kever.y...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org Tested-by: Doug Anderson diand

[PATCH v5 1/4] Documentation: dt-bindings: add dt binding info for Rockchip dwc2

2014-08-07 Thread Kever Yang
This add necessary dwc2 binding documentation for Rockchip socs: rk3066, rk3188 and rk3288 Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Stephen Warren swar...@nvidia.com --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Split out dr_mode and rk3288

[PATCH v5 0/4] Patches to add support for Rockchip dwc2 controller

2014-08-07 Thread Kever Yang
had post it seprately. Changes in v3: - EHCI and HSIC move new for version 3. - Rebase Changes in v2: - Split out dr_mode and rk3288 bindings. - add compatible snps,dwc2 bingding info - set most parameters as driver auto-detect - evb patch added in version 2 Kever Yang (4): Documentation: dt

[PATCH] ARM: errata: Workaround for Cortex-A12 erratum 818325

2014-08-18 Thread Kever Yang
is an UNPREDICTABLE STR or STM instruction. This workaround setting bit[12] of the Feature Register prevents the erratum. This bit disables an optimisation applied to a sequence of 2 instructions that use opposing condition codes. Signed-off-by: Huang Tao huang...@rock-chips.com Signed-off-by: Kever Yang kever.y

Re: [PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288

2014-10-14 Thread Kever Yang
Heiko, On 10/14/2014 02:23 PM, Heiko Stübner wrote: Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson: Kever, On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang kever.y...@rock-chips.com wrote: + /* +* We need to soft reset the cpu when we turn off the cpu power domain

Re: [PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288

2014-10-15 Thread Kever Yang
Russell, On 10/14/2014 04:37 PM, Russell King - ARM Linux wrote: On Tue, Oct 14, 2014 at 02:50:07PM -0700, Kever Yang wrote: Heiko, On 10/14/2014 02:23 PM, Heiko Stübner wrote: Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson: Kever, On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang

[PATCH v5 5/6] ARM: dts: rockchip: add intmem node for rk3288 smp support

2014-10-15 Thread Kever Yang
This patch add intmem node des which is needed by platsmp.c Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: None Changes in v4: - remove rockchip,rk3288-pmu-sram because we don't use it here Changes in v3: - remove 'enable-method' from this patch - add compitable name

[PATCH v5 3/6] ARM: dts: rockchip: add pmu references to cpus nodes

2014-10-15 Thread Kever Yang
This patch add pmu reference and enable-method for smp Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: None Changes in v4: None Changes in v3: - add this patch Changes in v2: None arch/arm/boot/dts/rk3288.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch

[PATCH v5 6/6] ARM: dts: rockchip: add reset for CPU nodes

2014-10-15 Thread Kever Yang
This patch add reset for CPU nodes to use the reset controller. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3288.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm

[PATCH v5 4/6] ARM: rockchip: add basic smp support for rk3288

2014-10-15 Thread Kever Yang
processors might be stalled when the individual processor is powered down, we can avoid this prolbem by softreset the processor before power it down. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: - use read_cpuid_part() but not read_cpuid_part_number() Changes in v4: - merge

[PATCH v5 2/6] ARM: rockchip: add option to access the pmu via a phandle in smp_operations

2014-10-15 Thread Kever Yang
Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: None Changes in v4: - add rockchip,pmu property into cpus.txt Changes in v3: - add this patch Changes in v2: None Documentation/devicetree/bindings/arm/cpus.txt | 9 + arch/arm/mach-rockchip/platsmp.c | 13

[PATCH v5 0/6] add basic rk3288 smp support

2014-10-15 Thread Kever Yang
ofsmp_boot_secondary - discards the power domain operation - handle the per cpu starup when actived by 'sev' - adjust the alignment Kever Yang (6): ARM: rockchip: convert to regmap and use pmu syscon if available ARM: rockchip: add option to access the pmu via a phandle in smp_operations ARM: dts

[PATCH v5 1/6] ARM: rockchip: convert to regmap and use pmu syscon if available

2014-10-15 Thread Kever Yang
the necessary regmap on top of it. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v5: None Changes in v4: None Changes in v3: - add this patch in version 3 Changes in v2: None arch/arm/mach-rockchip/platsmp.c | 104

[PATCH] clk: rockchip: add npll to source of sclk_gpu

2014-10-16 Thread Kever Yang
This patch make a common source for uart0 pll src and sclk_gpu, so that gpu can get its cloc from npll. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3288.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk

[RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc

2014-08-27 Thread Kever Yang
We need use the hrtimer, which need the arch-timer to be 'always-on' Signed-off-by: Kever Yang kever.y...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 5950b0a..698e6ea

Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc

2014-08-28 Thread Kever Yang
Mark, Thanks for your reply and advice. On 08/28/2014 11:11 PM, Mark Rutland wrote: On Thu, Aug 28, 2014 at 10:17:58AM +0100, Mark Rutland wrote: Hi Kever, On Thu, Aug 28, 2014 at 02:40:17AM +0100, Kever Yang wrote: We need use the hrtimer, which need the arch-timer to be 'always-on' I

[PATCH 1/2] clk: rockchip: add 400MHz and 500MHz for rk3288 clock rate

2014-10-07 Thread Kever Yang
This patch add 400MHz and 500MHz to clock rate table for rk3288. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3288.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index d053529

[PATCH 0/2] init some clock rate from dts for rk3288

2014-10-07 Thread Kever Yang
This patch add init rate for PLLs and some bus clock from dts for rk3288, add two clock rate of 400M and 500M into rate table for we will use it. Kever Yang (2): clk: rockchip: add 400MHz and 500MHz for rk3288 clock rate ARM: dts: enable init rate for clock arch/arm/boot/dts/rk3288.dtsi

[PATCH 2/2] ARM: dts: enable init rate for clock

2014-10-07 Thread Kever Yang
We need to initialize PLL rate and some of bus clock rate while kernel init, for there is no other module will do that. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/rk3288

[PATCH] clk: rockchip: disable unused clocks

2014-10-29 Thread Kever Yang
be on during boot or no module driver in kernel will initialize it. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3188.c | 32 - drivers/clk/rockchip/clk-rk3288.c | 146 +++--- drivers/clk/rockchip/clk.c| 9

[RFC PATCH v2 0/2] add power manage for dwc2 hcd

2014-10-29 Thread Kever Yang
me how to test the usb suspend/resume API easily? Changes in v2: - remove the clock from hcd - adjust the delay time when resume - move all the clock operation into platform Kever Yang (2): usb: dwc2: add bus suspend/resume for dwc2 usb: dwc2: move the clock management from gadget to platform

[RFC PATCH v2 1/2] usb: dwc2: add bus suspend/resume for dwc2

2014-10-29 Thread Kever Yang
This patch adds suspend/resume for dwc2 hcd controller. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - remove the clock from hcd - adjust the delay time when resume drivers/usb/dwc2/hcd.c | 75 ++ 1 file changed, 64

[RFC PATCH v2 2/2] usb: dwc2: move the clock management from gadget to platform

2014-10-29 Thread Kever Yang
This patch move clock management out of gadget into platform, make both hcd and gadget can use the clock. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - move all the clock operation into platform drivers/usb/dwc2/gadget.c | 24 ++-- drivers/usb

Re: [PATCH] clk: rockchip: disable unused clocks

2014-10-29 Thread Kever Yang
Hi On 10/30/2014 05:53 AM, Heiko Stübner wrote: Am Mittwoch, 29. Oktober 2014, 13:50:20 schrieb Doug Anderson: Kever, On Wed, Oct 29, 2014 at 3:06 AM, Kever Yang kever.y...@rock-chips.com wrote: The rockchip clock driver use CLK_IGNORE_UNUSED flag to make sure all the clocks are available

[PATCH v2] clk: rockchip: disable unused clocks

2014-10-30 Thread Kever Yang
be on during boot or no module driver in kernel will initialize it. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - get some clock ID back - add CLK_IGNORE_UNUSED tag for aclk_strc and aclk_core in clk-rk3188.c - add CLK_IGNORE_UNUSED tag for rk3288 dwc2 drivers/clk

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-30 Thread Kever Yang
Hi Dinh, On 10/29/2014 07:25 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Since the dwc2 hcd driver is currently not looking for a clock node during init, we should not completely fail if there isn't a clock provided. For dual-role mode, we will

Re: [PATCHv6 1/8] usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

2014-10-30 Thread Kever Yang
Hi Dinh On 10/29/2014 07:25 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Adds the gadget data structure and appropriate data structure pointers to the common dwc2_hsotg data structure. To keep the driver data dereference code looking clean, the

[PATCH v3] clk: rockchip: disable unused clocks

2014-10-30 Thread Kever Yang
be on during boot or no module driver in kernel will initialize it. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v3: - get CLK_DIVIDER_READ_ONLY tag back fro armcores - add CLK_IGNORE_UNUSED tag for cs_dbg, pclk_dgb_pre and pclk_rkpwm Changes in v2: - get some clock ID back

[PATCH] clk: rockchip: change hierarchy for some clocks

2014-10-31 Thread Kever Yang
|- hclk_sdio1 |- hclk_emmc Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3288.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 7a0741d..e1106ad 100644

[PATCH] usb: dwc2: add bus suspend/resume for dwc2

2014-10-31 Thread Kever Yang
This patch adds suspend/resume for dwc2 hcd controller. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/usb/dwc2/hcd.c | 74 ++ 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb

Re: [PATCH] clk: rockchip: add initcall to set clk defaults after syscons are available

2014-09-22 Thread Kever Yang
works on my rk3288 evb, so, Tested-by: Kever Yang kever.y...@rock-chips.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: [PATCH 3/3] ARM: dts: add rk3288 power-domain node

2014-09-22 Thread Kever Yang
On 09/23/2014 10:55 AM, jinkun.hong wrote: From: jinkun.hong jinkun.h...@rock-chips.com Any summary for rk3288 power controller? Maybe you can say something about how rk3288 TRM described this module. Signed-off-by: Jack Dai jack@rock-chips.com Signed-off-by: Wang Caesar

Re: [PATCH v2 2/2] ASoC: rockchip: i2s: add support for grabbing output clock to codec

2014-11-19 Thread Kever Yang
Hi Jay, On 11/19/2014 04:09 PM, Jianqun Xu wrote: Patch is from Sonny Rao sonny...@chromium.org Here should be, From: Sonny Rao sonny...@chromium.org - Kever -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH 2/2] ARM: dts: add intmem node for rk3288 smp support

2014-09-10 Thread Kever Yang
This patch add intmem node des which is needed by platsmp.c and enable the smp. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Kever Yang kever.y...@rock-chips.com --- arch/arm/boot/dts/rk3288.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm

[PATCH 1/2] ARM: rockchip: add basic smp support for rk3288

2014-09-10 Thread Kever Yang
basic rk3288 smp support Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Kever Yang kever.y...@rock-chips.com --- arch/arm/mach-rockchip/core.h| 1 + arch/arm/mach-rockchip/platsmp.c | 60 +--- 2 files changed, 57 insertions(+), 4 deletions

[PATCH 0/2] add basic rk3288 smp support

2014-09-10 Thread Kever Yang
rk3288 is dual-core CPU Soc, we need to enable the smp. This patchset works with either arch-timer use the phisical counter in kernel or the firmware initialize the arch-timer virtual counter offset and use virtual counter in kernel. Kever Yang (2): ARM: rockchip: add basic smp support

[PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp

2014-09-16 Thread Kever Yang
This add documentation for rk3288 smp dt binding Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - add documentation Documentation/devicetree/bindings/arm/cpus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b

[PATCH v2 0/3] add basic rk3288 smp support

2014-09-16 Thread Kever Yang
instead ofsmp_boot_secondary - discards the power domain operation - handle the per cpu starup when actived by 'sev' - adjust the alignment Kever Yang (3): Documentation: dt-bindings: add dt binding info for rk3288-smp ARM: rockchip: add basic smp support for rk3288 ARM: dts: add intmem node

[PATCH v2 2/3] ARM: rockchip: add basic smp support for rk3288

2014-09-16 Thread Kever Yang
This patch add basic rk3288 smp support, cpu 1~3 are in wfe state when get into kernel. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - use rk3288_boot_secondary instead ofsmp_boot_secondary - discards the power domain

[PATCH v2 3/3] ARM: dts: add intmem node for rk3288 smp support

2014-09-16 Thread Kever Yang
This patch add intmem node des which is needed by platsmp.c and enable the smp. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - adjust the alignment arch/arm/boot/dts/rk3288.dtsi | 18 ++ 1 file changed, 18

Re: [PATCH v2 2/3] ARM: rockchip: add basic smp support for rk3288

2014-09-16 Thread Kever Yang
Sonny, On 09/17/2014 04:17 AM, Sonny Rao wrote: On Tue, Sep 16, 2014 at 3:44 AM, Kever Yang kever.y...@rock-chips.com wrote: This patch add basic rk3288 smp support, cpu 1~3 are in wfe state when get into kernel. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Kever Yang kever.y

Re: [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp

2014-09-16 Thread Kever Yang
Hi Mark, Thanks for your comment. On 09/17/2014 02:54 AM, Mark Rutland wrote: On Tue, Sep 16, 2014 at 11:44:28AM +0100, Kever Yang wrote: This add documentation for rk3288 smp dt binding Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Changes in v2: - add documentation

Re: [PATCH] clk: rockchip: rk3288: i2s_frac adds flag to set parent's rate

2014-09-29 Thread Kever Yang
Hi Jianqun, pls add linux-rockc...@lists.infradead.org next time. On 09/30/2014 11:12 AM, Jianqun wrote: The relation of i2s nodes as follows: i2s_src 0 059400 0 i2s_frac 0 011289600 0

Re: [PATCH v2] usb: dwc2: add bus suspend/resume for dwc2

2014-11-10 Thread Kever Yang
Hi Julius, On 11/07/2014 06:11 AM, Julius Werner wrote: On Wed, Nov 5, 2014 at 5:30 PM, Kever Yang kever.y...@rock-chips.com wrote: Hcd controller needs bus_suspend/resume, dwc2 controller make root hub generate suspend/resume signal with hprt0 register when work in host mode. After the root

[PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2014-11-10 Thread Kever Yang
. This patch has tested on rk3288 with suspend/resume. Signed-off-by: Kever Yang kever.y...@rock-chips.com Acked-by: Paul Zimmerman pa...@synopsys.com --- Changes in v3: - remove CONFIG_PM macro for bus_suspend/resume - add PCGCTL operation for no device connect case Changes in v2: - update commit

Re: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2014-11-12 Thread Kever Yang
Doug, On 11/13/2014 07:22 AM, Doug Anderson wrote: Kever, On Mon, Nov 10, 2014 at 5:09 AM, Kever Yang kever.y...@rock-chips.com wrote: Hcd controller needs bus_suspend/resume, dwc2 controller make root hub generate suspend/resume signal with hprt0 register when work in host mode. After

Re: [PATCH] clk: rockchip: ensure HCLK_VIO2_H2P and PCLK_VIO2_H2P stay enabled

2014-11-12 Thread Kever Yang
with CLK_IGNORE_UNUSED tag so far. Reviewed-by: Kever Yang kever.y...@rock-chips.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

[PATCH] clk: rockchip: fix clk_usbphy480m_gate bit location in register

2014-11-12 Thread Kever Yang
According to rk3288 trm, the clk_usbphy480m_gate is locate at bit 14 of CRU_CLKGATE5_CON register. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b

[PATCH 1/2] clk: rockchip: add clock ID for usbphy480m_src

2014-11-12 Thread Kever Yang
for it so that we can use in dts. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- include/dt-bindings/clock/rk3288-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h index 100a08c..3dcc906 100644

[PATCH 2/2] clk: rockchip: use the clock ID for usbphy480m_src

2014-11-12 Thread Kever Yang
Use the clock ID for usbphy480m_src so that we can find this clock node in dts. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip

[PATCH] clk: rockchip: fix clock select order for usbphy480m_src

2014-11-13 Thread Kever Yang
- clk_otgphy0 - USB PHY OTG - clk_otgphy1 - USB PHY host0 - clk_otgphy2 - USB PHY host1 Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/rockchip/clk-rk3288.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk

Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288

2014-11-13 Thread Kever Yang
Hi Heiko, On 11/07/2014 05:06 AM, Heiko Stübner wrote: Hi Kever, Am Dienstag, 4. November 2014, 15:52:34 schrieb Kever Yang: we are going to make a clock usage solution for rk3288: 1. CPLL and GPLL always not change after assign init; 2. NPLL default as 500MHz, may used for most scene; 3

[RFC PATCH 0/2] add dts property to force update a clock setting

2014-11-13 Thread Kever Yang
When we assgined a clock rate in dts, we may need to update the clock setting like PLLs who can get the same output rate with different parameter even if we don't need to change the rate. Kever Yang (2): clk: add property for force to update clock setting dt-bindings: clk: add document

[RFC PATCH 1/2] clk: add property for force to update clock setting

2014-11-13 Thread Kever Yang
if the rate is not changed by now. This patch adds a option property 'assigned-clock-force-rates' to make sure we update all the setting even if we don't need to update the clock rate. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/clk/clk-conf.c | 33

[RFC PATCH 2/2] dt-bindings: clk: add document for assigned-clock-force-rates usage

2014-11-13 Thread Kever Yang
This patch adds document for how to use the opetion property assigned-clock-force-rates. We may use this property to force update a clock setting. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- Documentation/devicetree/bindings/clock/clock-bindings.txt | 7 +-- 1 file changed, 5

Re: [PATCH 0/5] clk: rockchip: add full support for HDMI clock on rk3288

2014-11-14 Thread Kever Yang
Hi On 11/14/2014 09:46 AM, Mike Turquette wrote: Looking through the clock-tree there are a lot more components possibly using (or wanting to use) the npll: of course the VOPs, the edp, hdmi, isp, hevc, gpu, tsp uart0 and gmac. So I'm slightly uncomfortable with somehow reserving the npll

Re: [PATCH 3/3] ARM: dts: add rk3288 power-domain node

2014-09-24 Thread Kever Yang
Heiko, On 09/24/2014 01:52 AM, Heiko Stübner wrote: Am Montag, 22. September 2014, 19:55:16 schrieb jinkun.hong: From: jinkun.hong jinkun.h...@rock-chips.com Signed-off-by: Jack Dai jack@rock-chips.com Signed-off-by: Wang Caesar caesar.w...@rock-chips.com Signed-off-by: jinkun.hong

  1   2   3   4   5   >