Skip to contentSkip to conversation

arm64: add Synaptics SL2610 SoCs and RDK boards

PATCH In review Jisheng Zhang 3 participants 17 messages Nov 30 – Dec 3

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

v3 cover arm64: add Synaptics SL2610 SoCs and RDK boards

Add initial support for the Synaptics SL261X SoCs and corresponding RDK boards.

The SL261X SoCs include five pin-to-pin compatible SoCs: SL2611, SL2613, SL2615, SL2617, and SL2619.

Only reset, pinctrl, clk/pll, uart, gpio, i2c, spi, i3c are included in this series. The support for Ethernet, USB, SDHCI, CAN, DMAC, XSPI will be submitted after this series is merged.

Since this series may be split once got acks from maintainers. So a consolidated MAINTAINERS update will follow once the subsystem series have merged, avoiding overlapping changes to the Synaptics entry.

Hi Linus Walleij, Conor,

I didn't split the series in this version, because the same syscon node exports reset, pinctl and clk, so I want to collect some acks before split.

And query one question: the reset IDs, clk IDs header files are needed by both pinctrl/reset drivers and soc dtsi/dts, so I'm not sure how to split the series, any suggestion is appreciated.

Thanks

since v2:
- fix a typo in "GPIO54" offset, 0x887c instead of 0x87c
- adopt Philipp suggestions into reset-sl2610.c
- put sl2610-syscon.c into mfd/ instead of soc/synapitcs/
- dt coding style fixes
- Drop bootargs
- Split the binding file
- move i2c timing properties to board dts

since v1:
- rebase on latest rcN
- drop some patches which have been merged
- let the "gbl" node export pinctrl/reset/clk devices with MFD_CELL_NAME()
- use <linux/platform_device.h> instead of <linux/mod_devicetable.h>
- adopt some coding suggestions from Uwe
- Use 0 and 1 to select normal and strong pull-up on 10-bit pads
- collect Acked-by tag

Jisheng Zhang (13):
arm64: kconfig: let ARCH_BERLIN cover Synaptics arm64 SoCs
pinctrl: berlin: use u16 instead of u8 for the offset
pinctrl: berlin: enable module build support
pinctrl: berlin: add optional pinconf support
dt-bindings: soc: synaptics: add SL2610 system controllers
soc: synaptics: add SL2610 system controller support
reset: add Synaptics SL2610 reset controller support
pinctrl: berlin: add Synaptics SL2610 pin controller support
clk: berlin: add Synaptics clock controller helpers
clk: berlin: add Synaptics SL2610 clocks and PLLs
dt-bindings: arm: berlin: add Synaptics SL2610 SoCs and RDK boards
arm64: dts: synaptics: add SL2610 family SoCs
arm64: dts: synaptics: add SL2610 family RDK boards

 .../bindings/arm/marvell,berlin.yaml          |  20 +
 .../synaptics/syna,sl2610-avio-syscon.yaml    |  44 +
 .../soc/synaptics/syna,sl2610-cpu-syscon.yaml |  58 ++
 .../soc/synaptics/syna,sl2610-mcu-syscon.yaml |  97 +++
 .../soc/synaptics/syna,sl2610-soc-syscon.yaml | 104 +++
 arch/arm64/Kconfig.platforms                  |   4 +-
 arch/arm64/boot/dts/synaptics/Makefile        |   5 +
 arch/arm64/boot/dts/synaptics/sl2611-rdk.dts  |  16 +
 arch/arm64/boot/dts/synaptics/sl2611.dtsi     | 476 +++++++++++
 arch/arm64/boot/dts/synaptics/sl2613-rdk.dts  |  16 +
 arch/arm64/boot/dts/synaptics/sl2613.dtsi     |  12 +
 arch/arm64/boot/dts/synaptics/sl2615-rdk.dts  |  16 +
 arch/arm64/boot/dts/synaptics/sl2615.dtsi     |  46 ++
 arch/arm64/boot/dts/synaptics/sl2617-rdk.dts  |  16 +
 arch/arm64/boot/dts/synaptics/sl2617.dtsi     |  46 ++
 arch/arm64/boot/dts/synaptics/sl2619-rdk.dts  |  16 +
 arch/arm64/boot/dts/synaptics/sl2619.dtsi     |  44 +
 .../boot/dts/synaptics/sl261x-rdk-common.dtsi | 137 ++++
 drivers/clk/Kconfig                           |   1 +
 drivers/clk/berlin/Kconfig                    |  34 +
 drivers/clk/berlin/Makefile                   |   4 +
 drivers/clk/berlin/clk-sl2610.c               | 360 +++++++++
 drivers/clk/berlin/sl-clk.c                   | 279 +++++++
 drivers/clk/berlin/sl-clk.h                   |  31 +
 drivers/clk/berlin/sl-sysmgr-clk.c            | 241 ++++++
 drivers/clk/berlin/sl-sysmgr-clk.h            |  44 +
 drivers/clk/berlin/sl2610-pll.c               | 145 ++++
 drivers/clk/berlin/sl2610-pll.h               |  14 +
 drivers/mfd/Kconfig                           |  16 +
 drivers/mfd/Makefile                          |   1 +
 drivers/mfd/sl2610-syscon.c                   |  84 ++
 drivers/pinctrl/berlin/Kconfig                |  16 +
 drivers/pinctrl/berlin/Makefile               |   1 +
 drivers/pinctrl/berlin/berlin.c               | 255 +++++-
 drivers/pinctrl/berlin/berlin.h               |  17 +-
 drivers/pinctrl/berlin/pinctrl-sl2610.c       | 759 ++++++++++++++++++
 drivers/reset/Kconfig                         |  13 +
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-sl2610.c                  | 224 ++++++
 include/dt-bindings/clock/syna,sl2610.h       | 131 +++
 include/dt-bindings/reset/syna,sl2610-reset.h |  80 ++
 41 files changed, 3904 insertions(+), 20 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-avio-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-cpu-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-mcu-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-soc-syscon.yaml
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2611-rdk.dts
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2611.dtsi
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2613-rdk.dts
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2613.dtsi
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2615-rdk.dts
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2615.dtsi
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2617-rdk.dts
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2617.dtsi
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2619-rdk.dts
 create mode 100644 arch/arm64/boot/dts/synaptics/sl2619.dtsi
 create mode 100644 arch/arm64/boot/dts/synaptics/sl261x-rdk-common.dtsi
 create mode 100644 drivers/clk/berlin/Kconfig
 create mode 100644 drivers/clk/berlin/clk-sl2610.c
 create mode 100644 drivers/clk/berlin/sl-clk.c
 create mode 100644 drivers/clk/berlin/sl-clk.h
 create mode 100644 drivers/clk/berlin/sl-sysmgr-clk.c
 create mode 100644 drivers/clk/berlin/sl-sysmgr-clk.h
 create mode 100644 drivers/clk/berlin/sl2610-pll.c
 create mode 100644 drivers/clk/berlin/sl2610-pll.h
 create mode 100644 drivers/mfd/sl2610-syscon.c
 create mode 100644 drivers/pinctrl/berlin/pinctrl-sl2610.c
 create mode 100644 drivers/reset/reset-sl2610.c
 create mode 100644 include/dt-bindings/clock/syna,sl2610.h
 create mode 100644 include/dt-bindings/reset/syna,sl2610-reset.h
Signature · 1 line
2.55.0
#1 lore raw

PATCH v3 1/13 arm64: kconfig: let ARCH_BERLIN cover Synaptics arm64 SoCs

Extend ARCH_BERLIN to cover Synaptics arm64 SoCs.

---
 arch/arm64/Kconfig.platforms | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/Kconfig.platforms +2 -2
index 49dcd7be82ce..b830161fe68b 100644
@@ -108,13 +108,13 @@ config ARCH_BRCMSTB
 endif
 
 config ARCH_BERLIN
-	bool "Marvell Berlin SoC Family"
+	bool "Synaptics/Marvell Berlin SoC Family"
 	select DW_APB_ICTL
 	select DW_APB_TIMER_OF
 	select GPIOLIB
 	select PINCTRL
 	help
-	  This enables support for Marvell Berlin SoC Family
+	  This enables support for Synaptics SoCs or Marvell Berlin SoC Family
 
 config ARCH_BITMAIN
 	bool "Bitmain SoC Platforms"
Signature · 1 line
2.55.0
#2 lore raw

PATCH v3 2/13 pinctrl: berlin: use u16 instead of u8 for the offset

In reply to Jisheng Zhang

The u8 may not be enough for newer Synaptics SoCs.

---
 drivers/pinctrl/berlin/berlin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/berlin/berlin.h +1 -1
index 231aab61d415..7e7096842eda 100644
@@ -17,7 +17,7 @@ struct berlin_desc_function {
 
 struct berlin_desc_group {
 	const char			*name;
-	u8				offset;
+	u16				offset;
 	u8				bit_width;
 	u8				lsb;
 	struct berlin_desc_function	*functions;
Signature · 1 line
2.55.0
#3 lore raw

PATCH v3 3/13 pinctrl: berlin: enable module build support

In reply to Jisheng Zhang

For Android GKI + vendor_dlkm deployments, where vendor-specific drivers must be kept separate from the GKI vmlinux and loaded as modules from the vendor partition, we need to enable module build support for berlin pinctrl drivers.

To acchive this goal:

1.Use devm_* APIs to alloc memory, so that we don't need to care free when unloading.

2.Export two symbols which will be used by SoC pinctrl drivers.

3.Add MODULE_LICENSE and MODULE_DESCRIPTION

---
 drivers/pinctrl/berlin/berlin.c | 27 ++++++++++++++-------------
 drivers/pinctrl/berlin/berlin.h | 15 +++++++++++++++
 2 files changed, 29 insertions(+), 13 deletions(-)
drivers/pinctrl/berlin/berlin.c +14 -13
index 8a612ce2d1d3..a0ae75b1d705 100644
@@ -215,7 +215,8 @@ static int berlin_pinctrl_build_state(struct platform_device *pdev)
 	}
 
 	/* we will reallocate later */
-	pctrl->functions = kzalloc_objs(*pctrl->functions, max_functions);
+	pctrl->functions = devm_kcalloc(&pdev->dev, max_functions,
+					sizeof(*pctrl->functions), GFP_KERNEL);
 	if (!pctrl->functions)
 		return -ENOMEM;
 
@@ -230,13 +231,11 @@ static int berlin_pinctrl_build_state(struct platform_device *pdev)
 		}
 	}
 
-	new_functions = krealloc(pctrl->functions,
-				    pctrl->nfunctions * sizeof(*pctrl->functions),
-				    GFP_KERNEL);
-	if (!new_functions) {
-		kfree(pctrl->functions);
+	new_functions = devm_krealloc(&pdev->dev, pctrl->functions,
+				      pctrl->nfunctions * sizeof(*pctrl->functions),
+				      GFP_KERNEL);
+	if (!new_functions)
 		return -ENOMEM;
-	}
 
 	pctrl->functions = new_functions;
 	/* map functions to theirs groups */
@@ -257,20 +256,17 @@ static int berlin_pinctrl_build_state(struct platform_device *pdev)
 				function++;
 			}
 
-			if (!found) {
-				kfree(pctrl->functions);
+			if (!found)
 				return -EINVAL;
-			}
 
 			if (!function->groups) {
 				function->groups =
 					devm_kzalloc_objs(&pdev->dev,
 							  *function->groups,
 							  function->ngroups);
-				if (!function->groups) {
-					kfree(pctrl->functions);
+
+				if (!function->groups)
 					return -ENOMEM;
-				}
 			}
 
 			groups = (const char **)function->groups;
@@ -326,6 +322,7 @@ int berlin_pinctrl_probe_regmap(struct platform_device *pdev,
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(berlin_pinctrl_probe_regmap);
 
 int berlin_pinctrl_probe(struct platform_device *pdev,
 			 const struct berlin_pinctrl_desc *desc)
@@ -340,3 +337,7 @@ int berlin_pinctrl_probe(struct platform_device *pdev,
 
 	return berlin_pinctrl_probe_regmap(pdev, desc, regmap);
 }
+EXPORT_SYMBOL_GPL(berlin_pinctrl_probe);
+
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("pinctrl library for Synaptics SoCs");
drivers/pinctrl/berlin/berlin.h +15 -0
index 7e7096842eda..8ff70d682593 100644
@@ -20,6 +20,8 @@ struct berlin_desc_group {
 	u16				offset;
 	u8				bit_width;
 	u8				lsb;
+	u16				conf_offset;
+	u8				conf_bits;
 	struct berlin_desc_function	*functions;
 };
 
@@ -28,6 +30,19 @@ struct berlin_pinctrl_desc {
 	unsigned			ngroups;
 };
 
+#define BERLIN_PINCTRLCONF_GROUP(_name, _offset, _width, _lsb,		\
+		_conf_offset, _conf_bits, ...)				\
+	{								\
+		.name = _name,						\
+		.offset = _offset,					\
+		.bit_width = _width,					\
+		.lsb = _lsb,						\
+		.conf_offset = _conf_offset,				\
+		.conf_bits = _conf_bits,				\
+		.functions = (struct berlin_desc_function[]){		\
+			__VA_ARGS__, { } },				\
+	}
+
 #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...)		\
 	{								\
 		.name = _name,						\
Signature · 1 line
2.55.0
#4 lore raw

Re: [PATCH v3 03/13] pinctrl: berlin: enable module build support

Hi Jisheng,

Le 30/11/2026 à 18:03, Jisheng Zhang a écrit :

Quoted 85 lines

For Android GKI + vendor_dlkm deployments, where vendor-specific drivers must be kept separate from the GKI vmlinux and loaded as modules from the vendor partition, we need to enable module build support for berlin pinctrl drivers.

To acchive this goal:

1.Use devm_* APIs to alloc memory, so that we don't need to care free when unloading.

2.Export two symbols which will be used by SoC pinctrl drivers.

3.Add MODULE_LICENSE and MODULE_DESCRIPTION

---
  drivers/pinctrl/berlin/berlin.c | 27 ++++++++++++++-------------
  drivers/pinctrl/berlin/berlin.h | 15 +++++++++++++++
  2 files changed, 29 insertions(+), 13 deletions(-)
drivers/pinctrl/berlin/berlin.c +10 -13
index 8a612ce2d1d3..a0ae75b1d705 100644
@@ -215,7 +215,8 @@ static int berlin_pinctrl_build_state(struct platform_device *pdev)
  	}
 
  	/* we will reallocate later */
-	pctrl->functions = kzalloc_objs(*pctrl->functions, max_functions);
+	pctrl->functions = devm_kcalloc(&pdev->dev, max_functions,
+					sizeof(*pctrl->functions), GFP_KERNEL);
  	if (!pctrl->functions)
  		return -ENOMEM;
 
@@ -230,13 +231,11 @@ static int berlin_pinctrl_build_state(struct platform_device *pdev)
  		}
  	}
 
-	new_functions = krealloc(pctrl->functions,
-				    pctrl->nfunctions * sizeof(*pctrl->functions),
-				    GFP_KERNEL);
-	if (!new_functions) {
-		kfree(pctrl->functions);
+	new_functions = devm_krealloc(&pdev->dev, pctrl->functions,
+				      pctrl->nfunctions * sizeof(*pctrl->functions),
+				      GFP_KERNEL);
+	if (!new_functions)
  		return -ENOMEM;
-	}
 
  	pctrl->functions = new_functions;
  	/* map functions to theirs groups */
@@ -257,20 +256,17 @@ static int berlin_pinctrl_build_state(struct platform_device *pdev)
  				function++;
  			}
 
-			if (!found) {
-				kfree(pctrl->functions);
+			if (!found)
  				return -EINVAL;
-			}
 
  			if (!function->groups) {
  				function->groups =
  					devm_kzalloc_objs(&pdev->dev,
  							  *function->groups,
  							  function->ngroups);
-				if (!function->groups) {
-					kfree(pctrl->functions);
+
+				if (!function->groups)
  					return -ENOMEM;
-				}
  			}
 
  			groups = (const char **)function->groups;
@@ -326,6 +322,7 @@ int berlin_pinctrl_probe_regmap(struct platform_device *pdev,
 
  	return 0;
  }
+EXPORT_SYMBOL_GPL(berlin_pinctrl_probe_regmap);
 
  int berlin_pinctrl_probe(struct platform_device *pdev,
  			 const struct berlin_pinctrl_desc *desc)

drivers/pinctrl/berlin/berlin.c int berlin_pinctrl_probe(struct platform_device *pdev, · line 342

Quoted 6 lines
drivers/pinctrl/berlin/berlin.c +3 -0
@@ -340,3 +337,7 @@ int berlin_pinctrl_probe(struct platform_device *pdev,
 
  	return berlin_pinctrl_probe_regmap(pdev, desc, regmap);
  }
+EXPORT_SYMBOL_GPL(berlin_pinctrl_probe);
+
+MODULE_LICENSE("GPL v2");

checkpatch reports that GPL should be used over "GPL v2"
cf commit bf7fbeeae6db ("module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity")

Quoted 34 lines
drivers/pinctrl/berlin/berlin.c +1 -0
+MODULE_DESCRIPTION("pinctrl library for Synaptics SoCs");
drivers/pinctrl/berlin/berlin.h +15 -0
index 7e7096842eda..8ff70d682593 100644
@@ -20,6 +20,8 @@ struct berlin_desc_group {
  	u16				offset;
  	u8				bit_width;
  	u8				lsb;
+	u16				conf_offset;
+	u8				conf_bits;
  	struct berlin_desc_function	*functions;
  };
 
@@ -28,6 +30,19 @@ struct berlin_pinctrl_desc {
  	unsigned			ngroups;
  };
 
+#define BERLIN_PINCTRLCONF_GROUP(_name, _offset, _width, _lsb,		\
+		_conf_offset, _conf_bits, ...)				\
+	{								\
+		.name = _name,						\
+		.offset = _offset,					\
+		.bit_width = _width,					\
+		.lsb = _lsb,						\
+		.conf_offset = _conf_offset,				\
+		.conf_bits = _conf_bits,				\
+		.functions = (struct berlin_desc_function[]){		\
+			__VA_ARGS__, { } },				\
+	}
+
  #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...)		\
  	{								\
  		.name = _name,						\
#5 lore raw

PATCH v3 4/13 pinctrl: berlin: add optional pinconf support

In reply to Jisheng Zhang

Add pin configuration support for newer Synaptics SoCs.

---
 drivers/pinctrl/berlin/Kconfig  |   1 +
 drivers/pinctrl/berlin/berlin.c | 228 +++++++++++++++++++++++++++++++-
 2 files changed, 225 insertions(+), 4 deletions(-)
drivers/pinctrl/berlin/Kconfig +1 -0
index 9b1644d1d4ea..abb1c912b9ba 100644
@@ -3,6 +3,7 @@ if (ARCH_BERLIN || COMPILE_TEST)
 
 config PINCTRL_BERLIN
 	bool
+	select GENERIC_PINCONF
 	select PINMUX
 	select REGMAP_MMIO
 
drivers/pinctrl/berlin/berlin.c +224 -4

285 lines not on this page · raw message

Signature · 1 line
2.55.0
#6 lore raw

PATCH v3 5/13 dt-bindings: soc: synaptics: add SL2610 system controllers

In reply to Jisheng Zhang

Describe the SoC, MCU, AVIO and CPU system control blocks, including their clock inputs, clock and reset providers, and pin configuration subnodes. The clock and reset providers share each register block node.

Add the clock and reset identifiers used by consumers of these blocks.

---
 .../synaptics/syna,sl2610-avio-syscon.yaml    |  44 ++++++
 .../soc/synaptics/syna,sl2610-cpu-syscon.yaml |  58 ++++++++
 .../soc/synaptics/syna,sl2610-mcu-syscon.yaml |  97 +++++++++++++
 .../soc/synaptics/syna,sl2610-soc-syscon.yaml | 104 ++++++++++++++
 include/dt-bindings/clock/syna,sl2610.h       | 131 ++++++++++++++++++
 include/dt-bindings/reset/syna,sl2610-reset.h |  80 +++++++++++
 6 files changed, 514 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-avio-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-cpu-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-mcu-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-soc-syscon.yaml
 create mode 100644 include/dt-bindings/clock/syna,sl2610.h
 create mode 100644 include/dt-bindings/reset/syna,sl2610-reset.h
Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-avio-syscon.yaml new file +44 -0
new file mode 100644
index 000000000000..92e64f53524c
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/synaptics/syna,sl2610-avio-syscon.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Synaptics SL2610 AVIO audio PLL controller
+
+maintainers:
+  - Jisheng Zhang <[email protected]>
+
+description: |
+  The SL2610 AVIO system control block contains the audio PLLs. The
+  external reference clock supplies the PLL input. This binding does not
+  expose clock specifiers for this block.
+
+properties:
+  compatible:
+    items:
+      - const: syna,sl2610-avio-syscon
+      - const: syscon
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+    description: External reference clock input.
+
+required:
+  - compatible
+  - reg
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    syscon@f7490000 {
+        compatible = "syna,sl2610-avio-syscon", "syscon";
+        reg = <0xf7490000 0x4000>;
+        clocks = <&osc>;
+    };
+...
Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-cpu-syscon.yaml new file +58 -0

58 lines not on this page · raw message

Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-mcu-syscon.yaml new file +97 -0

97 lines not on this page · raw message

Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-soc-syscon.yaml new file +104 -0

104 lines not on this page · raw message

include/dt-bindings/clock/syna,sl2610.h new file +131 -0

131 lines not on this page · raw message

include/dt-bindings/reset/syna,sl2610-reset.h new file +80 -0

80 lines not on this page · raw message

Signature · 1 line
2.55.0
#7 lore raw

PATCH v3 6/13 soc: synaptics: add SL2610 system controller support

In reply to Jisheng Zhang

Create the clock, reset and pin controller platform devices implemented by each SL2610 system control block. Select the appropriate MFD cells from per-block compatible data while keeping register access available through the shared syscon.

---
 drivers/mfd/Kconfig         | 16 +++++++
 drivers/mfd/Makefile        |  1 +
 drivers/mfd/sl2610-syscon.c | 84 +++++++++++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+)
 create mode 100644 drivers/mfd/sl2610-syscon.c
drivers/mfd/Kconfig +16 -0
index 87ed55c155f0..687012727bb5 100644
@@ -1656,6 +1656,22 @@ config MFD_SUN6I_PRCM
 	  in the A31, A23, and A33 SoCs. Other Allwinner SoCs contain similar
 	  hardware, but they do not use this driver.
 
+config MFD_SL2610_SYSCON
+	tristate "Synaptics SL2610 system controller"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on OF && HAS_IOMEM
+	select MFD_CORE
+	select MFD_SYSCON
+	help
+	  Support the global and control register blocks on Synaptics SL2610
+	  SoCs. This creates devices for the clock, reset and pin controllers
+	  provided by each register block.
+
+	  Say Y here to enable access to these functions on SL2610 systems.
+
+	  To compile this driver as a module, choose M here: the module will be
+	  called sl2610-syscon.
+
 config MFD_SYSCON
 	bool "System Controller Register R/W Based on Regmap"
 	select REGMAP_MMIO
drivers/mfd/Makefile +1 -0
index f8101d2a9ce9..7807d98c169f 100644
@@ -239,6 +239,7 @@ sec-core-objs			:= sec-common.o sec-irq.o
 obj-$(CONFIG_MFD_SEC_CORE)	+= sec-core.o
 obj-$(CONFIG_MFD_SEC_ACPM)	+= sec-acpm.o
 obj-$(CONFIG_MFD_SEC_I2C)	+= sec-i2c.o
+obj-$(CONFIG_MFD_SL2610_SYSCON)	+= sl2610-syscon.o
 obj-$(CONFIG_MFD_SYSCON)	+= syscon.o
 obj-$(CONFIG_MFD_LM3533)	+= lm3533-core.o lm3533-ctrlbank.o
 obj-$(CONFIG_MFD_VEXPRESS_SYSREG)	+= vexpress-sysreg.o
drivers/mfd/sl2610-syscon.c new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
2.55.0
#8 lore raw

PATCH v3 7/13 reset: add Synaptics SL2610 reset controller support

In reply to Jisheng Zhang

Support the SoC and MCU reset controls exposed by the SL2610 system controllers. Match the MFD-created platform devices, use the parent syscon regmap and register each reset provider against the parent DT node.

Handle both pulse resets and sticky resets with assert/deassert controls.

---
 drivers/reset/Kconfig        |  13 ++
 drivers/reset/Makefile       |   1 +
 drivers/reset/reset-sl2610.c | 224 +++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/reset/reset-sl2610.c
drivers/reset/Kconfig +13 -0
index eda9c698a95f..981d3ec29595 100644
@@ -358,6 +358,19 @@ config RESET_SUNXI
 	help
 	  This enables the reset driver for Allwinner SoCs.
 
+config RESET_SL2610
+	tristate "Synaptics SL2610 Reset Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on OF && HAS_IOMEM
+	depends on MFD_SL2610_SYSCON
+	help
+	  Support the reset controllers in the SoC and MCU system control
+	  blocks of Synaptics SL2610 SoCs. Both pulse and sticky reset lines
+	  are supported.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called reset-sl2610.
+
 config RESET_TENSTORRENT_ATLANTIS
 	tristate "Tenstorrent atlantis reset driver"
 	depends on ARCH_TENSTORRENT || COMPILE_TEST
drivers/reset/Makefile +1 -0
index 489fafd6bbe3..d28276a4f2ea 100644
@@ -42,6 +42,7 @@ obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
 obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
 obj-$(CONFIG_RESET_SKY1) += reset-sky1.o
 obj-$(CONFIG_RESET_SKY1_AUDSS) += reset-sky1-audss.o
+obj-$(CONFIG_RESET_SL2610) += reset-sl2610.o
 obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
 obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o
 obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
drivers/reset/reset-sl2610.c new file +224 -0

224 lines not on this page · raw message

Signature · 1 line
2.55.0
#9 lore raw

Re: [PATCH v3 07/13] reset: add Synaptics SL2610 reset controller support

Hi Jisheng,

Le 30/11/2026 à 18:03, Jisheng Zhang a écrit :

Quoted 65 lines

Support the SoC and MCU reset controls exposed by the SL2610 system controllers. Match the MFD-created platform devices, use the parent syscon regmap and register each reset provider against the parent DT node.

Handle both pulse resets and sticky resets with assert/deassert controls.

---
  drivers/reset/Kconfig        |  13 ++
  drivers/reset/Makefile       |   1 +
  drivers/reset/reset-sl2610.c | 224 +++++++++++++++++++++++++++++++++++
  3 files changed, 238 insertions(+)

create mode 100644 drivers/reset/reset-sl2610.c

drivers/reset/Kconfig +13 -0
index eda9c698a95f..981d3ec29595 100644
@@ -358,6 +358,19 @@ config RESET_SUNXI
  	help
  	  This enables the reset driver for Allwinner SoCs.
 
+config RESET_SL2610
+	tristate "Synaptics SL2610 Reset Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on OF && HAS_IOMEM
+	depends on MFD_SL2610_SYSCON
+	help
+	  Support the reset controllers in the SoC and MCU system control
+	  blocks of Synaptics SL2610 SoCs. Both pulse and sticky reset lines
+	  are supported.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called reset-sl2610.
+
  config RESET_TENSTORRENT_ATLANTIS
  	tristate "Tenstorrent atlantis reset driver"
  	depends on ARCH_TENSTORRENT || COMPILE_TEST
drivers/reset/Makefile +1 -0
index 489fafd6bbe3..d28276a4f2ea 100644
@@ -42,6 +42,7 @@ obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
  obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
  obj-$(CONFIG_RESET_SKY1) += reset-sky1.o
  obj-$(CONFIG_RESET_SKY1_AUDSS) += reset-sky1-audss.o
+obj-$(CONFIG_RESET_SL2610) += reset-sl2610.o
  obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
  obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o
  obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
drivers/reset/reset-sl2610.c new file +9 -0
new file mode 100644
index 000000000000..dc55a05d29d8
@@ -0,0 +1,224 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 Synaptics Incorporated
+ *
+ * Synaptics SL2610 reset driver
+ *
+ * Author: Jisheng Zhang <[email protected]>
+ */
+

[...]

drivers/reset/reset-sl2610.c line 146

Quoted 9 lines
drivers/reset/reset-sl2610.c new file +9 -0
+
+static int sl2610_reset_assert(struct reset_controller_dev *rcdev,
+			       unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (!cfg->sticky)
+		return -ENOTSUPP;

Prefer EOPNOTSUPP over ENOTSUPP

Quoted 14 lines
drivers/reset/reset-sl2610.c new file +14 -0
+
+	return regmap_clear_bits(priv->regmap, cfg->reg, cfg->bit);
+}
+
+static int sl2610_reset_deassert(struct reset_controller_dev *rcdev,
+				 unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (!cfg->sticky)
+		return 0;
+
+	return regmap_set_bits(priv->regmap, cfg->reg, cfg->bit);

drivers/reset/reset-sl2610.c line 170

Quoted 10 lines
drivers/reset/reset-sl2610.c new file +10 -0
+}
+
+static int sl2610_reset_reset(struct reset_controller_dev *rcdev,
+			      unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (cfg->sticky)
+		return -ENOTSUPP;

ditto

#10 lore raw

Re: [PATCH v3 07/13] reset: add Synaptics SL2610 reset controller support

Quoted 70 lines · Richard GENOUD

Hi Jisheng,

Le 30/11/2026 à 18:03, Jisheng Zhang a écrit :

Quoted 64 lines

Support the SoC and MCU reset controls exposed by the SL2610 system controllers. Match the MFD-created platform devices, use the parent syscon regmap and register each reset provider against the parent DT node.

Handle both pulse resets and sticky resets with assert/deassert controls.

---
  drivers/reset/Kconfig        |  13 ++
  drivers/reset/Makefile       |   1 +
  drivers/reset/reset-sl2610.c | 224 +++++++++++++++++++++++++++++++++++
  3 files changed, 238 insertions(+)

create mode 100644 drivers/reset/reset-sl2610.c

drivers/reset/Kconfig +13 -0
index eda9c698a95f..981d3ec29595 100644
@@ -358,6 +358,19 @@ config RESET_SUNXI
  	help
  	  This enables the reset driver for Allwinner SoCs.
+config RESET_SL2610
+	tristate "Synaptics SL2610 Reset Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on OF && HAS_IOMEM
+	depends on MFD_SL2610_SYSCON
+	help
+	  Support the reset controllers in the SoC and MCU system control
+	  blocks of Synaptics SL2610 SoCs. Both pulse and sticky reset lines
+	  are supported.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called reset-sl2610.
+
  config RESET_TENSTORRENT_ATLANTIS
  	tristate "Tenstorrent atlantis reset driver"
  	depends on ARCH_TENSTORRENT || COMPILE_TEST
drivers/reset/Makefile +1 -0
index 489fafd6bbe3..d28276a4f2ea 100644
@@ -42,6 +42,7 @@ obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
  obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
  obj-$(CONFIG_RESET_SKY1) += reset-sky1.o
  obj-$(CONFIG_RESET_SKY1_AUDSS) += reset-sky1-audss.o
+obj-$(CONFIG_RESET_SL2610) += reset-sl2610.o
  obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
  obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o
  obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
drivers/reset/reset-sl2610.c new file +9 -0
new file mode 100644
index 000000000000..dc55a05d29d8
@@ -0,0 +1,224 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 Synaptics Incorporated
+ *
+ * Synaptics SL2610 reset driver
+ *
+ * Author: Jisheng Zhang <[email protected]>
+ */
+

[...]

Quoted 11 lines

drivers/reset/reset-sl2610.c line 146

Quoted 9 lines
drivers/reset/reset-sl2610.c new file +9 -0
+
+static int sl2610_reset_assert(struct reset_controller_dev *rcdev,
+			       unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (!cfg->sticky)
+		return -ENOTSUPP;

Prefer EOPNOTSUPP over ENOTSUPP

The reset core use ENOTSUPP, so I follow its style.

Hi Philipp,

which do you prefer?

Thanks

Quoted 28 lines
Quoted 15 lines
drivers/reset/reset-sl2610.c new file +14 -0
+
+	return regmap_clear_bits(priv->regmap, cfg->reg, cfg->bit);
+}
+
+static int sl2610_reset_deassert(struct reset_controller_dev *rcdev,
+				 unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (!cfg->sticky)
+		return 0;
+
+	return regmap_set_bits(priv->regmap, cfg->reg, cfg->bit);

drivers/reset/reset-sl2610.c line 170

Quoted 10 lines
drivers/reset/reset-sl2610.c new file +10 -0
+}
+
+static int sl2610_reset_reset(struct reset_controller_dev *rcdev,
+			      unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (cfg->sticky)
+		return -ENOTSUPP;

ditto

maintainer
#11 lore raw

Re: [PATCH v3 07/13] reset: add Synaptics SL2610 reset controller support

Quoted 83 lines · Jisheng Zhang
Quoted 70 lines · Richard GENOUD

Hi Jisheng,

Le 30/11/2026 à 18:03, Jisheng Zhang a écrit :

Quoted 64 lines

Support the SoC and MCU reset controls exposed by the SL2610 system controllers. Match the MFD-created platform devices, use the parent syscon regmap and register each reset provider against the parent DT node.

Handle both pulse resets and sticky resets with assert/deassert controls.

---
  drivers/reset/Kconfig        |  13 ++
  drivers/reset/Makefile       |   1 +
  drivers/reset/reset-sl2610.c | 224 +++++++++++++++++++++++++++++++++++
  3 files changed, 238 insertions(+)

create mode 100644 drivers/reset/reset-sl2610.c

drivers/reset/Kconfig +13 -0
index eda9c698a95f..981d3ec29595 100644
@@ -358,6 +358,19 @@ config RESET_SUNXI
  	help
  	  This enables the reset driver for Allwinner SoCs.
+config RESET_SL2610
+	tristate "Synaptics SL2610 Reset Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on OF && HAS_IOMEM
+	depends on MFD_SL2610_SYSCON
+	help
+	  Support the reset controllers in the SoC and MCU system control
+	  blocks of Synaptics SL2610 SoCs. Both pulse and sticky reset lines
+	  are supported.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called reset-sl2610.
+
  config RESET_TENSTORRENT_ATLANTIS
  	tristate "Tenstorrent atlantis reset driver"
  	depends on ARCH_TENSTORRENT || COMPILE_TEST
drivers/reset/Makefile +1 -0
index 489fafd6bbe3..d28276a4f2ea 100644
@@ -42,6 +42,7 @@ obj-$(CONFIG_RESET_SCMI) += reset-scmi.o
  obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
  obj-$(CONFIG_RESET_SKY1) += reset-sky1.o
  obj-$(CONFIG_RESET_SKY1_AUDSS) += reset-sky1-audss.o
+obj-$(CONFIG_RESET_SL2610) += reset-sl2610.o
  obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o
  obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o
  obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
drivers/reset/reset-sl2610.c new file +9 -0
new file mode 100644
index 000000000000..dc55a05d29d8
@@ -0,0 +1,224 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 Synaptics Incorporated
+ *
+ * Synaptics SL2610 reset driver
+ *
+ * Author: Jisheng Zhang <[email protected]>
+ */
+

[...]

Quoted 11 lines

drivers/reset/reset-sl2610.c line 146

Quoted 9 lines
drivers/reset/reset-sl2610.c new file +9 -0
+
+static int sl2610_reset_assert(struct reset_controller_dev *rcdev,
+			       unsigned long id)
+{
+	struct sl2610_reset_priv *priv = to_sl2610_reset_priv(rcdev);
+	const struct sl2610_reset_cfg *cfg = &priv->cfgs[id];
+
+	if (!cfg->sticky)
+		return -ENOTSUPP;

Prefer EOPNOTSUPP over ENOTSUPP

Quoted 5 lines

The reset core use ENOTSUPP, so I follow its style.

Hi Philipp,

which do you prefer?

I'd prefer ENOTSUPP for consistency.

I'm not against transitioning to EOPNOTSUPP, but that should also include the reset core, the reset-simple and reset-ti-syscon drivers, and all callers that depend on the specific error code, such as i2c- rcar and stmmac.

regards
Philipp

maintainer
#12 lore raw

Re: [PATCH v3 07/13] reset: add Synaptics SL2610 reset controller support

In reply to Jisheng Zhang
Quoted 19 lines · Jisheng Zhang

Support the SoC and MCU reset controls exposed by the SL2610 system controllers. Match the MFD-created platform devices, use the parent syscon regmap and register each reset provider against the parent DT node.

Handle both pulse resets and sticky resets with assert/deassert controls.

---
 drivers/reset/Kconfig        |  13 ++
 drivers/reset/Makefile       |   1 +
 drivers/reset/reset-sl2610.c | 224 +++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/reset/reset-sl2610.c
drivers/reset/Kconfig +0 -0
index eda9c698a95f..981d3ec29595 100644

drivers/reset/Kconfig config RESET_SUNXI · line 365

Quoted 8 lines
drivers/reset/Kconfig +5 -0
@@ -358,6 +358,19 @@ config RESET_SUNXI
 	help
 	  This enables the reset driver for Allwinner SoCs.
 
+config RESET_SL2610
+	tristate "Synaptics SL2610 Reset Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on OF && HAS_IOMEM
+	depends on MFD_SL2610_SYSCON

Why does this depend on MFD_SL2610_SYSCON?

regards
Philipp

#13 lore raw

PATCH v3 8/13 pinctrl: berlin: add Synaptics SL2610 pin controller support

In reply to Jisheng Zhang

Add the SoC and MCU pin groups and mux functions for SL2610, together with their pad configuration register descriptions. Bind to the platform devices created by the system controller and associate pin configurations with the parent syscon DT node.

---
 drivers/pinctrl/berlin/Kconfig          |  15 +
 drivers/pinctrl/berlin/Makefile         |   1 +
 drivers/pinctrl/berlin/pinctrl-sl2610.c | 759 ++++++++++++++++++++++++
 3 files changed, 775 insertions(+)
 create mode 100644 drivers/pinctrl/berlin/pinctrl-sl2610.c
drivers/pinctrl/berlin/Kconfig +15 -0
index abb1c912b9ba..0ed25151caf4 100644
@@ -32,4 +32,19 @@ config PINCTRL_BERLIN_BG4CT
 	depends on OF
 	select PINCTRL_BERLIN
 
+config PINCTRL_SL2610
+	tristate "Synaptics SL2610 pin controller driver"
+	depends on MFD_SL2610_SYSCON
+	depends on OF && HAS_IOMEM
+	select GENERIC_PINCONF
+	select PINCONF
+	select PINCTRL_BERLIN
+	help
+	  Support the SoC and MCU pin controllers on Synaptics SL2610 SoCs.
+	  These provide pin multiplexing and electrical pad configuration
+	  through their parent system control blocks.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called pinctrl-sl2610.
+
 endif
drivers/pinctrl/berlin/Makefile +1 -0
index 7b4aa5444a4a..448965293e6a 100644
@@ -5,3 +5,4 @@ obj-$(CONFIG_PINCTRL_BERLIN_BG2CD)	+= berlin-bg2cd.o
 obj-$(CONFIG_PINCTRL_BERLIN_BG2Q)	+= berlin-bg2q.o
 obj-$(CONFIG_PINCTRL_BERLIN_BG4CT)	+= berlin-bg4ct.o
 obj-$(CONFIG_PINCTRL_AS370)		+= pinctrl-as370.o
+obj-$(CONFIG_PINCTRL_SL2610)		+= pinctrl-sl2610.o
drivers/pinctrl/berlin/pinctrl-sl2610.c new file +759 -0

759 lines not on this page · raw message

Signature · 1 line
2.55.0
#14 lore raw

PATCH v3 9/13 clk: berlin: add Synaptics clock controller helpers

In reply to Jisheng Zhang

Add the configurable divider and gate clock implementation shared by Synaptics system controllers. Provide the MCU system manager helper for registering its fixed clocks, gates and peripheral dividers.

Keep clock resources managed by the MFD clock device and obtain the register range and provider node from its parent.

---
 drivers/clk/Kconfig                |   1 +
 drivers/clk/berlin/Kconfig         |   7 +
 drivers/clk/berlin/Makefile        |   2 +
 drivers/clk/berlin/sl-clk.c        | 279 +++++++++++++++++++++++++++++
 drivers/clk/berlin/sl-clk.h        |  31 ++++
 drivers/clk/berlin/sl-sysmgr-clk.c | 241 +++++++++++++++++++++++++
 drivers/clk/berlin/sl-sysmgr-clk.h |  44 +++++
 7 files changed, 605 insertions(+)
 create mode 100644 drivers/clk/berlin/Kconfig
 create mode 100644 drivers/clk/berlin/sl-clk.c
 create mode 100644 drivers/clk/berlin/sl-clk.h
 create mode 100644 drivers/clk/berlin/sl-sysmgr-clk.c
 create mode 100644 drivers/clk/berlin/sl-sysmgr-clk.h
drivers/clk/Kconfig +1 -0
index 37a8e35d4178..906fabfe0d33 100644
@@ -514,6 +514,7 @@ source "drivers/clk/analogbits/Kconfig"
 source "drivers/clk/anlogic/Kconfig"
 source "drivers/clk/aspeed/Kconfig"
 source "drivers/clk/bcm/Kconfig"
+source "drivers/clk/berlin/Kconfig"
 source "drivers/clk/cix/Kconfig"
 source "drivers/clk/davinci/Kconfig"
 source "drivers/clk/eswin/Kconfig"
drivers/clk/berlin/Kconfig new file +7 -0
new file mode 100644
index 000000000000..8f71d4c7a478
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
+
+config SL_COMMON_CLK
+	bool
+
+config SL_SYSMGR_CLK
+	bool
drivers/clk/berlin/Makefile +2 -0
index 3733733a4806..5dbd0fd264ad 100644
@@ -3,3 +3,5 @@ obj-y += berlin2-avpll.o berlin2-pll.o berlin2-div.o
 obj-$(CONFIG_MACH_BERLIN_BG2)	+= bg2.o
 obj-$(CONFIG_MACH_BERLIN_BG2CD)	+= bg2.o
 obj-$(CONFIG_MACH_BERLIN_BG2Q)	+= bg2q.o
+obj-$(CONFIG_SL_COMMON_CLK)	+= sl-clk.o
+obj-$(CONFIG_SL_SYSMGR_CLK)	+= sl-sysmgr-clk.o
drivers/clk/berlin/sl-clk.c new file +279 -0

279 lines not on this page · raw message

drivers/clk/berlin/sl-clk.h new file +31 -0
new file mode 100644
index 000000000000..7489b26a5e8d
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __SL_CLK_H
+#define __SL_CLK_H
+
+#include <linux/compiler_types.h>
+#include <linux/spinlock_types.h>
+
+struct clk_hw;
+struct device;
+
+struct sl_clk_desc {
+	const char	*name;
+	u32		id;
+	u32		offset;
+	unsigned long	flags;
+};
+
+struct sl_gateclk_desc {
+	const char	*name;
+	const char	*parent_name;
+	u32		id;
+	u8		bit_idx;
+	unsigned long	flags;
+};
+
+struct clk_hw *sl_clk_register(struct device *dev, void __iomem *reg,
+			       const char *name, const char * const *parent_names,
+			       unsigned int num_parents, unsigned long flags,
+			       spinlock_t *lock);
+
+#endif /* __SL_CLK_H */
drivers/clk/berlin/sl-sysmgr-clk.c new file +241 -0

241 lines not on this page · raw message

drivers/clk/berlin/sl-sysmgr-clk.h new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.55.0
#15 lore raw

PATCH v3 10/13 clk: berlin: add Synaptics SL2610 clocks and PLLs

In reply to Jisheng Zhang

Support the SL2610 SoC, CPU, AVIO and MCU clocks. Register the PLL outputs and the divider, gate and fixed-factor clocks used by the CPU and peripherals.

Match MFD platform devices and register clock providers on their parent system controller nodes.

---
 drivers/clk/berlin/Kconfig      |  27 +++
 drivers/clk/berlin/Makefile     |   2 +
 drivers/clk/berlin/clk-sl2610.c | 360 ++++++++++++++++++++++++++++++++
 drivers/clk/berlin/sl2610-pll.c | 145 +++++++++++++
 drivers/clk/berlin/sl2610-pll.h |  14 ++
 5 files changed, 548 insertions(+)
 create mode 100644 drivers/clk/berlin/clk-sl2610.c
 create mode 100644 drivers/clk/berlin/sl2610-pll.c
 create mode 100644 drivers/clk/berlin/sl2610-pll.h
drivers/clk/berlin/Kconfig +27 -0
index 8f71d4c7a478..b1a9fbb4cf75 100644
@@ -5,3 +5,30 @@ config SL_COMMON_CLK
 
 config SL_SYSMGR_CLK
 	bool
+
+config SL2610_PLL
+	tristate "Synaptics SL2610 PLL Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	default n
+	help
+	  Support the integer and fractional PLL outputs used by the SoC,
+	  CPU and audio clock controllers on Synaptics SL2610 SoCs.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called sl2610-pll.
+
+config SL2610_CLK
+	tristate "Synaptics SL2610 Clock Driver"
+	depends on ARCH_BERLIN || COMPILE_TEST
+	depends on MFD_SL2610_SYSCON
+	depends on OF && HAS_IOMEM
+	select SL2610_PLL
+	select SL_COMMON_CLK
+	select SL_SYSMGR_CLK
+	help
+	  This driver provides support for clock controller on Synaptics SL2610
+	  SoC. The clock controller generates and supplies clocks to various
+	  peripherals within the SoC.
+
+	  To compile this driver as a module, choose M here. The module will
+	  be called clk-sl2610.
drivers/clk/berlin/Makefile +2 -0
index 5dbd0fd264ad..ec87dbed7dd4 100644
@@ -5,3 +5,5 @@ obj-$(CONFIG_MACH_BERLIN_BG2CD)	+= bg2.o
 obj-$(CONFIG_MACH_BERLIN_BG2Q)	+= bg2q.o
 obj-$(CONFIG_SL_COMMON_CLK)	+= sl-clk.o
 obj-$(CONFIG_SL_SYSMGR_CLK)	+= sl-sysmgr-clk.o
+obj-$(CONFIG_SL2610_PLL)	+= sl2610-pll.o
+obj-$(CONFIG_SL2610_CLK)	+= clk-sl2610.o
drivers/clk/berlin/clk-sl2610.c new file +360 -0

360 lines not on this page · raw message

drivers/clk/berlin/sl2610-pll.c new file +145 -0

145 lines not on this page · raw message

drivers/clk/berlin/sl2610-pll.h new file +14 -0
new file mode 100644
index 000000000000..b61a93b28610
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __SL2610_PLL_H
+#define __SL2610_PLL_H
+
+#include <linux/io.h>
+
+struct clk_hw_onecell_data;
+struct device;
+struct device_node;
+
+int sl2610_pll_register(struct device *dev, void __iomem *ctrl,
+			const char *out, const char *outf);
+
+#endif /* __SL2610_PLL_H */
Signature · 1 line
2.55.0
#16 lore raw
In reply to Jisheng Zhang

Hi Jisheng,

Le 30/11/2026 à 18:03, Jisheng Zhang a écrit :

Quoted 71 lines

Add initial support for the Synaptics SL261X SoCs and corresponding RDK boards.

The SL261X SoCs include five pin-to-pin compatible SoCs: SL2611, SL2613, SL2615, SL2617, and SL2619.

Only reset, pinctrl, clk/pll, uart, gpio, i2c, spi, i3c are included in this series. The support for Ethernet, USB, SDHCI, CAN, DMAC, XSPI will be submitted after this series is merged.

Since this series may be split once got acks from maintainers. So a consolidated MAINTAINERS update will follow once the subsystem series have merged, avoiding overlapping changes to the Synaptics entry.

Hi Linus Walleij, Conor,

I didn't split the series in this version, because the same syscon node exports reset, pinctl and clk, so I want to collect some acks before split.

And query one question: the reset IDs, clk IDs header files are needed by both pinctrl/reset drivers and soc dtsi/dts, so I'm not sure how to split the series, any suggestion is appreciated.

Thanks

since v2:
- fix a typo in "GPIO54" offset, 0x887c instead of 0x87c
- adopt Philipp suggestions into reset-sl2610.c
- put sl2610-syscon.c into mfd/ instead of soc/synapitcs/
- dt coding style fixes
- Drop bootargs
- Split the binding file
- move i2c timing properties to board dts

since v1:
- rebase on latest rcN
- drop some patches which have been merged
- let the "gbl" node export pinctrl/reset/clk devices with

    MFD_CELL_NAME()

- use <linux/platform_device.h> instead of <linux/mod_devicetable.h>
- adopt some coding suggestions from Uwe
- Use 0 and 1 to select normal and strong pull-up on 10-bit pads
- collect Acked-by tag

Jisheng Zhang (13):
arm64: kconfig: let ARCH_BERLIN cover Synaptics arm64 SoCs
pinctrl: berlin: use u16 instead of u8 for the offset
pinctrl: berlin: enable module build support
pinctrl: berlin: add optional pinconf support
dt-bindings: soc: synaptics: add SL2610 system controllers
soc: synaptics: add SL2610 system controller support
reset: add Synaptics SL2610 reset controller support
pinctrl: berlin: add Synaptics SL2610 pin controller support
clk: berlin: add Synaptics clock controller helpers
clk: berlin: add Synaptics SL2610 clocks and PLLs
dt-bindings: arm: berlin: add Synaptics SL2610 SoCs and RDK boards
arm64: dts: synaptics: add SL2610 family SoCs
arm64: dts: synaptics: add SL2610 family RDK boards

  .../bindings/arm/marvell,berlin.yaml          |  20 +
  .../synaptics/syna,sl2610-avio-syscon.yaml    |  44 +
  .../soc/synaptics/syna,sl2610-cpu-syscon.yaml |  58 ++
  .../soc/synaptics/syna,sl2610-mcu-syscon.yaml |  97 +++
  .../soc/synaptics/syna,sl2610-soc-syscon.yaml | 104 +++
  arch/arm64/Kconfig.platforms                  |   4 +-
  arch/arm64/boot/dts/synaptics/Makefile        |   5 +
  arch/arm64/boot/dts/synaptics/sl2611-rdk.dts  |  16 +
  arch/arm64/boot/dts/synaptics/sl2611.dtsi     | 476 +++++++++++
  arch/arm64/boot/dts/synaptics/sl2613-rdk.dts  |  16 +
Quoted 8 lines
  arch/arm64/boot/dts/synaptics/sl2613.dtsi     |  12 +
  arch/arm64/boot/dts/synaptics/sl2615-rdk.dts  |  16 +
  arch/arm64/boot/dts/synaptics/sl2615.dtsi     |  46 ++
  arch/arm64/boot/dts/synaptics/sl2617-rdk.dts  |  16 +
  arch/arm64/boot/dts/synaptics/sl2617.dtsi     |  46 ++
  arch/arm64/boot/dts/synaptics/sl2619-rdk.dts  |  16 +
  arch/arm64/boot/dts/synaptics/sl2619.dtsi     |  44 +
  .../boot/dts/synaptics/sl261x-rdk-common.dtsi | 137 ++++

I don't see those files in the series.
https://lore.kernel.org/lkml/[email protected]/
It seems it stops at patch 10/13

Is it just me?