Hello everyone,
I'm currently trying to build an OpenWRT on the most recent master for my 8Devices Lima module. The build is running perfecly. But when i install the image i can't use the reset button. Here are a few outputs.
cat /proc/interrupts
root@OpenWrt:/# cat /proc/interrupts
CPU0
3: 0 MIPS 3 ehci_hcd:usb1
4: 0 MIPS 4 19000000.eth
5: 1215 MIPS 5 1a000000.eth
7: 106996 MIPS 7 timer
9: 360 MISC 3 ttyS0
13: 0 INTC 0 ath9k
ERR: 0
cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/18040000.gpio, 18040000.gpio:
ls /sys/firmware/devicetree/base/keys/reset
gpios label linux-code name
qca9531_8dev_lima.dts
/ {
compatible = "8dev,lima", "qca,qca9531";
model = "8devices Lima";
keys {
compatible = "gpio-keys";
reset {
label = "reset";
linux-code = "KEY_RESTART";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
};
If i run this script i can see that the input is doing something
#!/bin/sh
GPIOBASE=`cat /sys/class/gpio/gpiochip*/base | head -n1`
GPIOmin=`expr $1 + $GPIOBASE`
GPIOmax=`expr $2 + $GPIOBASE`
cd /sys/class/gpio
for i in `seq $GPIOmin $GPIOmax`; do
echo $i > export; echo in >gpio$i/direction
done
nums=`seq $GPIOmin $GPIOmax`
while true; do
for i in $nums; do
echo read gpio$i
cat /sys/class/gpio/gpio$i/value
done
sleep 1
done
read gpio16
0
read gpio16
1
But it does not trigger any hotplug.d or rc.button actions
This is my first build with the ath79 Device Tree. Hopefully i am just doing something wrong. The Image is running on the 8Devices Lima Evalboard. I checked the voltage level on the board and this is working great.
Thank you so much in advance