public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
@ 2026-03-04  7:19 Yixun Lan
  2026-03-10  9:34 ` Yixun Lan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yixun Lan @ 2026-03-04  7:19 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lubomir Rintel, devicetree, Guodong Xu
  Cc: Conor Dooley, linux-kernel, linux-serial, linux-riscv, spacemit,
	Yixun Lan

The UART of SpacemiT K3 SoC has same clock property as K1 generation which
request two clock sources, fix the binding otherwise will get DT check
warnings.

Fixes: b5024e804ee0 ("dt-bindings: serial: 8250: add SpacemiT K3 UART compatible")
Signed-off-by: Yixun Lan <dlan@kernel.org>
---
 Documentation/devicetree/bindings/serial/8250.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml
index 73851f19330d..e9e07c2356bc 100644
--- a/Documentation/devicetree/bindings/serial/8250.yaml
+++ b/Documentation/devicetree/bindings/serial/8250.yaml
@@ -63,7 +63,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: spacemit,k1-uart
+            enum:
+              - spacemit,k1-uart
+              - spacemit,k3-uart
     then:
       properties:
         clock-names:
@@ -76,6 +78,7 @@ allOf:
           contains:
             enum:
               - spacemit,k1-uart
+              - spacemit,k3-uart
               - nxp,lpc1850-uart
     then:
       required:

---
base-commit: ec1fb4e55df47ed043ab2ccc6787e39b9d67e49b
change-id: 20260304-01-uart-clock-names-551463132daa

Best regards,
-- 
Yixun Lan <dlan@kernel.org>


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

* Re: [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
  2026-03-04  7:19 [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC Yixun Lan
@ 2026-03-10  9:34 ` Yixun Lan
  2026-03-12 14:13   ` Greg Kroah-Hartman
  2026-03-12 13:46 ` Rob Herring (Arm)
  2026-03-13 13:24 ` Yixun Lan
  2 siblings, 1 reply; 7+ messages in thread
From: Yixun Lan @ 2026-03-10  9:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Lubomir Rintel,
	devicetree, Guodong Xu, Conor Dooley, linux-kernel, linux-serial,
	linux-riscv, spacemit

Hi Greg, Jiri,

  Do you mind if I taking this patch via SpacemiT's SoC tree? and if
possible, it would be nice to have your Acks..
(or either way works for me, if you grab it and merged via tty tree)

On 07:19 Wed 04 Mar     , Yixun Lan wrote:
> The UART of SpacemiT K3 SoC has same clock property as K1 generation which
> request two clock sources, fix the binding otherwise will get DT check
> warnings.
> 
> Fixes: b5024e804ee0 ("dt-bindings: serial: 8250: add SpacemiT K3 UART compatible")
I would just drop the Fixes tag, as I think at the time of Gudong
submitting the patch, the clock driver isn't ready, so he deliberatly
removed this clock contraint and provided with a fixed clock frequency
(the bindings match with DTS)

https://github.com/torvalds/linux/blob/v7.0-rc3/arch/riscv/boot/dts/spacemit/k3.dtsi#L414

> Signed-off-by: Yixun Lan <dlan@kernel.org>
> ---
>  Documentation/devicetree/bindings/serial/8250.yaml | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml
> index 73851f19330d..e9e07c2356bc 100644
> --- a/Documentation/devicetree/bindings/serial/8250.yaml
> +++ b/Documentation/devicetree/bindings/serial/8250.yaml
> @@ -63,7 +63,9 @@ allOf:
>        properties:
>          compatible:
>            contains:
> -            const: spacemit,k1-uart
> +            enum:
> +              - spacemit,k1-uart
> +              - spacemit,k3-uart
>      then:
>        properties:
>          clock-names:
> @@ -76,6 +78,7 @@ allOf:
>            contains:
>              enum:
>                - spacemit,k1-uart
> +              - spacemit,k3-uart
>                - nxp,lpc1850-uart
>      then:
>        required:
> 
> ---
> base-commit: ec1fb4e55df47ed043ab2ccc6787e39b9d67e49b
> change-id: 20260304-01-uart-clock-names-551463132daa
> 
> Best regards,
> -- 
> Yixun Lan <dlan@kernel.org>
> 

-- 
Yixun Lan (dlan)

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

* Re: [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
  2026-03-04  7:19 [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC Yixun Lan
  2026-03-10  9:34 ` Yixun Lan
@ 2026-03-12 13:46 ` Rob Herring (Arm)
  2026-03-13 13:24 ` Yixun Lan
  2 siblings, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2026-03-12 13:46 UTC (permalink / raw)
  To: Yixun Lan
  Cc: devicetree, Conor Dooley, Conor Dooley, Greg Kroah-Hartman,
	Lubomir Rintel, linux-kernel, Jiri Slaby, Guodong Xu,
	linux-serial, Krzysztof Kozlowski, spacemit, linux-riscv


On Wed, 04 Mar 2026 07:19:39 +0000, Yixun Lan wrote:
> The UART of SpacemiT K3 SoC has same clock property as K1 generation which
> request two clock sources, fix the binding otherwise will get DT check
> warnings.
> 
> Fixes: b5024e804ee0 ("dt-bindings: serial: 8250: add SpacemiT K3 UART compatible")
> Signed-off-by: Yixun Lan <dlan@kernel.org>
> ---
>  Documentation/devicetree/bindings/serial/8250.yaml | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


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

* Re: [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
  2026-03-10  9:34 ` Yixun Lan
@ 2026-03-12 14:13   ` Greg Kroah-Hartman
  2026-03-13  1:19     ` Yixun Lan
  0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2026-03-12 14:13 UTC (permalink / raw)
  To: Yixun Lan
  Cc: Jiri Slaby, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Lubomir Rintel, devicetree, Guodong Xu, Conor Dooley,
	linux-kernel, linux-serial, linux-riscv, spacemit

On Tue, Mar 10, 2026 at 05:34:46PM +0800, Yixun Lan wrote:
> Hi Greg, Jiri,
> 
>   Do you mind if I taking this patch via SpacemiT's SoC tree? and if
> possible, it would be nice to have your Acks..
> (or either way works for me, if you grab it and merged via tty tree)
> 
> On 07:19 Wed 04 Mar     , Yixun Lan wrote:
> > The UART of SpacemiT K3 SoC has same clock property as K1 generation which
> > request two clock sources, fix the binding otherwise will get DT check
> > warnings.
> > 
> > Fixes: b5024e804ee0 ("dt-bindings: serial: 8250: add SpacemiT K3 UART compatible")
> I would just drop the Fixes tag, as I think at the time of Gudong
> submitting the patch, the clock driver isn't ready, so he deliberatly
> removed this clock contraint and provided with a fixed clock frequency
> (the bindings match with DTS)
> 
> https://github.com/torvalds/linux/blob/v7.0-rc3/arch/riscv/boot/dts/spacemit/k3.dtsi#L414

You need to get a DT maintainer to review it before you can apply it.
If you want to take it through your tree once that happens, that's fine
with me.

thanks,

greg k-h

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

* Re: [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
  2026-03-12 14:13   ` Greg Kroah-Hartman
@ 2026-03-13  1:19     ` Yixun Lan
  2026-03-13  7:06       ` Greg Kroah-Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: Yixun Lan @ 2026-03-13  1:19 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Yixun Lan, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lubomir Rintel, devicetree, Guodong Xu,
	Conor Dooley, linux-kernel, linux-serial, linux-riscv, spacemit

Hi Greg,

On 15:13 Thu 12 Mar     , Greg Kroah-Hartman wrote:
> On Tue, Mar 10, 2026 at 05:34:46PM +0800, Yixun Lan wrote:
> > Hi Greg, Jiri,
> > 
> >   Do you mind if I taking this patch via SpacemiT's SoC tree? and if
> > possible, it would be nice to have your Acks..
> > (or either way works for me, if you grab it and merged via tty tree)
> > 
> > On 07:19 Wed 04 Mar     , Yixun Lan wrote:
> > > The UART of SpacemiT K3 SoC has same clock property as K1 generation which
> > > request two clock sources, fix the binding otherwise will get DT check
> > > warnings.
> > > 
> > > Fixes: b5024e804ee0 ("dt-bindings: serial: 8250: add SpacemiT K3 UART compatible")
> > I would just drop the Fixes tag, as I think at the time of Gudong
> > submitting the patch, the clock driver isn't ready, so he deliberatly
> > removed this clock contraint and provided with a fixed clock frequency
> > (the bindings match with DTS)
> > 
> > https://github.com/torvalds/linux/blob/v7.0-rc3/arch/riscv/boot/dts/spacemit/k3.dtsi#L414
> 
> You need to get a DT maintainer to review it before you can apply it.
Ok, so Rob gave an Ack

> If you want to take it through your tree once that happens, that's fine
> with me.
Thanks, so this imply an Ack, but could give an explict Acked-by?
then I will proceed..

-- 
Yixun Lan (dlan)

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

* Re: [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
  2026-03-13  1:19     ` Yixun Lan
@ 2026-03-13  7:06       ` Greg Kroah-Hartman
  0 siblings, 0 replies; 7+ messages in thread
From: Greg Kroah-Hartman @ 2026-03-13  7:06 UTC (permalink / raw)
  To: Yixun Lan
  Cc: Yixun Lan, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lubomir Rintel, devicetree, Guodong Xu,
	Conor Dooley, linux-kernel, linux-serial, linux-riscv, spacemit

On Fri, Mar 13, 2026 at 09:19:10AM +0800, Yixun Lan wrote:
> Hi Greg,
> 
> On 15:13 Thu 12 Mar     , Greg Kroah-Hartman wrote:
> > On Tue, Mar 10, 2026 at 05:34:46PM +0800, Yixun Lan wrote:
> > > Hi Greg, Jiri,
> > > 
> > >   Do you mind if I taking this patch via SpacemiT's SoC tree? and if
> > > possible, it would be nice to have your Acks..
> > > (or either way works for me, if you grab it and merged via tty tree)
> > > 
> > > On 07:19 Wed 04 Mar     , Yixun Lan wrote:
> > > > The UART of SpacemiT K3 SoC has same clock property as K1 generation which
> > > > request two clock sources, fix the binding otherwise will get DT check
> > > > warnings.
> > > > 
> > > > Fixes: b5024e804ee0 ("dt-bindings: serial: 8250: add SpacemiT K3 UART compatible")
> > > I would just drop the Fixes tag, as I think at the time of Gudong
> > > submitting the patch, the clock driver isn't ready, so he deliberatly
> > > removed this clock contraint and provided with a fixed clock frequency
> > > (the bindings match with DTS)
> > > 
> > > https://github.com/torvalds/linux/blob/v7.0-rc3/arch/riscv/boot/dts/spacemit/k3.dtsi#L414
> > 
> > You need to get a DT maintainer to review it before you can apply it.
> Ok, so Rob gave an Ack
> 
> > If you want to take it through your tree once that happens, that's fine
> > with me.
> Thanks, so this imply an Ack, but could give an explict Acked-by?
> then I will proceed..

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

* Re: [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
  2026-03-04  7:19 [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC Yixun Lan
  2026-03-10  9:34 ` Yixun Lan
  2026-03-12 13:46 ` Rob Herring (Arm)
@ 2026-03-13 13:24 ` Yixun Lan
  2 siblings, 0 replies; 7+ messages in thread
From: Yixun Lan @ 2026-03-13 13:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Lubomir Rintel, devicetree, Guodong Xu, Yixun Lan
  Cc: Conor Dooley, linux-kernel, linux-serial, linux-riscv, spacemit


On Wed, 04 Mar 2026 07:19:39 +0000, Yixun Lan wrote:
> The UART of SpacemiT K3 SoC has same clock property as K1 generation which
> request two clock sources, fix the binding otherwise will get DT check
> warnings.
> 
> 

Applied, thanks!

[1/1] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC
      https://github.com/spacemit-com/linux/commit/606a6b8bca570aa4f838ddd410345a2937bd98eb

Best regards,
-- 
Yixun Lan <dlan@kernel.org>

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

end of thread, other threads:[~2026-03-13 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04  7:19 [PATCH] dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC Yixun Lan
2026-03-10  9:34 ` Yixun Lan
2026-03-12 14:13   ` Greg Kroah-Hartman
2026-03-13  1:19     ` Yixun Lan
2026-03-13  7:06       ` Greg Kroah-Hartman
2026-03-12 13:46 ` Rob Herring (Arm)
2026-03-13 13:24 ` Yixun Lan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox