Skip to contentSkip to conversation

arm64: tegra: Move clocks from RT5658 endpoint to device node

PATCH New Sameer Pujar 1 participant 1 message Mar 15, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: tegra: Move clocks from RT5658 endpoint to device node

An endpoint is not a device and it is recommended to use clocks property in device node. RT5658 Codec binding already specifies the usage of clocks property. Thus move the clocks from endpoint to device node.

Fixes 5b4f6323096a ("arm64: tegra: Audio graph sound card for Jetson AGX Xavier")

---
Changelog:
v1 -> v2: Added "clock-names" property as rt5659 driver specifically looks
for this clock name.

 arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts +2 -1
index b079420..8dd2871 100644
@@ -651,6 +651,8 @@
 				reg = <0x1a>;
 				interrupt-parent = <&gpio>;
 				interrupts = <TEGRA194_MAIN_GPIO(S, 5) GPIO_ACTIVE_HIGH>;
+				clocks = <&bpmp TEGRA194_CLK_AUD_MCLK>;
+				clock-names = "mclk";
 				realtek,jd-src = <2>;
 				sound-name-prefix = "CVB-RT";
 
@@ -658,7 +660,6 @@
 					rt5658_ep: endpoint {
 						remote-endpoint = <&i2s1_dap_ep>;
 						mclk-fs = <256>;
-						clocks = <&bpmp TEGRA194_CLK_AUD_MCLK>;
 					};
 				};
 			};
Signature · 1 line
2.7.4