Home
last modified time | relevance | path

Searched +full:pwm +full:- +full:output +full:- +full:frequency (Results 1 – 25 of 173) sorted by relevance

1234567

/Zephyr-latest/dts/bindings/pwm/
Dite,it8xxx2-pwm.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ITE, it8xxx2 Pulse Width Modulator (PWM) node
6 compatible: "ite,it8xxx2-pwm"
8 include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml]
18 - 0
19 - 1
20 - 2
21 - 3
22 - 4
23 - 5
[all …]
Despressif,esp32-mcpwm.yaml2 # SPDX-License-Identifier: Apache-2.0
9 It provides six PWM outputs that can be set up to operate in several topologies
13 Each MCPWM peripheral has one clock divider (prescaler), three PWM timers, three PWM operators,
16 Every PWM operator has two PWM outputs: PWMxA and PWMxB. They can work independently, in symmetric
18 operating frequency.
25 Channel 0 -> Timer 0, Operator 0, output PWM0A
26 Channel 1 -> Timer 0, Operator 0, output PWM0B
27 Channel 2 -> Timer 1, Operator 1, output PWM1A
28 Channel 3 -> Timer 1, Operator 1, output PWM1B
29 Channel 4 -> Timer 2, Operator 2, output PWM2A
[all …]
Dnxp,s32-emios-pwm.yaml2 # SPDX-License-Identifier: Apache-2.0
5 NXP S32 eMIOS PWM node for S32 SoCs. Each channel in eMIOS can be configured
6 to use for PWM operation. There are several PWM modes supported by this module,
11 - Channel 0 for mode OPWFMB
12 - Channel 1 for mode OPWMB
13 - Channel 2 for mode OPWMCB with deadtime inserted at leading edge
14 - Channel 3 for mode SAIC, use internal timebase with input filter = 2 eMIOS clock
16 emios0_pwm: pwm {
19 pwm-mode = "OPWFMB";
22 duty-cycle = <32768>;
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/pwm.h>
12 #include <zephyr/dt-bindings/pwm/it8xxx2_pwm.h>
28 /* PWM channel duty cycle register */
30 /* PWM channel clock source selection register */
32 /* PWM channel clock source gating register */
34 /* PWM channel output polarity register */
36 /* PWM channel */
38 /* PWM prescaler control register base */
40 /* Select PWM prescaler that output to PWM channel */
[all …]
Dpwm_mchp_xec_bbled.c4 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/drivers/pwm.h>
29 /* We will choose frequency from Device Tree */
45 /* BBLED PWM mode uses the duty cycle to set the PWM frequency:
51 * Puse_OFF_width = (1/Fpwm) * (256 - duty_cycle) seconds
52 * where duty_cycle is an 8-bit value 0 to 255.
53 * Prescale is derived from DELAY register LOW_DELAY 12-bit field
54 * Duty cycle is derived from LIMITS register MINIMUM 8-bit field
61 * BBLED PWM mode duty cycle specified by 8-bit MIN field of the LIMITS register
97 /* Output delay in clocks for initial enable and enable on resume from sleep
[all …]
Dpwm_rcar.c4 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/drivers/pwm.h>
23 /* PWM Controller capabilities */
31 ((uint32_t)((channel * RCAR_PWM_REG_SHIFT)) + 0x00) /* PWM Control Register */
33 ((uint32_t)((channel * RCAR_PWM_REG_SHIFT)) + 0x04) /* PWM Count Register */
35 /* PWMCR (PWM Control Register) */
38 #define RCAR_PWM_CR_CCMD BIT(15) /* Frequency Division Mode */
40 #define RCAR_PWM_CR_SS BIT(4) /* Single Pulse Output */
43 /* PWM Diviser is on 5 bits (CC combined with CCMD) */
47 /* PWMCNT (PWM Count Register) */
[all …]
Dpwm_stm32.c6 * SPDX-License-Identifier: Apache-2.0
16 #include <zephyr/drivers/pwm.h>
24 #include <zephyr/dt-bindings/pwm/stm32_pwm.h>
31 /* L0 series MCUs only have 16-bit timers and don't have below macro defined */
39 * @brief Capture state when in 4-channel support mode
69 /* When PWM capture is done by resetting the counter with UIF then the
71 * This is not the case when using four-channel-support.
77 /** PWM data. */
88 /** PWM configuration. */
183 * Obtain LL polarity from PWM flags.
[all …]
Dpwm_nrf_sw.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/pwm.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
30 "Only clock-prescaler = <0> is supported when used with RTC");
39 /* One compare channel is needed to set the PWM period, hence +1. */
41 #error "Invalid number of PWM channels configured."
82 return config->rtc; in pwm_config_rtc()
91 return config->timer; in pwm_config_timer()
103 /* allow 0% and 100% duty cycle, as it does not use PWM. */ in pwm_period_check()
111 (data->pulse_cycles[i] != 0U) && in pwm_period_check()
[all …]
/Zephyr-latest/dts/bindings/clock/
Dpwm-clock.yaml2 # SPDX-License-Identifier: Apache-2.0
5 An external clock signal driven by a PWM pin.
11 compatible = "pwm-clock";
12 #clock-cells = <1>;
16 This will create a device node with a clock-controller
17 API. Internally the device node will use PWM API to start the
19 frequency to time (nanoseconds units). This may result in rounding
20 errors if the clock frequency is not an integer number of nanoseconds.
21 The clock frequency can be explicitly set using the clock-frequency
24 The PWM node may need to be properly configured to generate
[all …]
/Zephyr-latest/boards/ite/it82xx2_evb/
Dit82xx2_evb.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
8 #include <zephyr/dt-bindings/gpio/gpio.h>
10 #include <ite/it8xxx2-pinctrl-map.dtsi>
13 model = "IT82XX2 EV-Board";
14 compatible = "ite,it82xx2-evb";
17 i2c-0 = &i2c0;
18 peci-0 = &peci0;
22 pwm-0 = &pwm0;
27 zephyr,shell-uart = &uart1;
[all …]
/Zephyr-latest/boards/ite/it8xxx2_evb/
Dit8xxx2_evb.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
8 #include <zephyr/dt-bindings/gpio/gpio.h>
10 #include <ite/it8xxx2-pinctrl-map.dtsi>
13 model = "IT8XXX2 EV-Board";
14 compatible = "ite,it8xxx2-evb";
17 i2c-0 = &i2c0;
18 peci-0 = &peci0;
22 pwm-0 = &pwm0;
27 zephyr,shell-uart = &uart1;
[all …]
/Zephyr-latest/samples/basic/blinky_pwm/
DREADME.rst1 .. zephyr:code-sample:: pwm-blinky
2 :name: PWM Blinky
3 :relevant-api: pwm_interface
5 Blink an LED using the PWM API.
10 This application blinks an LED using the :ref:`PWM API <pwm_api>`. See
11 :zephyr:code-sample:`blinky` for a GPIO-based sample.
13 The LED starts blinking at a 1 Hz frequency. The frequency doubles every 4
14 seconds until it reaches 128 Hz. The frequency will then be halved every 4
16 faster-then-slower blinking cycle then repeats forever.
18 Some PWM hardware cannot set the PWM period to 1 second to achieve the blinking
[all …]
/Zephyr-latest/boards/seeed/xiao_rp2040/
Dxiao_rp2040.dts5 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
11 #include "xiao_rp2040-pinctrl.dtsi"
14 #include <zephyr/dt-bindings/led/led.h>
15 #include <zephyr/dt-bindings/pwm/pwm.h>
21 zephyr,flash-controller = &ssi;
23 zephyr,shell-uart = &uart0;
24 zephyr,code-partition = &code_partition;
29 led-strip = &ws2812;
30 pwm-led0 = &pwm_led0;
[all …]
/Zephyr-latest/boards/heltec/heltec_wireless_stick_lite_v3/
Dheltec_wireless_stick_lite_v3_procpu.dts6 * SPDX-License-Identifier: Apache-2.0
8 /dts-v1/;
11 #include "heltec_wireless_stick_lite_v3-pinctrl.dtsi"
12 #include <zephyr/dt-bindings/pwm/pwm.h>
13 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 #include <zephyr/dt-bindings/lora/sx126x.h>
22 pwm-0 = &ledc0;
23 pwm-led0 = &pwm_led_white;
24 uart-0 = &uart0;
25 uart-1 = &uart1;
[all …]
/Zephyr-latest/dts/arm/nxp/
Dnxp_imx95_m7.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
8 #include <zephyr/dt-bindings/clock/imx95_clock.h>
9 #include <dt-bindings/i2c/i2c.h>
14 #address-cells = <1>;
15 #size-cells = <0>;
19 compatible = "arm,cortex-m7";
22 #address-cells = <1>;
23 #size-cells = <1>;
26 compatible = "arm,armv7m-mpu";
[all …]
/Zephyr-latest/boards/nordic/nrf5340_audio_dk/
Dnrf5340_audio_dk_nrf5340_cpuapp_common.dtsi2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
6 #include "nrf5340_audio_dk_nrf5340_cpuapp_common-pinctrl.dtsi"
7 #include <zephyr/dt-bindings/sensor/ina230.h>
12 zephyr,shell-uart = &uart0;
13 zephyr,uart-mcumgr = &uart0;
14 zephyr,bt-mon-uart = &uart0;
15 zephyr,bt-c2h-uart = &uart0;
16 zephyr,bt-hci = &bt_hci_ipc0;
20 gpio_fwd: nrf-gpio-forwarder {
[all …]
/Zephyr-latest/boards/espressif/esp_wrover_kit/
Desp_wrover_kit_procpu.dts4 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "esp_wrover_kit-pinctrl.dtsi"
13 model = "Espressif ESP32-Wrover-Kit PROCPU";
20 pwm-led0 = &pwm_led_red;
21 pwm-led1 = &pwm_led_green;
22 pwm-led2 = &pwm_led_blue;
23 red-pwm-led = &pwm_led_red;
24 green-pwm-led = &pwm_led_green;
25 blue-pwm-led = &pwm_led_blue;
[all …]
/Zephyr-latest/boards/arduino/nicla_vision/
Darduino_nicla_vision_stm32h747xx_m7.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/h7/stm32h747a(g-i)ix-pinctrl.dtsi>
10 #include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
15 compatible = "arduino,nicla-vision";
19 zephyr,shell-uart = &lpuart1;
20 zephyr,uart-mcumgr = &lpuart1;
21 zephyr,bt-hci = &bt_hci_uart;
24 zephyr,code-partition = &slot0_partition;
34 compatible = "usb-ulpi-phy";
[all …]
/Zephyr-latest/boards/actinius/icarus/
Dactinius_icarus_common.dtsi2 * Copyright (c) 2019-2022 Actinius
4 * SPDX-License-Identifier: Apache-2.0
6 #include "actinius_icarus_common-pinctrl.dtsi"
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
15 zephyr,shell-uart = &uart0;
16 zephyr,uart-mcumgr = &uart0;
20 compatible = "gpio-leds";
39 compatible = "pwm-leds";
43 label = "Red PWM LED";
48 label = "Green PWM LED";
[all …]
/Zephyr-latest/boards/microchip/mec172xmodular_assy6930/
Dmec172xmodular_assy6930.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <microchip/mec172x/mec172xnsz-pinctrl.dtsi>
28 pwm-0 = &pwm0;
32 compatible = "gpio-leds";
49 clock-frequency = <96000000>;
77 current-speed = <115200>;
78 pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>;
79 pinctrl-names = "default";
84 pinctrl-0 = <&adc00_gpio200 &adc03_gpio203
[all …]
/Zephyr-latest/dts/riscv/
Driscv32-litex-vexriscv.dtsi2 * Copyright (c) 2018 - 2020 Antmicro <www.antmicro.com>
4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 #address-cells = <1>;
11 #size-cells = <1>;
12 compatible = "litex,vexriscv", "litex-dev";
21 #address-cells = <1>;
22 #size-cells = <0>;
24 clock-frequency = <100000000>;
25 compatible = "litex,vexriscv-standard", "riscv";
[all …]
/Zephyr-latest/boards/nordic/thingy53/
Dthingy53_nrf5340_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
6 #include "thingy53_nrf5340_common-pinctrl.dtsi"
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
8 #include <zephyr/dt-bindings/battery/battery.h>
12 zephyr,bt-hci-ipc = &ipc0;
13 zephyr,bt-hci = &bt_hci_ipc0;
14 nordic,802154-spinel-ipc = &ipc0;
19 compatible = "gpio-keys";
33 compatible = "gpio-leds";
49 compatible = "pwm-leds";
[all …]
/Zephyr-latest/boards/microchip/mec172xevb_assy6906/
Dmec172xevb_assy6906.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <microchip/mec172x/mec172xnsz-pinctrl.dtsi>
26 i2c-0 = &i2c_smb_0;
29 pwm-0 = &pwm0;
34 compatible = "gpio-leds";
53 clock-frequency = <96000000>;
81 current-speed = <115200>;
82 pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>;
83 pinctrl-names = "default";
[all …]
/Zephyr-latest/boards/silabs/starter_kits/slstk3402a/
Dslstk3402a_common.dtsi5 * SPDX-License-Identifier: Apache-2.0
8 #include "slstk3402a-pinctrl.dtsi"
9 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 zephyr,shell-uart = &usart0;
25 pwm-led0 = &pwm_led0;
33 compatible = "gpio-leds";
45 compatible = "gpio-keys";
61 compatible = "pwm-leds";
70 clock-frequency = <40000000>;
74 current-speed = <115200>;
[all …]
/Zephyr-latest/dts/x86/intel/
Dalder_lake.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/dt-bindings/interrupt-controller/intel-ioapic.h>
9 #include <zephyr/dt-bindings/i2c/i2c.h>
10 #include <zephyr/dt-bindings/pcie/pcie.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
16 #address-cells = <1>;
17 #size-cells = <0>;
21 compatible = "intel,alder-lake", "intel,x86_64";
22 d-cache-line-size = <64>;
28 compatible = "intel,alder-lake";
[all …]

1234567