Skip to content

Commit 7efa3a6

Browse files
prabhakarladgeertu
authored andcommitted
clk: renesas: r9a09g056: Add USB3.0 clocks/resets
Add USB3.0 clock and reset entries. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20251101050034.738807-5-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 4ecc8cc commit 7efa3a6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

drivers/clk/renesas/r9a09g056-cpg.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
enum clk_ids {
1919
/* Core Clock Outputs exported to DT */
20-
LAST_DT_CORE_CLK = R9A09G056_SPI_CLK_SPI,
20+
LAST_DT_CORE_CLK = R9A09G056_USB3_0_CLKCORE,
2121

2222
/* External Input Clocks */
2323
CLK_AUDIO_EXTAL,
@@ -226,6 +226,8 @@ static const struct cpg_core_clk r9a09g056_core_clks[] __initconst = {
226226
CLK_PLLETH_DIV_125_FIX, 1, 1),
227227
DEF_FIXED_MOD_STATUS("spi_clk_spi", R9A09G056_SPI_CLK_SPI, CLK_PLLCM33_XSPI, 1, 2,
228228
FIXED_MOD_CONF_XSPI),
229+
DEF_FIXED("usb3_0_ref_alt_clk_p", R9A09G056_USB3_0_REF_ALT_CLK_P, CLK_QEXTAL, 1, 1),
230+
DEF_FIXED("usb3_0_core_clk", R9A09G056_USB3_0_CLKCORE, CLK_QEXTAL, 1, 1),
229231
};
230232

231233
static const struct rzv2h_mod_clk r9a09g056_mod_clks[] __initconst = {
@@ -319,6 +321,10 @@ static const struct rzv2h_mod_clk r9a09g056_mod_clks[] __initconst = {
319321
BUS_MSTOP(8, BIT(4))),
320322
DEF_MOD("sdhi_2_aclk", CLK_PLLDTY_ACPU_DIV4, 10, 14, 5, 14,
321323
BUS_MSTOP(8, BIT(4))),
324+
DEF_MOD("usb3_0_aclk", CLK_PLLDTY_DIV8, 10, 15, 5, 15,
325+
BUS_MSTOP(7, BIT(12))),
326+
DEF_MOD("usb3_0_pclk_usbtst", CLK_PLLDTY_ACPU_DIV4, 11, 0, 5, 16,
327+
BUS_MSTOP(7, BIT(14))),
322328
DEF_MOD("usb2_0_u2h0_hclk", CLK_PLLDTY_DIV8, 11, 3, 5, 19,
323329
BUS_MSTOP(7, BIT(7))),
324330
DEF_MOD("usb2_0_u2p_exr_cpuclk", CLK_PLLDTY_ACPU_DIV4, 11, 5, 5, 21,
@@ -426,6 +432,7 @@ static const struct rzv2h_reset r9a09g056_resets[] __initconst = {
426432
DEF_RST(10, 7, 4, 24), /* SDHI_0_IXRST */
427433
DEF_RST(10, 8, 4, 25), /* SDHI_1_IXRST */
428434
DEF_RST(10, 9, 4, 26), /* SDHI_2_IXRST */
435+
DEF_RST(10, 10, 4, 27), /* USB3_0_ARESETN */
429436
DEF_RST(10, 12, 4, 29), /* USB2_0_U2H0_HRESETN */
430437
DEF_RST(10, 14, 4, 31), /* USB2_0_U2P_EXL_SYSRST */
431438
DEF_RST(10, 15, 5, 0), /* USB2_0_PRESETN */

0 commit comments

Comments
 (0)