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

dt-bindings: soc: mobileye: set `#clock-cells = <1>` for all compatibles

Some compatibles expose a single clock. For those, we used to let them
using `#clock-cells = <0>` (ie <&olb> reference rather than <&olb 0>).

Switch away from that: enforce a cell for all compatibles. This is more
straight forward, and avoids devicetree changes whenever a compatible
goes from exposing a single clock to multiple ones. Also, dt-bindings
get simpler.

*This is an ABI break*. Change it while EyeQ5 platform support is at its
infancy, without any user. More clocks might hide in each OLB as some
registers are still unknown.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20241106-mbly-clk-v2-1-84cfefb3f485@bootlin.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Théo Lebrun and committed by
Stephen Boyd
a370b2d2 25d90494

+1 -23
+1 -23
Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml
··· 41 41 enum: [ 1, 2 ] 42 42 43 43 '#clock-cells': 44 - description: 45 - Cell is clock index. Optional if compatible has a single clock. 46 - enum: [ 0, 1 ] 44 + const: 1 47 45 48 46 clocks: 49 47 maxItems: 1 ··· 309 311 then: 310 312 properties: 311 313 '#reset-cells': false 312 - 313 - # Compatibles exposing a single clock. 314 - - if: 315 - properties: 316 - compatible: 317 - contains: 318 - enum: 319 - - mobileye,eyeq6h-central-olb 320 - - mobileye,eyeq6h-east-olb 321 - - mobileye,eyeq6h-west-olb 322 - - mobileye,eyeq6h-ddr0-olb 323 - - mobileye,eyeq6h-ddr1-olb 324 - then: 325 - properties: 326 - '#clock-cells': 327 - const: 0 328 - else: 329 - properties: 330 - '#clock-cells': 331 - const: 1 332 314 333 315 # Only EyeQ5 has pinctrl in OLB. 334 316 - if: