summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-08-19 07:29:18 +0200
committerStephen Boyd <sboyd@kernel.org>2021-08-28 23:45:17 -0700
commit6880d94f84262e721f7da6eaa41cd8fd5d87164c (patch)
tree20f37cab2b5de3dbc1f8dca5d9305eff6fe4e86e /Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
parent6e1cc688e4501c129ff4e0f001588e2859c5be33 (diff)
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 <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>
Diffstat (limited to 'Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml')
-rw-r--r--Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml27
1 files changed, 25 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml b/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
index 8dc7b404ee12..102c01cbec9b 100644
--- a/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
+++ b/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
@@ -62,7 +62,7 @@ properties:
maxItems: 1
'#clock-cells':
- const: 1
+ true
clock-output-names:
minItems: 1
@@ -75,6 +75,23 @@ allOf:
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:
+ contains:
+ enum:
+ - brcm,cygnus-armpll
- brcm,cygnus-genpll
- brcm,cygnus-lcpll0
- brcm,cygnus-mipipll
@@ -359,7 +376,6 @@ required:
- reg
- clocks
- '#clock-cells'
- - clock-output-names
additionalProperties: false
@@ -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>;
+ };