dt-bindings: clk: si522xx: Clock driver for Skyworks Si522xx I2C PCIe clock generators
Subsystems (2)
PATCH 1/2 dt-bindings: clk: si522xx: Clock driver for Skyworks Si522xx I2C PCIe clock generators
Document the Skyworks Si522xx PCIe clock generators. Supported models are Si52202/Si52204/Si52208/Si52212. While chip is similar to Si521xx, it also contains many subtle differences to justify separate driver.
The Si522xx has different register and bit layout, supports spread spectrum clocking and slew rate settings, and no longer contains the old BC Byte Count configuration register. Instead, the I2C protocol is yet again very slightly different, but this time at least compatible with regmap.
---
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- .../bindings/clock/skyworks,si522xx.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +79 -0
@@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/skyworks,si522xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Skyworks Si522xx I2C PCIe clock generators + +description: | + The Skyworks Si522xx are I2C PCIe clock generators providing + from 2 to 12 output clocks. + +maintainers: + - Marek Vasut <[email protected]> + +properties: + compatible: + enum: + - skyworks,si52202 + - skyworks,si52204 + - skyworks,si52208 + - skyworks,si52212 + + reg: + const: 0x6a + + '#clock-cells': + const: 1 + + clocks: + items: + - description: XTal input clock + + skyworks,out-amplitude-microvolt: + enum: [ 600000, 650000, 700000, 750000, 800000, 850000 ] + description: Output clock signal amplitude + + skyworks,out-spread-spectrum: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 100000, 99750, 99500 ] + description: Output clock down spread in pcm (1/1000 of percent) + +patternProperties: + "^DIFF[0-11]$": + type: object + description: + Description of one of the outputs (DIFF0..DIF11). + + properties: + skyworks,slew-rate: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 1900000, 2400000 ] + description: Output clock slew rate select in V/ns + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - '#clock-cells' + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + clock-generator@6a { + compatible = "skyworks,si52202"; + reg = <0x6a>; + #clock-cells = <1>; + clocks = <&ref25m>; + }; + }; + +...
Signature · 1 line
2.51.0
PATCH 2/2 clk: si522xx: Clock driver for Skyworks Si522xx I2C PCIe clock generators
Add driver for the Skyworks Si522xx PCIe clock generators. Supported models are Si52202/Si52204/Si52208/Si52212, tested model is Si52202. While chip is similar to Si521xx, it contains many subtle differences to justify separate driver.
The Si522xx has different register and bit layout, supports spread spectrum clocking and slew rate settings, and no longer contains the old BC Byte Count configuration register. Instead, the I2C protocol is yet again very slightly different, but this time at least compatible with regmap.
---
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- drivers/clk/Kconfig | 9 + drivers/clk/Makefile | 1 + drivers/clk/clk-si522xx.c | 430 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 440 insertions(+) create mode 100644 drivers/clk/clk-si522xx.c
drivers/clk/Kconfig +9 -0
@@ -423,6 +423,15 @@ config COMMON_CLK_SI521XX This driver supports the SkyWorks Si521xx PCIe clock generator models Si52144/Si52146/Si52147. +config COMMON_CLK_SI522XX + tristate "Clock driver for SkyWorks Si522xx PCIe clock generators" + depends on I2C + depends on OF + select REGMAP_I2C + help + This driver supports the SkyWorks Si522xx PCIe clock generator + models Si52202/Si52204/Si52208/Si52212. + config COMMON_CLK_VC3 tristate "Clock driver for Renesas VersaClock 3 devices" depends on I2C
drivers/clk/Makefile +1 -0
@@ -105,6 +105,7 @@ obj-$(CONFIG_CLK_TWL) += clk-twl.o obj-$(CONFIG_ARCH_VT8500) += clk-vt8500.o obj-$(CONFIG_COMMON_CLK_RS9_PCIE) += clk-renesas-pcie.o obj-$(CONFIG_COMMON_CLK_SI521XX) += clk-si521xx.o +obj-$(CONFIG_COMMON_CLK_SI522XX) += clk-si522xx.o obj-$(CONFIG_COMMON_CLK_VC3) += clk-versaclock3.o obj-$(CONFIG_COMMON_CLK_VC5) += clk-versaclock5.o obj-$(CONFIG_COMMON_CLK_VC7) += clk-versaclock7.o
drivers/clk/clk-si522xx.c new file +430 -0
430 lines not on this page · raw message
Signature · 1 line
2.51.0
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml
Quoted 28 lines · Marek Vasut
Document the Skyworks Si522xx PCIe clock generators. Supported models are Si52202/Si52204/Si52208/Si52212. While chip is similar to Si521xx, it also contains many subtle differences to justify separate driver.
The Si522xx has different register and bit layout, supports spread spectrum clocking and slew rate settings, and no longer contains the old BC Byte Count configuration register. Instead, the I2C protocol is yet again very slightly different, but this time at least compatible with regmap.
Signed-off-by Marek Vasut <[email protected]>---
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: [email protected]
Cc: [email protected]--- .../bindings/clock/skyworks,si522xx.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/skyworks,si522xx.yamlDocumentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +0
-0
Can you just pick one of the compatibles here?
Quoted 38 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +37
-0@@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/skyworks,si522xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Skyworks Si522xx I2C PCIe clock generators + +description: | + The Skyworks Si522xx are I2C PCIe clock generators providing + from 2 to 12 output clocks. + +maintainers: + - Marek Vasut <[email protected]> + +properties: + compatible: + enum: + - skyworks,si52202 + - skyworks,si52204 + - skyworks,si52208 + - skyworks,si52212 + + reg: + const: 0x6a + + '#clock-cells': + const: 1 + + clocks: + items: + - description: XTal input clock + + skyworks,out-amplitude-microvolt: + enum: [ 600000, 650000, 700000, 750000, 800000, 850000 ] + description: Output clock signal amplitude +
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml line 47
Quoted 10 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +10
-0+ skyworks,out-spread-spectrum: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 100000, 99750, 99500 ] + description: Output clock down spread in pcm (1/1000 of percent) + +patternProperties: + "^DIFF[0-11]$": + type: object + description: + Description of one of the outputs (DIFF0..DIF11).
typo, DIFF11.
Does this regex actually work? I don't think it allows anything other than DIFF0 and DIFF1, since it evaluates 0-1 as a range and 1 as another range.
Cheers,
Conor.
pw-bot: changes-requested
Quoted 35 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +32
-0+ + properties: + skyworks,slew-rate: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 1900000, 2400000 ] + description: Output clock slew rate select in V/ns + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - '#clock-cells' + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + clock-generator@6a { + compatible = "skyworks,si52202"; + reg = <0x6a>; + #clock-cells = <1>; + clocks = <&ref25m>; + }; + }; + +...Signature · 1 line
2.51.0
On 10/13/25 10:00 PM, Conor Dooley wrote:
Hello Conor,
Quoted 7 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml
Quoted 5 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +0
-0Can you just pick one of the compatibles here?
I reused the existing pattern from previous binding document.
Documentation/devicetree/bindings/clock/skyworks,si521xx.yaml
I can use the 52202 for this binding document if that is preferable ?
...
Quoted 10 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml line 47
Quoted 5 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +5
-0+patternProperties: + "^DIFF[0-11]$": + type: object + description: + Description of one of the outputs (DIFF0..DIF11).typo, DIFF11.
Does this regex actually work? I don't think it allows anything other than DIFF0 and DIFF1, since it evaluates 0-1 as a range and 1 as another range.
Fixed both, also fixed rs9 bindings and patch posted.
Quoted 12 lines · Marek Vasut
On 10/13/25 10:00 PM, Conor Dooley wrote:
Hello Conor,
Quoted 7 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml
Quoted 5 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +0
-0Can you just pick one of the compatibles here?
Quoted 5 lines
I reused the existing pattern from previous binding document.
Documentation/devicetree/bindings/clock/skyworks,si521xx.yamlI can use the 52202 for this binding document if that is preferable ?
yeah, I'd rather that, thanks.
Quoted 14 lines
...
Quoted 10 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml line 47
Quoted 5 lines
Documentation/devicetree/bindings/clock/skyworks,si522xx.yaml new file +5
-0+patternProperties: + "^DIFF[0-11]$": + type: object + description: + Description of one of the outputs (DIFF0..DIF11).typo, DIFF11.
Does this regex actually work? I don't think it allows anything other than DIFF0 and DIFF1, since it evaluates 0-1 as a range and 1 as another range.Fixed both, also fixed rs9 bindings and patch posted.