173-2-dt-sun5i-add-lradc-node.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From 9041b1f6118b32929e6357affb53db28439a11e7 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Wed, 1 Jan 2014 19:50:33 +0100
  4. Subject: [PATCH] ARM: dts: sun5i: Add lradc node
  5. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  6. ---
  7. arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 8 ++++++++
  8. arch/arm/boot/dts/sun5i-a10s.dtsi | 7 +++++++
  9. arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 8 ++++++++
  10. arch/arm/boot/dts/sun5i-a13.dtsi | 7 +++++++
  11. 4 files changed, 30 insertions(+)
  12. --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
  13. +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
  14. @@ -14,6 +14,7 @@
  15. /dts-v1/;
  16. /include/ "sun5i-a13.dtsi"
  17. /include/ "sunxi-common-regulators.dtsi"
  18. +#include <dt-bindings/input/input.h>
  19. / {
  20. model = "Olimex A13-Olinuxino";
  21. @@ -49,6 +50,13 @@
  22. };
  23. };
  24. + lradc: lradc@01c22800 {
  25. + allwinner,chan0-step = <200>;
  26. + linux,chan0-keycodes = <KEY_VOLUMEUP KEY_VOLUMEDOWN
  27. + KEY_MENU KEY_ENTER KEY_HOME>;
  28. + status = "okay";
  29. + };
  30. +
  31. uart1: serial@01c28400 {
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&uart1_pins_b>;
  34. --- a/arch/arm/boot/dts/sun5i-a13.dtsi
  35. +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
  36. @@ -429,6 +429,13 @@
  37. reg = <0x01c20c90 0x10>;
  38. };
  39. + lradc: lradc@01c22800 {
  40. + compatible = "allwinner,sun4i-lradc-keys";
  41. + reg = <0x01c22800 0x100>;
  42. + interrupts = <31>;
  43. + status = "disabled";
  44. + };
  45. +
  46. sid: eeprom@01c23800 {
  47. compatible = "allwinner,sun4i-sid";
  48. reg = <0x01c23800 0x10>;