Texas Instruments LMK04832 Clock Controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/ti,lmk04832.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liam Beguin <liambeguin@gmail.com>"
Devicetree binding for the LMK04832, a clock conditioner with JEDEC JESD204B support. The LMK04832 is pin compatible with the LMK0482x family.
Link to datasheet, https://www.ti.com/lit/ds/symlink/lmk04832.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,lmk04832"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#clock-cells — required here #
Exact value (const): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 5000000
clocks — required here #
Array item rules (items) #
Item 1
PLL2 reference clock.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"oscin"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
ti,spi-4wire-rdbk — not listed as required here #
Select SPI 4wire readback pin configuration.
Available readback pins are,
CLKin_SEL0 0
CLKin_SEL1 1
RESET 2
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 1
ti,vco-hz — not listed as required here #
Optional to set VCO frequency of the PLL in Hertz.
ti,sysref-ddly — not listed as required here #
SYSREF digital delay value.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 8
Maximum value (maximum): 8191
Default value (default): 8
ti,sysref-mux — not listed as required here #
SYSREF Mux configuration.
Available options are,
Normal SYNC 0
Re-clocked 1
SYSREF Pulser 2
SYSREF Continuous 3
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 3
ti,sync-mode — not listed as required here #
SYNC pin configuration.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 1
ti,sysref-pulse-count — not listed as required here #
Number of SYSREF pulses to send when SYSREF is not in continuous mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8
Default value (default): 4
Properties matching a name pattern (patternProperties) #
@[0-9a-d]+$ — name matches this regular expression #
Value type (type): "object"
Child nodes used to configure output clocks.
Properties and child nodes (properties) #
reg — required here
clock output identifier.
Minimum value (minimum): 0
Maximum value (maximum): 13
ti,clkout-fmt — not listed as required here
Clock output format. Available options are, Powerdown 0x00 LVDS 0x01 HSDS 6 mA 0x02 HSDS 8 mA 0x03 LVPECL 1600 mV 0x04 LVPECL 2000 mV 0x05 LCPECL 0x06 CML 16 mA 0x07 CML 24 mA 0x08 CML 32 mA 0x09 CMOS (Off/Inverted) 0x0a CMOS (Normal/Off) 0x0b CMOS (Inverted/Inverted) 0x0c CMOS (Inverted/Normal) 0x0d CMOS (Normal/Inverted) 0x0e CMOS (Normal/Normal) 0x0f
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
ti,clkout-sysref — not listed as required here
Select SYSREF clock path for output clock.
Value type (type): "boolean"
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#clock-cells", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
clocks {
lmk04832_oscin: oscin {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <122880000>;
clock-output-names = "lmk04832-oscin";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
lmk04832: clock-controller@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
compatible = "ti,lmk04832";
spi-max-frequency = <781250>;
reset-gpios = <&gpio_lmk 0 0 0>;
#clock-cells = <1>;
clocks = <&lmk04832_oscin>;
clock-names = "oscin";
ti,spi-4wire-rdbk = <0>;
ti,vco-hz = <2457600000>;
assigned-clocks =
<&lmk04832 0>, <&lmk04832 1>,
<&lmk04832 2>, <&lmk04832 3>,
<&lmk04832 4>,
<&lmk04832 6>, <&lmk04832 7>,
<&lmk04832 10>, <&lmk04832 11>;
assigned-clock-rates =
<122880000>, <384000>,
<122880000>, <384000>,
<122880000>,
<153600000>, <384000>,
<614400000>, <384000>;
clkout0@0 {
reg = <0>;
ti,clkout-fmt = <0x01>; // LVDS
};
clkout1@1 {
reg = <1>;
ti,clkout-fmt = <0x01>; // LVDS
ti,clkout-sysref;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)