Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rafał Miłecki and committed by
Stephen Boyd
6880d94f 6e1cc688

+25 -2
+25 -2
Documentation/devicetree/bindings/clock/brcm,iproc-clocks.yaml
··· 62 62 maxItems: 1 63 63 64 64 '#clock-cells': 65 - const: 1 65 + true 66 66 67 67 clock-output-names: 68 68 minItems: 1 69 69 maxItems: 45 70 70 71 71 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 72 89 - if: 73 90 properties: 74 91 compatible: ··· 376 359 - reg 377 360 - clocks 378 361 - '#clock-cells' 379 - - clock-output-names 380 362 381 363 additionalProperties: false 382 364 ··· 408 392 reg = <0x301d048 0xc>, <0x180aa024 0x4>; 409 393 clocks = <&osc2>; 410 394 clock-output-names = "keypad", "adc/touch", "pwm"; 395 + }; 396 + - | 397 + arm_clk@0 { 398 + #clock-cells = <0>; 399 + compatible = "brcm,nsp-armpll"; 400 + clocks = <&osc>; 401 + reg = <0x0 0x1000>; 411 402 };