252-2-dt-sun7i-add-pwm-support.patch 894 B

123456789101112131415161718192021222324252627282930
  1. From 216a4cc15c24d46a5b50b3f9a224576a69c1a83e Mon Sep 17 00:00:00 2001
  2. From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  3. Date: Mon, 28 Apr 2014 18:17:13 +0200
  4. Subject: [PATCH] ARM: sun7i: dt: add PWM support
  5. Add the PWM bindings for the Allwinner A20.
  6. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  7. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  8. ---
  9. arch/arm/boot/dts/sun7i-a20.dtsi | 8 ++++++++
  10. 1 file changed, 8 insertions(+)
  11. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  12. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  13. @@ -764,6 +764,14 @@
  14. status = "disabled";
  15. };
  16. + pwm: pwm@01c20e00 {
  17. + compatible = "allwinner,sun7i-a20-pwm";
  18. + reg = <0x01c20e00 0xc>;
  19. + clocks = <&osc24M>;
  20. + #pwm-cells = <3>;
  21. + status = "disabled";
  22. + };
  23. +
  24. sid: eeprom@01c23800 {
  25. compatible = "allwinner,sun7i-a20-sid";
  26. reg = <0x01c23800 0x200>;