浏览代码

Input: spear-keyboard - document DT bindings

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Viresh Kumar 13 年之前
父节点
当前提交
6123f1192b
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      Documentation/devicetree/bindings/input/spear-keyboard.txt

+ 20 - 0
Documentation/devicetree/bindings/input/spear-keyboard.txt

@@ -0,0 +1,20 @@
+* SPEAr keyboard controller
+
+Required properties:
+- compatible: "st,spear300-kbd"
+
+Optional properties, in addition to those specified by the shared
+matrix-keyboard bindings:
+- autorepeat: bool: enables key autorepeat
+- st,mode: keyboard mode: 0 - 9x9, 1 - 6x6, 2 - 2x2
+
+Example:
+
+kbd@fc400000 {
+	compatible = "st,spear300-kbd";
+	reg = <0xfc400000 0x100>;
+	linux,keymap = < 0x00030012
+			 0x0102003a >;
+	autorepeat;
+	st,mode = <0>;
+};