aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2025-05-29 16:53:20 +0000
committerUwe Kleine-König <[email protected]>2025-06-02 16:23:33 +0000
commita8841dc3dfbf127a19c3612204bd336ee559b9a1 (patch)
tree7e6e8efb3541186886c852914066aed07aab5ad5 /net/lapb/lapb_timer.c
parentdt-bindings: pwm: adi,axi-pwmgen: Fix clocks (diff)
downloadkernel-a8841dc3dfbf127a19c3612204bd336ee559b9a1.tar.gz
kernel-a8841dc3dfbf127a19c3612204bd336ee559b9a1.zip
pwm: axi-pwmgen: fix missing separate external clock
Add proper support for external clock to the AXI PWM generator driver. In most cases, the HDL for this IP block is compiled with the default ASYNC_CLK_EN=1. With this option, there is a separate external clock that drives the PWM output separate from the peripheral clock. So the driver should be enabling the "axi" clock to power the peripheral and the "ext" clock to drive the PWM output. When ASYNC_CLK_EN=0, the "axi" clock is also used to drive the PWM output and there is no "ext" clock. Previously, if there was a separate external clock, users had to specify only the external clock and (incorrectly) omit the AXI clock in order to get the correct operating frequency for the PWM output. The devicetree bindings are updated to fix this shortcoming and this patch changes the driver to match the new bindings. To preserve compatibility with any existing dtbs that specify only one clock, we don't require the clock name on the first clock. Fixes: 41814fe5c782 ("pwm: Add driver for AXI PWM generator") Cc: [email protected] Acked-by: Nuno Sá <[email protected]> Reviewed-by: Trevor Gamblin <[email protected]> Signed-off-by: David Lechner <[email protected]> Link: https://lore.kernel.org/r/20250529-pwm-axi-pwmgen-add-external-clock-v3-3-5d8809a7da91@baylibre.com Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions