ARM64: dts: rk3399-android: add hdmi sound for android
authorSugar Zhang <sugar.zhang@rock-chips.com>
Mon, 16 May 2016 02:43:01 +0000 (10:43 +0800)
committerSugar Zhang <sugar.zhang@rock-chips.com>
Mon, 16 May 2016 06:34:10 +0000 (14:34 +0800)
Change-Id: I466c8611a135e1603606aedc5d987a5f5e435fd3
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-android.dtsi

index 43d529e5c8cea15ede28a4492e345ca5e9671065..5b799aa421d1ad6b4b1e5ddfdad29bfe57117484 100644 (file)
                clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI1>, <&cru SCLK_MIPIDPHY_CFG>;
                clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "mipi_dphy_cfg";
        };
+
+       hdmi-sound {
+               compatible = "simple-audio-card";
+               simple-audio-card,format = "i2s";
+               simple-audio-card,mclk-fs = <256>;
+               simple-audio-card,name = "rockchip,hdmi";
+               simple-audio-card,cpu {
+                       sound-dai = <&i2s2>;
+               };
+               simple-audio-card,codec {
+                       sound-dai = <&dw_hdmi_audio>;
+               };
+       };
+
+       dw_hdmi_audio: dw-hdmi-audio {
+               compatible = "rockchip,dw-hdmi-audio";
+               #sound-dai-cells = <0>;
+       };
+};
+
+&i2s2 {
+       status = "okay";
+       #sound-dai-cells = <0>;
 };
 
 &usbdrd_dwc3_0 {