Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pwm: atmel: Enable PWM on sama5d2

sama5d2 can use the same atmel_pwm_data as sama5d3.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Claudiu Beznea and committed by
Thierry Reding
44521afa 1a722aad

+4
+1
Documentation/devicetree/bindings/pwm/atmel-pwm.txt
··· 4 4 - compatible: should be one of: 5 5 - "atmel,at91sam9rl-pwm" 6 6 - "atmel,sama5d3-pwm" 7 + - "atmel,sama5d2-pwm" 7 8 - reg: physical base address and length of the controller's registers 8 9 - #pwm-cells: Should be 3. See pwm.txt in this directory for a 9 10 description of the cells format.
+3
drivers/pwm/pwm-atmel.c
··· 312 312 .compatible = "atmel,sama5d3-pwm", 313 313 .data = &atmel_pwm_regs_v2, 314 314 }, { 315 + .compatible = "atmel,sama5d2-pwm", 316 + .data = &atmel_pwm_regs_v2, 317 + }, { 315 318 /* sentinel */ 316 319 }, 317 320 };