Lines Matching refs:node
187 static void of_mux_clk_setup(struct device_node *node) in of_mux_clk_setup() argument
199 num_parents = of_clk_get_parent_count(node); in of_mux_clk_setup()
201 pr_err("mux-clock %s must have parents\n", node->name); in of_mux_clk_setup()
209 parent_names[i] = of_clk_get_parent_name(node, i); in of_mux_clk_setup()
211 reg = ti_clk_get_reg_addr(node, 0); in of_mux_clk_setup()
216 of_property_read_u32(node, "ti,bit-shift", &shift); in of_mux_clk_setup()
218 if (of_property_read_bool(node, "ti,index-starts-at-one")) in of_mux_clk_setup()
221 if (of_property_read_bool(node, "ti,set-rate-parent")) in of_mux_clk_setup()
231 clk = _register_mux(NULL, node->name, parent_names, num_parents, in of_mux_clk_setup()
236 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_mux_clk_setup()
274 static void __init of_ti_composite_mux_clk_setup(struct device_node *node) in of_ti_composite_mux_clk_setup() argument
284 mux->reg = ti_clk_get_reg_addr(node, 0); in of_ti_composite_mux_clk_setup()
289 if (!of_property_read_u32(node, "ti,bit-shift", &val)) in of_ti_composite_mux_clk_setup()
292 if (of_property_read_bool(node, "ti,index-starts-at-one")) in of_ti_composite_mux_clk_setup()
295 num_parents = of_clk_get_parent_count(node); in of_ti_composite_mux_clk_setup()
298 pr_err("%s must have parents\n", node->name); in of_ti_composite_mux_clk_setup()
305 if (!ti_clk_add_component(node, &mux->hw, CLK_COMPONENT_TYPE_MUX)) in of_ti_composite_mux_clk_setup()