Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2677 - Ath79 Reset button not working #7480

Open
openwrt-bot opened this issue Dec 16, 2019 · 1 comment
Open

FS#2677 - Ath79 Reset button not working #7480

openwrt-bot opened this issue Dec 16, 2019 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

nickberry17:

Supply the following if possible:

  • Device problem occurs on
    Comfast CF-E5
  • Software versions of OpenWrt/LEDE release, packages, etc.
    master
  • Steps to reproduce
    Press the reset button, observe that nothing happens. We expect the device to reboot or perform factory reset.

https://forum.openwrt.org/t/ath79-reset-button-not-working/50564

I am on the latest master snapshot using a Comfast CF-E5. The reset button is supposed to be on GPIO17. I have an IRQ entry of gpio-ath79 17 on my system but when I press the button I can never see any response in the logs, and the device never responds to the key with either a reboot or firstboot. What can I check? It used to work on an older version. I have documented what I have found on the forum.

https://forum.openwrt.org/t/ath79-reset-button-not-working/50564

cat /proc/interrupts
CPU0
3: 16348 MIPS 3 ehci_hcd:usb1
4: 0 MIPS 4 19000000.eth
5: 24687 MIPS 5 1a000000.eth
7: 153665 MIPS 7 timer
9: 30 MISC 3 ttyS0
12: 93596 INTC 0 ath9k
17: 0 gpio-ath79 17 keys
ERR: 49

Here is the relevant portion of the DTS file

keys {
	compatible = "gpio-keys";

	reset {
		label = "reset";
		linux,code = <KEY_RESTART>;
		gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
	};
};

root@OpenWrt:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/18040000.gpio, 18040000.gpio:
gpio-0 ( |cf-e5:blue:wlan ) out hi
gpio-1 ( |sysfs ) out hi
gpio-2 ( |cf-e5:blue:rssi0 ) out hi
gpio-3 ( |cf-e5:blue:rssi1 ) out hi
gpio-4 ( |cf-e5:blue:wan ) out hi
gpio-11 ( |sysfs ) out hi
gpio-12 ( |sysfs ) out hi
gpio-14 ( |sysfs ) out hi
gpio-15 ( |cf-e5:blue:rssi2 ) out hi
gpio-16 ( |cf-e5:blue:lan ) out lo
gpio-17 ( |reset ) in hi IRQ

@openwrt-bot
Copy link
Author

adrianschmutzler:

gpio-17 ( |reset ) in hi IRQ

gpios = <&gpio 17 GPIO_ACTIVE_LOW>;

Try building the firmware with

gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant