* [PATCH v2 00/12] Add the family patches to support for kylin board
@ 2016-01-07 8:25 Caesar Wang
2016-01-07 8:25 ` [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out Caesar Wang
2016-01-07 10:44 ` [PATCH v2 00/12] Add the family patches to support for kylin board Heiko Stuebner
0 siblings, 2 replies; 8+ messages in thread
From: Caesar Wang @ 2016-01-07 8:25 UTC (permalink / raw)
To: Heiko Stuebner, Ulf Hansson
Cc: linux-rockchip, leecam, leozwang, keescook, Caesar Wang,
Andreas Fenkart, Kumar Gala, Ian Campbell, Rob Herring, NeilBrown,
linux-clk, Srinivas Kandagatla, Javier Martinez Canillas,
Pawel Moll, devicetree, Michael Turquette, Stephen Boyd,
Russell King, linux-arm-kernel, linux-mmc, linux-kernel,
Alexandre Courbot, Mark Rutland
Hi all,
Happy new year! :)
Let's go on working for happy.
This series patches are based on kernel version 4.4.0-rc8+
(Linux version 4.4.0-rc8+ (wxt@ubuntu)...#142 SMP Thu Jan 7 12:38:40 CST 2016)
This series pacthes are verified on the following github:
https://github.com/Caesar-github/rockchip/commits/kylin-develop4.4
This series has 12 patches: (12--->1)
bbd1a01 ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
fb8c1fd ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
1aeb49d ARM: dts: rockchip: add the sdmmc for kylin board
3e19128 ARM: dts: rockchip: enable the uart0 for kylin board
e7de154 ARM: dts: rockchip: add the wifi/bt regulator for kylin board
8699698 ARM: dts: rockchip: enable the high speed on sdio for kylin board
21eded4 mmc: pwrseq: add support for power-on sequencing through DT
cdf3a7e mmc: pwrseq: Document optional exteral vcc for the simple power sequence
131c249 clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
b7ff8e1 ARM: dts: rockchip: override the clocks in i2s for kylin board
5f56af4 ARM: dts: rockchip: add the sound codec for kylin board
914d9c0 ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
..
This series patches have the following decriptions:
PATCH[1/12-4/12]:====> Support rt5616 codec for kylin board
914d9c0 ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
5f56af4 ARM: dts: rockchip: add the sound codec for kylin board
b7ff8e1 ARM: dts: rockchip: override the clocks in i2s for kylin board
131c249 clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
This patches is working for codec rt5616 on kylin board. (RK3036 SoCs)
That's needed the following rt5616 driver from Mark Brown Branch.
(cherry picked from git.kernel.org broonie/sound.git for-next)
cf94b7a UPSTREAM: ASoC: rt5616: rename some alsa control names
86f561d UPSTREAM: ASoC: rt5616: add devicetree document for rt5616
0e0f5f8 UPSTREAM: ASoC: rt5616: add an of_match table
263a330 UPSTREAM: ASoC: rt5616: Return error if device ID mismatch
0094139 UPSTREAM: ASoC: rt5616: add rt5616 codec driver
Notes:
I'm run it with the ubuntu 15.04 to set the configure.
./amixer "HP Playback Switch" 1
./amixer "HP Playback Volume" 20
./amixer "HPO MIX DAC1 Switch" 1
./amixer "OUT MIXR DAC R1 Switch" 1
./amixer "OUT MIXL DAC L1 Switch" 1
./amixer "Stereo DAC MIXR DAC R1 Switch" 1
./amixer "Stereo DAC MIXL DAC L1 Switch" 1
root@linaro-alip:/media/aplay# ./aplay pcm.wav
Playing sample: 2 ch, 48000 hz, 16 bit
..
That can be normal playing the music.
----
PATCH[5/12-9/12]: ====> Support wifi/bt module for kylin board
cdf3a7e mmc: pwrseq: Document optional exteral vcc for the simple power sequence
21eded4 mmc: pwrseq: add support for power-on sequencing through DT
8699698 ARM: dts: rockchip: enable the high speed on sdio for kylin board
e7de154 ARM: dts: rockchip: add the wifi/bt regulator for kylin board
3e19128 ARM: dts: rockchip: enable the uart0 for kylin board
The wifi/bt driver hasn't land in mainline, the driver is in here:
https://github.com/Caesar-github/rockchip/commit/1912ef4c0e358677904b0a0bbb83f9745066f0ec
wpa_supplicant -Dnl80211 -c /etc/wifi/wpa_supplicant.conf -i wlan0 -B
wpa_cli add_network
wpa_cli set_network 1 ssid \"wxt\"
wpa_cli set_network 1 psk \"123456789\"
wpa_cli select_network 1
wpa_cli save_config
ifconfig wlan0 192.168.1.105
route add default gw 192.168.1.1
root@linaro-alip:/# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=6.83 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=184 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=9.21 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=6.84 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=11.2 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=9.24 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=12.9 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=7.02 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=24.3 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=13.6 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=3.87 m
...
The wifi throughput:
iperf -s -i 1
...
[ 4] 116.0-117.0 sec 2.88 MBytes 24.1 Mbits/sec
[ 4] 117.0-118.0 sec 2.99 MBytes 25.0 Mbits/sec
[ 4] 118.0-119.0 sec 3.01 MBytes 25.2 Mbits/sec
[ 4] 119.0-120.0 sec 2.89 MBytes 24.2 Mbits/sec
[ 4] 0.0-120.4 sec 332 MBytes 23.1 Mbits/sec
----
PATCH[10/12]: ====> sdmmc patch for kylin board
ARM: dts: rockchip: add the sdmmc for kylin board
You should mark it "oaky" if you want to use the sdmmc.
This patch default is disabing the sdmmc since the sdmmc and
uart2(debug port) is reusing pin.
----
PATCH[11/12]: ====> hdmi/lcdc diaply patch for rk3036 dts
ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
We can add this patch to support it since the Mark Yao has land
your vop support.
https://github.com/markyzq/kernel-drm-rockchip/commits/drm-rockchip-next-2015-12-28
----
PATCH[12/12]:====> DMA Patchs
ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
In order to be better read/write for emmc.
This patch is based on the following:(Fix broken DMAFLUSHP on Rockchips platform)
3055695 FROMLIST: DMA: dmaengine: expose max burst capability to clientmZ
(am from https://patchwork.kernel.org/patch/7399361/)
ed56bee FROMLIST: DMA: pl330: add quirk for broken no flushp
(am from https://patchwork.kernel.org/patch/7399371/)
0c43bc3 FROMLIST: Documentation: arm-pl330: add description of arm, pl330-broken-no-flushp
(am from https://patchwork.kernel.org/patch/7399371/)
623a699 FROMLIST: DMA: pl330: support burst mode for dev-to-mem and mem-to-dev transmit
(am from https://patchwork.kernel.org/patch/7399381/)
----
Changes in v2:
- modify the commit.
- fix the mclk-fs as the 256.
- This fix inmmc-power-sequences, as Heiko comment on
https://patchwork.kernel.org/patch/7903161/
- As Heiko comment, modify it to fit the simple-mmc-sequence.
- Add the uart0 commit content.
Caesar Wang (12):
ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
ARM: dts: rockchip: add the sound codec for kylin board
ARM: dts: rockchip: override the clocks in i2s for kylin board
clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for
sclk_i2s_out
mmc: pwrseq: Document optional exteral vcc for the simple power
sequence
mmc: pwrseq: add support for power-on sequencing through DT
ARM: dts: rockchip: enable the high speed on sdio for kylin board
ARM: dts: rockchip: add the wifi/bt regulator for kylin board
ARM: dts: rockchip: enable the uart0 for kylin board
ARM: dts: rockchip: add the sdmmc for kylin board
ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
.../devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 9 ++
arch/arm/boot/dts/rk3036-kylin.dts | 119 +++++++++++++++++++++
arch/arm/boot/dts/rk3036.dtsi | 74 +++++++++++--
drivers/clk/rockchip/clk-rk3036.c | 2 +-
drivers/mmc/core/pwrseq_simple.c | 16 +++
5 files changed, 213 insertions(+), 7 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
2016-01-07 8:25 [PATCH v2 00/12] Add the family patches to support for kylin board Caesar Wang
@ 2016-01-07 8:25 ` Caesar Wang
2016-01-07 10:05 ` Heiko Stuebner
2016-01-07 10:44 ` [PATCH v2 00/12] Add the family patches to support for kylin board Heiko Stuebner
1 sibling, 1 reply; 8+ messages in thread
From: Caesar Wang @ 2016-01-07 8:25 UTC (permalink / raw)
To: Heiko Stuebner, Ulf Hansson
Cc: linux-rockchip, leecam, leozwang, keescook, Caesar Wang,
Michael Turquette, Stephen Boyd, linux-kernel, linux-clk,
linux-arm-kernel
SCLk_I2S_OUT is the noc bus clock for i2s module, this clock is used by
extra codecs.
Due to it shouldn't belong to any driver, but we need it enabled,
so just mark it as the CLK_IGNORE_UNUSED flag.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---
Changes in v2: None
drivers/clk/rockchip/clk-rk3036.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/rockchip/clk-rk3036.c b/drivers/clk/rockchip/clk-rk3036.c
index 34c78f4..c33ed3c 100644
--- a/drivers/clk/rockchip/clk-rk3036.c
+++ b/drivers/clk/rockchip/clk-rk3036.c
@@ -310,7 +310,7 @@ static struct rockchip_clk_branch rk3036_clk_branches[] __initdata = {
RK2928_CLKSEL_CON(7), 0,
RK2928_CLKGATE_CON(0), 10, GFLAGS,
&rk3036_i2s_fracmux),
- COMPOSITE_NODIV(SCLK_I2S_OUT, "i2s_clkout", mux_i2s_clkout_p, 0,
+ COMPOSITE_NODIV(SCLK_I2S_OUT, "i2s_clkout", mux_i2s_clkout_p, CLK_IGNORE_UNUSED,
RK2928_CLKSEL_CON(3), 12, 1, MFLAGS,
RK2928_CLKGATE_CON(0), 13, GFLAGS),
GATE(SCLK_I2S, "sclk_i2s", "i2s_pre", CLK_SET_RATE_PARENT,
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
2016-01-07 8:25 ` [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out Caesar Wang
@ 2016-01-07 10:05 ` Heiko Stuebner
2016-01-08 9:26 ` Caesar Wang
0 siblings, 1 reply; 8+ messages in thread
From: Heiko Stuebner @ 2016-01-07 10:05 UTC (permalink / raw)
To: Caesar Wang
Cc: Ulf Hansson, linux-rockchip, leecam, leozwang, keescook,
Michael Turquette, Stephen Boyd, linux-kernel, linux-clk,
linux-arm-kernel
Hi Caesar,
Am Donnerstag, 7. Januar 2016, 16:25:47 schrieb Caesar Wang:
> SCLk_I2S_OUT is the noc bus clock for i2s module, this clock is used by
> extra codecs.
>
> Due to it shouldn't belong to any driver, but we need it enabled,
> so just mark it as the CLK_IGNORE_UNUSED flag.
What makes you think it shouldn't belong to any driver?
In most schematics I have, i2s_clkout is going to some clock-input of the
audio codec - probably the MCLK input on your rt5616. And while the new
rt5616 driver does not seem to do clock handling, it should just handle the
clock using the normal APIs.
Heiko
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 00/12] Add the family patches to support for kylin board
2016-01-07 8:25 [PATCH v2 00/12] Add the family patches to support for kylin board Caesar Wang
2016-01-07 8:25 ` [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out Caesar Wang
@ 2016-01-07 10:44 ` Heiko Stuebner
2016-01-08 9:02 ` Caesar Wang
1 sibling, 1 reply; 8+ messages in thread
From: Heiko Stuebner @ 2016-01-07 10:44 UTC (permalink / raw)
To: Caesar Wang
Cc: Ulf Hansson, linux-rockchip, leecam, leozwang, keescook,
Andreas Fenkart, Kumar Gala, Ian Campbell, Rob Herring, NeilBrown,
linux-clk, Srinivas Kandagatla, Javier Martinez Canillas,
Pawel Moll, devicetree, Michael Turquette, Stephen Boyd,
Russell King, linux-arm-kernel, linux-mmc, linux-kernel,
Alexandre Courbot, Mark Rutland
Hi Caesar,
Am Donnerstag, 7. Januar 2016, 16:25:43 schrieb Caesar Wang:
> Hi all,
>
> Happy new year! :)
> Let's go on working for happy.
please make sure to split your patch-series at appropriate points for future
versions to only address relevant people. For example I don't think Ulf
really cares about getting the audio-related or general devicetree patches.
Heiko
> This series patches are based on kernel version 4.4.0-rc8+
> (Linux version 4.4.0-rc8+ (wxt@ubuntu)...#142 SMP Thu Jan 7 12:38:40 CST
> 2016)
>
> This series pacthes are verified on the following github:
> https://github.com/Caesar-github/rockchip/commits/kylin-develop4.4
>
> This series has 12 patches: (12--->1)
> bbd1a01 ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
> fb8c1fd ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
> 1aeb49d ARM: dts: rockchip: add the sdmmc for kylin board
> 3e19128 ARM: dts: rockchip: enable the uart0 for kylin board
> e7de154 ARM: dts: rockchip: add the wifi/bt regulator for kylin board
> 8699698 ARM: dts: rockchip: enable the high speed on sdio for kylin board
> 21eded4 mmc: pwrseq: add support for power-on sequencing through DT
> cdf3a7e mmc: pwrseq: Document optional exteral vcc for the simple power
> sequence 131c249 clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag
> for sclk_i2s_out b7ff8e1 ARM: dts: rockchip: override the clocks in i2s
> for kylin board 5f56af4 ARM: dts: rockchip: add the sound codec for kylin
> board
> 914d9c0 ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
> ..
>
> This series patches have the following decriptions:
>
> PATCH[1/12-4/12]:====> Support rt5616 codec for kylin board
> 914d9c0 ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
> 5f56af4 ARM: dts: rockchip: add the sound codec for kylin board
> b7ff8e1 ARM: dts: rockchip: override the clocks in i2s for kylin board
> 131c249 clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for
> sclk_i2s_out
>
> This patches is working for codec rt5616 on kylin board. (RK3036 SoCs)
>
> That's needed the following rt5616 driver from Mark Brown Branch.
> (cherry picked from git.kernel.org broonie/sound.git for-next)
>
> cf94b7a UPSTREAM: ASoC: rt5616: rename some alsa control names
> 86f561d UPSTREAM: ASoC: rt5616: add devicetree document for rt5616
> 0e0f5f8 UPSTREAM: ASoC: rt5616: add an of_match table
> 263a330 UPSTREAM: ASoC: rt5616: Return error if device ID mismatch
> 0094139 UPSTREAM: ASoC: rt5616: add rt5616 codec driver
>
> Notes:
> I'm run it with the ubuntu 15.04 to set the configure.
> ./amixer "HP Playback Switch" 1
> ./amixer "HP Playback Volume" 20
> ./amixer "HPO MIX DAC1 Switch" 1
> ./amixer "OUT MIXR DAC R1 Switch" 1
> ./amixer "OUT MIXL DAC L1 Switch" 1
> ./amixer "Stereo DAC MIXR DAC R1 Switch" 1
> ./amixer "Stereo DAC MIXL DAC L1 Switch" 1
>
> root@linaro-alip:/media/aplay# ./aplay pcm.wav
> Playing sample: 2 ch, 48000 hz, 16 bit
> ..
> That can be normal playing the music.
> ----
>
> PATCH[5/12-9/12]: ====> Support wifi/bt module for kylin board
> cdf3a7e mmc: pwrseq: Document optional exteral vcc for the simple power
> sequence 21eded4 mmc: pwrseq: add support for power-on sequencing through
> DT 8699698 ARM: dts: rockchip: enable the high speed on sdio for kylin
> board e7de154 ARM: dts: rockchip: add the wifi/bt regulator for kylin
> board 3e19128 ARM: dts: rockchip: enable the uart0 for kylin board
>
> The wifi/bt driver hasn't land in mainline, the driver is in here:
> https://github.com/Caesar-github/rockchip/commit/1912ef4c0e358677904b0a0bb
> b83f9745066f0ec
>
> wpa_supplicant -Dnl80211 -c /etc/wifi/wpa_supplicant.conf -i wlan0 -B
> wpa_cli add_network
> wpa_cli set_network 1 ssid \"wxt\"
> wpa_cli set_network 1 psk \"123456789\"
> wpa_cli select_network 1
> wpa_cli save_config
>
> ifconfig wlan0 192.168.1.105
> route add default gw 192.168.1.1
>
> root@linaro-alip:/# ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
> 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=6.83 ms
> 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=184 ms
> 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=9.21 ms
> 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=6.84 ms
> 64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=11.2 ms
> 64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=9.24 ms
> 64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=12.9 ms
> 64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=7.02 ms
> 64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=24.3 ms
> 64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=13.6 ms
> 64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=3.87 m
> ...
>
> The wifi throughput:
>
> iperf -s -i 1
> ...
> [ 4] 116.0-117.0 sec 2.88 MBytes 24.1 Mbits/sec
> [ 4] 117.0-118.0 sec 2.99 MBytes 25.0 Mbits/sec
> [ 4] 118.0-119.0 sec 3.01 MBytes 25.2 Mbits/sec
> [ 4] 119.0-120.0 sec 2.89 MBytes 24.2 Mbits/sec
> [ 4] 0.0-120.4 sec 332 MBytes 23.1 Mbits/sec
> ----
>
> PATCH[10/12]: ====> sdmmc patch for kylin board
> ARM: dts: rockchip: add the sdmmc for kylin board
>
> You should mark it "oaky" if you want to use the sdmmc.
> This patch default is disabing the sdmmc since the sdmmc and
> uart2(debug port) is reusing pin.
> ----
>
> PATCH[11/12]: ====> hdmi/lcdc diaply patch for rk3036 dts
> ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
>
> We can add this patch to support it since the Mark Yao has land
> your vop support.
> https://github.com/markyzq/kernel-drm-rockchip/commits/drm-rockchip-next-2
> 015-12-28 ----
>
> PATCH[12/12]:====> DMA Patchs
> ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
>
> In order to be better read/write for emmc.
> This patch is based on the following:(Fix broken DMAFLUSHP on Rockchips
> platform)
>
> 3055695 FROMLIST: DMA: dmaengine: expose max burst capability to clientmZ
> (am from https://patchwork.kernel.org/patch/7399361/)
> ed56bee FROMLIST: DMA: pl330: add quirk for broken no flushp
> (am from https://patchwork.kernel.org/patch/7399371/)
> 0c43bc3 FROMLIST: Documentation: arm-pl330: add description of arm,
> pl330-broken-no-flushp (am from
> https://patchwork.kernel.org/patch/7399371/)
> 623a699 FROMLIST: DMA: pl330: support burst mode for dev-to-mem and
> mem-to-dev transmit (am from https://patchwork.kernel.org/patch/7399381/)
> ----
>
>
> Changes in v2:
> - modify the commit.
> - fix the mclk-fs as the 256.
> - This fix inmmc-power-sequences, as Heiko comment on
> https://patchwork.kernel.org/patch/7903161/
> - As Heiko comment, modify it to fit the simple-mmc-sequence.
> - Add the uart0 commit content.
>
> Caesar Wang (12):
> ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
> ARM: dts: rockchip: add the sound codec for kylin board
> ARM: dts: rockchip: override the clocks in i2s for kylin board
> clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for
> sclk_i2s_out
> mmc: pwrseq: Document optional exteral vcc for the simple power
> sequence
> mmc: pwrseq: add support for power-on sequencing through DT
> ARM: dts: rockchip: enable the high speed on sdio for kylin board
> ARM: dts: rockchip: add the wifi/bt regulator for kylin board
> ARM: dts: rockchip: enable the uart0 for kylin board
> ARM: dts: rockchip: add the sdmmc for kylin board
> ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
> ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
>
> .../devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 9 ++
> arch/arm/boot/dts/rk3036-kylin.dts | 119
> +++++++++++++++++++++ arch/arm/boot/dts/rk3036.dtsi
> | 74 +++++++++++-- drivers/clk/rockchip/clk-rk3036.c |
> 2 +-
> drivers/mmc/core/pwrseq_simple.c | 16 +++
> 5 files changed, 213 insertions(+), 7 deletions(-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 00/12] Add the family patches to support for kylin board
2016-01-07 10:44 ` [PATCH v2 00/12] Add the family patches to support for kylin board Heiko Stuebner
@ 2016-01-08 9:02 ` Caesar Wang
0 siblings, 0 replies; 8+ messages in thread
From: Caesar Wang @ 2016-01-08 9:02 UTC (permalink / raw)
To: Heiko Stuebner
Cc: Caesar Wang, Mark Rutland, Ulf Hansson, Stephen Boyd,
Michael Turquette, Srinivas Kandagatla, linux-clk, Russell King,
linux-rockchip, Javier Martinez Canillas, NeilBrown, devicetree,
Pawel Moll, Ian Campbell, keescook, Rob Herring,
Alexandre Courbot, linux-arm-kernel, Andreas Fenkart, linux-mmc,
linux-kernel, leecam, Kumar Gala, leozwang
[-- Attachment #1: Type: text/plain, Size: 8500 bytes --]
Hi Heiko,
Thanks for pointing out.
在 2016年01月07日 18:44, Heiko Stuebner 写道:
> Hi Caesar,
>
> Am Donnerstag, 7. Januar 2016, 16:25:43 schrieb Caesar Wang:
>> Hi all,
>>
>> Happy new year! :)
>> Let's go on working for happy.
> please make sure to split your patch-series at appropriate points for future
> versions to only address relevant people. For example I don't think Ulf
> really cares about getting the audio-related or general devicetree patches.
Okay.
That's seem the patman tool to send patches automatically.
Ahem!
Series-to: email / alias to ulf for emmc patches that will send all
patches for him.
>
> Heiko
>
>> This series patches are based on kernel version 4.4.0-rc8+
>> (Linux version 4.4.0-rc8+ (wxt@ubuntu)...#142 SMP Thu Jan 7 12:38:40 CST
>> 2016)
>>
>> This series pacthes are verified on the following github:
>> https://github.com/Caesar-github/rockchip/commits/kylin-develop4.4
>>
>> This series has 12 patches: (12--->1)
>> bbd1a01 ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
>> fb8c1fd ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
>> 1aeb49d ARM: dts: rockchip: add the sdmmc for kylin board
>> 3e19128 ARM: dts: rockchip: enable the uart0 for kylin board
>> e7de154 ARM: dts: rockchip: add the wifi/bt regulator for kylin board
>> 8699698 ARM: dts: rockchip: enable the high speed on sdio for kylin board
>> 21eded4 mmc: pwrseq: add support for power-on sequencing through DT
>> cdf3a7e mmc: pwrseq: Document optional exteral vcc for the simple power
>> sequence 131c249 clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag
>> for sclk_i2s_out b7ff8e1 ARM: dts: rockchip: override the clocks in i2s
>> for kylin board 5f56af4 ARM: dts: rockchip: add the sound codec for kylin
>> board
>> 914d9c0 ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
>> ..
>>
>> This series patches have the following decriptions:
>>
>> PATCH[1/12-4/12]:====> Support rt5616 codec for kylin board
>> 914d9c0 ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
>> 5f56af4 ARM: dts: rockchip: add the sound codec for kylin board
>> b7ff8e1 ARM: dts: rockchip: override the clocks in i2s for kylin board
>> 131c249 clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for
>> sclk_i2s_out
>>
>> This patches is working for codec rt5616 on kylin board. (RK3036 SoCs)
>>
>> That's needed the following rt5616 driver from Mark Brown Branch.
>> (cherry picked from git.kernel.org broonie/sound.git for-next)
>>
>> cf94b7a UPSTREAM: ASoC: rt5616: rename some alsa control names
>> 86f561d UPSTREAM: ASoC: rt5616: add devicetree document for rt5616
>> 0e0f5f8 UPSTREAM: ASoC: rt5616: add an of_match table
>> 263a330 UPSTREAM: ASoC: rt5616: Return error if device ID mismatch
>> 0094139 UPSTREAM: ASoC: rt5616: add rt5616 codec driver
>>
>> Notes:
>> I'm run it with the ubuntu 15.04 to set the configure.
>> ./amixer "HP Playback Switch" 1
>> ./amixer "HP Playback Volume" 20
>> ./amixer "HPO MIX DAC1 Switch" 1
>> ./amixer "OUT MIXR DAC R1 Switch" 1
>> ./amixer "OUT MIXL DAC L1 Switch" 1
>> ./amixer "Stereo DAC MIXR DAC R1 Switch" 1
>> ./amixer "Stereo DAC MIXL DAC L1 Switch" 1
>>
>> root@linaro-alip:/media/aplay# ./aplay pcm.wav
>> Playing sample: 2 ch, 48000 hz, 16 bit
>> ..
>> That can be normal playing the music.
>> ----
>>
>> PATCH[5/12-9/12]: ====> Support wifi/bt module for kylin board
>> cdf3a7e mmc: pwrseq: Document optional exteral vcc for the simple power
>> sequence 21eded4 mmc: pwrseq: add support for power-on sequencing through
>> DT 8699698 ARM: dts: rockchip: enable the high speed on sdio for kylin
>> board e7de154 ARM: dts: rockchip: add the wifi/bt regulator for kylin
>> board 3e19128 ARM: dts: rockchip: enable the uart0 for kylin board
>>
>> The wifi/bt driver hasn't land in mainline, the driver is in here:
>> https://github.com/Caesar-github/rockchip/commit/1912ef4c0e358677904b0a0bb
>> b83f9745066f0ec
>>
>> wpa_supplicant -Dnl80211 -c /etc/wifi/wpa_supplicant.conf -i wlan0 -B
>> wpa_cli add_network
>> wpa_cli set_network 1 ssid \"wxt\"
>> wpa_cli set_network 1 psk \"123456789\"
>> wpa_cli select_network 1
>> wpa_cli save_config
>>
>> ifconfig wlan0 192.168.1.105
>> route add default gw 192.168.1.1
>>
>> root@linaro-alip:/# ping 192.168.1.1
>> PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
>> 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=6.83 ms
>> 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=184 ms
>> 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=9.21 ms
>> 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=6.84 ms
>> 64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=11.2 ms
>> 64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=9.24 ms
>> 64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=12.9 ms
>> 64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=7.02 ms
>> 64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=24.3 ms
>> 64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=13.6 ms
>> 64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=3.87 m
>> ...
>>
>> The wifi throughput:
>>
>> iperf -s -i 1
>> ...
>> [ 4] 116.0-117.0 sec 2.88 MBytes 24.1 Mbits/sec
>> [ 4] 117.0-118.0 sec 2.99 MBytes 25.0 Mbits/sec
>> [ 4] 118.0-119.0 sec 3.01 MBytes 25.2 Mbits/sec
>> [ 4] 119.0-120.0 sec 2.89 MBytes 24.2 Mbits/sec
>> [ 4] 0.0-120.4 sec 332 MBytes 23.1 Mbits/sec
>> ----
>>
>> PATCH[10/12]: ====> sdmmc patch for kylin board
>> ARM: dts: rockchip: add the sdmmc for kylin board
>>
>> You should mark it "oaky" if you want to use the sdmmc.
>> This patch default is disabing the sdmmc since the sdmmc and
>> uart2(debug port) is reusing pin.
>> ----
>>
>> PATCH[11/12]: ====> hdmi/lcdc diaply patch for rk3036 dts
>> ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
>>
>> We can add this patch to support it since the Mark Yao has land
>> your vop support.
>> https://github.com/markyzq/kernel-drm-rockchip/commits/drm-rockchip-next-2
>> 015-12-28 ----
>>
>> PATCH[12/12]:====> DMA Patchs
>> ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
>>
>> In order to be better read/write for emmc.
>> This patch is based on the following:(Fix broken DMAFLUSHP on Rockchips
>> platform)
>>
>> 3055695 FROMLIST: DMA: dmaengine: expose max burst capability to clientmZ
>> (am from https://patchwork.kernel.org/patch/7399361/)
>> ed56bee FROMLIST: DMA: pl330: add quirk for broken no flushp
>> (am from https://patchwork.kernel.org/patch/7399371/)
>> 0c43bc3 FROMLIST: Documentation: arm-pl330: add description of arm,
>> pl330-broken-no-flushp (am from
>> https://patchwork.kernel.org/patch/7399371/)
>> 623a699 FROMLIST: DMA: pl330: support burst mode for dev-to-mem and
>> mem-to-dev transmit (am from https://patchwork.kernel.org/patch/7399381/)
>> ----
>>
>>
>> Changes in v2:
>> - modify the commit.
>> - fix the mclk-fs as the 256.
>> - This fix inmmc-power-sequences, as Heiko comment on
>> https://patchwork.kernel.org/patch/7903161/
>> - As Heiko comment, modify it to fit the simple-mmc-sequence.
>> - Add the uart0 commit content.
>>
>> Caesar Wang (12):
>> ARM: dts: rockchip: set the pinctrl default setting for rk3036 i2s
>> ARM: dts: rockchip: add the sound codec for kylin board
>> ARM: dts: rockchip: override the clocks in i2s for kylin board
>> clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for
>> sclk_i2s_out
>> mmc: pwrseq: Document optional exteral vcc for the simple power
>> sequence
>> mmc: pwrseq: add support for power-on sequencing through DT
>> ARM: dts: rockchip: enable the high speed on sdio for kylin board
>> ARM: dts: rockchip: add the wifi/bt regulator for kylin board
>> ARM: dts: rockchip: enable the uart0 for kylin board
>> ARM: dts: rockchip: add the sdmmc for kylin board
>> ARM: dts: rockchip: add the lcdc and hdmi node for rk3036
>> ARM: dts: Add pl330-broken-no-flushp quirk for rk3036 SoCs
>>
>> .../devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 9 ++
>> arch/arm/boot/dts/rk3036-kylin.dts | 119
>> +++++++++++++++++++++ arch/arm/boot/dts/rk3036.dtsi
>> | 74 +++++++++++-- drivers/clk/rockchip/clk-rk3036.c |
>> 2 +-
>> drivers/mmc/core/pwrseq_simple.c | 16 +++
>> 5 files changed, 213 insertions(+), 7 deletions(-)
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
--
caesar wang | software engineer | wxt@rock-chip.com
[-- Attachment #2: Type: text/html, Size: 9872 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
2016-01-07 10:05 ` Heiko Stuebner
@ 2016-01-08 9:26 ` Caesar Wang
2016-01-08 9:46 ` Heiko Stuebner
0 siblings, 1 reply; 8+ messages in thread
From: Caesar Wang @ 2016-01-08 9:26 UTC (permalink / raw)
To: Heiko Stuebner
Cc: Caesar Wang, Ulf Hansson, Michael Turquette, Stephen Boyd,
linux-kernel, linux-rockchip, leecam, linux-arm-kernel, keescook,
linux-clk, leozwang
Heiko,
在 2016年01月07日 18:05, Heiko Stuebner 写道:
> Hi Caesar,
>
> Am Donnerstag, 7. Januar 2016, 16:25:47 schrieb Caesar Wang:
>> SCLk_I2S_OUT is the noc bus clock for i2s module, this clock is used by
>> extra codecs.
>>
>> Due to it shouldn't belong to any driver, but we need it enabled,
>> so just mark it as the CLK_IGNORE_UNUSED flag.
> What makes you think it shouldn't belong to any driver?
>
> In most schematics I have, i2s_clkout is going to some clock-input of the
> audio codec - probably the MCLK input on your rt5616. And while the new
> rt5616 driver does not seem to do clock handling, it should just handle the
> clock using the normal APIs.
You are right, that's seem has to find the root cause.
I'm wonder that the codec/i2s is working in kernel v4.1 patch without it.
In general, the MLCK will be handled in i2s driver if the cpu side is
master.
>
>
> Heiko
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
--
Thanks,
Caesar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
2016-01-08 9:26 ` Caesar Wang
@ 2016-01-08 9:46 ` Heiko Stuebner
2016-01-13 8:10 ` Caesar Wang
0 siblings, 1 reply; 8+ messages in thread
From: Heiko Stuebner @ 2016-01-08 9:46 UTC (permalink / raw)
To: Caesar Wang
Cc: Caesar Wang, Ulf Hansson, Michael Turquette, Stephen Boyd,
linux-kernel, linux-rockchip, leecam, linux-arm-kernel, keescook,
linux-clk, leozwang
Hi Caesar,
Am Freitag, 8. Januar 2016, 17:26:18 schrieb Caesar Wang:
> =E5=9C=A8 2016=E5=B9=B401=E6=9C=8807=E6=97=A5 18:05, Heiko Stuebner =E5=
=86=99=E9=81=93:
> > Am Donnerstag, 7. Januar 2016, 16:25:47 schrieb Caesar Wang:
> >> SCLk_I2S_OUT is the noc bus clock for i2s module, this clock is us=
ed by
> >> extra codecs.
> >>=20
> >> Due to it shouldn't belong to any driver, but we need it enabled,
> >> so just mark it as the CLK_IGNORE_UNUSED flag.
> >=20
> > What makes you think it shouldn't belong to any driver?
> >=20
> > In most schematics I have, i2s_clkout is going to some clock-input =
of
> > the
> > audio codec - probably the MCLK input on your rt5616. And while the=
new
> > rt5616 driver does not seem to do clock handling, it should just ha=
ndle
> > the clock using the normal APIs.
>=20
> You are right, that's seem has to find the root cause.
> I'm wonder that the codec/i2s is working in kernel v4.1 patch without=
it.
>=20
> In general, the MLCK will be handled in i2s driver if the cpu side i=
s
> master.
looking at the rt5616 datasheet, that would be BCLK1 instead I think. T=
his=20
one does differentiate between being master/slave.
The master/sysclk (mclk) is also handled in other drivers in all cases.=
=20
(da7213.c, da7219.c, max98090.c, max98095.c, probably more)
Heiko
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out
2016-01-08 9:46 ` Heiko Stuebner
@ 2016-01-13 8:10 ` Caesar Wang
0 siblings, 0 replies; 8+ messages in thread
From: Caesar Wang @ 2016-01-13 8:10 UTC (permalink / raw)
To: Heiko Stuebner
Cc: Caesar Wang, Ulf Hansson, Michael Turquette, Stephen Boyd,
linux-kernel, linux-rockchip, leecam, leozwang, keescook,
linux-clk, linux-arm-kernel, Caesar Wang
Heiko,
在 2016年01月08日 17:46, Heiko Stuebner 写道:
> Hi Caesar,
>
> Am Freitag, 8. Januar 2016, 17:26:18 schrieb Caesar Wang:
>> 在 2016年01月07日 18:05, Heiko Stuebner 写道:
>>> Am Donnerstag, 7. Januar 2016, 16:25:47 schrieb Caesar Wang:
>>>> SCLk_I2S_OUT is the noc bus clock for i2s module, this clock is used by
>>>> extra codecs.
>>>>
>>>> Due to it shouldn't belong to any driver, but we need it enabled,
>>>> so just mark it as the CLK_IGNORE_UNUSED flag.
>>> What makes you think it shouldn't belong to any driver?
>>>
>>> In most schematics I have, i2s_clkout is going to some clock-input of
>>> the
>>> audio codec - probably the MCLK input on your rt5616. And while the new
>>> rt5616 driver does not seem to do clock handling, it should just handle
>>> the clock using the normal APIs.
>> You are right, that's seem has to find the root cause.
>> I'm wonder that the codec/i2s is working in kernel v4.1 patch without it.
>>
>> In general, the MLCK will be handled in i2s driver if the cpu side is
>> master.
> looking at the rt5616 datasheet, that would be BCLK1 instead I think. This
> one does differentiate between being master/slave.
>
> The master/sysclk (mclk) is also handled in other drivers in all cases.
> (da7213.c, da7219.c, max98090.c, max98095.c, probably more)
Saw the patch:
https://patchwork.kernel.org/patch/5427131/
Add the follow that's working.
--- a/arch/arm/boot/dts/rk3036.dtsi
+++ b/arch/arm/boot/dts/rk3036.dtsi
@@ -288,8 +288,8 @@
interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
- clock-names = "i2s_clk", "i2s_hclk";
- clocks = <&cru SCLK_I2S>, <&cru HCLK_I2S>;
+ clock-names = "i2s_clk", "i2s_hclk", "i2s_clk_out";
+ clocks = <&cru SCLK_I2S>, <&cru HCLK_I2S>, <&cru
SCLK_I2S_OUT>;
Okay, I believe Mark likes that works in codec driver.
>
>
> Heiko
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
--
Thanks,
Caesar
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-01-13 8:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-07 8:25 [PATCH v2 00/12] Add the family patches to support for kylin board Caesar Wang
2016-01-07 8:25 ` [PATCH v2 04/12] clk: rockchip: rk3036: enable the CLK_IGNORE_UNUSED flag for sclk_i2s_out Caesar Wang
2016-01-07 10:05 ` Heiko Stuebner
2016-01-08 9:26 ` Caesar Wang
2016-01-08 9:46 ` Heiko Stuebner
2016-01-13 8:10 ` Caesar Wang
2016-01-07 10:44 ` [PATCH v2 00/12] Add the family patches to support for kylin board Heiko Stuebner
2016-01-08 9:02 ` Caesar Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).