dt-bindings: clk: si522xx: Clock driver for Skyworks Si522xx I2C PCIe clock generators
Subsystems (2)
PATCH v2 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]
---
V2: - Fix the DIF pattern match and description, update example to validate this
- Rename the YAML file to skyworks,si52212.yaml
--- .../bindings/clock/skyworks,si52212.yaml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/skyworks,si52212.yaml
Documentation/devicetree/bindings/clock/skyworks,si52212.yaml new file +91 -0
@@ -0,0 +1,91 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/skyworks,si52212.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-9]|1[0-1])$": + type: object + description: + Description of one of the outputs (DIFF0..DIFF11). + + 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,si52212"; + reg = <0x6a>; + #clock-cells = <1>; + clocks = <&ref25m>; + + DIFF0 { + skyworks,slew-rate = <2400000>; + }; + + DIFF4 { + skyworks,slew-rate = <1900000>; + }; + + DIFF11 { + skyworks,slew-rate = <2400000>; + }; + }; + }; + +...
Signature · 1 line
2.51.0
PATCH v2 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]
---
V2: No change
--- 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
Quoted 10 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]>
Quoted 11 lines
---
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]
---
V2: - Fix the DIF pattern match and description, update example to validate this
- Rename the YAML file to skyworks,si52212.yaml
pw-bot: not-applicable