diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-08-19 07:29:18 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-08-29 08:45:17 +0200 |
commit | 6880d94f84262e721f7da6eaa41cd8fd5d87164c (patch) | |
tree | 20f37cab2b5de3dbc1f8dca5d9305eff6fe4e86e /Documentation/devicetree/bindings/clock | |
parent | clk: zynqmp: Fix kernel-doc format (diff) | |
download | linux-6880d94f84262e721f7da6eaa41cd8fd5d87164c.tar.xz linux-6880d94f84262e721f7da6eaa41cd8fd5d87164c.zip |
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')
-rw-r--r-- | Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml | 27 |
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>; + }; |