Lines Matching +full:rtc32k +full:- +full:clock
1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
11 #include "clk-cpumux.h"
12 #include "clk-gate.h"
13 #include "clk-mtk.h"
14 #include "clk-pll.h"
16 #include <dt-bindings/clock/mt2701-clk.h>
139 FACTOR(CLK_TOP_32K_EXTERNAL, "32k_external", "rtc32k", 1, 1),
663 struct device_node *node = pdev->dev.of_node; in mtk_topckgen_init()
671 return -ENOMEM; in mtk_topckgen_init()
679 mtk_clk_register_composites(&pdev->dev, top_muxes, in mtk_topckgen_init()
683 mtk_clk_register_dividers(&pdev->dev, top_adj_divs, ARRAY_SIZE(top_adj_divs), in mtk_topckgen_init()
686 mtk_clk_register_gates(&pdev->dev, node, top_clks, in mtk_topckgen_init()
756 infra_clk_data->hws[i] = ERR_PTR(-EPROBE_DEFER); in mtk_infrasys_init_early()
768 pr_err("%s(): could not register clock provider: %d\n", in mtk_infrasys_init_early()
771 CLK_OF_DECLARE_DRIVER(mtk_infra, "mediatek,mt2701-infracfg",
777 struct device_node *node = pdev->dev.of_node; in mtk_infrasys_init()
782 return -ENOMEM; in mtk_infrasys_init()
785 if (infra_clk_data->hws[i] == ERR_PTR(-EPROBE_DEFER)) in mtk_infrasys_init()
786 infra_clk_data->hws[i] = ERR_PTR(-ENOENT); in mtk_infrasys_init()
790 mtk_clk_register_gates(&pdev->dev, node, infra_clks, in mtk_infrasys_init()
800 mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc[0]); in mtk_infrasys_init()
892 struct device_node *node = pdev->dev.of_node; in mtk_pericfg_init()
900 return -ENOMEM; in mtk_pericfg_init()
902 mtk_clk_register_gates(&pdev->dev, node, peri_clks, in mtk_pericfg_init()
905 mtk_clk_register_composites(&pdev->dev, peri_muxs, in mtk_pericfg_init()
913 mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc[1]); in mtk_pericfg_init()
975 struct device_node *node = pdev->dev.of_node; in mtk_apmixedsys_init()
979 return -ENOMEM; in mtk_apmixedsys_init()
991 .compatible = "mediatek,mt2701-topckgen",
994 .compatible = "mediatek,mt2701-infracfg",
997 .compatible = "mediatek,mt2701-pericfg",
1000 .compatible = "mediatek,mt2701-apmixedsys",
1013 clk_init = of_device_get_match_data(&pdev->dev); in clk_mt2701_probe()
1015 return -EINVAL; in clk_mt2701_probe()
1019 dev_err(&pdev->dev, in clk_mt2701_probe()
1020 "could not register clock provider: %s: %d\n", in clk_mt2701_probe()
1021 pdev->name, r); in clk_mt2701_probe()
1029 .name = "clk-mt2701",