[PATCH 15/20] dt-bindings: clock: add Synaptics SL261X clock

From: Jisheng Zhang

Date: Tue Sep 29 2026 - 02:41:32 EST


Add support for clocks, plls in Synaptics SL261X SoCs.

Signed-off-by: Jisheng Zhang <jszhang@xxxxxxxxxx>
---
.../bindings/clock/syna,sl261x-clk.yaml | 92 ++++++++++++
include/dt-bindings/clock/syna,sl261x.h | 131 ++++++++++++++++++
2 files changed, 223 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/syna,sl261x-clk.yaml
create mode 100644 include/dt-bindings/clock/syna,sl261x.h

diff --git a/Documentation/devicetree/bindings/clock/syna,sl261x-clk.yaml b/Documentation/devicetree/bindings/clock/syna,sl261x-clk.yaml
new file mode 100755
index 000000000000..3fd380c1dd39
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/syna,sl261x-clk.yaml
@@ -0,0 +1,92 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/syna,sl261x-clk.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Synaptics SL261x clock controllers
+
+maintainers:
+ - Jisheng Zhang <jszhang@xxxxxxxxxx>
+
+description: |
+ The SL261x clock hardware is divided into SoC, CPU, AIO, and system
+ manager register blocks. Each clock controller is a child of the node
+ containing its register range. The CPU clock node has a phandle to the
+ global chip control syscon.
+
+properties:
+ compatible:
+ oneOf:
+ - enum:
+ - syna,sl261x-soc-clk
+ - syna,sl261x-cpu-clk
+ - syna,sl261x-aio-clk
+ - syna,sl261x-system-clk
+ - items:
+ - const: simple-mfd
+ - const: syscon
+
+ reg:
+ maxItems: 1
+
+ syna,gbl-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: Phandle to the SL261x global chip control syscon.
+
+ '#clock-cells':
+ const: 1
+
+ clocks:
+ maxItems: 1
+ description: Reference clock used as the input to the PLLs.
+
+required:
+ - compatible
+
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: syna,sl261x-cpu-clk
+ then:
+ required:
+ - syna,gbl-syscon
+ else:
+ properties:
+ syna,gbl-syscon: false
+
+additionalProperties: false
+
+examples:
+ - |
+ osc: clock-osc {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <25000000>;
+ };
+
+ chip: syscon@f7e10000 {
+ compatible = "syscon", "simple-mfd";
+ reg = <0xf7e10000 0x10000>;
+
+ clk: clock {
+ compatible = "syna,sl261x-soc-clk";
+ #clock-cells = <1>;
+ clocks = <&osc>;
+ };
+ };
+
+ cpu_wrap: cpu-wrap@f7e30000 {
+ compatible = "syscon", "simple-mfd";
+ reg = <0xf7e30000 0x4000>;
+
+ cpuclk: clock {
+ compatible = "syna,sl261x-cpu-clk";
+ #clock-cells = <1>;
+ clocks = <&osc>;
+ syna,gbl-syscon = <&chip>;
+ };
+ };
+...
diff --git a/include/dt-bindings/clock/syna,sl261x.h b/include/dt-bindings/clock/syna,sl261x.h
new file mode 100644
index 000000000000..4649b233f08a
--- /dev/null
+++ b/include/dt-bindings/clock/syna,sl261x.h
@@ -0,0 +1,131 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
+/*
+ * Synaptics SL261X clock tree IDs
+ *
+ * Copyright (C) 2025 Synaptics Incorporated
+ *
+ * Author: Jisheng Zhang <jszhang@xxxxxxxxxx>
+ */
+
+/* SoC domain */
+
+/* GBL common clks */
+#define CLK_CPUFASTREF 0
+#define CLK_MEMFASTREF 1
+#define CLK_CFG 2
+#define CLK_SYS 3
+#define CLK_PERIFSYS 4
+#define CLK_APBCORE 5
+#define CLK_APBSER 6
+#define CLK_ATB 7
+#define CLK_HPC 8
+#define CLK_EMMC 9
+#define CLK_SD0 10
+#define CLK_SD1 11
+#define CLK_GETHRGMII 12
+#define CLK_GETHRGMII1 13
+#define CLK_GE0_PTP_REF 14
+#define CLK_GE1_PTP_REF 15
+#define CLK_USB2TEST 16
+#define CLK_USB2TEST480MG0 17
+#define CLK_USB2TEST480MG1 18
+#define CLK_USB2TEST480MG2 19
+#define CLK_USB2TEST100MG0 20
+#define CLK_USB2TEST100MG1 21
+#define CLK_USB2TEST100MG2 22
+#define CLK_USB2TEST100MG3 23
+#define CLK_PERIFTEST125MG0 24
+#define CLK_PERIFTEST200MG0 25
+#define CLK_PERIFTEST200MG1 26
+#define CLK_GPU 27
+#define CLK_NPU 28
+#define CLK_AVIOSYS 29
+#define CLK_AIOSYS 30
+#define CLK_AVIO_LCDC2SCAN 31
+#define CLK_AVIO_IPI 32
+#define CLK_AVIO_P 33
+#define CLK_AVIO_DPHYRXTXESC 34
+#define CLK_AVIOFPLL 35
+#define CLK_AVIO_RX_SCANBYTE 36
+#define CLK_AVIO_RX_SCANTEST 37
+
+/* GBL gate clks */
+#define CLK_USB0CORE 38
+#define CLK_SDIOSYS 39
+#define CLK_EMMCSYS 40
+#define CLK_GPUAXI 41
+#define CLK_GETHRGMIISYS 42
+#define CLK_SDIO1SYS 43
+#define CLK_USB1CORE 44
+#define CLK_GETHRGMII1SYS 45
+#define CLK_USB0PHYREF 46
+#define CLK_USB1PHYREF 47
+#define CLK_APBUART0 48
+#define CLK_APBUART1 49
+#define CLK_APBUART2 50
+#define CLK_APBUART3 51
+#define CLK_APBI2C0 52
+#define CLK_APBI2C1 53
+#define CLK_APBSPI0 54
+#define CLK_APBSPI1 55
+#define CLK_APBSPI2 56
+#define CLK_APBSPI3 57
+#define CLK_APBGPIO 58
+#define CLK_APBTIMERS 59
+#define CLK_APBSYSCNT 60
+#define CLK_APBWDT 61
+#define CLK_APBDMA 62
+#define SL261X_CLK_MAX 63
+
+/* cpuss */
+#define CLK_CPU0 0
+#define CLK_CPU1 1
+#define CLK_DSU 2
+#define SL261X_CPU_CLK_MAX 3
+
+
+/* sysmgr domain */
+
+#define CLK_CFG_UART0 0
+#define CLK_SER_UART0 1
+#define CLK_CFG_UART1 2
+#define CLK_CFG_UART2 3
+#define CLK_CFG_UART3 4
+#define CLK_CFG_GPIO 5
+#define CLK_CFG_I2CM0 6
+#define CLK_CFG_I2CM1 7
+#define CLK_CFG_SPIM 8
+#define CLK_CFG_SPIS 9
+#define CLK_CFG_I3C 10
+#define CLK_CFG_XSPI 11
+#define CLK_AXI_XSPI 12
+#define CLK_CFG_PVT 13
+#define CLK_CFG_ADC 14
+#define CLK_CFG_PWM 15
+#define CLK_BUS_CAN0 16
+#define CLK_BUS_CAN1 17
+#define CLK_CFG_PDM 18
+
+#define CLK_SER_UART1 19
+#define CLK_SER_UART2 20
+#define CLK_SER_UART3 21
+#define CLK_DEB_GPIO 22
+#define CLK_SER_I2CM0 23
+#define CLK_SER_I2CM1 24
+#define CLK_SER_SPIM 25
+#define CLK_SER_SPIS 26
+#define CLK_SER_I3C 27
+#define CLK_SER_XSPI 28
+#define CLK_HS_PVT 29
+#define CLK_CORE_ADC 30
+#define CLK_SER_PWM 31
+#define CLK_SER_CAN0 32
+#define CLK_SER_CAN1 33
+#define CLK_SER_PDM 34
+#define CLK_REF_CALIB 35
+
+#define CLK_MCU_REF 36
+#define CLK_MCU_PLL 37
+#define CLK_MCU_IO_PLL 38
+#define CLK_MCU_APB 39
+#define CLK_MCU_AXI 40
--
2.53.0