clk: thead: th1520-ap: Correctly refer the parent of osc_12m
authorYao Zi <ziyao@disroot.org>
Thu, 10 Jul 2025 09:21:34 +0000 (09:21 +0000)
committerDrew Fustini <drew@pdp7.com>
Sun, 13 Jul 2025 19:46:58 +0000 (12:46 -0700)
commitd274c77ffa202b70ad01d579f33b73b4de123375
tree6e8df8bdc5b8d26e8d0f23afc967b4c6f337bb30
parent0370395d45ca6dd53bb931978f0e91ac8dd6f1c5
clk: thead: th1520-ap: Correctly refer the parent of osc_12m

The "osc_12m" fixed factor clock refers the external oscillator by
setting clk_parent_data.fw_name to osc_24m, which is obviously wrong
since no clock-names property is allowed for compatible
thead,th1520-clk-ap.

Refer the oscillator as parent by index instead.

Fixes: ae81b69fd2b1 ("clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Drew Fustini <fustini@kernel.org>
drivers/clk/thead/clk-th1520-ap.c