summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-05-15 11:27:27 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:32 +0900
commit088139392f261fd749e7e6073b861dc283079a84 (patch)
treeac7cdae895b65309713c3465c539fc84a361a912 /Documentation
parentfd6e290bf3998ed1d63f2d38776ab68357238aca (diff)
downloadlinux-3.10-088139392f261fd749e7e6073b861dc283079a84.tar.gz
linux-3.10-088139392f261fd749e7e6073b861dc283079a84.tar.bz2
linux-3.10-088139392f261fd749e7e6073b861dc283079a84.zip
net: rfkill: gpio: add device tree support
Change-Id: Ic179fcf929d3555a29addd39024011537ea041fa Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/rfkill/rfkill-gpio.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rfkill/rfkill-gpio.txt b/Documentation/devicetree/bindings/rfkill/rfkill-gpio.txt
new file mode 100644
index 00000000000..67b5edb4407
--- /dev/null
+++ b/Documentation/devicetree/bindings/rfkill/rfkill-gpio.txt
@@ -0,0 +1,26 @@
+GPIO controlled RFKILL devices
+
+Required properties:
+- compatible : Must be "rfkill-gpio".
+- rfkill-name : Name of RFKILL device
+- rfkill-type : Type of RFKILL device: 1 for WiFi, 2 for BlueTooth, etc.
+ See include/uapi/linux/rfkill.h for all valid values
+- gpios : At most two GPIO phandles
+- gpio-names : Shall be "reset" or "shutdown", matching gpios.
+ If both are provided, the "reset" GPIO is toggled first.
+
+Optional properties:
+- clocks : phandle to clock to enable/disable
+- clock-frequency : desired clock rate for the given clock
+
+Example:
+
+ rfkill_bt {
+ compatible = "rfkill-gpio";
+ rfkill-name = "bluetooth";
+ rfkill-type = <2>;
+ gpios = <&pio 7 18 0>;
+ gpio-names = "reset";
+ clocks = <&clk_out_a>;
+ clock-frequency = <32678>;
+ };