Lines Matching +full:mt8365 +full:- +full:topckgen
1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/clock/mediatek,mt8365-clk.h>
8 #include <linux/clk-provider.h>
17 #include "clk-gate.h"
18 #include "clk-mtk.h"
19 #include "clk-mux.h"
20 #include "clk-pll.h"
547 9, 2, -1, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL),
858 struct device_node *node = pdev->dev.of_node; in clk_mt8365_apmixed_probe()
859 struct device *dev = &pdev->dev; in clk_mt8365_apmixed_probe()
869 return -ENOMEM; in clk_mt8365_apmixed_probe()
875 clk_data->hws[CLK_APMIXED_UNIV_EN] = hw; in clk_mt8365_apmixed_probe()
881 clk_data->hws[CLK_APMIXED_USB20_EN] = hw; in clk_mt8365_apmixed_probe()
911 hw = devm_clk_hw_register_gate(dev, gate->name, gate->parent, 0, in clk_mt8365_register_mtk_simple_gates()
912 base + gate->reg, gate->shift, in clk_mt8365_register_mtk_simple_gates()
913 gate->gate_flags, NULL); in clk_mt8365_register_mtk_simple_gates()
917 clk_data->hws[gate->id] = hw; in clk_mt8365_register_mtk_simple_gates()
927 struct device_node *node = pdev->dev.of_node; in clk_mt8365_top_probe()
928 struct device *dev = &pdev->dev; in clk_mt8365_top_probe()
938 return -ENOMEM; in clk_mt8365_top_probe()
965 hw = devm_clk_hw_register_mux(dev, mux->name, apll_i2s0_parents, in clk_mt8365_top_probe()
968 mux->shift, 1, 0, NULL); in clk_mt8365_top_probe()
974 clk_data->hws[mux->id] = hw; in clk_mt8365_top_probe()
1015 struct device_node *node = pdev->dev.of_node; in clk_mt8365_infra_probe()
1020 return -ENOMEM; in clk_mt8365_infra_probe()
1045 struct device *dev = &pdev->dev; in clk_mt8365_peri_probe()
1046 struct device_node *node = dev->of_node; in clk_mt8365_peri_probe()
1055 return -ENOMEM; in clk_mt8365_peri_probe()
1071 struct device_node *node = pdev->dev.of_node; in clk_mt8365_mcu_probe()
1081 return -ENOMEM; in clk_mt8365_mcu_probe()
1105 .compatible = "mediatek,mt8365-apmixedsys",
1108 .compatible = "mediatek,mt8365-topckgen",
1111 .compatible = "mediatek,mt8365-infracfg",
1114 .compatible = "mediatek,mt8365-pericfg",
1117 .compatible = "mediatek,mt8365-mcucfg",
1129 clk_probe = of_device_get_match_data(&pdev->dev); in clk_mt8365_probe()
1131 return -EINVAL; in clk_mt8365_probe()
1135 dev_err(&pdev->dev, in clk_mt8365_probe()
1137 pdev->name, ret); in clk_mt8365_probe()
1145 .name = "clk-mt8365",