ARM64: dts: rk3366: add spdif
authorSugar Zhang <sugar.zhang@rock-chips.com>
Fri, 4 Mar 2016 09:31:27 +0000 (17:31 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 4 Mar 2016 10:26:24 +0000 (18:26 +0800)
Change-Id: I3d0f86e54e537524b1542d2d94fd0a56fc9c7cf2
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3366.dtsi

index 484931c6aa887806757b9c479ab3fcd9ac2e4800..caf26320d37bb2733c143078330930698f5b01ad 100644 (file)
                reg = <0x0 0xff770000 0x0 0x1000>;
        };
 
+       spdif: spdif@ff880000 {
+               compatible = "rockchip,rk3366-spdif";
+               reg = <0x0 0xff880000 0x0 0x1000>;
+               interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
+               dmas = <&dmac_bus 3>;
+               dma-names = "tx";
+               clock-names = "hclk", "mclk";
+               clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF_8CH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&spdif_bus>;
+               status = "disabled";
+       };
+
        i2s_2ch: i2s-2ch@ff890000 {
                compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
                reg = <0x0 0xff890000 0x0 0x1000>;
                        };
                };
 
+               spdif {
+                       spdif_bus: spdif-bus {
+                               rockchip,pins =
+                                       <5 19 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+               };
+
                spi0 {
                        spi0_clk: spi0-clk {
                                rockchip,pins =