Skip to contentSkip to conversation

ARM: dts: sun6i: Add clock-output-names to osc24M clock

PATCH Applied Chen-Yu Tsai 2 participants 2 messages Jan 8, 2019 – Jan 9, 2019

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

PATCH 1/1 ARM: dts: sun6i: Add clock-output-names to osc24M clock

The osc24M clock does not have a "clock-output-names" property, which means that the clock name is derived from the node name in Linux. The node name was changed in commit acfd5bbe2641 ("ARM: dts: sun6i: Change clock node names to avoid warnings"). This breaks Linux as the sunxi-ng clock driver implicitly depends on the external clock being named "osc24M".

Add a "clock-output-names" property to restore the previous behavior.

Fixes acfd5bbe2641 ("ARM: dts: sun6i: Change clock node names to avoid

warnings")

---
This is a critical fix for v5.0-rc. Without it the A31 boots up to the UART failing to get its clock rate, and thus failing to setup a console.

Also the timer-sun5i init code hits a divide by zero exception. I'll send a separate patch to make this one fail gracefully.

---
 arch/arm/boot/dts/sun6i-a31.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/sun6i-a31.dtsi +1 -0
index 353d90f99b40..13304b8c5139 100644
@@ -216,6 +216,7 @@
 			#clock-cells = <0>;
 			compatible = "fixed-clock";
 			clock-frequency = <24000000>;
+			clock-output-names = "osc24M";
 		};
 
 		osc32k: clk-32k {
Signature · 1 line
2.20.1
#1 lore raw
Quoted 7 lines · Chen-Yu Tsai

The osc24M clock does not have a "clock-output-names" property, which means that the clock name is derived from the node name in Linux. The node name was changed in commit acfd5bbe2641 ("ARM: dts: sun6i: Change clock node names to avoid warnings"). This breaks Linux as the sunxi-ng clock driver implicitly depends on the external clock being named "osc24M".

Quoted 5 lines

Add a "clock-output-names" property to restore the previous behavior.

Fixes acfd5bbe2641 ("ARM: dts: sun6i: Change clock node names to avoid

warnings")

Applied, thanks!
Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com