arm64: dts: rockchip: add cdn-dp-fb node for rk3399 android
authorxuhuicong <xhc@rock-chips.com>
Thu, 4 Aug 2016 05:43:10 +0000 (13:43 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 26 Aug 2016 04:03:35 +0000 (12:03 +0800)
Change-Id: Ie9651babf59d29547f6b506356cce5cd2618e5ae
Signed-off-by: xuhuicong <xhc@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-android.dtsi

index b5b3a31b758f690d1e5420cc4f949240f4b934e1..a88b8945b9080e8cc59f915b4d076e7ea70fb590 100644 (file)
                };
        };
 
+       cdn_dp_fb: dp-fb@fec00000 {
+               status = "disabled";
+               compatible = "rockchip,rk3399-cdn-dp-fb";
+               reg = <0x0 0xfec00000 0x0 0x100000>;
+               interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru SCLK_DP_CORE>, <&cru PCLK_DP_CTRL>,
+                        <&cru SCLK_SPDIF_REC_DPTX>;
+               clock-names = "core-clk", "pclk", "spdif";
+               assigned-clocks = <&cru SCLK_DP_CORE>;
+               assigned-clock-rates = <100000000>;
+               power-domains = <&power RK3399_PD_HDCP>;
+               phys = <&tcphy0 0>, <&tcphy1 0>;
+               resets = <&cru SRST_DPTX_SPDIF_REC>;
+               reset-names = "spdif";
+               rockchip,grf = <&grf>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               #sound-dai-cells = <1>;
+       };
+
+       cdn_dp_sound: cdn-dp-sound {
+               status = "disabled";
+               compatible = "simple-audio-card";
+               simple-audio-card,name = "rockchip,cdn-dp-fb";
+               simple-audio-card,widgets = "Headphone", "Out Jack",
+                                           "Line", "In Jack";
+
+               simple-audio-card,dai-link@0 {
+                       format = "i2s";
+                       mclk-fs = <256>;
+
+                       cpu {
+                               sound-dai = <&i2s2>;
+                       };
+
+                       codec {
+                               sound-dai = <&cdn_dp_fb 0>;
+                       };
+               };
+
+               simple-audio-card,dai-link@1 {
+                       format = "spdif";
+                       cpu {
+                               sound-dai = <&spdif>;
+                       };
+
+                       codec {
+                               sound-dai = <&cdn_dp_fb 1>;
+                       };
+               };
+       };
+
        vpu: vpu_service@ff650000 {
                compatible = "rockchip,vpu_service";
                rockchip,grf = <&grf>;