linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: meson8b: correct uart_B and uart_C clock references
@ 2023-04-07 14:36 hfdevel
  2023-04-10 21:14 ` Martin Blumenstingl
  2023-05-09  7:46 ` Neil Armstrong
  0 siblings, 2 replies; 3+ messages in thread
From: hfdevel @ 2023-04-07 14:36 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, neil.armstrong, khilman,
	jbrunet, martin.blumenstingl
  Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

With the current device tree for meson8b, uarts B (e.g. available on pins
8/10 on Odroid-C1) and C (pins 3/5 on Odroid-C1) do not work, because they
are relying on incorrect clocks. Change the references of pclk to the
correct CLKID, to allow use of the two uarts.

Fixes: 3375aa77135f ("ARM: dts: meson8b: Fix the UART device-tree schema validation")
Signed-off-by: Hans-Frieder Vogt <hfdevel@gmx.net>
---
v1->v2: Addressed review comments with respect to patch style.

 meson8b.dtsi |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index d5a3fe21e8e7..25f7c985f9ea 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -740,13 +740,13 @@ &uart_A {

 &uart_B {
 	compatible = "amlogic,meson8b-uart";
-	clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
+	clocks = <&xtal>, <&clkc CLKID_UART1>, <&clkc CLKID_CLK81>;
 	clock-names = "xtal", "pclk", "baud";
 };

 &uart_C {
 	compatible = "amlogic,meson8b-uart";
-	clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>;
+	clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>;
 	clock-names = "xtal", "pclk", "baud";
 };


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ARM: dts: meson8b: correct uart_B and uart_C clock references
  2023-04-07 14:36 [PATCH v2] ARM: dts: meson8b: correct uart_B and uart_C clock references hfdevel
@ 2023-04-10 21:14 ` Martin Blumenstingl
  2023-05-09  7:46 ` Neil Armstrong
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Blumenstingl @ 2023-04-10 21:14 UTC (permalink / raw)
  To: hfdevel
  Cc: robh+dt, krzysztof.kozlowski+dt, neil.armstrong, khilman,
	jbrunet, devicetree, linux-arm-kernel, linux-amlogic,
	linux-kernel

On Fri, Apr 7, 2023 at 4:36 PM <hfdevel@gmx.net> wrote:
>
> With the current device tree for meson8b, uarts B (e.g. available on pins
> 8/10 on Odroid-C1) and C (pins 3/5 on Odroid-C1) do not work, because they
> are relying on incorrect clocks. Change the references of pclk to the
> correct CLKID, to allow use of the two uarts.
>
> Fixes: 3375aa77135f ("ARM: dts: meson8b: Fix the UART device-tree schema validation")
Cc: stable@vger.kernel.org

> Signed-off-by: Hans-Frieder Vogt <hfdevel@gmx.net>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

PS: the author of this change seems to be just your email address, no
name attached.
I'm not sure if Neil can fix this when applying the patch. Generally
the rule is: patch author and signed-off-by line should be equal.

And finally: thanks again for spotting and fixing this!


Best regards,
Martin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ARM: dts: meson8b: correct uart_B and uart_C clock references
  2023-04-07 14:36 [PATCH v2] ARM: dts: meson8b: correct uart_B and uart_C clock references hfdevel
  2023-04-10 21:14 ` Martin Blumenstingl
@ 2023-05-09  7:46 ` Neil Armstrong
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2023-05-09  7:46 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, khilman, jbrunet,
	martin.blumenstingl, hfdevel
  Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel

Hi,

On Fri, 07 Apr 2023 16:36:25 +0200, hfdevel@gmx.net wrote:
> With the current device tree for meson8b, uarts B (e.g. available on pins
> 8/10 on Odroid-C1) and C (pins 3/5 on Odroid-C1) do not work, because they
> are relying on incorrect clocks. Change the references of pclk to the
> correct CLKID, to allow use of the two uarts.
> 
> 

Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.5/arm-dt)

[1/1] ARM: dts: meson8b: correct uart_B and uart_C clock references
      https://git.kernel.org/amlogic/c/d542ce8d4769cdef6a7bc3437e59cfed9c68f0e4

These changes has been applied on the intermediate git tree [1].

The v6.5/arm-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.

In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].

The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.

If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

-- 
Neil


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-09  7:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 14:36 [PATCH v2] ARM: dts: meson8b: correct uart_B and uart_C clock references hfdevel
2023-04-10 21:14 ` Martin Blumenstingl
2023-05-09  7:46 ` Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).