Skip to contentSkip to conversation

dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC

PATCH Applied Yixun Lan 4 participants 7 messages Mar 4 – Mar 13

Subsystems (4)
lore
Share & tools
lore

Yixun Lan

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: serial: 8250: spacemit: fix clock property for K3 SoC

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")
---
 Documentation/devicetree/bindings/serial/8250.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/serial/8250.yaml +4 -1
index 73851f19330d..e9e07c2356bc 100644
@@ -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,

Signature · 1 line
Yixun Lan <[email protected]>
#1 lore raw

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)

Quoted 5 lines · 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")

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

Quoted 37 lines
---
 Documentation/devicetree/bindings/serial/8250.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/serial/8250.yaml +4 -2
index 73851f19330d..e9e07c2356bc 100644
@@ -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,

Signature · 1 line
Yixun Lan <[email protected]>
Signature · 1 line
Yixun Lan (dlan)
#2 lore raw
Quoted 11 lines · Yixun Lan

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)

Quoted 4 lines · 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.

Quoted 7 lines
Quoted 1 line
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

author maintainer
#3 lore raw

Hi Greg,

Quoted 13 lines · Greg Kroah-Hartman
Quoted 12 lines · Yixun Lan

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)

Quoted 5 lines · 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")
Quoted 8 lines
Quoted 6 lines

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

Quoted 2 lines

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..

Signature · 1 line
Yixun Lan (dlan)
maintainer Acked-by
#4 lore raw
Quoted 23 lines · Yixun Lan

Hi Greg,

Quoted 20 lines · Greg Kroah-Hartman
Quoted 18 lines · Yixun Lan

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)

Quoted 5 lines · 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")

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

Quoted 7 lines
Quoted 1 line

You need to get a DT maintainer to review it before you can apply it.

Ok, so Rob gave an Ack

Quoted 2 lines

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..

maintainer Acked-by on v1 1/1
#5 lore raw
In reply to Yixun Lan
Quoted 10 lines · 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")
---
 Documentation/devicetree/bindings/serial/8250.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
author maintainer Applied
#6 lore raw
In reply to Yixun Lan
Quoted 5 lines · 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.

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,

Signature · 1 line
Yixun Lan <[email protected]>