Documentation: devicetree: Clean up gpio-keys example
authorAndreas Färber <afaerber@suse.de>
Wed, 16 Mar 2016 11:53:29 +0000 (12:53 +0100)
committerRob Herring <robh@kernel.org>
Tue, 19 Apr 2016 22:25:16 +0000 (17:25 -0500)
Drop #address-cells and #size-cells, which are not required by the
gpio-keys binding documentation, as button sub-nodes are not devices.

Rename sub-nodes to avoid new dtc unit address warnings when copied.

While at it, adopt the dashes convention for the node name.

Reported-by: Julien Chauveau <chauveau.julien@gmail.com>
Cc: Julien Chauveau <chauveau.julien@gmail.com>
Cc: Javier Martinez Canillas <javier@dowhile0.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Julien Chauveau <chauveau.julien@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/input/gpio-keys.txt

index 21641236c095dfc257b0d5375ef0e8710129e690..a94940481e55ad6de187b3dc1a5c87a57c461fef 100644 (file)
@@ -32,17 +32,17 @@ Optional subnode-properties:
 
 Example nodes:
 
-       gpio_keys {
+       gpio-keys {
                        compatible = "gpio-keys";
-                       #address-cells = <1>;
-                       #size-cells = <0>;
                        autorepeat;
-                       button@21 {
+
+                       up {
                                label = "GPIO Key UP";
                                linux,code = <103>;
                                gpios = <&gpio1 0 1>;
                        };
-                       button@22 {
+
+                       down {
                                label = "GPIO Key DOWN";
                                linux,code = <108>;
                                interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;