Lines Matching +full:pwm +full:- +full:on +full:- +full:delay

2 # SPDX-License-Identifier: Apache-2.0
5 Infineon XMC4XXX PWM Capture Compare Unit 8 (CCU8) module
7 The PWM CCU8 module can automatically generate a high-side
8 and a low-side PWM signal, where the two signals are complementary
11 The module supports adding a dead time between the high-side and
12 low-side PWM signals.
14 The dead time ensures that there is a delay before the PWM state
15 transitions from 0 to 1, preventing the high-side and low-side
16 switches from being on simultaneously.
20 two channels. A channel consists of a corresponding high-side
21 and low-side PWM signal.
25 defined by the 'slice-prescaler' property. Additionally, each
30 A node can define a 'pwm' field, usually referenced in a 'pwms'
31 property, where the entries include the PWM module phandle,
38 slice-prescaler = <15 15 15 15>;
39 slice-deadtime-prescaler = <3 3 3 3>;
40 channel-deadtime-high = <0 0 0 0 PWM_MSEC(100) 0 0 0>;
41 channel-deadtime-low = <0 0 0 0 PWM_MSEC(100) 0 0 0>;
42 pinctrl-0 = <&pwm_out_p5_9_ccu80_ch4_high &pwm_out_p0_0_ccu80_ch4_low>;
43 pinctrl-names = "default";
46 This will configure channel 4 with a 100msec deadtime on the high
47 and low side PWM signals.
49 Another node can reference the PWM as follows:
60 'HIGH_LOW' indicates whether the pin is for the high or low-side signal.
62 It's not necessary to specify both the high and low pinctrls. Only the low-side
63 signal can, for example, be used as PWM, but note that the duty cycle of the
64 low signal will be (1 - duty) as set via the API.
67 channels 2/3 are in slice 1, and so on. Each channel can have its own
69 both channels. Thus, when using the PWM control api to modify the pulse width
70 on a channel 0, it will also be updated for channel 1 since they are
73 compatible: "infineon,xmc4xxx-ccu8-pwm"
76 - name: base.yaml
77 - name: pwm-controller.yaml
78 - name: pinctrl-device.yaml
84 pinctrl-0:
87 pinctrl-names:
90 slice-prescaler:
99 slice-deadtime-prescaler:
108 channel-deadtime-high:
112 Defines the dead time in nanoseconds for the high-side PWM signal for each channel.
114 channel-deadtime-low:
118 Defines the dead time in nanoseconds for the low-side PWM signal for each channel.
120 "#pwm-cells":
123 pwm-cells:
124 - channel
125 - period
126 - flags