251-1-dt-sun4i-add-pinmux-for-pwm.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 1d8e9db920352680e9091ec5d2873e90a4a53214 Mon Sep 17 00:00:00 2001
  2. From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  3. Date: Mon, 28 Apr 2014 18:17:10 +0200
  4. Subject: [PATCH] ARM: sun4i: dt: add pinmux configuration for the PWM
  5. Add the pinctrl descriptions for both PWM channels of the Allwinner A10.
  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/sun4i-a10.dtsi | 14 ++++++++++++++
  10. 1 file changed, 14 insertions(+)
  11. --- a/arch/arm/boot/dts/sun4i-a10.dtsi
  12. +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
  13. @@ -521,6 +521,20 @@
  14. #size-cells = <0>;
  15. #gpio-cells = <3>;
  16. + pwm0_pins_a: pwm0@0 {
  17. + allwinner,pins = "PB2";
  18. + allwinner,function = "pwm";
  19. + allwinner,drive = <0>;
  20. + allwinner,pull = <0>;
  21. + };
  22. +
  23. + pwm1_pins_a: pwm1@0 {
  24. + allwinner,pins = "PI3";
  25. + allwinner,function = "pwm";
  26. + allwinner,drive = <0>;
  27. + allwinner,pull = <0>;
  28. + };
  29. +
  30. uart0_pins_a: uart0@0 {
  31. allwinner,pins = "PB22", "PB23";
  32. allwinner,function = "uart0";