Lines Matching refs:node
76 /* Parent is the x2 node, get parent of parent for the m2 div */
96 static struct clk *_register_gate(struct device_node *node, const char *name,
126 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
134 static void __init _of_ti_gate_clk_setup(struct device_node *node,
148 if (ti_clk_get_reg_addr(node, 0, ®))
151 if (!of_property_read_u32(node, "ti,bit-shift", &val))
155 if (of_clk_get_parent_count(node) != 1) {
156 pr_err("%pOFn must have 1 parent\n", node);
160 parent_name = of_clk_get_parent_name(node, 0);
162 if (of_property_read_bool(node, "ti,set-rate-parent"))
165 if (of_property_read_bool(node, "ti,set-bit-to-disable"))
168 name = ti_dt_clk_name(node);
169 clk = _register_gate(node, name, parent_name, flags, ®,
173 of_clk_add_provider(node, of_clk_src_simple_get, clk);
177 _of_ti_composite_gate_clk_setup(struct device_node *node,
187 if (ti_clk_get_reg_addr(node, 0, &gate->enable_reg))
190 of_property_read_u32(node, "ti,bit-shift", &val);
195 if (!ti_clk_add_component(node, &gate->hw, CLK_COMPONENT_TYPE_GATE))
203 of_ti_composite_no_wait_gate_clk_setup(struct device_node *node)
205 _of_ti_composite_gate_clk_setup(node, NULL);
211 static void __init of_ti_composite_interface_clk_setup(struct device_node *node)
213 _of_ti_composite_gate_clk_setup(node, &clkhwops_iclk_wait);
219 static void __init of_ti_composite_gate_clk_setup(struct device_node *node)
221 _of_ti_composite_gate_clk_setup(node, &clkhwops_wait);
227 static void __init of_ti_clkdm_gate_clk_setup(struct device_node *node)
229 _of_ti_gate_clk_setup(node, &omap_gate_clkdm_clk_ops, NULL);
234 static void __init of_ti_hsdiv_gate_clk_setup(struct device_node *node)
236 _of_ti_gate_clk_setup(node, &omap_gate_clk_hsdiv_restore_ops,
242 static void __init of_ti_gate_clk_setup(struct device_node *node)
244 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, NULL);
248 static void __init of_ti_wait_gate_clk_setup(struct device_node *node)
250 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, &clkhwops_wait);
256 static void __init of_ti_am35xx_gate_clk_setup(struct device_node *node)
258 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops,
264 static void __init of_ti_dss_gate_clk_setup(struct device_node *node)
266 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops,