arm64: dts: rockchip: rk1808: enable rk809 sound and vad sound for i2s

Change-Id: I671db6107e1486312411b44b4fb8ac352400be1a
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2018-09-24 15:35:16 +08:00
parent 888aeb879a
commit 41fc10da8d
2 changed files with 53 additions and 0 deletions

View File

@@ -14,6 +14,14 @@
chosen {
bootargs = "earlycon=uart8250,mmio32,0xff550000 console=ttyFIQ0 root=/dev/mmcblk1p8 rootfstype=ext4 rootwait swiotlb=1 kpti=0";
};
vad-sound {
status = "okay";
compatible = "rockchip,multicodecs-card";
rockchip,card-name = "rockchip,rk1808-vad";
rockchip,cpu = <&i2s0>;
rockchip,codec = <&vad>;
};
};
&display_subsystem {
@@ -113,14 +121,37 @@
};
};
&i2s0 {
status = "okay";
#sound-dai-cells = <0>;
};
&i2s1 {
status = "okay";
#sound-dai-cells = <0>;
};
&mipi_dphy {
status = "okay";
};
&rk809_sound {
status = "okay";
};
&route_dsi {
status = "disabled";
};
&vad {
status = "okay";
rockchip,audio-src = <&i2s0>;
rockchip,buffer-time-ms = <200>;
rockchip,det-channel = <0>;
rockchip,mode = <1>;
#sound-dai-cells = <0>;
};
&vop_lite {
status = "okay";
};

View File

@@ -124,6 +124,28 @@
memory-region = <&ramoops_mem>;
};
rk809_sound: rk809-sound {
status = "disabled";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rockchip,rk809-codec";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,widgets =
"Microphone", "Mic Jack",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"Mic Jack", "MICBIAS1",
"IN1P", "Mic Jack",
"Headphone Jack", "HPOL",
"Headphone Jack", "HPOR";
simple-audio-card,cpu {
sound-dai = <&i2s1>;
};
simple-audio-card,codec {
sound-dai = <&rk809_codec>;
};
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";