1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/clock/idt,versaclock5.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Binding for IDT VersaClock 5 and 6 programmable I2C clock generators
10 The IDT VersaClock 5 and VersaClock 6 are programmable I2C
11 clock generators providing from 3 to 12 output clocks.
13 When referencing the provided clock in the DT using phandle and clock
14 specifier, the following mapping applies:
33 The idt,shutdown and idt,output-enable-active properties control the
34 SH (en_global_shutdown) and SP bits of the Primary Source and Shutdown
35 Register, respectively. Their behavior is summarized by the following
38 SH SP Output when the SD/OE pin is Low/High
39 == == =====================================
45 The case where SH and SP are both 1 is likely not very interesting.
48 - Luca Ceresoli <luca@lucaceresoli.net>
61 description: I2C device address
76 idt,xtal-load-femtofarads:
79 description: Optional load capacitor for XTAL1 and XTAL2
82 $ref: /schemas/types.yaml#/definitions/uint32
85 If 1, this enables the shutdown functionality: the chip will be
86 shut down if the SD/OE pin is driven high. If 0, this disables the
87 shutdown functionality: the chip will never be shut down based on
88 the value of the SD/OE pin. This property corresponds to the SH
89 bit of the Primary Source and Shutdown Register.
91 idt,output-enable-active:
92 $ref: /schemas/types.yaml#/definitions/uint32
95 If 1, this enables output when the SD/OE pin is high, and disables
96 output when the SD/OE pin is low. If 0, this disables output when
97 the SD/OE pin is high, and enables output when the SD/OE pin is
98 low. This corresponds to the SP bit of the Primary Source and
105 Description of one of the outputs (OUT1..OUT4). See "Clock1 Output
106 Configuration" in the Versaclock 5/6/6E Family Register Description
107 and Programming Guide.
111 The output drive mode. Values defined in dt-bindings/clk/versaclock.h
112 $ref: /schemas/types.yaml#/definitions/uint32
115 idt,voltage-microvolt:
116 description: The output drive voltage.
117 enum: [ 1800000, 2500000, 3300000 ]
119 description: The Slew rate control for CMOS single-ended.
120 enum: [ 80, 85, 90, 100 ]
121 additionalProperties: false
128 - idt,output-enable-active
138 # Devices with builtin crystal + optional external input
145 # Devices without builtin crystal
150 additionalProperties: false
154 #include <dt-bindings/clk/versaclock.h>
156 /* 25MHz reference crystal */
158 compatible = "fixed-clock";
160 clock-frequency = <25000000>;
165 #address-cells = <1>;
168 /* IDT 5P49V5923 I2C clock generator */
169 vc5: clock-generator@6a {
170 compatible = "idt,5p49v5923";
174 /* Connect XIN input to 25MHz reference */
178 /* Set the SD/OE pin's settings */
180 idt,output-enable-active = <0>;
183 idt,mode = <VC5_CMOSD>;
184 idt,voltage-microvolt = <1800000>;
185 idt,slew-percent = <80>;
189 idt,mode = <VC5_LVDS>;