Skip to content
Permalink
Browse files

ath79, brcm63xx: Fix debounce-interval properties in gpio-keys-polled…

… nodes

This patch fixes wrong usage of debounce-interval subnode property of
gpio-keys-polled nodes, which was used inproperly in parent node, but it
belongs to the subnodes, excerpt from the docs:

 Optional subnode-properties:
     - debounce-interval: Debouncing interval time in milliseconds.
       If not specified defaults to 5.

And the docs are up to date as the source code matches that description
as well:

 if (fwnode_property_read_u32(child, "debounce-interval",
                              &button->debounce_interval))
         button->debounce_interval = 5;

While at it, I've also re-formatted gpio-keys-polled nodes, usually just
adding new lines after every key subnode.

Cc: Tomasz Maciej Nowak <tomek_n@o2.pl>
Cc: Matt Merhar <mattmerhar@protonmail.com>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
  • Loading branch information...
ynezz authored and blogic committed Dec 11, 2018
1 parent 7bd2595 commit d9753f0ec58429c9b9aa92918ff736004e4ca0d0
Showing with 181 additions and 71 deletions.
  1. +1 −1 target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi
  2. +3 −1 target/linux/brcm63xx/dts/a226g.dts
  3. +3 −1 target/linux/brcm63xx/dts/a226m-fwb.dts
  4. +3 −1 target/linux/brcm63xx/dts/a226m.dts
  5. +3 −1 target/linux/brcm63xx/dts/a4001n.dts
  6. +3 −1 target/linux/brcm63xx/dts/a4001n1.dts
  7. +5 −1 target/linux/brcm63xx/dts/ad1018-nor.dts
  8. +3 −1 target/linux/brcm63xx/dts/agpf-s0.dts
  9. +3 −1 target/linux/brcm63xx/dts/ar-5315u.dts
  10. +1 −1 target/linux/brcm63xx/dts/ar-5381u.dts
  11. +1 −1 target/linux/brcm63xx/dts/ar-5387un.dts
  12. +1 −1 target/linux/brcm63xx/dts/ar1004g.dts
  13. +3 −1 target/linux/brcm63xx/dts/av4202n.dts
  14. +2 −1 target/linux/brcm63xx/dts/bcm96318ref.dts
  15. +2 −1 target/linux/brcm63xx/dts/bcm96318ref_p300.dts
  16. +2 −1 target/linux/brcm63xx/dts/bcm963268bu_p300.dts
  17. +1 −1 target/linux/brcm63xx/dts/bcm963269bhr.dts
  18. +1 −1 target/linux/brcm63xx/dts/bcm96348GW-10.dts
  19. +1 −1 target/linux/brcm63xx/dts/bcm96348GW-11.dts
  20. +1 −1 target/linux/brcm63xx/dts/bcm96348GW.dts
  21. +1 −1 target/linux/brcm63xx/dts/cpva502plus.dts
  22. +3 −1 target/linux/brcm63xx/dts/cpva642.dts
  23. +5 −1 target/linux/brcm63xx/dts/ct-5365.dts
  24. +1 −1 target/linux/brcm63xx/dts/ct-6373.dts
  25. +1 −1 target/linux/brcm63xx/dts/ct536plus.dts
  26. +1 −1 target/linux/brcm63xx/dts/dg834g_v4.dts
  27. +1 −1 target/linux/brcm63xx/dts/dg834gtpn.dts
  28. +5 −1 target/linux/brcm63xx/dts/dgnd3700v1.dts
  29. +1 −1 target/linux/brcm63xx/dts/dsl-2640b-b.dts
  30. +1 −1 target/linux/brcm63xx/dts/dsl-274xb-c.dts
  31. +5 −1 target/linux/brcm63xx/dts/dsl-274xb-f.dts
  32. +3 −1 target/linux/brcm63xx/dts/dsl-275xb-d.dts
  33. +1 −1 target/linux/brcm63xx/dts/dva-g3810bn_tl.dts
  34. +3 −1 target/linux/brcm63xx/dts/evg2000.dts
  35. +1 −1 target/linux/brcm63xx/dts/f5d7633.dts
  36. +3 −1 target/linux/brcm63xx/dts/fast2504n.dts
  37. +1 −1 target/linux/brcm63xx/dts/fast2604.dts
  38. +5 −1 target/linux/brcm63xx/dts/fast2704n.dts
  39. +5 −1 target/linux/brcm63xx/dts/fast2704v2.dts
  40. +1 −1 target/linux/brcm63xx/dts/gw6000.dts
  41. +1 −1 target/linux/brcm63xx/dts/gw6200.dts
  42. +1 −1 target/linux/brcm63xx/dts/hg520v.dts
  43. +2 −1 target/linux/brcm63xx/dts/hg553.dts
  44. +7 −1 target/linux/brcm63xx/dts/hg556a-a.dts
  45. +7 −1 target/linux/brcm63xx/dts/hg556a-b.dts
  46. +7 −1 target/linux/brcm63xx/dts/hg556a-c.dts
  47. +1 −1 target/linux/brcm63xx/dts/hg622.dts
  48. +5 −1 target/linux/brcm63xx/dts/hg655b.dts
  49. +5 −1 target/linux/brcm63xx/dts/homehub2a.dts
  50. +2 −2 target/linux/brcm63xx/dts/livebox-blue-5g.dts
  51. +7 −1 target/linux/brcm63xx/dts/nb4-fxc-r1.dts
  52. +7 −1 target/linux/brcm63xx/dts/nb4-ser-r0.dts
  53. +7 −1 target/linux/brcm63xx/dts/nb6-ser-r0.dts
  54. +3 −1 target/linux/brcm63xx/dts/p870hw-51a-v2.dts
  55. +2 −1 target/linux/brcm63xx/dts/r1000h.dts
  56. +3 −1 target/linux/brcm63xx/dts/r5010unv2.dts
  57. +1 −1 target/linux/brcm63xx/dts/rta770bw.dts
  58. +1 −1 target/linux/brcm63xx/dts/rta770w.dts
  59. +3 −1 target/linux/brcm63xx/dts/spw303v.dts
  60. +1 −1 target/linux/brcm63xx/dts/spw500v.dts
  61. +1 −1 target/linux/brcm63xx/dts/sr102.dts
  62. +1 −1 target/linux/brcm63xx/dts/td-w8900gb.dts
  63. +1 −1 target/linux/brcm63xx/dts/v2110.dts
  64. +1 −1 target/linux/brcm63xx/dts/v2500v-bb.dts
  65. +2 −1 target/linux/brcm63xx/dts/vg50.dts
  66. +3 −1 target/linux/brcm63xx/dts/vh4032n.dts
  67. +1 −1 target/linux/brcm63xx/dts/vr-3025u.dts
  68. +1 −1 target/linux/brcm63xx/dts/vr-3025un.dts
  69. +1 −1 target/linux/brcm63xx/dts/vr-3026e.dts
  70. +5 −1 target/linux/brcm63xx/dts/wap-5813n.dts
@@ -38,12 +38,12 @@
gpio-keys-polled {
compatible = "gpio-keys-polled";
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "sw4";
linux,code = <KEY_RESTART>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
};
@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 34 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 37 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 34 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 37 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 34 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 37 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 23 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};

wps {
label = "wps";
gpios = <&pinctrl 24 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};
};

@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 23 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};

wps {
label = "wlan";
gpios = <&pinctrl 24 1>;
linux,code = <KEY_WLAN>;
debounce-interval = <60>;
};
};

@@ -18,22 +18,26 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 24 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

wifi {
label = "wifi";
gpios = <&pinctrl 25 1>;
linux,code = <KEY_WLAN>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 31 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};
};
@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 34 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 37 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,17 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 3 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 33 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 23 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 23 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 33 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -19,17 +19,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 34 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};

wlan {
label = "wlan";
gpios = <&pinctrl 37 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WLAN>;
debounce-interval = <60>;
};
};

@@ -18,18 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 33 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 34 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,18 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 33 1>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};

reset {
label = "reset";
gpios = <&pinctrl 34 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,18 +18,19 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 32 0>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};

wps {
label = "wps";
gpios = <&pinctrl 33 0>;
linux,code = <KEY_WPS_BUTTON>;
debounce-interval = <60>;
};
};
};
@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 32 0>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 6 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 33 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 36 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

@@ -18,12 +18,12 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

reset {
label = "reset";
gpios = <&pinctrl 36 1>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};

0 comments on commit d9753f0

Please sign in to comment.
You can’t perform that action at this time.