Hi, I want to enable Push Button 1 on the SOM CRR board and capture the notifications via GPIO variable. I have tried below method:
Enabled button@0 and button@1 sections from "sc594-som-ezkit.dts" file as below:
button0: button@0 {
compatible = "adi,button-led";
en-pins = <&ssw1 1 GPIO_ACTIVE_LOW>; // PUSHBUTTON_EN
button_gpio = <50>; // PD_00
led_gpio = <35>; // PC_03 / LED9 / LED1_KIT
};
button1: button@1 {
compatible = "adi,button-led";
en-pins = <&ssw1 1 GPIO_ACTIVE_HIGH>; // PUSHBUTTON_EN
button_gpio = <112>; // PH_00
led_gpio = <34>; // PC_02 / LED8 / LED2_KIT
};
With these changes able to receive PB1 notifications on to this file '/sys/class/gpio/gpio48/value' by performing 'poll()' on 'value' file fd.
If I disable button@1 section, I am not receiving any notification via PB1 press.
Is this the right configuration?
Do I need to enable both button@0, button@1 to work with PB1 ?
Please suggest