]> Git Repo - linux.git/commitdiff
ARM: dts: stm32: Use SAI to generate bit and frame clock on STM32MP15xx DHCOM PDK2
authorMarek Vasut <[email protected]>
Fri, 30 Aug 2024 21:56:38 +0000 (23:56 +0200)
committerAlexandre Torgue <[email protected]>
Thu, 5 Sep 2024 09:31:56 +0000 (11:31 +0200)
By default the SGTL5000 derives bit and frame clock from MCLK, which
does not produce particularly accurate results. The SGTL5000 PLL does
improve the accuracy, but also increases power consumption. Using the
SoC SAI interface as bit and frame clock source results in the best
accuracy without the power consumption increase downside. Switch the
bit and frame clock direction from SAI to SGTL5000, reduce mclk-fs to
match.

Signed-off-by: Marek Vasut <[email protected]>
Signed-off-by: Alexandre Torgue <[email protected]>
arch/arm/boot/dts/st/stm32mp15xx-dhcom-pdk2.dtsi

index ea933da64903ce7e0bd7943bd2dde971819d9286..171d7c7658fa86afbd73d36d28e08118041dce72 100644 (file)
 
                        sgtl5000_tx_endpoint: endpoint@0 {
                                reg = <0>;
-                               bitclock-master;
-                               frame-master;
                                remote-endpoint = <&sai2a_endpoint>;
                        };
 
                        sgtl5000_rx_endpoint: endpoint@1 {
                                reg = <1>;
-                               bitclock-master;
-                               frame-master;
                                remote-endpoint = <&sai2b_endpoint>;
                        };
                };
                sai2a_port: port {
                        sai2a_endpoint: endpoint {
                                remote-endpoint = <&sgtl5000_tx_endpoint>;
+                               bitclock-master;
                                dai-format = "i2s";
                                dai-tdm-slot-num = <2>;
                                dai-tdm-slot-width = <16>;
-                               mclk-fs = <512>;
+                               frame-master;
+                               mclk-fs = <256>;
                        };
                };
        };
                sai2b_port: port {
                        sai2b_endpoint: endpoint {
                                remote-endpoint = <&sgtl5000_rx_endpoint>;
+                               bitclock-master;
                                dai-format = "i2s";
                                dai-tdm-slot-num = <2>;
                                dai-tdm-slot-width = <16>;
-                               mclk-fs = <512>;
+                               frame-master;
+                               mclk-fs = <256>;
                        };
                };
        };
This page took 0.078349 seconds and 4 git commands to generate.