[PATCH 2/2] ARM: at91/sama5_defconfig: enable sound support

2014-06-06 Thread Bo Shen
Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/configs/sama5_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index dc3881e..c8613f0 100644 --- a/arch/arm/configs/sama5_defconfig +++ b/arch/arm/configs

[PATCH 1/2] ARM: at91/at91_dt_defconfig: enable sound support

2014-06-06 Thread Bo Shen
As sound support depends on ssc, i2c and dma, so also enable them. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/configs/at91_dt_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index

[PATCH] ARM: at91: fix spi cs on sama5d3 Xplained board

2014-04-01 Thread Bo Shen
The PD16 is the CS3 for SPI0 while not SPI1. Signed-off-by: Bo Shen --- This patch is based on v3.14-rc8 arch/arm/boot/dts/at91-sama5d3_xplained.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/at91

[PATCH] ARM: at91: fix spi cs on sama5d3 Xplained board

2014-04-01 Thread Bo Shen
The PD16 is the CS3 for SPI0 while not SPI1. Signed-off-by: Bo Shen voice.s...@atmel.com --- This patch is based on v3.14-rc8 arch/arm/boot/dts/at91-sama5d3_xplained.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-20 Thread Bo Shen
Hi Mark Brown, On 03/20/2014 09:47 PM, Mark Brown wrote: On Thu, Mar 20, 2014 at 10:37:53AM +0800, Bo Shen wrote: For this, in my mind, I think we need add following parameters in DT. 1. sysclk_src_from_fll --> we need do nothing. No, how would this work? If nothing else the FLL ne

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-20 Thread Bo Shen
Hi Mark Brown, On 03/20/2014 09:47 PM, Mark Brown wrote: On Thu, Mar 20, 2014 at 10:37:53AM +0800, Bo Shen wrote: For this, in my mind, I think we need add following parameters in DT. 1. sysclk_src_from_fll -- we need do nothing. No, how would this work? If nothing else the FLL needs

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-19 Thread Bo Shen
Hi Mark, On 03/19/2014 06:28 PM, Mark Brown wrote: On Wed, Mar 19, 2014 at 01:57:23PM +0800, Bo Shen wrote: On 03/17/2014 07:55 PM, Mark Brown wrote: If this is a clock for the CODEC it should be documented as part of the binding for the CODEC and connected to the CODEC in the device tree

[PATCH] Video: atmel: avoid the id of fix screen info is overwritten

2014-03-19 Thread Bo Shen
Correct passing parameter sequence, which will avoid the id of fix screen info is overwritten. Signed-off-by: Bo Shen --- drivers/video/atmel_lcdfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index cd96162

[PATCH] Video: atmel: avoid the id of fix screen info is overwritten

2014-03-19 Thread Bo Shen
Correct passing parameter sequence, which will avoid the id of fix screen info is overwritten. Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/video/atmel_lcdfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-19 Thread Bo Shen
Hi Mark, On 03/19/2014 06:28 PM, Mark Brown wrote: On Wed, Mar 19, 2014 at 01:57:23PM +0800, Bo Shen wrote: On 03/17/2014 07:55 PM, Mark Brown wrote: If this is a clock for the CODEC it should be documented as part of the binding for the CODEC and connected to the CODEC in the device tree

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-18 Thread Bo Shen
Hi Mark, On 03/17/2014 07:55 PM, Mark Brown wrote: On Mon, Mar 17, 2014 at 05:45:40PM +0800, Bo Shen wrote: - compatible: "atmel,asoc-wm8904" - atmel,model: The user-visible name of this sound complex. + - clocks: A list of clocks needed by the wm8904 chip. + - clock-ou

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-18 Thread Bo Shen
Hi Mark, On 03/17/2014 07:55 PM, Mark Brown wrote: On Mon, Mar 17, 2014 at 05:45:40PM +0800, Bo Shen wrote: - compatible: atmel,asoc-wm8904 - atmel,model: The user-visible name of this sound complex. + - clocks: A list of clocks needed by the wm8904 chip. + - clock-output-names

[PATCH 3/8] ARM: at91: sama5d3: correct the sound compatible string

2014-03-17 Thread Bo Shen
As the sama5d3 dtsi file in go into mainline before sound driver, and, the sound compatible string is changed when go into mainline. Add this patch to correct the sound compatible string. Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/8] ARM: at91: sama5d3: enable sound support

2014-03-17 Thread Bo Shen
This patch add sound support on sama5d3xek board. This patch series based on the following patch set: clk: at91: better support for the PCKs http://comments.gmane.org/gmane.linux.kernel/1664477 Bo Shen (5): ARM: at91: sama5d3: add DMA property for SSC devices ARM: at91: sama5d3: disable

[PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread Bo Shen
From: Boris BREZILLON Signed-off-by: Boris BREZILLON Signed-off-by: Bo Shen --- Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound

[PATCH 1/8] ARM: at91: sama5d3: add DMA property for SSC devices

2014-03-17 Thread Bo Shen
Add DMA property for SSC devices on SAMA5D3 SoC. Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index 3d5faf8..3e753e1 100644 --- a/arch/arm/boot/dts/sama5d3

[PATCH 2/8] ARM: at91: sama5d3: disable sound by default

2014-03-17 Thread Bo Shen
Make the sound device in disabled status by default Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts/sama5d3xmb.dtsi index dba739b..2938605 100644 --- a/arch/arm/boot/dts

[PATCH 4/8] ARM: at91: sama5d3: add the missing property

2014-03-17 Thread Bo Shen
If without the MICBIAS routing, the record don't work. Add the missing MICBIAS routing to let record from mic working. Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3xmb.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts

[PATCH 5/8] ARM: at91: sama5d3: clock for ssc from rk pin

2014-03-17 Thread Bo Shen
According to hardware design the clock for SSC device is from rk pin. Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3xmb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts/sama5d3xmb.dtsi index 0600153..306eef0 100644

[PATCH 8/8] ARM: at91/dt: add clock properties to the wm8904 codec node

2014-03-17 Thread Bo Shen
From: Boris BREZILLON Signed-off-by: Boris BREZILLON Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts/sama5d3xmb.dtsi index 306eef0..d9bb413 100644 --- a/arch/arm/boot/dts

Re: [PATCH 8/8] ARM: at91/dt: add clock properties to the wm8904 codec node

2014-03-17 Thread Bo Shen
On 03/17/2014 05:45 PM, Bo Shen wrote: From: Boris BREZILLON Signed-off-by: Boris BREZILLON Signed-off-by: Bo Shen Oh, sorry for my SOB. Please remove it when apply. --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts

Re: [PATCH 6/8] ASoC: atmel: support CCF based clks

2014-03-17 Thread Bo Shen
On 03/17/2014 05:45 PM, Bo Shen wrote: From: Boris BREZILLON Provide dev to clk_get function if we're using CCF based clks. CCF based prog clks support automatic parent selection when asking for a specific rate: remove the clk32k clk retrieval if we're using these clks. Signed-off-by: Boris

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread Bo Shen
On 03/17/2014 05:45 PM, Bo Shen wrote: From: Boris BREZILLON Signed-off-by: Boris BREZILLON Signed-off-by: Bo Shen Oh, sorry for my SOB. Please remove it when apply. --- Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 6/8] ASoC: atmel: support CCF based clks

2014-03-17 Thread Bo Shen
to devm manage function] Signed-off-by: Bo Shen Signed-off-by: Bo Shen --- sound/soc/atmel/atmel_wm8904.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel/atmel_wm8904.c index b4e3690..a797d33 100644

[PATCH 6/8] ASoC: atmel: support CCF based clks

2014-03-17 Thread Bo Shen
...@overkiz.com [voice.s...@atmel.com: switch to devm manage function] Signed-off-by: Bo Shen voice.s...@atmel.com Signed-off-by: Bo Shen voice.s...@atmel.com --- sound/soc/atmel/atmel_wm8904.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/sound

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread Bo Shen
On 03/17/2014 05:45 PM, Bo Shen wrote: From: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Bo Shen voice.s...@atmel.com Oh, sorry for my SOB. Please remove it when apply. --- Documentation/devicetree/bindings/sound/atmel

Re: [PATCH 6/8] ASoC: atmel: support CCF based clks

2014-03-17 Thread Bo Shen
On 03/17/2014 05:45 PM, Bo Shen wrote: From: Boris BREZILLON b.brezil...@overkiz.com Provide dev to clk_get function if we're using CCF based clks. CCF based prog clks support automatic parent selection when asking for a specific rate: remove the clk32k clk retrieval if we're using these clks

Re: [PATCH 8/8] ARM: at91/dt: add clock properties to the wm8904 codec node

2014-03-17 Thread Bo Shen
On 03/17/2014 05:45 PM, Bo Shen wrote: From: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Bo Shen voice.s...@atmel.com Oh, sorry for my SOB. Please remove it when apply. --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 ++ 1 file

[PATCH 8/8] ARM: at91/dt: add clock properties to the wm8904 codec node

2014-03-17 Thread Bo Shen
From: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts

[PATCH 4/8] ARM: at91: sama5d3: add the missing property

2014-03-17 Thread Bo Shen
If without the MICBIAS routing, the record don't work. Add the missing MICBIAS routing to let record from mic working. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3xmb.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch

[PATCH 5/8] ARM: at91: sama5d3: clock for ssc from rk pin

2014-03-17 Thread Bo Shen
According to hardware design the clock for SSC device is from rk pin. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3xmb.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts/sama5d3xmb.dtsi index 0600153

[PATCH 2/8] ARM: at91: sama5d3: disable sound by default

2014-03-17 Thread Bo Shen
Make the sound device in disabled status by default Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts/sama5d3xmb.dtsi index dba739b..2938605 100644

[PATCH 0/8] ARM: at91: sama5d3: enable sound support

2014-03-17 Thread Bo Shen
This patch add sound support on sama5d3xek board. This patch series based on the following patch set: clk: at91: better support for the PCKs http://comments.gmane.org/gmane.linux.kernel/1664477 Bo Shen (5): ARM: at91: sama5d3: add DMA property for SSC devices ARM: at91: sama5d3: disable

[PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread Bo Shen
From: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Bo Shen voice.s...@atmel.com --- Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 1/8] ARM: at91: sama5d3: add DMA property for SSC devices

2014-03-17 Thread Bo Shen
Add DMA property for SSC devices on SAMA5D3 SoC. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index 3d5faf8..3e753e1 100644 --- a/arch/arm

[PATCH 3/8] ARM: at91: sama5d3: correct the sound compatible string

2014-03-17 Thread Bo Shen
As the sama5d3 dtsi file in go into mainline before sound driver, and, the sound compatible string is changed when go into mainline. Add this patch to correct the sound compatible string. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3xmb.dtsi | 2 +- 1 file changed, 1

[PATCH v2 1/2] USB: at91: fix the number of endpoint parameter

2014-02-18 Thread Bo Shen
off-by: Bo Shen --- Changes in v2: - Make the commit message more clearer. drivers/usb/gadget/atmel_usba_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 2cb52e0..7e67a81 100644 --- a/drivers/

[PATCH v2 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-18 Thread Bo Shen
for DMA channels. And the USBA_NR_ENDPOINS is not used anymore, remove it at the same time. Signed-off-by: Bo Shen --- Changes in v2: - Make the commit message more clearer. drivers/usb/gadget/atmel_usba_udc.c | 2 +- drivers/usb/gadget/atmel_usba_udc.h | 2 +- 2 files changed, 2 insertions

Re: [PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-18 Thread Bo Shen
On 02/19/2014 09:22 AM, Felipe Balbi wrote: On Wed, Feb 19, 2014 at 09:14:58AM +0800, Bo Shen wrote: Hi Felipe Balbi, On 02/19/2014 12:19 AM, Felipe Balbi wrote: On Fri, Jan 17, 2014 at 10:59:25AM +0800, Bo Shen wrote: When the SoC is earlier than sama5d3 SoC, which have the same number

Re: [PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-18 Thread Bo Shen
Hi Felipe Balbi, On 02/19/2014 12:19 AM, Felipe Balbi wrote: On Fri, Jan 17, 2014 at 10:59:25AM +0800, Bo Shen wrote: When the SoC is earlier than sama5d3 SoC, which have the same number endpoints and DMAs. However for sama5d3 SoC, it has different number for endpoints and DMAs. So, define

Re: [PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-18 Thread Bo Shen
Hi Felipe Balbi, On 02/19/2014 12:19 AM, Felipe Balbi wrote: On Fri, Jan 17, 2014 at 10:59:25AM +0800, Bo Shen wrote: When the SoC is earlier than sama5d3 SoC, which have the same number endpoints and DMAs. However for sama5d3 SoC, it has different number for endpoints and DMAs. So, define

Re: [PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-18 Thread Bo Shen
On 02/19/2014 09:22 AM, Felipe Balbi wrote: On Wed, Feb 19, 2014 at 09:14:58AM +0800, Bo Shen wrote: Hi Felipe Balbi, On 02/19/2014 12:19 AM, Felipe Balbi wrote: On Fri, Jan 17, 2014 at 10:59:25AM +0800, Bo Shen wrote: When the SoC is earlier than sama5d3 SoC, which have the same number

[PATCH v2 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-02-18 Thread Bo Shen
for DMA channels. And the USBA_NR_ENDPOINS is not used anymore, remove it at the same time. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - Make the commit message more clearer. drivers/usb/gadget/atmel_usba_udc.c | 2 +- drivers/usb/gadget/atmel_usba_udc.h | 2 +- 2 files

[PATCH v2 1/2] USB: at91: fix the number of endpoint parameter

2014-02-18 Thread Bo Shen
-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - Make the commit message more clearer. drivers/usb/gadget/atmel_usba_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 2cb52e0..7e67a81

[PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock

2014-02-09 Thread Bo Shen
t;_" in binding document Bo Shen (2): ASoC: atmel_ssc_dai: make option to choose clock Binding: atmel-ssc: add option to choose clock Documentation/devicetree/bindings/misc/atmel-ssc.txt | 8 drivers/misc/atmel-ssc.c | 6 ++ inclu

[PATCH v3 1/2] ASoC: atmel_ssc_dai: make option to choose clock

2014-02-09 Thread Bo Shen
When SSC works in slave mode, according to the hardware design, the clock can get from TK pin, also can get from RK pin. So, add one parameter to choose where the clock from. Signed-off-by: Bo Shen --- Changes in v3: - New, move clk-from-rk-pin property from card to ssc device drivers/misc

[PATCH v3 2/2] Binding: atmel-ssc: add option to choose clock

2014-02-09 Thread Bo Shen
Add the option to choose clock on which pin input to SSC (as slave). Default is on TK pin to SSC, add "atmel,clk-from-rk-pin" option to specify the clock is on RK pin to SSC. Signed-off-by: Bo Shen --- Changes in v3: - None Series-changes: 2 - using "-" replace &qu

[PATCH v3 2/2] Binding: atmel-ssc: add option to choose clock

2014-02-09 Thread Bo Shen
Add the option to choose clock on which pin input to SSC (as slave). Default is on TK pin to SSC, add atmel,clk-from-rk-pin option to specify the clock is on RK pin to SSC. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v3: - None Series-changes: 2 - using - replace _ in binding

[PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock

2014-02-09 Thread Bo Shen
document Bo Shen (2): ASoC: atmel_ssc_dai: make option to choose clock Binding: atmel-ssc: add option to choose clock Documentation/devicetree/bindings/misc/atmel-ssc.txt | 8 drivers/misc/atmel-ssc.c | 6 ++ include/linux/atmel-ssc.h

[PATCH v3 1/2] ASoC: atmel_ssc_dai: make option to choose clock

2014-02-09 Thread Bo Shen
When SSC works in slave mode, according to the hardware design, the clock can get from TK pin, also can get from RK pin. So, add one parameter to choose where the clock from. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v3: - New, move clk-from-rk-pin property from card to ssc

[PATCH v2 2/3] ASoC: atmel_wm8904: make it available to choose clock

2014-01-26 Thread Bo Shen
Make it available to choose the clock from TK pin or RK pin. This is hardware design decided. Signed-off-by: Bo Shen --- Changes in v2: None sound/soc/atmel/atmel_wm8904.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel

[PATCH v2 1/3] ASoC: atmel_ssc_dai: make option to choose clock

2014-01-26 Thread Bo Shen
When SSC works in slave mode, according to the hardware design, the clock can get from TK pin, also can get from RK pin. So, add one parameter to choose where the clock from. Signed-off-by: Bo Shen --- Changes in v2: None sound/soc/atmel/atmel_ssc_dai.c | 16 sound/soc/atmel

[PATCH v2 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-26 Thread Bo Shen
Add the option to choose clock on which pin input to SSC (as slave). Default is on TK pin to SSC, add "atmel,clk-from-rk-pin" option to specify the clock is on RK pin to SSC. Signed-off-by: Bo Shen --- Changes in v2: - using "-" replace "_" in binding docum

[PATCH v2 0/3] ASoC: atmel_ssc_dai: add option to choose clock

2014-01-26 Thread Bo Shen
When SSC work in slave mode, the clock can come from TK pin and also can come from RK pin, this is hardware design decided. So, make it available to choose where the clock from. Changes in v2: - using "-" replace "_" in binding document Bo Shen (3): ASoC: atmel_ssc_dai: m

[PATCH v2 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-26 Thread Bo Shen
Add the option to choose clock on which pin input to SSC (as slave). Default is on TK pin to SSC, add atmel,clk-from-rk-pin option to specify the clock is on RK pin to SSC. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: - using - replace _ in binding document Documentation

[PATCH v2 0/3] ASoC: atmel_ssc_dai: add option to choose clock

2014-01-26 Thread Bo Shen
When SSC work in slave mode, the clock can come from TK pin and also can come from RK pin, this is hardware design decided. So, make it available to choose where the clock from. Changes in v2: - using - replace _ in binding document Bo Shen (3): ASoC: atmel_ssc_dai: make option to choose

[PATCH v2 1/3] ASoC: atmel_ssc_dai: make option to choose clock

2014-01-26 Thread Bo Shen
When SSC works in slave mode, according to the hardware design, the clock can get from TK pin, also can get from RK pin. So, add one parameter to choose where the clock from. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None sound/soc/atmel/atmel_ssc_dai.c | 16

[PATCH v2 2/3] ASoC: atmel_wm8904: make it available to choose clock

2014-01-26 Thread Bo Shen
Make it available to choose the clock from TK pin or RK pin. This is hardware design decided. Signed-off-by: Bo Shen voice.s...@atmel.com --- Changes in v2: None sound/soc/atmel/atmel_wm8904.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-21 Thread Bo Shen
Hi J, On 01/21/2014 01:49 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 11:39 Mon 20 Jan , Bo Shen wrote: Hi J, On 01/18/2014 01:20 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:59 Fri 17 Jan , Bo Shen wrote: In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-21 Thread Bo Shen
Hi J, On 01/21/2014 01:49 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 11:39 Mon 20 Jan , Bo Shen wrote: Hi J, On 01/18/2014 01:20 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:59 Fri 17 Jan , Bo Shen wrote: In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-19 Thread Bo Shen
Hi J, On 01/18/2014 01:20 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:59 Fri 17 Jan , Bo Shen wrote: In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS is only 7. So, fix it for sama5d3 SoC using the udc->num_ep. Signed-off-by: Bo Shen --- drivers/usb/gad

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-19 Thread Bo Shen
Hi J, On 01/18/2014 01:20 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:59 Fri 17 Jan , Bo Shen wrote: In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS is only 7. So, fix it for sama5d3 SoC using the udc-num_ep. Signed-off-by: Bo Shen voice.s...@atmel.com

[PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-16 Thread Bo Shen
In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS is only 7. So, fix it for sama5d3 SoC using the udc->num_ep. Signed-off-by: Bo Shen --- drivers/usb/gadget/atmel_usba_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/atmel_usba_ud

[PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-01-16 Thread Bo Shen
When the SoC is earlier than sama5d3 SoC, which have the same number endpoints and DMAs. However for sama5d3 SoC, it has different number for endpoints and DMAs. So, define USBA_NR_DMAs for DMA channels Signed-off-by: Bo Shen --- drivers/usb/gadget/atmel_usba_udc.c | 2 +- drivers/usb/gadget

[PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-01-16 Thread Bo Shen
When the SoC is earlier than sama5d3 SoC, which have the same number endpoints and DMAs. However for sama5d3 SoC, it has different number for endpoints and DMAs. So, define USBA_NR_DMAs for DMA channels Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/usb/gadget/atmel_usba_udc.c | 2

[PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-16 Thread Bo Shen
In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS is only 7. So, fix it for sama5d3 SoC using the udc-num_ep. Signed-off-by: Bo Shen voice.s...@atmel.com --- drivers/usb/gadget/atmel_usba_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget

Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-15 Thread Bo Shen
Hi Nicolas, On 01/16/2014 01:17 AM, Nicolas Ferre wrote: On 14/01/2014 04:25, Bo Shen : Add the option to choose clock output on which pin connect to SSC. Default is on TK pin to SSC, add clk_from_rk_pin option, the clock Please do not use "_" in DT properties. It is a common patt

Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-15 Thread Bo Shen
Hi J, On 01/15/2014 07:54 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 11:25 Tue 14 Jan , Bo Shen wrote: Add the option to choose clock output on which pin connect to SSC. Default is on TK pin to SSC, add clk_from_rk_pin option, the clock is on RK pin to SSC. Signed-off-by: Bo Shen

Re: [PATCH 2/3] ASoC: atmel_wm8904: make it available to choose clock

2014-01-15 Thread Bo Shen
Hi Mark, On 01/15/2014 04:36 AM, Mark Brown wrote: On Tue, Jan 14, 2014 at 11:25:55AM +0800, Bo Shen wrote: Make it available to choose the clock from TK pin or RK pin. This is hardware design decided. --- a/sound/soc/atmel/atmel_wm8904.c +++ b/sound/soc/atmel/atmel_wm8904.c @@ -108,6

Re: [PATCH 2/3] ASoC: atmel_wm8904: make it available to choose clock

2014-01-15 Thread Bo Shen
Hi Mark, On 01/15/2014 04:36 AM, Mark Brown wrote: On Tue, Jan 14, 2014 at 11:25:55AM +0800, Bo Shen wrote: Make it available to choose the clock from TK pin or RK pin. This is hardware design decided. --- a/sound/soc/atmel/atmel_wm8904.c +++ b/sound/soc/atmel/atmel_wm8904.c @@ -108,6

Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-15 Thread Bo Shen
Hi J, On 01/15/2014 07:54 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 11:25 Tue 14 Jan , Bo Shen wrote: Add the option to choose clock output on which pin connect to SSC. Default is on TK pin to SSC, add clk_from_rk_pin option, the clock is on RK pin to SSC. Signed-off-by: Bo Shen

Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-15 Thread Bo Shen
Hi Nicolas, On 01/16/2014 01:17 AM, Nicolas Ferre wrote: On 14/01/2014 04:25, Bo Shen : Add the option to choose clock output on which pin connect to SSC. Default is on TK pin to SSC, add clk_from_rk_pin option, the clock Please do not use _ in DT properties. It is a common pattern to use

[PATCH 0/3] ASoC: atmel_ssc_dai: add option to choose clock

2014-01-13 Thread Bo Shen
When SSC work in slave mode, the clock can come from TK pin and also can come from RK pin, this is hardware design decided. So, make it available to choose where the clock from. Bo Shen (3): ASoC: atmel_ssc_dai: make option to choose clock ASoC: atmel_wm8904: make it available to choose

[PATCH 2/3] ASoC: atmel_wm8904: make it available to choose clock

2014-01-13 Thread Bo Shen
Make it available to choose the clock from TK pin or RK pin. This is hardware design decided. Signed-off-by: Bo Shen --- sound/soc/atmel/atmel_wm8904.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel/atmel_wm8904.c index b4e3690

[PATCH 1/3] ASoC: atmel_ssc_dai: make option to choose clock

2014-01-13 Thread Bo Shen
When SSC works in slave mode, according to the hardware design, the clock can get from TK pin, also can get from RK pin. So, add one parameter to choose where the clock from. Signed-off-by: Bo Shen --- sound/soc/atmel/atmel_ssc_dai.c | 16 sound/soc/atmel/atmel_ssc_dai.h | 1

[PATCH 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-13 Thread Bo Shen
Add the option to choose clock output on which pin connect to SSC. Default is on TK pin to SSC, add clk_from_rk_pin option, the clock is on RK pin to SSC. Signed-off-by: Bo Shen --- Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 3/3] Binding: atmel-wm8904: add option to choose clock

2014-01-13 Thread Bo Shen
Add the option to choose clock output on which pin connect to SSC. Default is on TK pin to SSC, add clk_from_rk_pin option, the clock is on RK pin to SSC. Signed-off-by: Bo Shen voice.s...@atmel.com --- Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++ 1 file changed, 2

[PATCH 2/3] ASoC: atmel_wm8904: make it available to choose clock

2014-01-13 Thread Bo Shen
Make it available to choose the clock from TK pin or RK pin. This is hardware design decided. Signed-off-by: Bo Shen voice.s...@atmel.com --- sound/soc/atmel/atmel_wm8904.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/atmel/atmel_wm8904.c b/sound/soc/atmel

[PATCH 1/3] ASoC: atmel_ssc_dai: make option to choose clock

2014-01-13 Thread Bo Shen
When SSC works in slave mode, according to the hardware design, the clock can get from TK pin, also can get from RK pin. So, add one parameter to choose where the clock from. Signed-off-by: Bo Shen voice.s...@atmel.com --- sound/soc/atmel/atmel_ssc_dai.c | 16 sound/soc/atmel

[PATCH 0/3] ASoC: atmel_ssc_dai: add option to choose clock

2014-01-13 Thread Bo Shen
When SSC work in slave mode, the clock can come from TK pin and also can come from RK pin, this is hardware design decided. So, make it available to choose where the clock from. Bo Shen (3): ASoC: atmel_ssc_dai: make option to choose clock ASoC: atmel_wm8904: make it available to choose

Re: [PATCH v9 0/2] PWM: pwm-atmel: add PWM controller driver

2013-12-17 Thread Bo Shen
Hi Thierry, On 12/17/2013 06:30 PM, Thierry Reding wrote: On Fri, Dec 13, 2013 at 02:41:48PM +0800, Bo Shen wrote: This patch series add Atmel PWM controller driver support. Changes in v9: - Address the comments from Thierry Reding Hi, I've pushed a slightly modified version

Re: [PATCH v9 0/2] PWM: pwm-atmel: add PWM controller driver

2013-12-17 Thread Bo Shen
Hi Thierry, On 12/17/2013 06:30 PM, Thierry Reding wrote: On Fri, Dec 13, 2013 at 02:41:48PM +0800, Bo Shen wrote: This patch series add Atmel PWM controller driver support. Changes in v9: - Address the comments from Thierry Reding Hi, I've pushed a slightly modified version

[PATCH v9 0/2] PWM: pwm-atmel: add PWM controller driver

2013-12-12 Thread Bo Shen
ss the comments from Thierry Reding Bo Shen (2): PWM: atmel-pwm: add PWM controller driver PWM: atmel-pwm: add device tree binding document .../devicetree/bindings/pwm/atmel-pwm.txt | 41 ++ drivers/pwm/Kconfig|9 +

[PATCH v9 2/2] PWM: atmel-pwm: add device tree binding document

2013-12-12 Thread Bo Shen
Add atmel pwm driver device tree binding document Signed-off-by: Bo Shen Acked-by: Alexandre Belloni Acked-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Kumar Gala --- .../devicetree/bindings/pwm/atmel-pwm.txt | 41 1 file changed, 41 insertions(+) create

[PATCH v9 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-12 Thread Bo Shen
Add Atmel PWM controller driver based on PWM framework. This is the basic function implementation of Atmel PWM controller. It can work with PWM based led and backlight. Signed-off-by: Bo Shen Acked-by: Alexandre Belloni Acked-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/pwm/Kconfig

[PATCH v9 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-12 Thread Bo Shen
Add Atmel PWM controller driver based on PWM framework. This is the basic function implementation of Atmel PWM controller. It can work with PWM based led and backlight. Signed-off-by: Bo Shen voice.s...@atmel.com Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Jean

[PATCH v9 2/2] PWM: atmel-pwm: add device tree binding document

2013-12-12 Thread Bo Shen
Add atmel pwm driver device tree binding document Signed-off-by: Bo Shen voice.s...@atmel.com Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Kumar Gala ga...@codeaurora.org --- .../devicetree/bindings

[PATCH v9 0/2] PWM: pwm-atmel: add PWM controller driver

2013-12-12 Thread Bo Shen
Reding Bo Shen (2): PWM: atmel-pwm: add PWM controller driver PWM: atmel-pwm: add device tree binding document .../devicetree/bindings/pwm/atmel-pwm.txt | 41 ++ drivers/pwm/Kconfig|9 + drivers/pwm/Makefile |1

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-09 Thread Bo Shen
Hi Thierry, On 12/03/2013 11:09 AM, Bo Shen wrote: +atmel_pwm->chip.of_xlate = of_pwm_xlate_with_flags; +atmel_pwm->chip.of_pwm_n_cells = 3; +atmel_pwm->chip.base = -1; +} else { +atmel_pwm->chip.base = pdev->id; That's not correct. The chip

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-09 Thread Bo Shen
Hi Thierry, On 12/03/2013 11:09 AM, Bo Shen wrote: +atmel_pwm-chip.of_xlate = of_pwm_xlate_with_flags; +atmel_pwm-chip.of_pwm_n_cells = 3; +atmel_pwm-chip.base = -1; +} else { +atmel_pwm-chip.base = pdev-id; That's not correct. The chip cannot be tied

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-04 Thread Bo Shen
Hi Thierry, On 12/04/2013 06:03 PM, Thierry Reding wrote: On Wed, Dec 04, 2013 at 10:59:46AM +0800, Bo Shen wrote: Hi Thierry, On 12/03/2013 05:43 PM, Thierry Reding wrote: On Tue, Dec 03, 2013 at 11:09:12AM +0800, Bo Shen wrote: On 12/02/2013 06:59 PM, Thierry Reding wrote: On Mon, Nov 18

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-04 Thread Bo Shen
Hi Thierry, On 12/04/2013 06:03 PM, Thierry Reding wrote: On Wed, Dec 04, 2013 at 10:59:46AM +0800, Bo Shen wrote: Hi Thierry, On 12/03/2013 05:43 PM, Thierry Reding wrote: On Tue, Dec 03, 2013 at 11:09:12AM +0800, Bo Shen wrote: On 12/02/2013 06:59 PM, Thierry Reding wrote: On Mon, Nov 18

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-03 Thread Bo Shen
Hi Thierry, On 12/03/2013 05:43 PM, Thierry Reding wrote: On Tue, Dec 03, 2013 at 11:09:12AM +0800, Bo Shen wrote: On 12/02/2013 06:59 PM, Thierry Reding wrote: On Mon, Nov 18, 2013 at 05:13:21PM +0800, Bo Shen wrote: [...] diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-03 Thread Bo Shen
Hi Thierry, On 12/03/2013 05:43 PM, Thierry Reding wrote: On Tue, Dec 03, 2013 at 11:09:12AM +0800, Bo Shen wrote: On 12/02/2013 06:59 PM, Thierry Reding wrote: On Mon, Nov 18, 2013 at 05:13:21PM +0800, Bo Shen wrote: [...] diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-02 Thread Bo Shen
Hi Thierry, On 12/02/2013 06:59 PM, Thierry Reding wrote: On Mon, Nov 18, 2013 at 05:13:21PM +0800, Bo Shen wrote: [...] diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c [...] +/* Max value for duty and period Block comments should be of this form: /* * Max

[PATCH] arm: at91: sama5d3: enable qt1070 as a wakeup source

2013-12-02 Thread Bo Shen
Enable qt1070 keyboard as a wakeup source on sama5d3xek board. Signed-off-by: Bo Shen --- arch/arm/boot/dts/sama5d3xdm.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sama5d3xdm.dtsi b/arch/arm/boot/dts/sama5d3xdm.dtsi index 1c296d6..f9bdde5 100644 --- a/arch/arm

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-02 Thread Bo Shen
Hi Thierry, On 11/18/2013 05:13 PM, Bo Shen wrote: Add Atmel PWM controller driver based on PWM framework. This is the basic function implementation of Atmel PWM controller. It can work with PWM based led and backlight. Signed-off-by: Bo Shen Acked-by: Alexandre Belloni Acked-by: Jean

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-02 Thread Bo Shen
Hi Thierry, On 11/18/2013 05:13 PM, Bo Shen wrote: Add Atmel PWM controller driver based on PWM framework. This is the basic function implementation of Atmel PWM controller. It can work with PWM based led and backlight. Signed-off-by: Bo Shen voice.s...@atmel.com Acked-by: Alexandre Belloni

[PATCH] arm: at91: sama5d3: enable qt1070 as a wakeup source

2013-12-02 Thread Bo Shen
Enable qt1070 keyboard as a wakeup source on sama5d3xek board. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boot/dts/sama5d3xdm.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sama5d3xdm.dtsi b/arch/arm/boot/dts/sama5d3xdm.dtsi index 1c296d6..f9bdde5

Re: [PATCH v8 1/2] PWM: atmel-pwm: add PWM controller driver

2013-12-02 Thread Bo Shen
Hi Thierry, On 12/02/2013 06:59 PM, Thierry Reding wrote: On Mon, Nov 18, 2013 at 05:13:21PM +0800, Bo Shen wrote: [...] diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c [...] +/* Max value for duty and period Block comments should be of this form: /* * Max

<    1   2   3   4   5   >