Skip to contentSkip to conversation

Documentation: devicetree: Clean up gpio-keys example

PATCH Applied Andreas Färber 5 participants 6 messages Mar 16, 2016 – Apr 19, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Documentation: devicetree: Clean up gpio-keys example

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.

Cc Julien Chauveau <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>

---
v1 -> v2:
* Changed node name from underscore to dash
* Inserted white lines
* Renamed sub-nodes (Geert, Julien)

 Documentation/devicetree/bindings/input/gpio-keys.txt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/input/gpio-keys.txt +5 -5
index 21641236c095..a94940481e55 100644
@@ -32,17 +32,17 @@ Optional subnode-properties:
 
 Example nodes:
 
-	gpio_keys {
+	gpio-keys {
 			compatible = "gpio-keys";
-			#address-cells = <1>;
-			#size-cells = <0>;
 			autorepeat;
-			button at 21 {
+
+			up {
 				label = "GPIO Key UP";
 				linux,code = <103>;
 				gpios = <&gpio1 0 1>;
 			};
-			button at 22 {
+
+			down {
 				label = "GPIO Key DOWN";
 				linux,code = <108>;
 				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
Signature · 1 line
2.6.2
Reviewed-by on v2 1/1
#1 lore raw

Hello Andreas,

Quoted 5 lines · Andreas F?rber

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.

Quoted 8 lines

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

Cc Julien Chauveau <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>

---

Patch looks good to me.

Best regards,
Javier

Reviewed-by
#2 lore raw
Quoted 20 lines

Le 16 mars 2016 ? 15:47, Javier Martinez Canillas <[email protected]> a ?crit :

Hello Andreas,

Quoted 5 lines · Andreas F?rber

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.

Quoted 8 lines

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

Cc Julien Chauveau <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>

---

Quoted 3 lines

Patch looks good to me.

I agree.

maintainer Applied
#3 lore raw
Quoted 20 lines · Julien Chauveau
Quoted 20 lines

Le 16 mars 2016 ? 15:47, Javier Martinez Canillas <[email protected]> a ?crit :

Hello Andreas,

Quoted 13 lines · Andreas F?rber

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.

Cc Julien Chauveau <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>

---

Quoted 7 lines
Quoted 3 lines

Patch looks good to me.

I agree.

Applied, thank you.

Signature · 1 line
Dmitry
maintainer Applied
#4 lore raw
In reply to Andreas Färber
Quoted 5 lines · Andreas F?rber

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.

Quoted 7 lines

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

Cc Julien Chauveau <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>

Applied, thanks.

Rob

Quoted 39 lines

---
v1 -> v2:
* Changed node name from underscore to dash
* Inserted white lines
* Renamed sub-nodes (Geert, Julien)

 Documentation/devicetree/bindings/input/gpio-keys.txt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/input/gpio-keys.txt +5 -5
index 21641236c095..a94940481e55 100644
@@ -32,17 +32,17 @@ Optional subnode-properties:
 
 Example nodes:
 
-	gpio_keys {
+	gpio-keys {
 			compatible = "gpio-keys";
-			#address-cells = <1>;
-			#size-cells = <0>;
 			autorepeat;
-			button at 21 {
+
+			up {
 				label = "GPIO Key UP";
 				linux,code = <103>;
 				gpios = <&gpio1 0 1>;
 			};
-			button at 22 {
+
+			down {
 				label = "GPIO Key DOWN";
 				linux,code = <108>;
 				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
Signature · 1 line
2.6.2
#5 lore raw

Hello Rob,

Quoted 8 lines · Rob Herring
Quoted 7 lines · Andreas F?rber

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.

Quoted 8 lines
Quoted 5 lines
Cc Julien Chauveau <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Geert Uytterhoeven <[email protected]>

Applied, thanks.

Dmitry already applied this patch in the input tree.

Quoted 2 lines

Rob

Best regards,
Javier