Lines Matching +full:sun6i +full:- +full:a31 +full:- +full:apb0 +full:- +full:clk
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Author: Boris BREZILLON <boris.brezillon@free-electrons.com>
7 * Allwinner A31 APB0 clock driver
10 #include <linux/clk-provider.h>
16 * The APB0 clk has a configurable divisor.
32 struct device_node *np = pdev->dev.of_node; in sun6i_a31_apb0_clk_probe()
33 const char *clk_name = np->name; in sun6i_a31_apb0_clk_probe()
36 struct clk *clk; in sun6i_a31_apb0_clk_probe() local
44 return -EINVAL; in sun6i_a31_apb0_clk_probe()
46 of_property_read_string(np, "clock-output-names", &clk_name); in sun6i_a31_apb0_clk_probe()
48 clk = clk_register_divider_table(&pdev->dev, clk_name, clk_parent, in sun6i_a31_apb0_clk_probe()
51 if (IS_ERR(clk)) in sun6i_a31_apb0_clk_probe()
52 return PTR_ERR(clk); in sun6i_a31_apb0_clk_probe()
54 return of_clk_add_provider(np, of_clk_src_simple_get, clk); in sun6i_a31_apb0_clk_probe()
58 { .compatible = "allwinner,sun6i-a31-apb0-clk" },
64 .name = "sun6i-a31-apb0-clk",