]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-am62a: Enable AUDIO_REFCLKx
authorGarrett Giordano <ggiordano@phytec.com>
Wed, 26 Jun 2024 15:52:41 +0000 (08:52 -0700)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 1 Jul 2024 16:06:06 +0000 (21:36 +0530)
On AM62a SoCs the AUDIO_REFCLKx clocks can be used as an input to
external peripherals when configured through CTRL_MMR, so add the
clock nodes.

Link: https://lore.kernel.org/lkml/20230807202159.13095-2-francesco@dolcini.it/
Signed-off-by: Garrett Giordano <ggiordano@phytec.com>
Link: https://lore.kernel.org/r/20240626155244.3311436-1-ggiordano@phytec.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi

index 08b3aea1d30f4d76a2a7ed54e78f31d669564508..ae9560632fbef2a22ee28d10eb8b81081741eaa4 100644 (file)
                        reg = <0x4130 0x4>;
                        #clock-cells = <1>;
                };
+
+               audio_refclk0: clock-controller@82e0 {
+                       compatible = "ti,am62-audio-refclk";
+                       reg = <0x82e0 0x4>;
+                       clocks = <&k3_clks 157 0>;
+                       assigned-clocks = <&k3_clks 157 0>;
+                       assigned-clock-parents = <&k3_clks 157 8>;
+                       #clock-cells = <0>;
+               };
+
+               audio_refclk1: clock-controller@82e4 {
+                       compatible = "ti,am62-audio-refclk";
+                       reg = <0x82e4 0x4>;
+                       clocks = <&k3_clks 157 10>;
+                       assigned-clocks = <&k3_clks 157 10>;
+                       assigned-clock-parents = <&k3_clks 157 18>;
+                       #clock-cells = <0>;
+               };
        };
 
        dmss: bus@48000000 {