[PATCH 04/18] dt-bindings: clock: add Zhihe A210 AON clock controller
Han Gao
gaohan at iscas.ac.cn
Wed Oct 21 12:48:12 PDT 2026
Add bindings for the A210 AON clock controller, including input clocks,
the system clock and I2C1 gates.
Signed-off-by: Han Gao <gaohan at iscas.ac.cn>
---
.../bindings/clock/zhihe,a210-aon-clk.yaml | 58 ++++++++++++++++++++++
include/dt-bindings/clock/zhihe,a210-aon-clk.h | 9 ++++
2 files changed, 67 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/zhihe,a210-aon-clk.yaml b/Documentation/devicetree/bindings/clock/zhihe,a210-aon-clk.yaml
new file mode 100644
index 000000000000..bc1587e3fa81
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/zhihe,a210-aon-clk.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/zhihe,a210-aon-clk.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Zhihe A210 always-on peripheral clock controller
+
+maintainers:
+ - Han Gao <gaohan at iscas.ac.cn>
+
+description: |
+ The AON clock controller provides a system clock multiplexer and
+ divider, along with peripheral clock gates.
+
+properties:
+ compatible:
+ const: zhihe,a210-aon-clk
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: High-speed AON reference
+ - description: External oscillator
+ - description: Internal RC oscillator
+ - description: RTC oscillator
+
+ clock-names:
+ items:
+ - const: high
+ - const: osc
+ - const: rc
+ - const: rtc
+
+ '#clock-cells':
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+ - |
+ clock-controller at 30844000 {
+ compatible = "zhihe,a210-aon-clk";
+ reg = <0x30844000 0x1c>;
+ #clock-cells = <1>;
+ clocks = <&aon_high>, <&osc24m>, <&rc26m>, <&rtc32k>;
+ clock-names = "high", "osc", "rc", "rtc";
+ };
+...
diff --git a/include/dt-bindings/clock/zhihe,a210-aon-clk.h b/include/dt-bindings/clock/zhihe,a210-aon-clk.h
new file mode 100644
index 000000000000..29d7e9183adf
--- /dev/null
+++ b/include/dt-bindings/clock/zhihe,a210-aon-clk.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+#ifndef _DT_BINDINGS_CLOCK_ZHIHE_A210_AON_H
+#define _DT_BINDINGS_CLOCK_ZHIHE_A210_AON_H
+
+#define A210_AON_SYS_CLK 0
+#define A210_AON_I2C1_IC_CLK 1
+#define A210_AON_I2C1_PCLK 2
+
+#endif
--
2.55.0
More information about the linux-riscv
mailing list