ARM: tegra: Add S/PDIF node to Tegra20 device-tree
authorDmitry Osipenko <digetx@gmail.com>
Sat, 4 Dec 2021 14:37:22 +0000 (17:37 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 16:18:36 +0000 (17:18 +0100)
Add S/PDIF node to Tegra20 device-tree. It's needed for enabling HDMI
audio support.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra20.dtsi

index c8f2061..2d2f446 100644 (file)
                        reset-names = "hdmi";
                        power-domains = <&pd_core>;
                        operating-points-v2 = <&hdmi_dvfs_opp_table>;
+                       #sound-dai-cells = <0>;
                        status = "disabled";
                };
 
                status = "disabled";
        };
 
+       tegra_spdif: spdif@70002400 {
+               compatible = "nvidia,tegra20-spdif";
+               reg = <0x70002400 0x200>;
+               interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&tegra_car TEGRA20_CLK_SPDIF_OUT>,
+                        <&tegra_car TEGRA20_CLK_SPDIF_IN>;
+               clock-names = "out", "in";
+               resets = <&tegra_car 10>;
+               dmas = <&apbdma 3>, <&apbdma 3>;
+               dma-names = "rx", "tx";
+               #sound-dai-cells = <0>;
+               status = "disabled";
+
+               assigned-clocks = <&tegra_car TEGRA20_CLK_SPDIF_OUT>;
+               assigned-clock-parents = <&tegra_car TEGRA20_CLK_PLL_A_OUT0>;
+       };
+
        tegra_i2s1: i2s@70002800 {
                compatible = "nvidia,tegra20-i2s";
                reg = <0x70002800 0x200>;