]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: meson: u200: use TDM C for HDMI
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 11 Sep 2023 15:45:40 +0000 (17:45 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 11 Sep 2023 15:53:05 +0000 (17:53 +0200)
On the u200, TDM B is wired to the onboard AD82584F i2c speaker codec.
This makes TDM B a poor choice for the interface dedicated to HDMI which
uses 4 i2s lanes.

TDM A is not a good choice either as it is connected to the SDIO wifi/bt
chip.

TDM C is not used externally by default, which makes it a better choice for
the HDMI interface.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20230911154541.471484-5-jbrunet@baylibre.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts

index 921b62c5ab3398fc70cd1320881b8ddffda0f4ff..da66e2e1dffbae7df903b39f32f2d261a633ca9d 100644 (file)
        sound {
                compatible = "amlogic,axg-sound-card";
                model = "U200";
-               audio-aux-devs = <&tdmout_b>;
-               audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
-                               "TDMOUT_B IN 1", "FRDDR_B OUT 1",
-                               "TDMOUT_B IN 2", "FRDDR_C OUT 1",
+               audio-aux-devs = <&tdmout_c>;
+               audio-routing = "TDMOUT_C IN 0", "FRDDR_A OUT 2",
+                               "TDMOUT_C IN 1", "FRDDR_B OUT 2",
+                               "TDMOUT_C IN 2", "FRDDR_C OUT 2",
                                "TDM_B Playback", "TDMOUT_B OUT",
                                "SPDIFOUT IN 0", "FRDDR_A OUT 3",
                                "SPDIFOUT IN 1", "FRDDR_B OUT 3",
 
                /* 8ch hdmi interface */
                dai-link-3 {
-                       sound-dai = <&tdmif_b>;
+                       sound-dai = <&tdmif_c>;
                        dai-format = "i2s";
                        dai-tdm-slot-tx-mask-0 = <1 1>;
                        dai-tdm-slot-tx-mask-1 = <1 1>;
                        mclk-fs = <256>;
 
                        codec {
-                               sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
+                               sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
                        };
                };
 
        status = "okay";
 };
 
-&tdmif_b {
+&tdmif_c {
        status = "okay";
 };
 
-&tdmout_b {
+&tdmout_c {
        status = "okay";
 };