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

clk: hisilicon: add missing usb3 clocks for Hi3798CV200 SoC

There are two USB3 host controllers on Hi3798CV200 SoC.
This commit adds missing clocks for them.

Signed-off-by: Jianguo Sun <sunjianguo1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Jianguo Sun and committed by
Stephen Boyd
80820a7b 60cc43fc

+25
+17
drivers/clk/hisilicon/crg-hi3798cv200.c
··· 186 186 CLK_SET_RATE_PARENT, 0xbc, 0, 0 }, 187 187 { HISTB_USB2_PHY2_REF_CLK, "clk_u2_phy2_ref", "24m", 188 188 CLK_SET_RATE_PARENT, 0xbc, 2, 0 }, 189 + /* USB3 */ 190 + { HISTB_USB3_BUS_CLK, "clk_u3_bus", NULL, 191 + CLK_SET_RATE_PARENT, 0xb0, 0, 0 }, 192 + { HISTB_USB3_UTMI_CLK, "clk_u3_utmi", NULL, 193 + CLK_SET_RATE_PARENT, 0xb0, 4, 0 }, 194 + { HISTB_USB3_PIPE_CLK, "clk_u3_pipe", NULL, 195 + CLK_SET_RATE_PARENT, 0xb0, 3, 0 }, 196 + { HISTB_USB3_SUSPEND_CLK, "clk_u3_suspend", NULL, 197 + CLK_SET_RATE_PARENT, 0xb0, 2, 0 }, 198 + { HISTB_USB3_BUS_CLK1, "clk_u3_bus1", NULL, 199 + CLK_SET_RATE_PARENT, 0xb0, 16, 0 }, 200 + { HISTB_USB3_UTMI_CLK1, "clk_u3_utmi1", NULL, 201 + CLK_SET_RATE_PARENT, 0xb0, 20, 0 }, 202 + { HISTB_USB3_PIPE_CLK1, "clk_u3_pipe1", NULL, 203 + CLK_SET_RATE_PARENT, 0xb0, 19, 0 }, 204 + { HISTB_USB3_SUSPEND_CLK1, "clk_u3_suspend1", NULL, 205 + CLK_SET_RATE_PARENT, 0xb0, 18, 0 }, 189 206 }; 190 207 191 208 static struct hisi_clock_data *hi3798cv200_clk_register(
+8
include/dt-bindings/clock/histb-clock.h
··· 62 62 #define HISTB_USB2_PHY1_REF_CLK 40 63 63 #define HISTB_USB2_PHY2_REF_CLK 41 64 64 #define HISTB_COMBPHY0_CLK 42 65 + #define HISTB_USB3_BUS_CLK 43 66 + #define HISTB_USB3_UTMI_CLK 44 67 + #define HISTB_USB3_PIPE_CLK 45 68 + #define HISTB_USB3_SUSPEND_CLK 46 69 + #define HISTB_USB3_BUS_CLK1 47 70 + #define HISTB_USB3_UTMI_CLK1 48 71 + #define HISTB_USB3_PIPE_CLK1 49 72 + #define HISTB_USB3_SUSPEND_CLK1 50 65 73 66 74 /* clocks provided by mcu CRG */ 67 75 #define HISTB_MCE_CLK 1