26 lines
713 B
Plaintext
26 lines
713 B
Plaintext
interrupt_keys {
|
|
compatible = "jzh,interrupt-key";
|
|
gpios = <&gpiog 3 GPIO_ACTIVE_LOW
|
|
&gpiog 2 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
|
|
joystick {
|
|
compatible = "gpio-keys";
|
|
#size-cells = <0>;
|
|
status = "disabled";
|
|
button-0 {
|
|
label = "usr_button0";
|
|
linux,code = <KEY_A>;
|
|
interrupt-parent = <&gpiog>;
|
|
interrupts = <3 IRQ_TYPE_EDGE_RISING>;
|
|
};
|
|
button-1 {
|
|
label = "usr_button1";
|
|
linux,code = <KEY_ENTER>;
|
|
interrupt-parent = <&gpiog>;
|
|
interrupts = <2 IRQ_TYPE_EDGE_RISING>;
|
|
};
|
|
|
|
};
|