pwm: sun4i: direct clock output support for Allwinner A64
Subsystems (2)
PATCH v2 1/1 pwm: sun4i: direct clock output support for Allwinner A64
Allwinner A64 is capable of a direct clock output on PWM (see A64 User Manual chapter 3.10). Add support for this in the sun4i PWM driver.
Signed-off-by Peter Vasil <[email protected]>
--- drivers/pwm/pwm-sun4i.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/pwm/pwm-sun4i.c +9 -0
@@ -352,6 +352,12 @@ static const struct sun4i_pwm_data sun4i_pwm_single_bypass = { .npwm = 1, }; +static const struct sun4i_pwm_data sun50i_a64_pwm_data = { + .has_prescaler_bypass = true, + .has_direct_mod_clk_output = true, + .npwm =1 , +}; +static const struct sun4i_pwm_data sun50i_h6_pwm_data = { .has_prescaler_bypass = true, .has_direct_mod_clk_output = true,
@@ -374,6 +380,9 @@ static const struct of_device_id sun4i_pwm_dt_ids[] = { }, { .compatible = "allwinner,sun8i-h3-pwm", .data = &sun4i_pwm_single_bypass, + }, { + .compatible = "allwinner,sun50i-a64-pwm", + .data = &sun50i_a64_pwm_data, }, { .compatible = "allwinner,sun50i-h6-pwm", .data = &sun50i_h6_pwm_data,
Signature · 1 line
2.25.1
Quoted 5 lines · Peter Vasil
Allwinner A64 is capable of a direct clock output on PWM (see A64 User Manual chapter 3.10). Add support for this in the sun4i PWM driver.
Signed-off-by Peter Vasil <[email protected]>
Acked-by Maxime Ripard <[email protected]>
Thanks!
Maxime
Quoted 5 lines · Peter Vasil
Allwinner A64 is capable of a direct clock output on PWM (see A64 User Manual chapter 3.10). Add support for this in the sun4i PWM driver.
Signed-off-by Peter Vasil <[email protected]>
LGTM
Acked-by Uwe Kleine-König <[email protected]>
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Thierry Reding
AppliedQuoted 8 lines · Peter Vasil
Allwinner A64 is capable of a direct clock output on PWM (see A64 User Manual chapter 3.10). Add support for this in the sun4i PWM driver.
Signed-off-by Peter Vasil <[email protected]>--- drivers/pwm/pwm-sun4i.c | 9 +++++++++ 1 file changed, 9 insertions(+)
Applied, thanks.
Thierry