[RPI] Change wm8960 button pinnumber to gpio number

This commit is contained in:
j1nx 2023-12-12 09:18:57 +00:00
parent 869c81ac2d
commit f435366d6a
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
target = <&gpio>; target = <&gpio>;
__overlay__ { __overlay__ {
wm8960_key_pin: wm8960_key_pin { wm8960_key_pin: wm8960_key_pin {
brcm,pins = <11>; brcm,pins = <17>;
brcm,function = <0>; /* input mode */ brcm,function = <0>; /* input mode */
brcm,pull = <0>; /* pull up/down disabled */ brcm,pull = <0>; /* pull up/down disabled */
}; };
@ -27,8 +27,8 @@
status = "okay"; status = "okay";
debounce-interval = <50>; debounce-interval = <50>;
button_wake_up: button@11 { button_wake_up: button@17 {
gpios = <&gpio 11 1>; gpios = <&gpio 17 1>;
linux,code = <143>; // KEY_WAKEUP linux,code = <143>; // KEY_WAKEUP
label = "Wake Up"; label = "Wake Up";
gpio-key,wakeup; gpio-key,wakeup;