Home
last modified time | relevance | path

Searched +full:hfclkaudio +full:- +full:frequency (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/dts/bindings/clock/
Dnordic,nrf-clock.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nordic,nrf-clock"
17 hfclkaudio-frequency:
20 Frequency of the HFCLKAUDIO clock in Hz. Adjustable with 3.3 ppm
21 resolution in two frequency bands - 11.176 MHz to 11.402 MHz, and
23 The HFCLKAUDIO clock is only available in the nRF53 Series SoCs.
/Zephyr-latest/samples/drivers/audio/dmic/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay4 * SPDX-License-Identifier: Apache-2.0
8 hfclkaudio-frequency = <12288000>;
22 pinctrl-0 = <&pdm0_default_alt>;
23 pinctrl-names = "default";
24 clock-source = "ACLK";
/Zephyr-latest/dts/bindings/i2s/
Dnordic,nrf-i2s.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Nordic I2S (Inter-IC sound interface)
6 compatible: "nordic,nrf-i2s"
8 include: [i2s-controller.yaml, pinctrl-device.yaml]
17 pinctrl-0:
20 pinctrl-names:
23 clock-source:
30 - "PCLK32M": 32 MHz peripheral clock, synchronous to HFCLK
31 - "PCLK32M_HFXO": PCLK32M running off the 32 MHz crystal oscillator
33 - "ACLK": Audio PLL clock with configurable frequency (frequency for
[all …]
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay4 * SPDX-License-Identifier: Apache-2.0
20 hfclkaudio-frequency = <12288000>;
25 pinctrl-0 = <&i2s0_default_alt>;
26 pinctrl-names = "default";
27 clock-source = "ACLK";
/Zephyr-latest/dts/bindings/audio/
Dnordic,nrf-pdm.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nordic,nrf-pdm"
8 include: ["base.yaml", "pinctrl-device.yaml", "memory-region.yaml", "nordic-clockpin.yaml"]
17 pinctrl-0:
20 pinctrl-names:
23 clock-source:
29 - "PCLK32M": 32 MHz peripheral clock, synchronous to HFCLK
30 - "PCLK32M_HFXO": PCLK32M running off the 32 MHz crystal oscillator
32 - "ACLK": Audio PLL clock with configurable frequency (frequency for
33 this clock must be set via the "hfclkaudio-frequency" property
[all …]
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay4 * SPDX-License-Identifier: Apache-2.0
21 hfclkaudio-frequency = <12288000>;
26 pinctrl-0 = <&i2s0_default_alt>;
27 pinctrl-names = "default";
28 clock-source = "ACLK";
/Zephyr-latest/samples/drivers/i2s/echo/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay4 * SPDX-License-Identifier: Apache-2.0
19 low-power-enable;
35 pinctrl-0 = <&i2c0_default_alt>;
36 pinctrl-1 = <&i2c0_sleep_alt>;
37 pinctrl-names = "default", "sleep";
46 hfclkaudio-frequency = <11289600>;
51 pinctrl-0 = <&i2s0_default_alt>;
52 pinctrl-names = "default";
53 clock-source = "ACLK";
/Zephyr-latest/drivers/clock_control/
Dclock_control_nrf.c2 * Copyright (c) 2016-2020 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
39 get_sub_config(dev, (enum clock_control_nrf_type)subsys)->name \
86 struct nrf_clock_control_data *data = dev->data; in get_sub_data()
88 return &data->subsys[type]; in get_sub_data()
95 dev->config; in get_sub_config()
97 return &config->subsys[type]; in get_sub_config()
103 struct nrf_clock_control_data *data = dev->data; in get_onoff_manager()
105 return &data->mgr[type]; in get_onoff_manager()
124 return GET_STATUS(get_sub_data(dev, type)->flags); in get_status()
[all …]
/Zephyr-latest/drivers/audio/
Ddmic_nrfx_pdm.c4 * SPDX-License-Identifier: Apache-2.0
52 k_mem_slab_free(drv_data->mem_slab, drv_data->mem_slab_buffer); in free_buffer()
53 LOG_DBG("Freed buffer %p", drv_data->mem_slab_buffer); in free_buffer()
58 drv_data->stopping = true; in stop_pdm()
59 nrfx_pdm_stop(drv_data->pdm); in stop_pdm()
64 struct dmic_nrfx_pdm_drv_data *drv_data = dev->data; in event_handler()
65 const struct dmic_nrfx_pdm_drv_cfg *drv_cfg = dev->config; in event_handler()
69 if (evt->buffer_requested) { in event_handler()
73 ret = k_mem_slab_alloc(drv_data->mem_slab, &drv_data->mem_slab_buffer, K_NO_WAIT); in event_handler()
78 ret = dmm_buffer_in_prepare(drv_cfg->mem_reg, drv_data->mem_slab_buffer, in event_handler()
[all …]
/Zephyr-latest/drivers/i2s/
Di2s_nrfx.c4 * SPDX-License-Identifier: Apache-2.0
59 /* Finds the clock settings that give the frame clock frequency closest to
81 (NRF_I2S_HAS_CLKCONFIG && drv_cfg->clk_src == ACLK) in find_suitable_clock()
84 * available and only with the "hfclkaudio-frequency" property in find_suitable_clock()
91 uint32_t bits_per_frame = 2 * i2s_cfg->word_size; in find_suitable_clock()
105 i2s_cfg->frame_clk_freq * ratios[r].ratio_val; in find_suitable_clock()
125 uint32_t diff = lrck_freq >= i2s_cfg->frame_clk_freq in find_suitable_clock()
126 ? (lrck_freq - i2s_cfg->frame_clk_freq) in find_suitable_clock()
127 : (i2s_cfg->frame_clk_freq - lrck_freq); in find_suitable_clock()
161 lrck_freq >= i2s_cfg->frame_clk_freq in find_suitable_clock()
[all …]