Skip to content

Commit 176a320

Browse files
committed
Merge tag 'clk-imx-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux into clk-imx
Pull i.MX clk driver updates from Abel Vesa: - Set suppress_bind_attrs to true for i.MX8ULP driver - Switch from do_div to div64_ul for throughout all drivers - Fix imx8mn_clko1_sels for i.MX8MN - Remove unused IPG_AUDIO_ROOT from i.MX8MP - Switch parent for audio_root_clk to audio ahb in i.MX8MP driver * tag 'clk-imx-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux: clk: imx8mp: Fix the parent clk of the audio_root_clk clk: imx8mp: Remove IPG_AUDIO_ROOT from imx8mp-clock.h clk: imx8mn: Fix imx8mn_clko1_sels clk: imx: Use div64_ul instead of do_div clk: imx: imx8ulp: set suppress_bind_attrs to true
2 parents fa55b7d + 9dd8102 commit 176a320

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

drivers/clk/imx/clk-imx8mn.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ static const char * const imx8mn_pdm_sels[] = {"osc_24m", "sys_pll2_100m", "audi
277277

278278
static const char * const imx8mn_dram_core_sels[] = {"dram_pll_out", "dram_alt_root", };
279279

280-
static const char * const imx8mn_clko1_sels[] = {"osc_24m", "sys_pll1_800m", "osc_27m",
281-
"sys_pll1_200m", "audio_pll2_out", "vpu_pll",
282-
"sys_pll1_80m", };
280+
static const char * const imx8mn_clko1_sels[] = {"osc_24m", "sys_pll1_800m", "dummy",
281+
"sys_pll1_200m", "audio_pll2_out", "sys_pll2_500m",
282+
"dummy", "sys_pll1_80m", };
283283
static const char * const imx8mn_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll1_400m",
284284
"sys_pll2_166m", "sys_pll3_out", "audio_pll1_out",
285285
"video_pll1_out", "osc_32k", };

drivers/clk/imx/clk-imx8mp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev)
700700
hws[IMX8MP_CLK_HDMI_ROOT] = imx_clk_hw_gate4("hdmi_root_clk", "hdmi_axi", ccm_base + 0x45f0, 0);
701701
hws[IMX8MP_CLK_TSENSOR_ROOT] = imx_clk_hw_gate4("tsensor_root_clk", "ipg_root", ccm_base + 0x4620, 0);
702702
hws[IMX8MP_CLK_VPU_ROOT] = imx_clk_hw_gate4("vpu_root_clk", "vpu_bus", ccm_base + 0x4630, 0);
703-
hws[IMX8MP_CLK_AUDIO_ROOT] = imx_clk_hw_gate4("audio_root_clk", "ipg_root", ccm_base + 0x4650, 0);
703+
hws[IMX8MP_CLK_AUDIO_ROOT] = imx_clk_hw_gate4("audio_root_clk", "audio_ahb", ccm_base + 0x4650, 0);
704704

705705
hws[IMX8MP_CLK_ARM] = imx_clk_hw_cpu("arm", "arm_a53_core",
706706
hws[IMX8MP_CLK_A53_CORE]->clk,

drivers/clk/imx/clk-imx8ulp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ static struct platform_driver imx8ulp_clk_driver = {
559559
.probe = imx8ulp_clk_probe,
560560
.driver = {
561561
.name = KBUILD_MODNAME,
562+
.suppress_bind_attrs = true,
562563
.of_match_table = imx8ulp_clk_dt_ids,
563564
},
564565
};

drivers/clk/imx/clk-pllv3.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,
247247
div = rate / parent_rate;
248248
temp64 = (u64) (rate - div * parent_rate);
249249
temp64 *= mfd;
250-
do_div(temp64, parent_rate);
250+
temp64 = div64_ul(temp64, parent_rate);
251251
mfn = temp64;
252252

253253
temp64 = (u64)parent_rate;
@@ -277,7 +277,7 @@ static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
277277
div = rate / parent_rate;
278278
temp64 = (u64) (rate - div * parent_rate);
279279
temp64 *= mfd;
280-
do_div(temp64, parent_rate);
280+
temp64 = div64_ul(temp64, parent_rate);
281281
mfn = temp64;
282282

283283
val = readl_relaxed(pll->base);
@@ -334,7 +334,7 @@ static struct clk_pllv3_vf610_mf clk_pllv3_vf610_rate_to_mf(
334334
/* rate = parent_rate * (mfi + mfn/mfd) */
335335
temp64 = rate - parent_rate * mf.mfi;
336336
temp64 *= mf.mfd;
337-
do_div(temp64, parent_rate);
337+
temp64 = div64_ul(temp64, parent_rate);
338338
mf.mfn = temp64;
339339
}
340340

include/dt-bindings/clock/imx8mp-clock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
#define IMX8MP_CLK_AUDIO_AHB 108
118118
#define IMX8MP_CLK_MIPI_DSI_ESC_RX 109
119119
#define IMX8MP_CLK_IPG_ROOT 110
120-
#define IMX8MP_CLK_IPG_AUDIO_ROOT 111
121120
#define IMX8MP_CLK_DRAM_ALT 112
122121
#define IMX8MP_CLK_DRAM_APB 113
123122
#define IMX8MP_CLK_VPU_G1 114

0 commit comments

Comments
 (0)