Lines Matching refs:node
121 static struct clk *_register_mux(struct device_node *node, const char *name, in _register_mux() argument
151 clk = of_ti_clk_register(node, &mux->hw, name); in _register_mux()
165 static void of_mux_clk_setup(struct device_node *node) in of_mux_clk_setup() argument
178 num_parents = of_clk_get_parent_count(node); in of_mux_clk_setup()
180 pr_err("mux-clock %pOFn must have parents\n", node); in of_mux_clk_setup()
187 of_clk_parent_fill(node, parent_names, num_parents); in of_mux_clk_setup()
189 if (ti_clk_get_reg_addr(node, 0, ®)) in of_mux_clk_setup()
194 of_property_read_u32(node, "ti,latch-bit", &latch); in of_mux_clk_setup()
196 if (of_property_read_bool(node, "ti,index-starts-at-one")) in of_mux_clk_setup()
199 if (of_property_read_bool(node, "ti,set-rate-parent")) in of_mux_clk_setup()
209 name = ti_dt_clk_name(node); in of_mux_clk_setup()
210 clk = _register_mux(node, name, parent_names, num_parents, in of_mux_clk_setup()
215 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_mux_clk_setup()
251 static void __init of_ti_composite_mux_clk_setup(struct device_node *node) in of_ti_composite_mux_clk_setup() argument
260 if (ti_clk_get_reg_addr(node, 0, &mux->reg)) in of_ti_composite_mux_clk_setup()
265 if (of_property_read_bool(node, "ti,index-starts-at-one")) in of_ti_composite_mux_clk_setup()
268 num_parents = of_clk_get_parent_count(node); in of_ti_composite_mux_clk_setup()
271 pr_err("%pOFn must have parents\n", node); in of_ti_composite_mux_clk_setup()
278 if (!ti_clk_add_component(node, &mux->hw, CLK_COMPONENT_TYPE_MUX)) in of_ti_composite_mux_clk_setup()