ARM: dts: meson8: correct uart_B and uart_C clock references
Subsystems (2)
Martin Blumenstingl
reviewerPATCH v2 1/1 ARM: dts: meson8: correct uart_B and uart_C clock references
On Meson8 uart_B and uart_C do not work, because they are relying on incorrect clocks. Change the references of pclk to the correct CLKID (UART1 for uart_B and UART2 for uart_C), to allow use of the two uarts.
This was originally reported by Hans-Frieder Vogt for Meson8b [0], but the same bug is also present in meson8.dtsi
---
Changes since v1:
- move the link to the original report for Meson8b to the description
arch/arm/boot/dts/meson8.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/meson8.dtsi +2 -2
@@ -769,13 +769,13 @@ &uart_A { &uart_B { compatible = "amlogic,meson8-uart"; - clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; + clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>; clock-names = "xtal", "pclk", "baud"; }; &uart_C { compatible = "amlogic,meson8-uart"; - clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; + clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>; clock-names = "xtal", "pclk", "baud"; };
Signature · 7 lines
2.40.1 _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic
Quoted 25 lines · Martin Blumenstingl
On Meson8
uart_Banduart_Cdo not work, because they are relying on incorrect clocks. Change the references of pclk to the correct CLKID (UART1 foruart_Band UART2 foruart_C), to allow use of the two uarts.This was originally reported by Hans-Frieder Vogt for Meson8b [0], but the same bug is also present in
meson8.dtsiFixes 57007bfb5469 ("ARM: dts: meson8: Fix the UART device-tree schema validation")Signed-off-by Martin Blumenstingl <[email protected]>---
Changes since v1:
- move the link to the original report for Meson8b to the descriptionarch/arm/boot/dts/meson8.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/meson8.dtsi +0
-0
arch/arm/boot/dts/meson8.dtsi &uart_A { · line 772
Quoted 5 lines
arch/arm/boot/dts/meson8.dtsi +1
-1@@ -769,13 +769,13 @@ &uart_A { &uart_B { compatible = "amlogic,meson8-uart"; - clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; + clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>;
Shouldn't the second clock reference for uart_B rather be CLKID_UART1, similar to meson8b?
Sorry, didn't spot this earlier.
Quoted 10 lines
arch/arm/boot/dts/meson8.dtsi +1
-1clock-names = "xtal", "pclk", "baud"; }; &uart_C { compatible = "amlogic,meson8-uart"; - clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; + clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>; clock-names = "xtal", "pclk", "baud"; };
Martin Blumenstingl
reviewerOn Sun, May 14, 2023 at 11:01 PM Hans-Frieder Vogt <[email protected]> wrote:
[...]
Quoted 7 lines
Review
Quoted 4 lines
&uart_B { compatible = "amlogic,meson8-uart";(quoted diff) +1
-1- clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; + clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>;Shouldn't the second clock reference for
uart_Brather beCLKID_UART1, similar to meson8b?
Sorry, didn't spot this earlier.
You're totally right - thank you for spotting this! I'll send a fixed v3 soon.