arm64: dts: rk3368-r88: add hdmi sound card
authorxuhuicong <xhc@rock-chips.com>
Tue, 27 Jun 2017 09:17:26 +0000 (17:17 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Tue, 27 Jun 2017 10:25:57 +0000 (18:25 +0800)
Change-Id: I2a81102c7e110a2fe36ec8ba3622ebb63cc91066
Signed-off-by: xuhuicong <xhc@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-r88.dts

index 9155e72d19aa6f6933d9720ddab0ba5953f7797f..ab20822247b0d776cae4352336158ffadf3a87aa 100644 (file)
        model = "Rockchip R88";
        compatible = "rockchip,r88", "rockchip,rk3368";
 
+       hdmi_sound: hdmi-sound {
+               status = "okay";
+               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 = <&i2s_8ch>;
+               };
+               simple-audio-card,codec {
+                       sound-dai = <&hdmi>;
+               };
+       };
+
        keys: gpio-keys {
                compatible = "gpio-keys";
                #address-cells = <1>;
        };
 };
 
+&i2s_8ch {
+       status = "okay";
+       rockchip,i2s-broken-burst-len;
+       rockchip,playback-channels = <8>;
+       rockchip,capture-channels = <2>;
+       #sound-dai-cells = <0>;
+};
+
 &emmc {
        status = "okay";
        bus-width = <8>;
 
 &hdmi {
        status = "okay";
+       #sound-dai-cells = <0>;
 };
 
 &mailbox {