summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDavid Yu <davyu@nvidia.com>2013-04-11 13:07:37 +0900
committerRiham Haidar <rhaidar@nvidia.com>2013-04-17 13:18:42 -0700
commit6a1d134756031dda28ed436f3f2807a68aaca240 (patch)
treeb6e594541473fee8fa9d605a067be05195baaca4 /Documentation
parent06ea456cdfb79f5126d3fdd9f3c024e2e7f0d738 (diff)
input: misc: compass: akm89xx: add support for device tree
Bug 1260300 Bug 1173064 Change-Id: I1cd32f31126ed08e13c731e3d40ceb2ca6052048 Signed-off-by: David Yu <davyu@nvidia.com> Reviewed-on: http://git-master/r/218488 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/input/ak-akm89xx.txt25
-rw-r--r--Documentation/devicetree/bindings/vendor-prefixes.txt1
2 files changed, 26 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/ak-akm89xx.txt b/Documentation/devicetree/bindings/input/ak-akm89xx.txt
new file mode 100644
index 000000000000..e91c08ee2ebd
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/ak-akm89xx.txt
@@ -0,0 +1,25 @@
+* Asahi Kasei AKM89XX compass sensor
+
+Required properties:
+- compatible: should be one of the following.
+ - "ak,ak8963"
+ - "ak,ak8972"
+ - "ak,ak8975"
+- reg: the I2C address of AKM89XX
+- config: the selection determines the device behavior.
+ - "auto": auto detect connection to MPU
+ - "mpu": connected to MPU
+ - "host": connected to host
+- orientation: the orientation matricies are 3x3 rotation matricies that are
+ applied to the data to rotate from the mounting orientation to the platform
+ orientation. The values must be one of 0, 1, or -1(0xff in byte array) and
+ each row and column should have exactly 1 non-zero value.
+
+Example:
+
+akm8963@0d {
+ compatible = "ak,ak8963";
+ reg = <0x0d>;
+ orientation = [00 01 00 ff 00 00 00 00 01];
+ config = "mpu";
+};
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index d7564379c98a..931243bdfb1c 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -4,6 +4,7 @@ This isn't an exhaustive list, but you should add new prefixes to it before
using them to avoid name-space collisions.
adi Analog Devices, Inc.
+ak Asahi Kasei Corp.
amcc Applied Micro Circuits Corporation (APM, formally AMCC)
apm Applied Micro Circuits Corporation (APM)
arm ARM Ltd.