Lines Matching +full:clock +full:- +full:xtal
1 // SPDX-License-Identifier: GPL-2.0
3 * Marvell Armada 37xx SoC xtal clocks
7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
11 #include <linux/clk-provider.h>
21 struct device_node *np = pdev->dev.of_node; in armada_3700_xtal_clock_probe()
22 const char *xtal_name = "xtal"; in armada_3700_xtal_clock_probe()
30 xtal_hw = devm_kzalloc(&pdev->dev, sizeof(*xtal_hw), GFP_KERNEL); in armada_3700_xtal_clock_probe()
32 return -ENOMEM; in armada_3700_xtal_clock_probe()
36 parent = np->parent; in armada_3700_xtal_clock_probe()
38 dev_err(&pdev->dev, "no parent\n"); in armada_3700_xtal_clock_probe()
39 return -ENODEV; in armada_3700_xtal_clock_probe()
44 dev_err(&pdev->dev, "cannot get regmap\n"); in armada_3700_xtal_clock_probe()
50 dev_err(&pdev->dev, "cannot read from regmap\n"); in armada_3700_xtal_clock_probe()
59 of_property_read_string_index(np, "clock-output-names", 0, &xtal_name); in armada_3700_xtal_clock_probe()
70 of_clk_del_provider(pdev->dev.of_node); in armada_3700_xtal_clock_remove()
76 { .compatible = "marvell,armada-3700-xtal-clock", },
84 .name = "marvell-armada-3700-xtal-clock",