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

ARM: dts: s5pv210: Fix camera clock provider on Goni board

The camera driver (according also to bindings) registers a clock
provider if clock-output-names property is present and later the sensors
use registered clocks.

The DTS for S5Pv210 Goni board was incorrectly adding a child node with
clock output cells but without clock-output-names property. Although
the DTS was compiling (with "/soc/camera/clock-controller: missing or
empty reg/ranges property" warning), the clock provider was not
registered.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

+3 -5
+1 -1
arch/arm/boot/dts/s5pv210-goni.dts
··· 376 376 vdd_core-supply = <&ldo14_reg>; 377 377 378 378 clock-frequency = <16000000>; 379 - clocks = <&clock_cam 0>; 379 + clocks = <&camera 0>; 380 380 clock-names = "mclk"; 381 381 nreset-gpios = <&gpb 2 0>; 382 382 nstby-gpios = <&gpb 0 0>;
+2 -4
arch/arm/boot/dts/s5pv210.dtsi
··· 585 585 clock-names = "sclk_cam0", "sclk_cam1"; 586 586 #address-cells = <1>; 587 587 #size-cells = <1>; 588 + #clock-cells = <1>; 589 + clock-output-names = "cam_a_clkout", "cam_b_clkout"; 588 590 ranges; 589 - 590 - clock_cam: clock-controller { 591 - #clock-cells = <1>; 592 - }; 593 591 594 592 csis0: csis@fa600000 { 595 593 compatible = "samsung,s5pv210-csis";