summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2013-05-07 11:41:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-05-22 22:16:48 +0100
commitf4b7f751c6fd2bd7e6d3a83385ee292c39995bdb (patch)
tree17a916b8e7917ca52ac1144443184e87637914b2 /Documentation
parente64e7d5c8c86ead27ed51a95687ba8327a9c4d2a (diff)
iio:ak8975 Add support for gpios DT property
Add support for parsing 'gpios' property when initializing from oftree. This patch adds also the binding documentation file. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt b/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
new file mode 100644
index 000000000000..011679f1a425
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
@@ -0,0 +1,18 @@
+* AsahiKASEI AK8975 magnetometer sensor
+
+Required properties:
+
+ - compatible : should be "asahi-kasei,ak8975"
+ - reg : the I2C address of the magnetometer
+
+Optional properties:
+
+ - gpios : should be device tree identifier of the magnetometer DRDY pin
+
+Example:
+
+ak8975@0c {
+ compatible = "asahi-kasei,ak8975";
+ reg = <0x0c>;
+ gpios = <&gpj0 7 0>;
+};