2023-12-12 10:07:53 +01:00
|
|
|
/dts-v1/;
|
|
|
|
/plugin/;
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
|
|
|
|
|
|
|
|
fragment@0 {
|
|
|
|
target = <&gpio>;
|
|
|
|
__overlay__ {
|
|
|
|
wm8960_key_pin: wm8960_key_pin {
|
2023-12-12 10:18:57 +01:00
|
|
|
brcm,pins = <17>;
|
2023-12-12 10:07:53 +01:00
|
|
|
brcm,function = <0>; /* input mode */
|
|
|
|
brcm,pull = <0>; /* pull up/down disabled */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fragment@1 {
|
|
|
|
target-path = "/soc";
|
|
|
|
__overlay__ {
|
|
|
|
wm8960_button: wm8960_button {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
// #address-cells = <1>;
|
|
|
|
// #size-cells = <0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&wm8960_key_pin>;
|
|
|
|
status = "okay";
|
|
|
|
debounce-interval = <50>;
|
|
|
|
|
2023-12-12 10:18:57 +01:00
|
|
|
button_wake_up: button@17 {
|
|
|
|
gpios = <&gpio 17 1>;
|
2023-12-12 10:07:53 +01:00
|
|
|
linux,code = <143>; // KEY_WAKEUP
|
|
|
|
label = "Wake Up";
|
|
|
|
gpio-key,wakeup;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|