ARM: dts: sun5i: Add lradc node
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Dec 2014 10:13:21 +0000 (11:13 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 21 Jan 2015 08:58:53 +0000 (09:58 +0100)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a10s.dtsi
arch/arm/boot/dts/sun5i-a13-olinuxino.dts
arch/arm/boot/dts/sun5i-a13.dtsi

index fe3c559..dac9d49 100644 (file)
@@ -48,8 +48,9 @@
  */
 
 /dts-v1/;
-/include/ "sun5i-a10s.dtsi"
-/include/ "sunxi-common-regulators.dtsi"
+#include "sun5i-a10s.dtsi"
+#include "sunxi-common-regulators.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Olimex A10s-Olinuxino Micro";
                        };
                };
 
+               lradc: lradc@01c22800 {
+                       vref-supply = <&reg_vcc3v0>;
+                       status = "okay";
+
+                       button@191 {
+                               label = "Volume Up";
+                               linux,code = <KEY_VOLUMEUP>;
+                               channel = <0>;
+                               voltage = <191274>;
+                       };
+
+                       button@392 {
+                               label = "Volume Down";
+                               linux,code = <KEY_VOLUMEDOWN>;
+                               channel = <0>;
+                               voltage = <392644>;
+                       };
+
+                       button@601 {
+                               label = "Menu";
+                               linux,code = <KEY_MENU>;
+                               channel = <0>;
+                               voltage = <601151>;
+                       };
+
+                       button@795 {
+                               label = "Enter";
+                               linux,code = <KEY_ENTER>;
+                               channel = <0>;
+                               voltage = <795090>;
+                       };
+
+                       button@987 {
+                               label = "Home";
+                               linux,code = <KEY_HOMEPAGE>;
+                               channel = <0>;
+                               voltage = <987387>;
+                       };
+               };
+
                uart0: serial@01c28000 {
                        pinctrl-names = "default";
                        pinctrl-0 = <&uart0_pins_a>;
index 3c3c192..b36a65c 100644 (file)
                        reg = <0x01c20c90 0x10>;
                };
 
+               lradc: lradc@01c22800 {
+                       compatible = "allwinner,sun4i-a10-lradc-keys";
+                       reg = <0x01c22800 0x100>;
+                       interrupts = <31>;
+                       status = "disabled";
+               };
+
                sid: eeprom@01c23800 {
                        compatible = "allwinner,sun4i-a10-sid";
                        reg = <0x01c23800 0x10>;
index e31d291..529ff27 100644 (file)
@@ -48,8 +48,9 @@
  */
 
 /dts-v1/;
-/include/ "sun5i-a13.dtsi"
-/include/ "sunxi-common-regulators.dtsi"
+#include "sun5i-a13.dtsi"
+#include "sunxi-common-regulators.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Olimex A13-Olinuxino";
                        };
                };
 
+               lradc: lradc@01c22800 {
+                       vref-supply = <&reg_vcc3v0>;
+                       status = "okay";
+
+                       button@191 {
+                               label = "Volume Up";
+                               linux,code = <KEY_VOLUMEUP>;
+                               channel = <0>;
+                               voltage = <191274>;
+                       };
+
+                       button@392 {
+                               label = "Volume Down";
+                               linux,code = <KEY_VOLUMEDOWN>;
+                               channel = <0>;
+                               voltage = <392644>;
+                       };
+
+                       button@601 {
+                               label = "Menu";
+                               linux,code = <KEY_MENU>;
+                               channel = <0>;
+                               voltage = <601151>;
+                       };
+
+                       button@795 {
+                               label = "Enter";
+                               linux,code = <KEY_ENTER>;
+                               channel = <0>;
+                               voltage = <795090>;
+                       };
+
+                       button@987 {
+                               label = "Home";
+                               linux,code = <KEY_HOMEPAGE>;
+                               channel = <0>;
+                               voltage = <987387>;
+                       };
+               };
+
                uart1: serial@01c28400 {
                        pinctrl-names = "default";
                        pinctrl-0 = <&uart1_pins_b>;
index 2448d7f..17d3e79 100644 (file)
                        reg = <0x01c20c90 0x10>;
                };
 
+               lradc: lradc@01c22800 {
+                       compatible = "allwinner,sun4i-a10-lradc-keys";
+                       reg = <0x01c22800 0x100>;
+                       interrupts = <31>;
+                       status = "disabled";
+               };
+
                sid: eeprom@01c23800 {
                        compatible = "allwinner,sun4i-a10-sid";
                        reg = <0x01c23800 0x10>;