Skip to content

Commit efe897b

Browse files
committed
dt-bindings: soc: spacemit: k3: add clock support
Add compatible strings for clock drivers to support Spacemit K3 SoC, also includes all the defined clock IDs. The SpacemiT K3 SoC clock IP is scattered over several different blocks, which are APBC, APBS, APMU, DCIU, MPMU, all of them are capable of generating clock and reset signals. APMU and MPMU have additional Power Domain management functionality. Following is a brief list that shows devices managed in each block: APBC: UART, GPIO, PWM, SPI, TIMER, I2S, IR, DR, TSEN, IPC, CAN APBS: various PPL clocks control APMU: CCI, CPU, CSI, ISP, LCD, USB, QSPI, DMA, VPU, GPU, DSI, PCIe, EMAC.. DCID: SRAM, DMA, TCM MPMU: various PLL1 derived clocks, UART, WATCHDOG, I2S Link: https://lore.kernel.org/r/20260108-k3-clk-v5-1-42a11b74ad58@gentoo.org Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
1 parent 092c235 commit efe897b

3 files changed

Lines changed: 408 additions & 5 deletions

File tree

Documentation/devicetree/bindings/clock/spacemit,k1-pll.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
$id: http://devicetree.org/schemas/clock/spacemit,k1-pll.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: SpacemiT K1 PLL
7+
title: SpacemiT K1/K3 PLL
88

99
maintainers:
1010
- Haylen Chu <heylenay@4d2.org>
1111

1212
properties:
1313
compatible:
14-
const: spacemit,k1-pll
14+
enum:
15+
- spacemit,k1-pll
16+
- spacemit,k3-pll
1517

1618
reg:
1719
maxItems: 1
@@ -28,7 +30,8 @@ properties:
2830
"#clock-cells":
2931
const: 1
3032
description:
31-
See <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices.
33+
For K1 SoC, check <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices.
34+
For K3 SoC, check <dt-bindings/clock/spacemit,k3-clocks.h> for valid indices.
3235

3336
required:
3437
- compatible

Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$id: http://devicetree.org/schemas/soc/spacemit/spacemit,k1-syscon.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: SpacemiT K1 SoC System Controller
7+
title: SpacemiT K1/K3 SoC System Controller
88

99
maintainers:
1010
- Haylen Chu <heylenay@4d2.org>
@@ -22,6 +22,10 @@ properties:
2222
- spacemit,k1-syscon-rcpu
2323
- spacemit,k1-syscon-rcpu2
2424
- spacemit,k1-syscon-apbc2
25+
- spacemit,k3-syscon-apbc
26+
- spacemit,k3-syscon-apmu
27+
- spacemit,k3-syscon-dciu
28+
- spacemit,k3-syscon-mpmu
2529

2630
reg:
2731
maxItems: 1
@@ -39,7 +43,8 @@ properties:
3943
"#clock-cells":
4044
const: 1
4145
description:
42-
See <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices.
46+
For K1 SoC, check <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices.
47+
For K3 SoC, check <dt-bindings/clock/spacemit,k3-clocks.h> for valid indices.
4348

4449
"#power-domain-cells":
4550
const: 1
@@ -60,6 +65,8 @@ allOf:
6065
enum:
6166
- spacemit,k1-syscon-apmu
6267
- spacemit,k1-syscon-mpmu
68+
- spacemit,k3-syscon-apmu
69+
- spacemit,k3-syscon-mpmu
6370
then:
6471
required:
6572
- "#power-domain-cells"
@@ -74,6 +81,9 @@ allOf:
7481
- spacemit,k1-syscon-apbc
7582
- spacemit,k1-syscon-apmu
7683
- spacemit,k1-syscon-mpmu
84+
- spacemit,k3-syscon-apbc
85+
- spacemit,k3-syscon-apmu
86+
- spacemit,k3-syscon-mpmu
7787
then:
7888
required:
7989
- clocks

0 commit comments

Comments
 (0)