Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6a2d644 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard
Browse files

ARM: dts: sun7i: Add lradc node

parent ec011af5
Loading
Loading
Loading
Loading
+57 −2
Original line number Diff line number Diff line
@@ -12,8 +12,9 @@
 */

/dts-v1/;
/include/ "sun7i-a20.dtsi"
/include/ "sunxi-common-regulators.dtsi"
#include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi"
#include <dt-bindings/input/input.h>

/ {
	model = "Olimex A20-Olinuxino Micro";
@@ -100,6 +101,60 @@
			};
		};

		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 = "Search";
				linux,code = <KEY_SEARCH>;
				channel = <0>;
				voltage = <795090>;
			};

			button@987 {
				label = "Home";
				linux,code = <KEY_HOMEPAGE>;
				channel = <0>;
				voltage = <987387>;
			};

			button@1184 {
				label = "Esc";
				linux,code = <KEY_ESC>;
				channel = <0>;
				voltage = <1184678>;
			};

			button@1398 {
				label = "Enter";
				linux,code = <KEY_ENTER>;
				channel = <0>;
				voltage = <1398804>;
			};
		};

		uart0: serial@01c28000 {
			pinctrl-names = "default";
			pinctrl-0 = <&uart0_pins_a>;
+7 −0
Original line number Diff line number Diff line
@@ -917,6 +917,13 @@
			status = "disabled";
		};

		lradc: lradc@01c22800 {
			compatible = "allwinner,sun4i-a10-lradc-keys";
			reg = <0x01c22800 0x100>;
			interrupts = <0 31 4>;
			status = "disabled";
		};

		sid: eeprom@01c23800 {
			compatible = "allwinner,sun7i-a20-sid";
			reg = <0x01c23800 0x200>;