Lines Matching refs:subnode
2080 int subnode = 0; in clk_stm32_parse_oscillator_fdt() local
2085 fdt_for_each_subnode(subnode, fdt, node) { in clk_stm32_parse_oscillator_fdt()
2090 cchar = fdt_get_name(fdt, subnode, &ret); in clk_stm32_parse_oscillator_fdt()
2096 fdt_get_status(subnode) == DT_DISABLED) { in clk_stm32_parse_oscillator_fdt()
2100 cuint = fdt_getprop(fdt, subnode, "clock-frequency", &ret); in clk_stm32_parse_oscillator_fdt()
2107 if (fdt_getprop(fdt, subnode, "st,bypass", NULL) != NULL) { in clk_stm32_parse_oscillator_fdt()
2111 if (fdt_getprop(fdt, subnode, "st,digbypass", NULL) != NULL) { in clk_stm32_parse_oscillator_fdt()
2115 if (fdt_getprop(fdt, subnode, "st,css", NULL) != NULL) { in clk_stm32_parse_oscillator_fdt()
2119 osci->drive = fdt_read_uint32_default(fdt, subnode, "st,drive", LSEDRV_MEDIUM_HIGH); in clk_stm32_parse_oscillator_fdt()
2157 static int clk_stm32_load_vco_config(void *fdt, int subnode, struct stm32_pll_vco *vco) in clk_stm32_load_vco_config() argument
2161 err = fdt_read_uint32_array(fdt, subnode, "divmn", (int)PLL_DIV_MN_NB, vco->div_mn); in clk_stm32_load_vco_config()
2166 err = fdt_read_uint32_array(fdt, subnode, "csg", (int)PLL_CSG_NB, vco->csg); in clk_stm32_load_vco_config()
2180 vco->frac = fdt_read_uint32_default(fdt, subnode, "frac", 0); in clk_stm32_load_vco_config()
2182 vco->src = fdt_read_uint32_default(fdt, subnode, "src", UINT32_MAX); in clk_stm32_load_vco_config()
2187 static int clk_stm32_load_output_config(void *fdt, int subnode, struct stm32_pll_output *output) in clk_stm32_load_output_config() argument
2191 err = fdt_read_uint32_array(fdt, subnode, "st,pll_div_pqr", (int)PLL_DIV_PQR_NB, in clk_stm32_load_output_config()
2200 static int clk_stm32_parse_pll_fdt(void *fdt, int subnode, struct stm32_pll_dt_cfg *pll) in clk_stm32_parse_pll_fdt() argument
2207 cuint = fdt_getprop(fdt, subnode, "st,pll", NULL); in clk_stm32_parse_pll_fdt()
2247 int subnode = 0; in stm32_clk_parse_fdt_all_pll() local
2252 subnode = fdt_subnode_offset(fdt, node, name); in stm32_clk_parse_fdt_all_pll()
2253 if (!fdt_check_node(subnode)) { in stm32_clk_parse_fdt_all_pll()
2257 err = clk_stm32_parse_pll_fdt(fdt, subnode, pll); in stm32_clk_parse_fdt_all_pll()