Skip to content

Commit 34662f6

Browse files
aford173bebarino
authored andcommitted
dt: Add additional option bindings for IDT VersaClock
The VersaClock driver now supports some additional bindings to support child nodes which can configure optional settings like mode, voltage and slew. This patch updates the binding document to describe what is available in the driver. Signed-off-by: Adam Ford <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent f491276 commit 34662f6

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

Documentation/devicetree/bindings/clock/idt,versaclock5.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,29 @@ Required properties:
3131
- 5p49v5933 and
3232
- 5p49v5935: (optional) property not present or "clkin".
3333

34+
For all output ports, a corresponding, optional child node named OUT1,
35+
OUT2, etc. can represent a each output, and the node can be used to
36+
specify the following:
37+
38+
- itd,mode: can be one of the following:
39+
- VC5_LVPECL
40+
- VC5_CMOS
41+
- VC5_HCSL33
42+
- VC5_LVDS
43+
- VC5_CMOS2
44+
- VC5_CMOSD
45+
- VC5_HCSL25
46+
47+
- idt,voltage-microvolts: can be one of the following
48+
- 1800000
49+
- 2500000
50+
- 3300000
51+
- idt,slew-percent: Percent of normal, can be one of
52+
- 80
53+
- 85
54+
- 90
55+
- 100
56+
3457
==Mapping between clock specifier and physical pins==
3558

3659
When referencing the provided clock in the DT using phandle and
@@ -81,6 +104,16 @@ i2c-master-node {
81104
/* Connect XIN input to 25MHz reference */
82105
clocks = <&ref25m>;
83106
clock-names = "xin";
107+
108+
OUT1 {
109+
itd,mode = <VC5_CMOS>;
110+
idt,voltage-microvolts = <1800000>;
111+
idt,slew-percent = <80>;
112+
};
113+
OUT2 {
114+
...
115+
};
116+
...
84117
};
85118
};
86119

include/dt-bindings/clk/versaclock.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
3+
/* This file defines field values used by the versaclock 6 family
4+
* for defining output type
5+
*/
6+
7+
#define VC5_LVPECL 0
8+
#define VC5_CMOS 1
9+
#define VC5_HCSL33 2
10+
#define VC5_LVDS 3
11+
#define VC5_CMOS2 4
12+
#define VC5_CMOSD 5
13+
#define VC5_HCSL25 6

0 commit comments

Comments
 (0)