]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pwm: atmel: Enable PWM on sama5d2
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 22 Mar 2017 13:29:35 +0000 (15:29 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 6 Apr 2017 15:45:03 +0000 (17:45 +0200)
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>
Documentation/devicetree/bindings/pwm/atmel-pwm.txt
drivers/pwm/pwm-atmel.c

index 02331b904d4e73780da1999f807068915545ebb9..c8c831d7b0d1bb9d90cfc9b3022b57b9e6a2f74d 100644 (file)
@@ -4,6 +4,7 @@ Required properties:
   - compatible: should be one of:
     - "atmel,at91sam9rl-pwm"
     - "atmel,sama5d3-pwm"
+    - "atmel,sama5d2-pwm"
   - reg: physical base address and length of the controller's registers
   - #pwm-cells: Should be 3. See pwm.txt in this directory for a
     description of the cells format.
index f147154d9cb269b1f346a3919d1dc4e359d2da77..530d7dc5f1b5cdad7d10d6c9c675ffc3e1430b3a 100644 (file)
@@ -311,6 +311,9 @@ static const struct of_device_id atmel_pwm_dt_ids[] = {
        }, {
                .compatible = "atmel,sama5d3-pwm",
                .data = &atmel_pwm_regs_v2,
+       }, {
+               .compatible = "atmel,sama5d2-pwm",
+               .data = &atmel_pwm_regs_v2,
        }, {
                /* sentinel */
        },