From: Sugar Zhang Date: Mon, 16 May 2016 02:43:01 +0000 (+0800) Subject: ARM64: dts: rk3399-android: add hdmi sound for android X-Git-Tag: firefly_0821_release~2643 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c93237e0a02965a3c3fd84ada5fbe4637a67f2ed;p=firefly-linux-kernel-4.4.55.git ARM64: dts: rk3399-android: add hdmi sound for android Change-Id: I466c8611a135e1603606aedc5d987a5f5e435fd3 Signed-off-by: Sugar Zhang --- diff --git a/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi index 43d529e5c8ce..5b799aa421d1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-android.dtsi @@ -329,6 +329,29 @@ 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 {