arm64: dts: meson-axg: s400: add pdm to the sound card
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 31 Aug 2018 15:02:18 +0000 (17:02 +0200)
committerKevin Hilman <khilman@baylibre.com>
Thu, 13 Sep 2018 04:51:28 +0000 (21:51 -0700)
Enable the PDM input device on the S400 and it to the sound 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 f3e16cb..92d3064 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 4", "PDM Capture",
+                               "TODDR_B IN 4", "PDM Capture",
+                               "TODDR_C IN 4", "PDM Capture",
                                "TODDR_A IN 6", "TDMIN_LB OUT",
                                "TODDR_B IN 6", "TDMIN_LB OUT",
                                "TODDR_C IN 6", "TDMIN_LB OUT",
                                sound-dai = <&spdif_dit>;
                        };
                };
+
+               dai-link@8 {
+                       sound-dai = <&pdm>;
+
+                       codec {
+                               sound-dai = <&dmics>;
+                       };
+               };
        };
 
        wifi32k: wifi32k {
        };
 };
 
+&pdm {
+       pinctrl-0 = <&pdm_dclk_a14_pins>, <&pdm_din0_pins>,
+                   <&pdm_din1_pins>, <&pdm_din2_pins>, <&pdm_din3_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &pwm_ab {
        status = "okay";
        pinctrl-0 = <&pwm_a_x20_pins>;