Other Parts Discussed in Thread: AM62A7, SK-AM62A-LP
Tool/software:
Hi,
I am using AM62A7 in my project which uses similar design of SK-AM62A-LP.
I have seen an IO expander [TCA6424ARGJR] is connected to I2C1. I have connected a Button in the expander's GPIO.
The button is working fine in the linux. But I can't make it work as a wakeup key.
Here is my device tree
keys { compatible = "gpio-keys"; autorepeat; switch-power { label = "Key-Power"; linux,code = <KEY_P>; gpios = <&exp1 6 GPIO_ACTIVE_LOW>; wakeup-source; }; }; exp1: gpio@22 { compatible = "ti,tca6424"; reg = <0x22>; gpio-controller; #gpio-cells = <2>; interrupt-parent = <&main_gpio1>; interrupts = <23 IRQ_TYPE_EDGE_FALLING>; interrupt-controller; #interrupt-cells = <2>; pinctrl-names = "default"; pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; };
I know there is a IO Daisy chain I have to do for using main_gpio1 23. But how to do it for Expander's interupt GPIO?