Lines Matching refs:node
641 static int cpts_of_mux_clk_setup(struct cpts *cpts, struct device_node *node)
650 refclk_np = of_get_child_by_name(node, "cpts-refclk-mux");
717 static int cpts_of_parse(struct cpts *cpts, struct device_node *node)
722 if (!of_property_read_u32(node, "cpts_clock_mult", &prop))
725 if (!of_property_read_u32(node, "cpts_clock_shift", &prop))
732 return cpts_of_mux_clk_setup(cpts, node);
740 struct device_node *node, u32 n_ext_ts)
756 ret = cpts_of_parse(cpts, node);
760 cpts->refclk = devm_get_clk_from_child(dev, node, "cpts");
762 /* try get clk from dev node for compatibility */