Skip to content

Commit 151ebcf

Browse files
jmentiWilliam Breathitt Gray
authored andcommitted
dt-bindings: counter: Add new ti,am62-eqep compatible
Add new compatible ti,am62-eqep for TI K3 devices. If a device uses this compatible, require power-domains property. Since there is only one functional and interface clock for eqep, clock-names is not really required, so removed from required section, make it optional for ti,am3352-eqep compatible, and update the example. The clock-name also changed for TI K3 SoCs so do not allow clock-names property for the new compatible. Signed-off-by: Judith Mendez <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-by: David Lechner <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: William Breathitt Gray <[email protected]>
1 parent 1a84aaa commit 151ebcf

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

Documentation/devicetree/bindings/counter/ti-eqep.yaml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
const: ti,am3352-eqep
14+
enum:
15+
- ti,am3352-eqep
16+
- ti,am62-eqep
1517

1618
reg:
1719
maxItems: 1
@@ -21,19 +23,35 @@ properties:
2123
maxItems: 1
2224

2325
clocks:
24-
description: The clock that determines the SYSCLKOUT rate for the eQEP
25-
peripheral.
26+
description: The functional and interface clock that determines the clock
27+
rate for the eQEP peripheral.
2628
maxItems: 1
2729

2830
clock-names:
2931
const: sysclkout
3032

33+
power-domains:
34+
maxItems: 1
35+
36+
allOf:
37+
- if:
38+
properties:
39+
compatible:
40+
contains:
41+
enum:
42+
- ti,am62-eqep
43+
then:
44+
properties:
45+
clock-names: false
46+
47+
required:
48+
- power-domains
49+
3150
required:
3251
- compatible
3352
- reg
3453
- interrupts
3554
- clocks
36-
- clock-names
3755

3856
additionalProperties: false
3957

@@ -43,7 +61,6 @@ examples:
4361
compatible = "ti,am3352-eqep";
4462
reg = <0x180 0x80>;
4563
clocks = <&l4ls_gclk>;
46-
clock-names = "sysclkout";
4764
interrupts = <79>;
4865
};
4966

0 commit comments

Comments
 (0)