Lines Matching refs:node
68 /* Parent is the x2 node, get parent of parent for the m2 div */
88 static struct clk *_register_gate(struct device_node *node, const char *name,
118 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
126 static void __init _of_ti_gate_clk_setup(struct device_node *node,
140 if (ti_clk_get_reg_addr(node, 0, ®))
143 if (!of_property_read_u32(node, "ti,bit-shift", &val))
147 if (of_clk_get_parent_count(node) != 1) {
148 pr_err("%pOFn must have 1 parent\n", node);
152 parent_name = of_clk_get_parent_name(node, 0);
154 if (of_property_read_bool(node, "ti,set-rate-parent"))
157 if (of_property_read_bool(node, "ti,set-bit-to-disable"))
160 name = ti_dt_clk_name(node);
161 clk = _register_gate(node, name, parent_name, flags, ®,
165 of_clk_add_provider(node, of_clk_src_simple_get, clk);
169 _of_ti_composite_gate_clk_setup(struct device_node *node,
179 if (ti_clk_get_reg_addr(node, 0, &gate->enable_reg))
182 of_property_read_u32(node, "ti,bit-shift", &val);
187 if (!ti_clk_add_component(node, &gate->hw, CLK_COMPONENT_TYPE_GATE))
195 of_ti_composite_no_wait_gate_clk_setup(struct device_node *node)
197 _of_ti_composite_gate_clk_setup(node, NULL);
203 static void __init of_ti_composite_interface_clk_setup(struct device_node *node)
205 _of_ti_composite_gate_clk_setup(node, &clkhwops_iclk_wait);
211 static void __init of_ti_composite_gate_clk_setup(struct device_node *node)
213 _of_ti_composite_gate_clk_setup(node, &clkhwops_wait);
219 static void __init of_ti_clkdm_gate_clk_setup(struct device_node *node)
221 _of_ti_gate_clk_setup(node, &omap_gate_clkdm_clk_ops, NULL);
226 static void __init of_ti_hsdiv_gate_clk_setup(struct device_node *node)
228 _of_ti_gate_clk_setup(node, &omap_gate_clk_hsdiv_restore_ops,
234 static void __init of_ti_gate_clk_setup(struct device_node *node)
236 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, NULL);
240 static void __init of_ti_wait_gate_clk_setup(struct device_node *node)
242 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, &clkhwops_wait);
248 static void __init of_ti_am35xx_gate_clk_setup(struct device_node *node)
250 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops,
256 static void __init of_ti_dss_gate_clk_setup(struct device_node *node)
258 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops,