ARM: dts: rk322x: add spdif node
authorSugar Zhang <sugar.zhang@rock-chips.com>
Fri, 12 May 2017 09:17:04 +0000 (17:17 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 12 May 2017 11:29:26 +0000 (19:29 +0800)
Change-Id: Id8ccff720d3e42e0df8fa8fd5007127fa9af2147
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
arch/arm/boot/dts/rk322x.dtsi

index d2fd2358b370b9bd9b061ec194785c177b5018ae..80569fc8fb094db78595a1854c9f60581bfd2825 100644 (file)
                status = "disabled";
        };
 
+       spdif: spdif@100d0000 {
+               compatible = "rockchip,rk3228-spdif";
+               reg = <0x100d0000 0x1000>;
+               interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
+               clock-names = "mclk", "hclk";
+               dmas = <&pdma 10>;
+               #dma-cells = <1>;
+               dma-names = "tx";
+               pinctrl-names = "default";
+               pinctrl-0 = <&spdif_tx>;
+               status = "disabled";
+       };
+
        i2s2: i2s2@100e0000 {
                compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
                reg = <0x100e0000 0x4000>;
                        };
                };
 
+               spdif {
+                       spdif_tx: spdif-tx {
+                               rockchip,pins = <3 31 RK_FUNC_2 &pcfg_pull_none>;
+                       };
+               };
+
                tsadc {
                        otp_gpio: otp-gpio {
                                rockchip,pins = <0 24 RK_FUNC_GPIO &pcfg_pull_none>;