Silicon Labs Si5340/1/2/4/5 programmable i2c clock generator
Schema identifier ($id): "http://devicetree.org/schemas/silabs,si5341.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mike Looijmans <mike.looijmans@topic.nl>"
Silicon Labs Si5340, Si5341 Si5342, Si5344 and Si5345 programmable i2c clock generator.
Reference [1] Si5341 Data Sheet
https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf
[2] Si5341 Reference Manual
https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf
[3] Si5345 Reference Manual
https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf
The Si5341 and Si5340 are programmable i2c clock generators with up to 10 output clocks. The chip contains a PLL that sources 5 (or 4) multisynth clocks, which in turn can be directed to any of the 10 (or 4) outputs through a divider. The internal structure of the clock generators can be found in [2]. The Si5345 is similar to the Si5341 with the addition of fractional input dividers and automatic input selection, as described in [3]. The Si5342 and Si5344 are smaller versions of the Si5345, with 2 or 4 outputs. The driver can be used in "as is" mode, reading the current settings from the chip at boot, in case you have a (pre-)programmed device. If the PLL is not configured when the driver probes, it assumes the driver must fully initialize it. The device type, speed grade and revision are determined runtime by probing.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "silabs,si5340", "silabs,si5341", "silabs,si5342", "silabs,si5344", "silabs,si5345"
reg — required here #
Maximum number of items (maxItems): 1
#clock-cells — required here #
Exact value (const): 2
The first value is "0" for outputs, "1" for synthesizers. The second value is the output or synthesizer index.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"xtal"
Item 2
Exact value (
const):"in0"
Item 3
Exact value (
const):"in1"
Item 4
Exact value (
const):"in2"
clock-output-names — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt for INTRb pin
vdd-supply — not listed as required here #
Regulator node for VDD
vdda-supply — not listed as required here #
Regulator node for VDDA
vdds-supply — not listed as required here #
Regulator node for VDDS
silabs,pll-m-num — not listed as required here #
Numerator for PLL feedback divider. Must be such that the PLL output is in the valid range. For example, to create 14GHz from a 48MHz xtal, use m-num=14000 and m-den=48. Only the fraction matters, using 3500 and 12 will deliver the exact same result. If these are not specified, and the PLL is not yet programmed when the driver probes, the PLL will be set to 14GHz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
silabs,pll-m-den — not listed as required here #
Denominator for PLL feedback divider
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
silabs,reprogram — not listed as required here #
Always perform soft-reset and reinitialize PLL
Value type (type): "boolean"
silabs,xaxb-ext-clk — not listed as required here #
Use XA/XB pins as external reference clock
Value type (type): "boolean"
silabs,iovdd-33 — not listed as required here #
I2C lines use 3.3V thresholds
Value type (type): "boolean"
Properties matching a name pattern (patternProperties) #
^vddo[0-9]-supply$ — name matches this regular expression #
true — No constraints added by this property rule.
^out@[0-9]$ — name matches this regular expression #
Output-specific override nodes Each of the clock outputs can be overwritten individually by using a child node. If a child node for a clock output is not set, the configuration remains unchanged.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Number of clock output
Maximum value (maximum): 9
always-on — not listed as required here
Set to keep the clock output always running
Value type (type): "boolean"
silabs,format — not listed as required here
Output format
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4
silabs,common-mode — not listed as required here
Override output common mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
silabs,amplitude — not listed as required here
Override output amplitude
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
silabs,synth-master — not listed as required here
Allow dynamic multisynth rate control
Value type (type): "boolean"
silabs,disable-high — not listed as required here
Drive output HIGH when disabled
Value type (type): "boolean"
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "#clock-cells", "#address-cells", "#size-cells", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
clock-generator@74 {
reg = <0x74>;
compatible = "silabs,si5341";
#clock-cells = <2>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&ref48>;
clock-names = "xtal";
silabs,pll-m-num = <14000>; /* PLL at 14.0 GHz */
silabs,pll-m-den = <48>;
silabs,reprogram; /* Chips are not programmed, always reset */
out@0 {
reg = <0>;
silabs,format = <1>; /* LVDS 3v3 */
silabs,common-mode = <3>;
silabs,amplitude = <3>;
silabs,synth-master;
};
/*
* Output 6 configuration:
* LVDS 1v8
*/
out@6 {
reg = <6>;
silabs,format = <1>; /* LVDS 1v8 */
silabs,common-mode = <13>;
silabs,amplitude = <3>;
};
/*
* Output 8 configuration:
* HCSL 3v3
*/
out@8 {
reg = <8>;
silabs,format = <2>;
silabs,common-mode = <11>;
silabs,amplitude = <3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)