ARM: dts: rockchip: add rk322x spdif node
authorSugar Zhang <sugar.zhang@rock-chips.com>
Fri, 9 Jun 2017 07:59:33 +0000 (15:59 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 16 Jul 2017 15:08:57 +0000 (17:08 +0200)
This patch add spdif node for rk322x.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk322x.dtsi

index f3e4ffd9f8180bfaade6a9ecfb0e7abaa502f0d1..31e04e96537b9e2a4388de746e5f5a677618ac21 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-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>;