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
ath79: update DTS for TP-Link WDR3600/WDR4300 v1 #2284
Conversation
I will have a question fot this topic. After all latest changes regarding GPIO. Is it possible to mange power on this device - WDR3600/WDR4300 v1
|
@kofec I can try on my device one the correct setup is sorted out. |
Tried different variants, but I only get USB2 working, USB1 is dead. With gpio-export everything works as expected. Any ideas? |
I´ve added the following nodes only to get the default trigger for the leds working...
The driver does not handle this nodes as the usb ports are working also without the nodes above. EDIT: I personally prefer the solution with gpio-export |
I've already tried with
Same situation. But this sounds like I should try to get rid of the nested nodes? |
vbus-supply only works for SoCs using chipidea driver. ar934x uses generic ehci platform driver if I remember correctly. |
gpio-hog is also functional for this, as well as “clean” in the DTS. I keep hoping to find a way to “bounce” the power, but I haven’t seen any way to control a fixed-regulator through sysfs or the like. |
Okay, so I will give it a try with gpio-hog as in:
|
Thanks for your pointers. |
Coming back to the question raised by @kofec: Can I manage USB power set via gpio-hogs on the running device? |
This PR might be obsoleted by: |
This replaces gpio-export by gpio-hogs and switches buttons to interrupt-driven gpio-keys. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Update:
|
@blocktrron |
For me, LGTM, except that I'd split the gpio-keys part and gpio-hogs part as separate commits, they are logically separate changes. |
Thanks! Merged to my staging tree: https://git.openwrt.org/?p=openwrt/staging/blocktrron.git;a=summary @adrianschmutzler If you want to reach out specifically to me, E-Mail is the best way, as GitHub gives me notifications about everything in the Organization, independent whether I'm mentioned or not. |
@adrianschmutzler coming back to the topic of controlling devices via userspace, have you managed to perform this? If it's no longer possible with GPIO hogs, then it's a regression, which affects my devices, as I use USB power switch to restart LTE modem. |
There has been a discussion on the same subject on the devel list: Since there have been two requests, I would be willing to "revert" usb power to gpio-export for this device if one of you provides a proper patch. |
I'll provide a patch in coming days. |
@Leo-PL Well, have a look at the discussion. You may try your luck with reverting everything. |
This updates gpio-export to gpio-hogs and switches to interrupt-driven gpio-keys.
Solved usb power with gpio-hogs.
It looks like this is the first case where two reg_usb_vbus with different gpios are required for two ports.I need some help with the setup for those. (Just check what's there already)