From: Yakir Yang Date: Wed, 15 Jun 2016 11:47:27 +0000 (+0800) Subject: FROMLIST: ARM: dts: rockchip: add simple sound card for RK3036 SoCs X-Git-Tag: firefly_0821_release~2452 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=836c1fb5b75222067bde4b73114cb5d84738d549;p=firefly-linux-kernel-4.4.55.git FROMLIST: ARM: dts: rockchip: add simple sound card for RK3036 SoCs Using I2S as the audio input source, and force the mclk_fs to 256. Change-Id: Ib85ba7be4de430d5536aaaebe74bb9fde9174f16 Signed-off-by: Yakir Yang (am from https://patchwork.kernel.org/patch/9178533/) --- diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index 008dd36ef5c4..0d1aacfd901f 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -337,6 +337,9 @@ rockchip,grf = <&grf>; pinctrl-names = "default"; pinctrl-0 = <&hdmi_ctl>; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <0>; status = "disabled"; hdmi_in: port { @@ -349,6 +352,25 @@ }; }; + hdmi_sound: hdmi-sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "rockchip,hdmi"; + simple-audio-card,widgets = "Headphone", "Out Jack", + "Line", "In Jack"; + status = "disabled"; + + simple-audio-card,dai-link { + format = "i2s"; + mclk-fs = <256>; + cpu { + sound-dai = <&i2s>; + }; + codec { + sound-dai = <&hdmi>; + }; + }; + }; + timer: timer@20044000 { compatible = "rockchip,rk3036-timer", "rockchip,rk3288-timer"; reg = <0x20044000 0x20>;