[PATCH 3/3] arm64: dts: hi3660-hikey960: Add i2s & sound device

From: Pengcheng Li
Date: Thu Feb 28 2019 - 09:24:33 EST


From: Youlin Wang <wangyoulin1@xxxxxxxxxxxxx>

Signed-off-by: Youlin Wang <wangyoulin1@xxxxxxxxxxxxx>
Signed-off-by: Tanglei Han <hantanglei@xxxxxxxxxx>
Signed-off-by: Guangke Ji <jiguangke@xxxxxxxxxx>
Signed-off-by: Feng Chen <puck.chen@xxxxxxxxxxxxx>
Signed-off-by: Kaihua Zhong <zhongkaihua@xxxxxxxxxx>
Signed-off-by: Jun Chen <chenjun14@xxxxxxxxxx>
Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx>
Signed-off-by: Yiping Xu <xuyiping@xxxxxxxxxxxxx>
Signed-off-by: Pengcheng Li <lipengcheng8@xxxxxxxxxx>
Cc: Wei Xu <xuwei5@xxxxxxxxxxxxx>
Cc: Rob Herring <robh+dt@xxxxxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>
---
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 29 +++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index 186251f..457cebc 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -27,6 +27,35 @@
/* rewrite this at bootloader */
reg = <0x0 0x0 0x0 0x0>;
};
+
+ i2s2: hi3660_i2s {
+ compatible = "hisilicon,hi3660-i2s-1.0";
+ reg = <0x0 0xe804f800 0x0 0x400>,
+ <0x0 0xe804e000 0x0 0x400>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2s2_pmx_func &i2s2_cfg_func>;
+ dmas = <&asp_dmac 18 &asp_dmac 19>;
+ dma-names = "rx", "tx";
+ #sound-dai-cells = <0>;
+ };
+
+ sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "hikey-hdmi";
+ simple-audio-card,format = "i2s";
+
+ simple-audio-card,bitclock-master = <&sound_master>;
+ simple-audio-card,frame-master = <&sound_master>;
+
+ sound_master: simple-audio-card,cpu {
+ sound-dai = <&i2s2>;
+ };
+
+ simple-audio-card,codec {
+ sound-dai = <&adv7533>;
+ };
+ };
+
};

&uart5 {
--
2.8.0