Add definition for the clock controllers of Spacemit K1 SoC. The clock
tree is managed by several SoC parts, thus different compatible strings
are added for each.
Signed-off-by: Haylen Chu <heylenay@xxxxxxxxxxx>
---
.../bindings/clock/spacemit,ccu.yaml | 116 +++++++++++
include/dt-bindings/clock/spacemit,ccu.h | 197 ++++++++++++++++++
2 files changed, 313 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/spacemit,ccu.yaml
create mode 100644 include/dt-bindings/clock/spacemit,ccu.h
diff --git a/Documentation/devicetree/bindings/clock/spacemit,ccu.yaml b/Documentation/devicetree/bindings/clock/spacemit,ccu.yaml
new file mode 100644
index 000000000000..90ddfc5e2a2f
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/spacemit,ccu.yaml
@@ -0,0 +1,116 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/spacemit,ccu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Spacemit SoC Clock Controller
+
+maintainers:
+ - Haylen Chu <heylenay@xxxxxxxxxxx>
+
+properties:
+ compatible:
+ enum:
+ - spacemit,ccu-apbs
+ - spacemit,ccu-mpmu
+ - spacemit,ccu-apbc
+ - spacemit,ccu-apmu