Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296653 > unrolled thread

[PATCH 0/5] Support the codec and wifi/bt for rk3036 Kylin board

Started byCaesar Wang <wxt@rock-chips.com>
First post2015-12-22 10:40 +0100
Last post2015-12-22 10:40 +0100
Articles 3 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/5] Support the codec and wifi/bt for rk3036 Kylin board Caesar Wang <wxt@rock-chips.com> - 2015-12-22 10:40 +0100
    [PATCH 2/5] ARM: dts: add the sound codec for kylin board Caesar Wang <wxt@rock-chips.com> - 2015-12-22 10:40 +0100
    [PATCH 3/5] ARM: dts: rockchip: enable the high speed on sdio for kylin board Caesar Wang <wxt@rock-chips.com> - 2015-12-22 10:40 +0100

#1296653 — [PATCH 0/5] Support the codec and wifi/bt for rk3036 Kylin board

FromCaesar Wang <wxt@rock-chips.com>
Date2015-12-22 10:40 +0100
Subject[PATCH 0/5] Support the codec and wifi/bt for rk3036 Kylin board
Message-ID<qIrAd-2af-9@gated-at.bofh.it>
Add the needed device for kylin board.

--------------
This series patches have the following decriptions:

PATCH[1/5]:
ARM: dts: set the pinctrl default setting for i2s

The kylin will hang in system when enable the i2s,
we need set the pinctrl default setting for i2s firstly.
--------------

PATCH[2/5]:
ARM: dts: add the sound codec for kylin board

Let the codec works.

RT5616 driver is landed in Mark branch.
(https://git.kernel.org/cgit/linux/kernel/git/broonie/sound.git/commit/
?h=for-next&id=b1d15059957d33d111e0ed38724a6b2c5caac790)

Maybe need wait the below patch be merged firstly.
(add an of_match table: https://patchwork.kernel.org/patch/7901951/
rt5616 document: https://patchwork.kernel.org/patch/7901971/)
---------------

PATCH[3/5]:
ARM: dts: rockchip: enable the high speed on sdio for kylin board

This patch is solving the wifi work frequency.
37.5MHz frequency for rk3036.

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[4/5]:
ARM: dts: add the wifi/bt regulator for kylin board

Add the wifi/bt regulator for wifi module, let the module work on bootup.

Yep, this patch is based on olof patch[0].
patch[0]:
https://patchwork.kernel.org/patch/3510571/
----------------

PATCH[5/5]:
ARM: dts: enable the uart0 for bluetooth module

Enable the uart0 for BT module working.
----------------

Note: that's seem the wifi driver has not landed in mainline.
This driver has existed in rockchip github develop4.1.
https://github.com/rockchip-linux/kernel/commit/a731ffcd0d6ee3b3e6f015d3e2f7b4bf698a3533



Caesar Wang (5):
  ARM: dts: set the pinctrl default setting for i2s
  ARM: dts: add the sound codec for kylin board
  ARM: dts: rockchip: enable the high speed on sdio for kylin board
  ARM: dts: add the wifi/bt regulator for kylin board
  ARM: dts: enable the uart0 for bluetooth module

 arch/arm/boot/dts/rk3036-kylin.dts | 85 +++++++++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/rk3036.dtsi      | 12 +++---
 2 files changed, 90 insertions(+), 7 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1296654 — [PATCH 2/5] ARM: dts: add the sound codec for kylin board

FromCaesar Wang <wxt@rock-chips.com>
Date2015-12-22 10:40 +0100
Subject[PATCH 2/5] ARM: dts: add the sound codec for kylin board
Message-ID<qIrAf-2af-39@gated-at.bofh.it>
In reply to#1296653
Support the rt5616 codec for kylin board, but we need
enable the i2s firstly.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---

 arch/arm/boot/dts/rk3036-kylin.dts | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index 992f9ca..bb7e549 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -46,6 +46,28 @@
 	model = "Rockchip RK3036 KylinBoard";
 	compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";
 
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,format = "i2s";
+		simple-audio-card,name = "rockchip,rt5616-codec";
+		simple-audio-card,mclk-fs = <64>;
+		simple-audio-card,widgets =
+			"Microphone", "Microphone Jack",
+			"Headphone", "Headphone Jack";
+		simple-audio-card,routing =
+			"MIC1", "Microphone Jack",
+			"MIC2", "Microphone Jack",
+			"Microphone Jack", "micbias1",
+			"Headphone Jack", "HPOL",
+			"Headphone Jack", "HPOR";
+		simple-audio-card,cpu {
+			sound-dai = <&i2s>;
+		};
+		simple-audio-card,codec {
+			sound-dai = <&rt5616>;
+		};
+	};
+
 	vcc_sys: vsys-regulator {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_sys";
@@ -257,6 +279,17 @@
 
 &i2c2 {
 	status = "okay";
+
+	rt5616: rt5616@1b {
+		#sound-dai-cells = <0>;
+		compatible = "rt5616";
+		reg = <0x1b>;
+	};
+};
+
+&i2s {
+	#sound-dai-cells = <0>;
+	status = "okay";
 };
 
 &sdio {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1296655 — [PATCH 3/5] ARM: dts: rockchip: enable the high speed on sdio for kylin board

FromCaesar Wang <wxt@rock-chips.com>
Date2015-12-22 10:40 +0100
Subject[PATCH 3/5] ARM: dts: rockchip: enable the high speed on sdio for kylin board
Message-ID<qIrAg-2af-45@gated-at.bofh.it>
In reply to#1296653
We want to the higher speed for wifi module working.

Bootup kernel log:
...
mmc_host mmc0: Bus speed (slot 0) = 37125000Hz (slot req 37500000Hz,
actual 37125000HZ div = 0)

or run 'cat /sys/kernel/debug/clk/clk_summary |grep phase -C 1' to check
Otherwise, the mmc0 will run 400khz defalult value to work.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---

 arch/arm/boot/dts/rk3036-kylin.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index bb7e549..2ef38be 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -297,6 +297,11 @@
 
 	broken-cd;
 	bus-width = <4>;
+	cap-sd-highspeed;
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr50;
+	sd-uhs-sdr104;
 	cap-sdio-irq;
 	default-sample-phase = <90>;
 	keep-power-in-suspend;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web