[PATCH 2/3] dt: rfkill-gpio: add bindings documentation
Marc Dietrich
marvin24 at gmx.de
Mon Feb 13 06:13:07 EST 2012
Add device tree bindings information for rfkill gpio switches.
Cc: linux-wireless at vger.kernel.org
Cc: "John W. Linville" <linville at tuxdriver.com>
Cc: Johannes Berg <johannes at sipsolutions.net>
Cc: Rhyland Klein <rklein at nvidia.com>
Cc: Grant Likely <grant.likely at secretlab.ca>
Cc: devicetree-discuss at lists.ozlabs.org
Signed-off-by: Marc Dietrich <marvin24 at gmx.de>
---
Documentation/devicetree/bindings/gpio/rfkill.txt | 38 +++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
create mode 100644 Documentation/devicetree/bindings/gpio/rfkill.txt
diff --git a/Documentation/devicetree/bindings/gpio/rfkill.txt b/Documentation/devicetree/bindings/gpio/rfkill.txt
new file mode 100644
index 0000000..22bf22a
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/rfkill.txt
@@ -0,0 +1,38 @@
+RFKILL switches connected to GPIO lines
+
+Required properties:
+- compatible : should be "rfkill-gpio".
+
+Each rfkill switch is represented as a sub-node of the rfkill-gpio device.
+Each node has a label property which represents the name of the corresponding
+rfkill device.
+
+RFKILL sub-node properties:
+- label : (optional) The label for this rfkill switch. If omitted, the label is
+ taken from the node name (excluding the unit address).
+- reset-gpio, shutdown-gpio : Should specify the rfkill gpios for reset and
+ shutdown (see "Specifying GPIO information for devices" in
+ Documentation/devicetree/booting-without-of.txt).
+- type : enumerated type of the gpio (see include/linux/rfkill.h).
+- clock : (optional) name of the clock name associated with the rfkill switch
+ (see include/linux/rfkill-gpio.h)
+
+Examples:
+
+rfkill-switches {
+ compatible = "rfkill-gpio";
+
+ wifi {
+ label = "wifi";
+ reset-gpio = <&gpio 25 0>; /* Active high */
+ shutdown-gpio = <&gpio 85 0>; /* Active high */
+ type = <1>;
+ };
+
+ bt {
+ label = "bluetooth";
+ reset-gpio = <&gpio 17 0>; /* Active high */
+ shutdown-gpio = <&gpio 35 0>; /* Active high */
+ type = <1>;
+ };
+};
--
1.7.5.4
More information about the devicetree-discuss
mailing list