This patch series add suppot for amlogic's newer PWM IPs hardware features:
constant and polarity bits.
Using polarity bit for inverting output signal allows to identify inversion
in .get_state() callback which can only rely on data read from registers.
Using constant bit allows to have steady output level when duty sycle is zero or
equal to period. Without this bit there will always be single-clock spikes on output.
Those bits are supported in axg, g12 and newer SoC familes like s4, a1 etc.
Tested on g12, a1.
George Stark (3):
pwm: meson: Support constant and polarity bits
pwm: meson: Use separate chip data struct for g12a-ee-pwm
pwm: meson: Enable constant and polarity features for g12, axg, s4
drivers/pwm/pwm-meson.c | 94 ++++++++++++++++++++++++++++++++++++++---
1 file changed, 87 insertions(+), 7 deletions(-)
--
2.25.1