IDT VersaClock 5 and 6 programmable I2C clock generators

Schema identifier ($id): "http://devicetree.org/schemas/clock/idt,versaclock5.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The IDT VersaClock 5 and VersaClock 6 are programmable I2C clock generators providing from 3 to 12 output clocks.

When referencing the provided clock in the DT using phandle and clock specifier, the following mapping applies:

- 5P49V5923:
  0 -- OUT0_SEL_I2CB
  1 -- OUT1
  2 -- OUT2
- 5P49V5933:
  0 -- OUT0_SEL_I2CB
  1 -- OUT1
  2 -- OUT4
- other parts:
  0 -- OUT0_SEL_I2CB
  1 -- OUT1
  2 -- OUT2
  3 -- OUT3
  4 -- OUT4

The idt,shutdown and idt,output-enable-active properties control the SH (en_global_shutdown) and SP bits of the Primary Source and Shutdown Register, respectively. Their behavior is summarized by the following table:

SH SP Output when the SD/OE pin is Low/High == == ===================================== 0 0 Active/Inactive 0 1 Inactive/Active 1 0 Active/Shutdown 1 1 Inactive/Shutdown

The case where SH and SP are both 1 is likely not very interesting.

Maintainers (maintainers): "Luca Ceresoli <luca.ceresoli@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "idt,5p49v5923", "idt,5p49v5925", "idt,5p49v5933", "idt,5p49v5935", "idt,5p49v60", "idt,5p49v6901", "idt,5p49v6965", "idt,5p49v6975"

reg — required here #

I2C device address

Allowed values (enum): 104, 106

#clock-cells — required here #

Exact value (const): 1

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

Allowed values (enum): "xin", "clkin"

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

idt,xtal-load-femtofarads — not listed as required here #

Minimum value (minimum): 9000

Maximum value (maximum): 22760

Optional load capacitor for XTAL1 and XTAL2

idt,shutdown — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

If 1, this enables the shutdown functionality: the chip will be shut down if the SD/OE pin is driven high. If 0, this disables the shutdown functionality: the chip will never be shut down based on the value of the SD/OE pin. This property corresponds to the SH bit of the Primary Source and Shutdown Register.

idt,output-enable-active — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

If 1, this enables output when the SD/OE pin is high, and disables output when the SD/OE pin is low. If 0, this disables output when the SD/OE pin is high, and enables output when the SD/OE pin is low. This corresponds to the SP bit of the Primary Source and Shutdown Register.

Properties matching a name pattern (patternProperties) #

^OUT[1-4]$ — name matches this regular expression #

Value type (type): "object"

Description of one of the outputs (OUT1..OUT4). See "Clock1 Output Configuration" in the Versaclock 5/6/6E Family Register Description and Programming Guide.

Properties and child nodes (properties) #

idt,mode — not listed as required here

The output drive mode. Values defined in dt-bindings/clock/versaclock.h

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 6

idt,voltage-microvolt — not listed as required here

The output drive voltage.

Allowed values (enum): 1800000, 2500000, 3300000

idt,slew-percent — not listed as required here

The Slew rate control for CMOS single-ended.

Allowed values (enum): 80, 85, 90, 100

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"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "idt,5p49v5933", "idt,5p49v5935", "idt,5p49v6975"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Exact value (const): "clkin"

clocks — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Required in this object (required): "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/versaclock.h>

/* 25MHz reference crystal */
ref25: ref25m {
    compatible = "fixed-clock";
    #clock-cells = <0>;
    clock-frequency = <25000000>;
};

i2c@0 {
    reg = <0x0 0x100>;
    #address-cells = <1>;
    #size-cells = <0>;

    /* IDT 5P49V5923 I2C clock generator */
    vc5: clock-generator@6a {
        compatible = "idt,5p49v5923";
        reg = <0x6a>;
        #clock-cells = <1>;

        /* Connect XIN input to 25MHz reference */
        clocks = <&ref25m>;
        clock-names = "xin";

        /* Set the SD/OE pin's settings */
        idt,shutdown = <0>;
        idt,output-enable-active = <0>;

        OUT1 {
            idt,mode = <VC5_CMOSD>;
            idt,voltage-microvolt = <1800000>;
            idt,slew-percent = <80>;
        };

        OUT4 {
            idt,mode = <VC5_LVDS>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 139: Devices with builtin crystal + optional external input

Line 146: Devices without builtin crystal

Edit this page