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

arm64: dts: renesas: beacon: Fix USB ref clock references

The RZ/G2 boards expect there to be an external clock reference for
USB2 EHCI controllers. For the Beacon boards, this reference clock
is controlled by a programmable versaclock. Because the RZ/G2
family has a special clock driver when using an external clock,
the third clock reference in the EHCI node needs to point to this
special clock, called usb2_clksel.

Since the usb2_clksel does not keep the usb_extal clock enabled,
the 4th clock entry for the EHCI nodes needs to reference it to
keep the clock running and make USB functional.

Signed-off-by: Adam Ford <aford173@gmail.com>
Link: https://lore.kernel.org/r/20210513114617.30191-2-aford173@gmail.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Adam Ford and committed by
Geert Uytterhoeven
ebc666f3 56bc5449

+2 -2
+2 -2
arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
··· 271 271 &ehci0 { 272 272 dr_mode = "otg"; 273 273 status = "okay"; 274 - clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>; 274 + clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>, <&usb2_clksel>, <&versaclock5 3>; 275 275 }; 276 276 277 277 &ehci1 { 278 278 status = "okay"; 279 - clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>; 279 + clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>, <&usb2_clksel>, <&versaclock5 3>; 280 280 }; 281 281 282 282 &hdmi0 {