Home
last modified time | relevance | path

Searched +full:clk +full:- +full:source (Results 1 – 25 of 103) sorted by relevance

12345

/Zephyr-Core-3.6.0/tests/drivers/clock_control/stm32_clock_configuration/stm32_common_devices/src/
Dtest_stm32_clock_configuration_i2c.c4 * SPDX-License-Identifier: Apache-2.0
28 static void i2c_set_clock(const struct stm32_pclken *clk) in i2c_set_clock() argument
35 (clock_control_subsys_t) clk, in i2c_set_clock()
40 /* Test clock source */ in i2c_set_clock()
43 if (clk->bus == STM32_SRC_HSI) { in i2c_set_clock()
47 } else if (clk->bus == STM32_SRC_SYSCLK) { in i2c_set_clock()
52 zassert_true(0, "Unexpected domain clk (0x%x)", dev_actual_clk_src); in i2c_set_clock()
55 /* Test status of the used clk source */ in i2c_set_clock()
57 (clock_control_subsys_t)clk); in i2c_set_clock()
58 zassert_true((status == CLOCK_CONTROL_STATUS_ON), "I2C1 clk src must to be on"); in i2c_set_clock()
[all …]
Dtest_stm32_clock_configuration_lptim.c4 * SPDX-License-Identifier: Apache-2.0
46 TC_PRINT("LPTIM1 source clock configured\n"); in ZTEST()
48 /* Test clock source */ in ZTEST()
60 zassert_true(0, "Unexpected domain clk (%d)", dev_actual_clk_src); in ZTEST()
63 /* Test get_rate(srce clk) */ in ZTEST()
67 zassert_true((r == 0), "Could not get LPTIM1 clk srce freq"); in ZTEST()
74 TC_PRINT("LPTIM1 clock source rate: %d Hz\n", dev_dt_clk_freq); in ZTEST()
83 zassert_true((r == 0), "Could not get LPTIM1 clk freq"); in ZTEST()
90 TC_PRINT("LPTIM1 clock source rate: %d Hz\n", dev_dt_clk_freq); in ZTEST()
96 zassert_true((r == 0), "Could not disable LPTIM1 gating clk"); in ZTEST()
[all …]
Dtest_stm32_clock_configuration_adc.c4 * SPDX-License-Identifier: Apache-2.0
35 #define PERIPHCLK_ADC (-1)
37 #define GET_ADC_SOURCE() (-1);
47 #define ADC_SOURCE_PLL (-1)
83 TC_PRINT("ADC1 source clock configured\n"); in ZTEST()
85 /* Test clock source */ in ZTEST()
86 zassert_true((ADC_SOURCE_PLL != -1), "Invalid ADC_SOURCE_PLL defined for target."); in ZTEST()
98 zassert_true(0, "Unexpected src clk (%d)", dev_actual_clk_src); in ZTEST()
101 /* Test status of the used clk source */ in ZTEST()
104 zassert_true((status == CLOCK_CONTROL_STATUS_ON), "ADC1 clk src must to be on"); in ZTEST()
[all …]
Dtest_stm32_clock_configuration_i2s.c4 * SPDX-License-Identifier: Apache-2.0
44 /* Test clock source */ in ZTEST()
52 zassert_true(0, "Unexpected domain clk (0x%x)", dev_actual_clk_src); in ZTEST()
55 /* Test get_rate(srce clk) */ in ZTEST()
59 zassert_true((r == 0), "Could not get I2S clk srce freq"); in ZTEST()
63 "Expected freq: %d Hz. Actual clk: %d Hz", in ZTEST()
66 TC_PRINT("I2S2 clock source rate: %d Hz\n", dev_dt_clk_freq); in ZTEST()
68 /* Test clock_off(gating clk) */ in ZTEST()
71 zassert_true((r == 0), "Could not disable I2S gating clk"); in ZTEST()
73 zassert_true(!__HAL_RCC_SPI2_IS_CLK_ENABLED(), "I2S2 gating clk should be off"); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/tests/drivers/clock_control/stm32_clock_configuration/stm32u5_devices/src/
Dtest_stm32_clock_configuration.c4 * SPDX-License-Identifier: Apache-2.0
53 /* Test clock_on(domain source) */ in ZTEST()
57 zassert_true((r == 0), "Could not configure SPI domain clk"); in ZTEST()
58 TC_PRINT("SPI1 domain clk configured\n"); in ZTEST()
60 /* Test clk source */ in ZTEST()
72 zassert_true(1, "Unexpected clk src (0x%x)", spi1_actual_domain_clk); in ZTEST()
75 /* Test get_rate(source clk) */ in ZTEST()
79 zassert_true((r == 0), "Could not get SPI clk freq"); in ZTEST()
83 "Expected SPI clk: %d. Actual: %d", in ZTEST()
96 "Expected SPI clk freq: %d. Actual: %d", in ZTEST()
[all …]
/Zephyr-Core-3.6.0/dts/bindings/watchdog/
Dnxp,kinetis-wdog32.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,kinetis-wdog32"
20 clk-source:
23 description: Watchdog counter clock source
25 clk-divider:
/Zephyr-Core-3.6.0/dts/bindings/adc/
Dnxp,kinetis-adc12.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,kinetis-adc12"
8 include: [adc-controller.yaml, pinctrl-device.yaml]
17 clk-source:
20 description: converter clock source
22 clk-divider:
27 alternate-voltage-reference:
29 description: use alternate voltage reference source
31 sample-time:
36 "#io-channel-cells":
[all …]
Dnxp,vf610-adc.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,vf610-adc"
8 include: adc-controller.yaml
17 clk-source:
21 Select adc clock source: 0 clock from IPG, 1 clock from IPG divided 2, 2 async clock
23 clk-divider:
30 "#io-channel-cells":
49 io-channel-cells:
50 - input
Dnxp,lpc-lpadc.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,lpc-lpadc"
8 include: [adc-controller.yaml, pinctrl-device.yaml]
17 clk-divider:
22 clk-source:
25 description: source to attach the ADC clock to
27 voltage-ref:
34 - 0
35 - 1
36 - 2
[all …]
Dnxp,kinetis-adc16.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,kinetis-adc16"
8 include: ["adc-controller.yaml", "pinctrl-device.yaml"]
14 channel-mux-b:
22 periodic-trigger:
26 "#io-channel-cells":
29 clk-source:
31 description: use alternate clock reference source
33 long-sample:
36 - 0
[all …]
/Zephyr-Core-3.6.0/drivers/clock_control/
Dclock_control_rpi_pico.c2 * Copyright (c) 2022 Andrei-Edward Popa
5 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/clock/rpi_pico_clock.h>
52 #define CLK_SRC_IS(clk, src) \ argument
53 DT_SAME_NODE(DT_CLOCKS_CTLR_BY_IDX(DT_INST_CLOCKS_CTLR_BY_NAME(0, clk), 0), \
63 * Using the 'clock-names[0]' for expanding macro to frequency value.
64 * The 'clock-names[0]' is set same as label value that given to the node itself.
65 * Use it for traverse clock tree to find root of clock source.
67 #define CLOCK_FREQ(clk) _CONCAT(CLOCK_FREQ_, clk) argument
68 #define SRC_CLOCK(clk) DT_STRING_TOKEN_BY_IDX(DT_INST_CLOCKS_CTLR_BY_NAME(0, clk), \ argument
[all …]
/Zephyr-Core-3.6.0/dts/bindings/clock/
Dst,stm32g0-hsi-clock.yaml2 # SPDX-License-Identifier: Apache-2.0
8 It also produces a HSISYS secondary clk which can be used as system clock
9 source. In that case, a HSI divisor (ranges from 1 to 128) can be applied:
12 - 1 ==> HSISYS = 16MHZ
13 - 2 ==> HSISYS = 8MHZ
14 - 4 ==> HSISYS = 4MHZ
15 - 8 ==> HSISYS = 2MHZ
16 - 16 ==> HSISYS = 1MHZ
17 - 32 ==> HSISYS = 0.5MHz
18 - 64 ==> HSISYS = 0.25MHZ
[all …]
Dnuvoton,numaker-pcc.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nuvoton,numaker-pcc"
8 include: [clock-controller.yaml, base.yaml]
11 "#clock-cells":
14 clock-cells:
15 - clock-module-index # Same as u32ModuleIdx on invoking BSP CLK driver CLK_SetModuleClock()
16 - clock-source # Same as u32ClkSrc on invoking BSP CLK driver CLK_SetModuleClock()
17 - clock-divider # Same as u32ClkDiv on invoking BSP CLK driver CLK_SetModuleClock()
Drenesas,smartbond-lp-clock.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "renesas,smartbond-lp-clk"
9 - name: base.yaml
10 property-allowlist:
11 - status
12 - compatible
15 clock-src:
18 Low power clock source.
Drenesas,smartbond-sys-clock.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "renesas,smartbond-sys-clk"
9 - name: base.yaml
10 property-allowlist:
11 - status
12 - compatible
15 clock-src:
18 System clock source.
/Zephyr-Core-3.6.0/dts/bindings/can/
Dnxp,flexcan.yaml2 # SPDX-License-Identifier: Apache-2.0
13 interrupt-names = "warning", "error", "wake-up", "mb-0-15";
15 clk-source = <1>;
16 sample-point = <875>;
17 bus-speed = <125000>;
18 pinctrl-0 = <&pinmux_flexcan0>;
19 pinctrl-names = "default";
21 can-transceiver {
22 max-bitrate = <1000000>;
28 include: ["can-controller.yaml", "pinctrl-device.yaml"]
[all …]
/Zephyr-Core-3.6.0/dts/arm/nxp/
Dnxp_rt6xx_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <arm/armv8-m.dtsi>
9 #include <zephyr/dt-bindings/adc/adc.h>
10 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
12 #include <zephyr/dt-bindings/i2c/i2c.h>
13 #include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
21 #address-cells = <1>;
22 #size-cells = <0>;
25 compatible = "arm,cortex-m33f";
[all …]
Dnxp_lpc55S6x_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/dt-bindings/adc/adc.h>
9 #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
10 #include <zephyr/dt-bindings/gpio/gpio.h>
11 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/inputmux/inputmux_trigger_ports.h>
13 #include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
14 #include <arm/armv8-m.dtsi>
22 zephyr,flash-controller = &iap;
26 #address-cells = <1>;
[all …]
/Zephyr-Core-3.6.0/dts/bindings/timer/
Datmel,sam-tc.yaml1 # SPDX-License-Identifier: Apache-2.0
5 compatible: "atmel,sam-tc"
8 - name: base.yaml
9 - name: pinctrl-device.yaml
25 Valid range: 0 - 2
27 clk:
30 Clock source selection as defined by TCCLKS bit-field of TC_CMR
36 If set to true the `clk` property is ignored. Instead the TC module is
40 reg-cmr:
47 properties like channel-num, pinctrl-0 this allows e.g. to configure
[all …]
Dnxp,lpc-ctimer.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,lpc-ctimer"
17 clk-source:
/Zephyr-Core-3.6.0/drivers/memc/
Dmemc_stm32.c4 * SPDX-License-Identifier: Apache-2.0
41 const struct memc_stm32_config *config = dev->config; in memc_stm32_init()
44 const struct device *clk; in memc_stm32_init() local
47 r = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT); in memc_stm32_init()
54 clk = DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE); in memc_stm32_init()
56 if (!device_is_ready(clk)) { in memc_stm32_init()
58 return -ENODEV; in memc_stm32_init()
61 r = clock_control_on(clk, (clock_control_subsys_t)&config->pclken[0]); in memc_stm32_init()
67 if (IS_ENABLED(STM32_FMC_DOMAIN_CLOCK_SUPPORT) && (config->pclk_len > 1)) { in memc_stm32_init()
68 /* Enable FMC clock source */ in memc_stm32_init()
[all …]
/Zephyr-Core-3.6.0/dts/bindings/rtc/
Dnxp,kinetis-lptmr.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,kinetis-lptmr"
14 clock-frequency:
20 clk-source:
23 description: Prescaler clock source (0 to 3)
25 input-pin:
29 active-low:
31 description: Pulse counter input pin is active-low
/Zephyr-Core-3.6.0/samples/boards/stm32/power_mgmt/serial_wakeup/boards/
Dstm32l562e_dk.overlay5 zephyr,shell-uart = &lpuart1;
14 /* Comment out this line to use HSI as clk source */
19 pinctrl-0 = <&lpuart1_rx_pb10 &lpuart1_tx_pb11>;
20 pinctrl-1 = <&analog_pb10 &analog_pb11>;
21 pinctrl-names = "default", "sleep";
26 current-speed = <9600>;
28 wakeup-source;
34 pinctrl-1 = <&analog_pa9 &analog_pa10>;
35 pinctrl-names = "default", "sleep";
37 /* Uncomment out this line to use usart1 as wakeup source */
[all …]
/Zephyr-Core-3.6.0/tests/drivers/adc/adc_dma/boards/
Dfrdm_k64f.overlay4 * SPDX-License-Identifier: Apache-2.0
7 clk-source = <0>;
8 hw-trigger-src = <4>;
9 continuous-convert;
10 high-speed;
11 periodic-trigger;
15 dma-buf-addr-alignment = <4>;
Dfrdm_k82f.overlay4 * SPDX-License-Identifier: Apache-2.0
7 clk-source = <0>;
8 hw-trigger-src = <4>;
9 continuous-convert;
10 high-speed;
11 periodic-trigger;
15 dma-buf-addr-alignment = <4>;

12345