]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: ti: k3-am62p: Enable AUDIO_REFCLKx
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 6 Feb 2025 15:39:11 +0000 (16:39 +0100)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 3 Mar 2025 08:16:47 +0000 (13:46 +0530)
On AM62P-based 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: http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am62px/clocks.html
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20250206153911.414702-1-francesco@dolcini.it
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi

index 420c77c8e9e5e2e8e9df4baf98dd2b1463ec4842..4b47b07743305d5ec41a1fdd1bdf4eb9c74f470f 100644 (file)
        ti,interrupt-ranges = <5 69 35>;
 };
 
+&main_conf {
+       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 16>;
+               #clock-cells = <0>;
+       };
+
+       audio_refclk1: clock-controller@82e4 {
+               compatible = "ti,am62-audio-refclk";
+               reg = <0x82e4 0x4>;
+               clocks = <&k3_clks 157 18>;
+               assigned-clocks = <&k3_clks 157 18>;
+               assigned-clock-parents = <&k3_clks 157 34>;
+               #clock-cells = <0>;
+       };
+};
+
 &main_pmx0 {
        pinctrl-single,gpio-range =
                <&main_pmx0_range 0 32 PIN_GPIO_RANGE_IOPAD>,