Lines Matching refs:node

152 				  struct device_node *node)  in _register_dpll()  argument
161 clk = of_clk_get(node, 0); in _register_dpll()
164 node); in _register_dpll()
165 if (!ti_clk_retry_init(node, hw, _register_dpll)) in _register_dpll()
173 clk = of_clk_get(node, 1); in _register_dpll()
177 node); in _register_dpll()
178 if (!ti_clk_retry_init(node, hw, _register_dpll)) in _register_dpll()
187 name = ti_dt_clk_name(node); in _register_dpll()
188 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in _register_dpll()
191 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _register_dpll()
215 static void _register_dpll_x2(struct device_node *node, in _register_dpll_x2() argument
222 const char *name = ti_dt_clk_name(node); in _register_dpll_x2()
225 parent_name = of_clk_get_parent_name(node, 0); in _register_dpll_x2()
227 pr_err("%pOFn must have parent\n", node); in _register_dpll_x2()
249 ret = of_property_count_elems_of_size(node, "reg", 1); in _register_dpll_x2()
252 } else if (ti_clk_get_reg_addr(node, 0, &clk_hw->clksel_reg)) { in _register_dpll_x2()
260 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in _register_dpll_x2()
265 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _register_dpll_x2()
277 static void __init of_ti_dpll_setup(struct device_node *node, in of_ti_dpll_setup() argument
299 init->name = ti_dt_clk_name(node); in of_ti_dpll_setup()
302 init->num_parents = of_clk_get_parent_count(node); in of_ti_dpll_setup()
304 pr_err("%pOFn must have parent(s)\n", node); in of_ti_dpll_setup()
312 of_clk_parent_fill(node, parent_names, init->num_parents); in of_ti_dpll_setup()
316 if (ti_clk_get_reg_addr(node, 0, &dd->control_reg)) in of_ti_dpll_setup()
325 if (ti_clk_get_reg_addr(node, 1, &dd->mult_div1_reg)) in of_ti_dpll_setup()
332 if (ti_clk_get_reg_addr(node, 1, &dd->idlest_reg)) in of_ti_dpll_setup()
335 if (ti_clk_get_reg_addr(node, 2, &dd->mult_div1_reg)) in of_ti_dpll_setup()
340 if (ti_clk_get_reg_addr(node, 3, &dd->autoidle_reg)) in of_ti_dpll_setup()
350 if (ti_clk_get_reg_addr(node, ssc_clk_index++, in of_ti_dpll_setup()
354 if (ti_clk_get_reg_addr(node, ssc_clk_index++, in of_ti_dpll_setup()
358 of_property_read_u32(node, "ti,ssc-modfreq-hz", in of_ti_dpll_setup()
360 of_property_read_u32(node, "ti,ssc-deltam", &dd->ssc_deltam); in of_ti_dpll_setup()
362 of_property_read_bool(node, "ti,ssc-downspread"); in of_ti_dpll_setup()
365 if (of_property_read_bool(node, "ti,low-power-stop")) in of_ti_dpll_setup()
368 if (of_property_read_bool(node, "ti,low-power-bypass")) in of_ti_dpll_setup()
371 if (of_property_read_bool(node, "ti,lock")) in of_ti_dpll_setup()
374 if (!of_property_read_u32(node, "ti,min-div", &min_div) && in of_ti_dpll_setup()
381 _register_dpll(&clk_hw->hw, node); in of_ti_dpll_setup()
393 static void __init of_ti_omap4_dpll_x2_setup(struct device_node *node) in of_ti_omap4_dpll_x2_setup() argument
395 _register_dpll_x2(node, &dpll_x2_ck_ops, &clkhwops_omap4_dpllmx); in of_ti_omap4_dpll_x2_setup()
402 static void __init of_ti_am3_dpll_x2_setup(struct device_node *node) in of_ti_am3_dpll_x2_setup() argument
404 _register_dpll_x2(node, &dpll_x2_ck_ops, NULL); in of_ti_am3_dpll_x2_setup()
411 static void __init of_ti_omap3_dpll_setup(struct device_node *node) in of_ti_omap3_dpll_setup() argument
428 of_node_name_eq(node, "dpll5_ck")) in of_ti_omap3_dpll_setup()
429 of_ti_dpll_setup(node, &omap3_dpll5_ck_ops, &dd); in of_ti_omap3_dpll_setup()
431 of_ti_dpll_setup(node, &omap3_dpll_ck_ops, &dd); in of_ti_omap3_dpll_setup()
436 static void __init of_ti_omap3_core_dpll_setup(struct device_node *node) in of_ti_omap3_core_dpll_setup() argument
450 of_ti_dpll_setup(node, &omap3_dpll_core_ck_ops, &dd); in of_ti_omap3_core_dpll_setup()
455 static void __init of_ti_omap3_per_dpll_setup(struct device_node *node) in of_ti_omap3_per_dpll_setup() argument
470 of_ti_dpll_setup(node, &omap3_dpll_per_ck_ops, &dd); in of_ti_omap3_per_dpll_setup()
475 static void __init of_ti_omap3_per_jtype_dpll_setup(struct device_node *node) in of_ti_omap3_per_jtype_dpll_setup() argument
492 of_ti_dpll_setup(node, &omap3_dpll_per_ck_ops, &dd); in of_ti_omap3_per_jtype_dpll_setup()
498 static void __init of_ti_omap4_dpll_setup(struct device_node *node) in of_ti_omap4_dpll_setup() argument
512 of_ti_dpll_setup(node, &dpll_ck_ops, &dd); in of_ti_omap4_dpll_setup()
517 static void __init of_ti_omap5_mpu_dpll_setup(struct device_node *node) in of_ti_omap5_mpu_dpll_setup() argument
533 of_ti_dpll_setup(node, &dpll_ck_ops, &dd); in of_ti_omap5_mpu_dpll_setup()
538 static void __init of_ti_omap4_core_dpll_setup(struct device_node *node) in of_ti_omap4_core_dpll_setup() argument
552 of_ti_dpll_setup(node, &dpll_core_ck_ops, &dd); in of_ti_omap4_core_dpll_setup()
559 static void __init of_ti_omap4_m4xen_dpll_setup(struct device_node *node) in of_ti_omap4_m4xen_dpll_setup() argument
575 of_ti_dpll_setup(node, &dpll_m4xen_ck_ops, &dd); in of_ti_omap4_m4xen_dpll_setup()
580 static void __init of_ti_omap4_jtype_dpll_setup(struct device_node *node) in of_ti_omap4_jtype_dpll_setup() argument
596 of_ti_dpll_setup(node, &dpll_m4xen_ck_ops, &dd); in of_ti_omap4_jtype_dpll_setup()
602 static void __init of_ti_am3_no_gate_dpll_setup(struct device_node *node) in of_ti_am3_no_gate_dpll_setup() argument
622 of_ti_dpll_setup(node, &dpll_no_gate_ck_ops, &dd); in of_ti_am3_no_gate_dpll_setup()
627 static void __init of_ti_am3_jtype_dpll_setup(struct device_node *node) in of_ti_am3_jtype_dpll_setup() argument
642 of_ti_dpll_setup(node, &dpll_ck_ops, &dd); in of_ti_am3_jtype_dpll_setup()
647 static void __init of_ti_am3_no_gate_jtype_dpll_setup(struct device_node *node) in of_ti_am3_no_gate_jtype_dpll_setup() argument
662 of_ti_dpll_setup(node, &dpll_no_gate_ck_ops, &dd); in of_ti_am3_no_gate_jtype_dpll_setup()
668 static void __init of_ti_am3_dpll_setup(struct device_node *node) in of_ti_am3_dpll_setup() argument
688 of_ti_dpll_setup(node, &dpll_ck_ops, &dd); in of_ti_am3_dpll_setup()
692 static void __init of_ti_am3_core_dpll_setup(struct device_node *node) in of_ti_am3_core_dpll_setup() argument
706 of_ti_dpll_setup(node, &dpll_core_ck_ops, &dd); in of_ti_am3_core_dpll_setup()
711 static void __init of_ti_omap2_core_dpll_setup(struct device_node *node) in of_ti_omap2_core_dpll_setup() argument
721 of_ti_dpll_setup(node, &omap2_dpll_core_ck_ops, &dd); in of_ti_omap2_core_dpll_setup()