Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1303351 > unrolled thread
| Started by | Caesar Wang <wxt@rock-chips.com> |
|---|---|
| First post | 2016-01-07 09:30 +0100 |
| Last post | 2016-01-09 03:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 02/12] ARM: dts: rockchip: add the sound codec for kylin board Caesar Wang <wxt@rock-chips.com> - 2016-01-07 09:30 +0100
Re: [PATCH v2 02/12] ARM: dts: rockchip: add the sound codec for kylin board Heiko Stuebner <heiko@sntech.de> - 2016-01-09 03:50 +0100
| From | Caesar Wang <wxt@rock-chips.com> |
|---|---|
| Date | 2016-01-07 09:30 +0100 |
| Subject | [PATCH v2 02/12] ARM: dts: rockchip: add the sound codec for kylin board |
| Message-ID | <qOe7g-5u7-9@gated-at.bofh.it> |
Support the rt5616 codec for kylin board, but we need
enable the i2s firstly.
Also, this patch adds the CPU/CODEC information for simple card
to make the happy work.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---
Changes in v2:
- fix the mclk-fs as the 256.
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..27b6326 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 = <256>;
+ 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] | [next] | [standalone]
| From | Heiko Stuebner <heiko@sntech.de> |
|---|---|
| Date | 2016-01-09 03:50 +0100 |
| Message-ID | <qORLj-7o6-9@gated-at.bofh.it> |
| In reply to | #1303351 |
Am Donnerstag, 7. Januar 2016, 16:25:45 schrieb Caesar Wang: > Support the rt5616 codec for kylin board, but we need > enable the i2s firstly. > Also, this patch adds the CPU/CODEC information for simple card > to make the happy work. > > Signed-off-by: Caesar Wang <wxt@rock-chips.com> applied to my dts branch for 4.6. I've adapted the commit message, to make it a bit more clear. [0] Thanks Heiko [0] https://git.kernel.org/cgit/linux/kernel/git/mmind/linux-rockchip.git/commit/?h=v4.6-armsoc/dts32&id=1a21fe2a6f00226d126cd4ba4ac2484208c58b71
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web