arm64: dts: meson-axg: s400: add spdifin to the sound card
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 13 Dec 2018 14:36:31 +0000 (15:36 +0100)
committerKevin Hilman <khilman@baylibre.com>
Fri, 11 Jan 2019 00:42:59 +0000 (16:42 -0800)
Enable spdif input device on the S400 and add it to the card

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts

index 14e1fdc..2e1dcf1 100644 (file)
                                "TODDR_A IN 2", "TDMIN_C OUT",
                                "TODDR_B IN 2", "TDMIN_C OUT",
                                "TODDR_C IN 2", "TDMIN_C OUT",
+                               "TODDR_A IN 3", "SPDIFIN Capture",
+                               "TODDR_B IN 3", "SPDIFIN Capture",
+                               "TODDR_C IN 3", "SPDIFIN Capture",
                                "TODDR_A IN 4", "PDM Capture",
                                "TODDR_B IN 4", "PDM Capture",
                                "TODDR_C IN 4", "PDM Capture",
                };
 
                dai-link-8 {
+                       sound-dai = <&spdifin>;
+
+                       codec {
+                               sound-dai = <&spdif_dir>;
+                       };
+               };
+
+               dai-link-9 {
                        sound-dai = <&pdm>;
 
                        codec {
        vqmmc-supply = <&vddio_boot>;
 };
 
+&spdifin {
+       pinctrl-0 = <&spdif_in_a19_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &spdifout {
        pinctrl-0 = <&spdif_out_a20_pins>;
        pinctrl-names = "default";