summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorGregor Boirie <gregor.boirie@parrot.com>2016-03-03 11:44:05 +0100
committerJonathan Cameron <jic23@kernel.org>2016-03-05 15:25:58 +0000
commit63d5d525cbbc8938d9fa3d6d6fbd4183e784b6e9 (patch)
tree1435d337719dc1786c2f203da17964e4e88e5db2 /Documentation
parentd3546af67f4937075d0747adb3bf56d3c46b32f0 (diff)
downloadlinux-stable-63d5d525cbbc8938d9fa3d6d6fbd4183e784b6e9.tar.gz
linux-stable-63d5d525cbbc8938d9fa3d6d6fbd4183e784b6e9.tar.bz2
linux-stable-63d5d525cbbc8938d9fa3d6d6fbd4183e784b6e9.zip
iio:magnetometer:ak8975: power regulator support
Add support for an optional regulator which, if found into device-tree, will power on device at probing time. The regulator is declared into ak8975 DTS entry as a "vdd-supply" property. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt b/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
index 011679f1a425..34a3206eefdf 100644
--- a/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
+++ b/Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
@@ -8,6 +8,7 @@ Required properties:
Optional properties:
- gpios : should be device tree identifier of the magnetometer DRDY pin
+ - vdd-supply: an optional regulator that needs to be on to provide VDD
Example:
@@ -15,4 +16,5 @@ ak8975@0c {
compatible = "asahi-kasei,ak8975";
reg = <0x0c>;
gpios = <&gpj0 7 0>;
+ vdd-supply = <&ldo_3v3_gnss>;
};