Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651998 > unrolled thread

Re: [PATCH v2 1/2] drivers: pwm: core: implement pwm dead-times

Started byAndy Shevchenko <andy.shevchenko@gmail.com>
First post2017-05-28 00:30 +0200
Last post2017-05-30 12:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 1/2] drivers: pwm: core: implement pwm dead-times Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-28 00:30 +0200
    Re: [PATCH v2 1/2] drivers: pwm: core: implement pwm dead-times m18063 <Claudiu.Beznea@microchip.com> - 2017-05-30 12:30 +0200

#1651998 — Re: [PATCH v2 1/2] drivers: pwm: core: implement pwm dead-times

FromAndy Shevchenko <andy.shevchenko@gmail.com>
Date2017-05-28 00:30 +0200
SubjectRe: [PATCH v2 1/2] drivers: pwm: core: implement pwm dead-times
Message-ID<tLSnD-1Ei-7@gated-at.bofh.it>
On Tue, May 9, 2017 at 11:19 AM, Claudiu Beznea
<claudiu.beznea@microchip.com> wrote:
> Extends PWM framework to support PWM dead-times.
> The notions introduced are rising edge dead-time
> and falling edge dead-time. These are useful for
> PWM controllers with channels that have more than
> one outputs.
> The implementation add sysfs interface for
> configuration. It extends the pwm_state structure
> with two new members which keeps the values for
> dead-times.
> There were no additions in device tree for PWM channels
> initialized by device tree.

AFAIU it's effectively called phase of the signal.
It looks to me much simpler if you allow to have linked / virtual
channels instead of creating a lot of (duplicated) properties.

-- 
With Best Regards,
Andy Shevchenko

[toc] | [next] | [standalone]


#1653081

Fromm18063 <Claudiu.Beznea@microchip.com>
Date2017-05-30 12:30 +0200
Message-ID<tMMzv-677-5@gated-at.bofh.it>
In reply to#1651998
Hi Andy,

On 28.05.2017 01:28, Andy Shevchenko wrote:
> On Tue, May 9, 2017 at 11:19 AM, Claudiu Beznea
> <claudiu.beznea@microchip.com> wrote:
>> Extends PWM framework to support PWM dead-times.
>> The notions introduced are rising edge dead-time
>> and falling edge dead-time. These are useful for
>> PWM controllers with channels that have more than
>> one outputs.
>> The implementation add sysfs interface for
>> configuration. It extends the pwm_state structure
>> with two new members which keeps the values for
>> dead-times.
>> There were no additions in device tree for PWM channels
>> initialized by device tree.
> 
> AFAIU it's effectively called phase of the signal.
It is actually a delay introduce by the PWM controller
between it's outputs. As I said in cover letter, for
PWM controllers with 2 output signals per channel
(these signals are on different physical pins), this
dead-time is the delay introduced b/w these two outputs.
The term is a PWM literature specific.
These delays are useful when PWM drives a half bridge
converter where you need delays b/w positive edges of
the signals which drivers the transistors to avoid
shoot through scenarios.

> It looks to me much simpler if you allow to have linked / virtual
> channels instead of creating a lot of (duplicated) properties.My linked channels (the 2 outputs per PWM channel) are PWM controller
specifics. The standard output of these linked channels is as
follows:
              __    __    __    __
channel Xa __|  |__|  |__|  |__|  |__
           __    __    __    __    __
channel Xb   |__|  |__|  |__|  |__|
             <--T-->

This is the default output. To be able to use the controller
in applications which needs delays b/w the fronts of this outputs
I introduced the dead-time configuration. This allow the user
to set it's PWM output as he needs in his setup (these dead-times,
delays, if PWM is used e.g. in half bridge converters, depends
on the transistors used).

Thank you,
Claudiu Beznea

> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web