Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: am335x: replace gpio-key,wakeup with wakeup-source property

Though the keyboard driver for GPIO buttons(gpio-keys) will continue to
check for/support the legacy "gpio-key,wakeup" boolean property to
enable gpio buttons as wakeup source, "wakeup-source" is the new
standard binding.

This patch replaces the legacy "gpio-key,wakeup" with the unified
"wakeup-source" property in order to avoid any futher copy-paste
duplication.

Cc: "Benoît Cousson" <bcousson@baylibre.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Sudeep Holla and committed by
Tony Lindgren
3efda001 cce1ee00

+6 -6
+2 -2
arch/arm/boot/dts/am335x-evm.dts
··· 83 83 label = "volume-up"; 84 84 linux,code = <115>; 85 85 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 86 - gpio-key,wakeup; 86 + wakeup-source; 87 87 }; 88 88 89 89 switch@10 { 90 90 label = "volume-down"; 91 91 linux,code = <114>; 92 92 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 93 - gpio-key,wakeup; 93 + wakeup-source; 94 94 }; 95 95 }; 96 96
+1 -1
arch/arm/boot/dts/am335x-evmsk.dts
··· 123 123 label = "button2"; 124 124 linux,code = <0x102>; 125 125 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; 126 - gpio-key,wakeup; 126 + wakeup-source; 127 127 }; 128 128 129 129 switch@4 {
+3 -3
arch/arm/boot/dts/am335x-pepper.dts
··· 630 630 label = "home"; 631 631 linux,code = <KEY_HOME>; 632 632 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>; 633 - gpio-key,wakeup; 633 + wakeup-source; 634 634 }; 635 635 636 636 button@1 { 637 637 label = "menu"; 638 638 linux,code = <KEY_MENU>; 639 639 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; 640 - gpio-key,wakeup; 640 + wakeup-source; 641 641 }; 642 642 643 643 buttons@2 { 644 644 label = "power"; 645 645 linux,code = <KEY_POWER>; 646 646 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 647 - gpio-key,wakeup; 647 + wakeup-source; 648 648 }; 649 649 }; 650 650