Lines Matching +full:osc +full:- +full:bypass

1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/clk-provider.h>
33 const char *name = np->name; in of_sama5d2_clk_audio_pll_frac_setup()
53 "atmel,sama5d2-clk-audio-pll-frac",
59 const char *name = np->name; in of_sama5d2_clk_audio_pll_pad_setup()
79 "atmel,sama5d2-clk-audio-pll-pad",
85 const char *name = np->name; in of_sama5d2_clk_audio_pll_pmc_setup()
105 "atmel,sama5d2-clk-audio-pll-pmc",
161 if (of_property_read_string(np, "clock-output-names", &name)) in of_sama5d2_clk_generated_setup()
162 name = gcknp->name; in of_sama5d2_clk_generated_setup()
164 of_at91_get_clk_range(gcknp, "atmel,clk-output-range", in of_sama5d2_clk_generated_setup()
167 if (of_device_is_compatible(np, "atmel,sama5d2-clk-generated") && in of_sama5d2_clk_generated_setup()
183 CLK_OF_DECLARE(of_sama5d2_clk_generated_setup, "atmel,sama5d2-clk-generated",
191 const char *name = np->name; in of_sama5d4_clk_h32mx_setup()
210 CLK_OF_DECLARE(of_sama5d4_clk_h32mx_setup, "atmel,sama5d4-clk-h32mx",
226 regmap_sfr = syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr"); in of_sama5d2_clk_i2s_mux_setup()
241 hw = at91_clk_i2s_mux_register(regmap_sfr, i2s_mux_np->name, in of_sama5d2_clk_i2s_mux_setup()
249 CLK_OF_DECLARE(sama5d2_clk_i2s_mux, "atmel,sama5d2-clk-i2s-mux",
256 const char *name = np->name; in of_at91rm9200_clk_main_osc_setup()
259 bool bypass; in of_at91rm9200_clk_main_osc_setup() local
262 of_property_read_string(np, "clock-output-names", &name); in of_at91rm9200_clk_main_osc_setup()
263 bypass = of_property_read_bool(np, "atmel,osc-bypass"); in of_at91rm9200_clk_main_osc_setup()
272 hw = at91_clk_register_main_osc(regmap, name, parent_name, NULL, bypass); in of_at91rm9200_clk_main_osc_setup()
278 CLK_OF_DECLARE(at91rm9200_clk_main_osc, "atmel,at91rm9200-clk-main-osc",
286 const char *name = np->name; in of_at91sam9x5_clk_main_rc_osc_setup()
290 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_main_rc_osc_setup()
291 of_property_read_u32(np, "clock-frequency", &frequency); in of_at91sam9x5_clk_main_rc_osc_setup()
292 of_property_read_u32(np, "clock-accuracy", &accuracy); in of_at91sam9x5_clk_main_rc_osc_setup()
306 CLK_OF_DECLARE(at91sam9x5_clk_main_rc_osc, "atmel,at91sam9x5-clk-main-rc-osc",
313 const char *name = np->name; in of_at91rm9200_clk_main_setup()
318 of_property_read_string(np, "clock-output-names", &name); in of_at91rm9200_clk_main_setup()
332 CLK_OF_DECLARE(at91rm9200_clk_main, "atmel,at91rm9200-clk-main",
340 const char *name = np->name; in of_at91sam9x5_clk_main_setup()
355 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_main_setup()
364 CLK_OF_DECLARE(at91sam9x5_clk_main, "atmel,at91sam9x5-clk-main",
376 if (of_at91_get_clk_range(np, "atmel,clk-output-range", &characteristics->output)) in of_at91_clk_master_get_characteristics()
379 of_property_read_u32_array(np, "atmel,clk-divisors", in of_at91_clk_master_get_characteristics()
380 characteristics->divisors, 4); in of_at91_clk_master_get_characteristics()
382 characteristics->have_div3_pres = in of_at91_clk_master_get_characteristics()
383 of_property_read_bool(np, "atmel,master-clk-have-div3-pres"); in of_at91_clk_master_get_characteristics()
399 const char *name = np->name; in of_at91_clk_master_setup()
410 of_property_read_string(np, "clock-output-names", &name); in of_at91_clk_master_setup()
445 CLK_OF_DECLARE(at91rm9200_clk_master, "atmel,at91rm9200-clk-master",
452 CLK_OF_DECLARE(at91sam9x5_clk_master, "atmel,at91sam9x5-clk-master",
488 if (of_property_read_string(np, "clock-output-names", &name)) in of_at91_clk_periph_setup()
489 name = periphclknp->name; in of_at91_clk_periph_setup()
499 "atmel,clk-output-range", in of_at91_clk_periph_setup()
507 if (!strcmp(periphclknp->name, "mpddr_clk")) in of_at91_clk_periph_setup()
532 CLK_OF_DECLARE(at91rm9200_clk_periph, "atmel,at91rm9200-clk-peripheral",
539 CLK_OF_DECLARE(at91sam9x5_clk_periph, "atmel,at91sam9x5-clk-peripheral",
556 if (of_at91_get_clk_range(np, "atmel,clk-input-range", &input)) in of_at91_clk_pll_get_characteristics()
559 if (of_property_read_u32(np, "#atmel,pll-clk-output-range-cells", in of_at91_clk_pll_get_characteristics()
566 num_output = of_property_count_u32_elems(np, "atmel,pll-clk-output-ranges"); in of_at91_clk_pll_get_characteristics()
594 "atmel,pll-clk-output-ranges", in of_at91_clk_pll_get_characteristics()
599 "atmel,pll-clk-output-ranges", in of_at91_clk_pll_get_characteristics()
608 "atmel,pll-clk-output-ranges", in of_at91_clk_pll_get_characteristics()
617 "atmel,pll-clk-output-ranges", in of_at91_clk_pll_get_characteristics()
623 characteristics->input = input; in of_at91_clk_pll_get_characteristics()
624 characteristics->num_output = num_output; in of_at91_clk_pll_get_characteristics()
625 characteristics->output = output; in of_at91_clk_pll_get_characteristics()
626 characteristics->out = out; in of_at91_clk_pll_get_characteristics()
627 characteristics->icpll = icpll; in of_at91_clk_pll_get_characteristics()
647 const char *name = np->name; in of_at91_clk_pll_setup()
656 of_property_read_string(np, "clock-output-names", &name); in of_at91_clk_pll_setup()
684 CLK_OF_DECLARE(at91rm9200_clk_pll, "atmel,at91rm9200-clk-pll",
691 CLK_OF_DECLARE(at91sam9g45_clk_pll, "atmel,at91sam9g45-clk-pll",
698 CLK_OF_DECLARE(at91sam9g20_clk_pllb, "atmel,at91sam9g20-clk-pllb",
705 CLK_OF_DECLARE(sama5d3_clk_pll, "atmel,sama5d3-clk-pll",
713 const char *name = np->name; in of_at91sam9x5_clk_plldiv_setup()
719 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_plldiv_setup()
733 CLK_OF_DECLARE(at91sam9x5_clk_plldiv, "atmel,at91sam9x5-clk-plldiv",
770 if (of_property_read_string(np, "clock-output-names", &name)) in of_at91_clk_prog_setup()
771 name = progclknp->name; in of_at91_clk_prog_setup()
787 CLK_OF_DECLARE(at91rm9200_clk_prog, "atmel,at91rm9200-clk-programmable",
794 CLK_OF_DECLARE(at91sam9g45_clk_prog, "atmel,at91sam9g45-clk-programmable",
801 CLK_OF_DECLARE(at91sam9x5_clk_prog, "atmel,at91sam9x5-clk-programmable",
809 const char *name = np->name; in of_at91sam9260_clk_slow_setup()
824 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9260_clk_slow_setup()
833 CLK_OF_DECLARE(at91sam9260_clk_slow, "atmel,at91sam9260-clk-slow",
844 const char *name = np->name; in of_at91sam9x5_clk_smd_setup()
854 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_smd_setup()
869 CLK_OF_DECLARE(at91sam9x5_clk_smd, "atmel,at91sam9x5-clk-smd",
899 if (of_property_read_string(np, "clock-output-names", &name)) in of_at91rm9200_clk_sys_setup()
900 name = sysclknp->name; in of_at91rm9200_clk_sys_setup()
909 if (!strcmp(sysclknp->name, "ddrck")) in of_at91rm9200_clk_sys_setup()
920 CLK_OF_DECLARE(at91rm9200_clk_sys, "atmel,at91rm9200-clk-system",
931 const char *name = np->name; in of_at91sam9x5_clk_usb_setup()
941 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_usb_setup()
956 CLK_OF_DECLARE(at91sam9x5_clk_usb, "atmel,at91sam9x5-clk-usb",
963 const char *name = np->name; in of_at91sam9n12_clk_usb_setup()
971 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9n12_clk_usb_setup()
985 CLK_OF_DECLARE(at91sam9n12_clk_usb, "atmel,at91sam9n12-clk-usb",
992 const char *name = np->name; in of_at91rm9200_clk_usb_setup()
1001 of_property_read_u32_array(np, "atmel,clk-divisors", divisors, 4); in of_at91rm9200_clk_usb_setup()
1005 of_property_read_string(np, "clock-output-names", &name); in of_at91rm9200_clk_usb_setup()
1018 CLK_OF_DECLARE(at91rm9200_clk_usb, "atmel,at91rm9200-clk-usb",
1027 const char *name = np->name; in of_at91sam9x5_clk_utmi_setup()
1033 of_property_read_string(np, "clock-output-names", &name); in of_at91sam9x5_clk_utmi_setup()
1044 * - 9x5: mainck supports several rates but it is indicated that a in of_at91sam9x5_clk_utmi_setup()
1046 * - sama5d3 and sama5d2: mainck supports several rates. Configuring in of_at91sam9x5_clk_utmi_setup()
1048 * - sama5d4: mainck is at 12 MHz. in of_at91sam9x5_clk_utmi_setup()
1052 regmap_sfr = syscon_regmap_lookup_by_compatible("atmel,sama5d3-sfr"); in of_at91sam9x5_clk_utmi_setup()
1054 regmap_sfr = syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr"); in of_at91sam9x5_clk_utmi_setup()
1065 CLK_OF_DECLARE(at91sam9x5_clk_utmi, "atmel,at91sam9x5-clk-utmi",