-
Notifications
You must be signed in to change notification settings - Fork 17
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
sunxi: enable LCD DVDD power on Pine64 and Pine64-LTS #9
base: allwinner
Are you sure you want to change the base?
Conversation
LCD if powered by 2 rails - DC1SW (AVDD) and DLDO2 (DVDD). DVDD must be enabled before AVDD, otherwise if AVDD enabled first AXP overheats and board shuts down. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Is this for the official Pine64 7" LCD panel? What is the Linux support story here? Does it work with mainline? And is that PMIC requirement (needs two rails, DLDO2 first) described in the DT? |
Yes, it's for official Pine64 7" LCD panel. It works with https://github.com/anarsoul/linux-2.6/tree/sunxi64-4.17-dsi - but I haven't had time to clean it up and send it upstream. Panel will be likely handled by a separate driver (not simple-panel), so there's no need to describe panel power on sequence in DT - it can be done in driver. |
Well, since it is board dependent and external to the actual DSI controller or the panel itself, it needs to go into the DT. Maybe there is something already which models regulator order? Something like mmc-pwrseq? Or maybe split this up, into one regulator being tied to the DSI controller, the other one to the panel? |
Yes, I need it in u-boot, since ATF enables DC1_SW. And if it's enabled without DLDO2 being enabled PMIC overheats and board shuts down (probably thermal protection). Basically board won't boot with LCD connected without this commit. |
So I created a branch with some PMIC setup using the DT for the mainline ATF port:
Does this make sense? |
I'll look into it this weekend. |
@anarsoul: No need, actually, I added support for it already. I just didn't push the patches yet, as there are some other issues I need to address first. Will probably update my -wip branch in the next days. |
Can you check whether this commit fixes it for you? The branch is still WIP, it needs more testing (and I think I managed to break it last night). Also you need your regulators to be described in U-Boot's DT (as this is what ATF reads). But this would not require any Pinebook (or whatever model) specific hacks. |
LCD if powered by 2 rails - DC1SW (AVDD) and DLDO2 (DVDD). DVDD must be
enabled before AVDD, otherwise if AVDD enabled first AXP overheats and board
shuts down.
Signed-off-by: Vasily Khoruzhick anarsoul@gmail.com