Skip to content

Commit 6880d94

Browse files
Rafał Miłeckibebarino
authored andcommitted
dt-bindings: clock: brcm,iproc-clocks: fix armpll properties
armpll clocks (available on Cygnus and Northstar Plus) are simple clocks with no cells. Adjust binding props #clock-cells and clock-output-names to handle them. Signed-off-by: Rafał Miłecki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 6e1cc68 commit 6880d94

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,30 @@ properties:
6262
maxItems: 1
6363

6464
'#clock-cells':
65-
const: 1
65+
true
6666

6767
clock-output-names:
6868
minItems: 1
6969
maxItems: 45
7070

7171
allOf:
72+
- if:
73+
properties:
74+
compatible:
75+
contains:
76+
enum:
77+
- brcm,cygnus-armpll
78+
- brcm,nsp-armpll
79+
then:
80+
properties:
81+
'#clock-cells':
82+
const: 0
83+
else:
84+
properties:
85+
'#clock-cells':
86+
const: 1
87+
required:
88+
- clock-output-names
7289
- if:
7390
properties:
7491
compatible:
@@ -359,7 +376,6 @@ required:
359376
- reg
360377
- clocks
361378
- '#clock-cells'
362-
- clock-output-names
363379

364380
additionalProperties: false
365381

@@ -393,3 +409,10 @@ examples:
393409
clocks = <&osc2>;
394410
clock-output-names = "keypad", "adc/touch", "pwm";
395411
};
412+
- |
413+
arm_clk@0 {
414+
#clock-cells = <0>;
415+
compatible = "brcm,nsp-armpll";
416+
clocks = <&osc>;
417+
reg = <0x0 0x1000>;
418+
};

0 commit comments

Comments
 (0)