Skip to content

Commit

Permalink
dt-bindings: clock: brcm,iproc-clocks: fix armpll properties
Browse files Browse the repository at this point in the history
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 <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20210819052918.6753-1-zajec5@gmail.com
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Rafał Miłecki authored and Stephen Boyd committed Aug 29, 2021
1 parent 6e1cc68 commit 6880d94
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,30 @@ properties:
maxItems: 1

'#clock-cells':
const: 1
true

clock-output-names:
minItems: 1
maxItems: 45

allOf:
- if:
properties:
compatible:
contains:
enum:
- brcm,cygnus-armpll
- brcm,nsp-armpll
then:
properties:
'#clock-cells':
const: 0
else:
properties:
'#clock-cells':
const: 1
required:
- clock-output-names
- if:
properties:
compatible:
Expand Down Expand Up @@ -359,7 +376,6 @@ required:
- reg
- clocks
- '#clock-cells'
- clock-output-names

additionalProperties: false

Expand Down Expand Up @@ -393,3 +409,10 @@ examples:
clocks = <&osc2>;
clock-output-names = "keypad", "adc/touch", "pwm";
};
- |
arm_clk@0 {
#clock-cells = <0>;
compatible = "brcm,nsp-armpll";
clocks = <&osc>;
reg = <0x0 0x1000>;
};

0 comments on commit 6880d94

Please sign in to comment.