Skip to content

Commit 275e4e2

Browse files
sean-anderson-secobebarino
authored andcommitted
dt-bindings: clk: vc5: Add properties for configuring the SD/OE pin
These properties allow configuring the SD/OE pin as described in the datasheet. Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Luca Ceresoli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent e73f0f0 commit 275e4e2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ description: |
3030
3 -- OUT3
3131
4 -- OUT4
3232
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
36+
table:
37+
38+
SH SP Output when the SD/OE pin is Low/High
39+
== == =====================================
40+
0 0 Active/Inactive
41+
0 1 Inactive/Active
42+
1 0 Active/Shutdown
43+
1 1 Inactive/Shutdown
44+
45+
The case where SH and SP are both 1 is likely not very interesting.
46+
3347
maintainers:
3448
- Luca Ceresoli <[email protected]>
3549

@@ -64,6 +78,26 @@ properties:
6478
maximum: 22760
6579
description: Optional load capacitor for XTAL1 and XTAL2
6680

81+
idt,shutdown:
82+
$ref: /schemas/types.yaml#/definitions/uint32
83+
enum: [0, 1]
84+
description: |
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.
90+
91+
idt,output-enable-active:
92+
$ref: /schemas/types.yaml#/definitions/uint32
93+
enum: [0, 1]
94+
description: |
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
99+
Shutdown Register.
100+
67101
patternProperties:
68102
"^OUT[1-4]$":
69103
type: object
@@ -90,6 +124,8 @@ required:
90124
- compatible
91125
- reg
92126
- '#clock-cells'
127+
- idt,shutdown
128+
- idt,output-enable-active
93129

94130
allOf:
95131
- if:
@@ -139,6 +175,10 @@ examples:
139175
clocks = <&ref25m>;
140176
clock-names = "xin";
141177
178+
/* Set the SD/OE pin's settings */
179+
idt,shutdown = <0>;
180+
idt,output-enable-active = <0>;
181+
142182
OUT1 {
143183
idt,mode = <VC5_CMOSD>;
144184
idt,voltage-microvolt = <1800000>;

0 commit comments

Comments
 (0)