Lines Matching +full:mt8192 +full:- +full:topckgen

1 // SPDX-License-Identifier: GPL-2.0-only
4 // Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
15 #include "clk-gate.h"
16 #include "clk-mtk.h"
17 #include "clk-mux.h"
18 #include "clk-pll.h"
20 #include <dt-bindings/clock/mt8192-clk.h>
21 #include <dt-bindings/reset/mt8192-resets.h>
549 * spm_sel is the clock of the always-on co-processor.
589 mfg_pll_parents, 0x050, 0x054, 0x058, 18, 1, -1, -1),
1061 top_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in clk_mt8192_top_init_early()
1068 CLK_OF_DECLARE_DRIVER(mt8192_topckgen, "mediatek,mt8192-topckgen",
1079 return -ENOMEM; in clk_mt8192_reg_mfg_mux_notifier()
1085 return -EINVAL; in clk_mt8192_reg_mfg_mux_notifier()
1087 mfg_mux_nb->ops = top_mtk_muxes[i].ops; in clk_mt8192_reg_mfg_mux_notifier()
1088 mfg_mux_nb->bypass_index = 0; /* Bypass to 26M crystal */ in clk_mt8192_reg_mfg_mux_notifier()
1095 struct device_node *node = pdev->dev.of_node; in clk_mt8192_top_probe()
1116 r = clk_mt8192_reg_mfg_mux_notifier(&pdev->dev, in clk_mt8192_top_probe()
1117 top_clk_data->hws[CLK_TOP_MFG_PLL_SEL]->clk); in clk_mt8192_top_probe()
1129 struct device_node *node = pdev->dev.of_node; in clk_mt8192_infra_probe()
1134 return -ENOMEM; in clk_mt8192_infra_probe()
1140 r = mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc); in clk_mt8192_infra_probe()
1158 struct device_node *node = pdev->dev.of_node; in clk_mt8192_peri_probe()
1163 return -ENOMEM; in clk_mt8192_peri_probe()
1183 struct device_node *node = pdev->dev.of_node; in clk_mt8192_apmixed_probe()
1188 return -ENOMEM; in clk_mt8192_apmixed_probe()
1208 .compatible = "mediatek,mt8192-apmixedsys",
1211 .compatible = "mediatek,mt8192-topckgen",
1214 .compatible = "mediatek,mt8192-infracfg",
1217 .compatible = "mediatek,mt8192-pericfg",
1229 clk_probe = of_device_get_match_data(&pdev->dev); in clk_mt8192_probe()
1231 return -EINVAL; in clk_mt8192_probe()
1235 dev_err(&pdev->dev, "could not register clock provider: %s: %d\n", pdev->name, r); in clk_mt8192_probe()
1243 .name = "clk-mt8192",