-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add device tree for TF101 #23
Conversation
I wouldn't recommend to merge this @digetx, transformers team is working on tf101 and we still have problems with it. This tree is not even partially complete. @mnidza are you sure this tree has at least emmc/sdcard working, or maybe networking? P. S. My tf101 tree and it still has issues |
@clamor95 I tested it with my unit, and WiFi works for me (with external firmware). I've been using it with root file system on SD card, so I guess SD works too. As for the MMC, I had to use this patch to make partition table accessible, but did not include it here since I'm not sure if how hacky this solutions is, and I guess the tablet can be functional even with SD card only. If it's not already obvious, I'm not an expert in this, and this is just a collection of solutions I picked up from various versions of TF101 kernel I could find (based on various versions of the mainline kernel, starting from 3.10) and made them work for my TF101. I created his PR after @digetx asked some people with working TF101s in another thread to share what they have. I'm aware that the device tree is not complete, but maybe it's still useful for others to build upon. |
@mnidza @clamor95 Could you please enumerate what works and what not? The device-trees look okay to me, there are couple things that need to be improved, but they are minor. It should be fine to correct and extend the DT with additional patches, until DT will become fully completed. The MMC patch shouldn't be needed by grate-kernel if you have CONFIG_TEGRA_PARTITION=y. If it doesn't work, then please let me know. |
It depends on how much @mnidza is wanting to get involved. If this will be a one-time contribution, then we still will need somebody to continue the work. |
For some reason I cannot get to boot my TF101 from SD Card. @mnidza I'm using your tf101 branch, P.D.: My tablet is sbk1 version, I don't know if it matters at all. |
That might be because device-tree doesn't have aliases for MMC, thus sdcard may come up under a different name, depending on a probe order of the drivers. |
If there are no objections, then I'll merge this PR later today and fix up the missing aliases and etc. |
@mnidza @clamor95 @antonialoytorrens @fuzzy7k I'll merge this now, please let me know if you'll spot any problems and please open a new PR if you'll have more stuff to add or fix, thanks! |
Thanks @digetx ! As you can see by the frequency of my responses, I can't commit (and probably don't have the skills at this point) to contribute regularly at your pace, but I guess I can help with testing since I have the device. I don't have the keyboard/dock though. @antonialoytorrens I'm attaching a dockerfile describing the my build tools.
For booting from SD card I use u-boot built with |
Thank you! Please don't worry about the pace, any help will be good. I looked through the downstream kernel and made quite a few changes to the device-tree, please pull the updated grate-kernel and let me know if it works or not. |
Thank you very much! It's very useful. I'm trying to get PostmarketOS working on my TF101. |
Guys, I added support for memory frequency scaling to TF101. Please post a full kernel boot log once you'll manage to test the grate-kernel, thanks in advance. |
@antonialoytorrens Here is the u-boot source that I use; it's not the latest, but it's fairly recent. It is set up so that the kernel and the boot script are on SD card, so I can change the script without rebuilding u-boot. Here is my boot script: uEnv.txt. Nvflash command line is the same as yours. At the end I do get
but it seems that the bootloader starts successfully nevertheless, and can be used to boot kernel during development. Of course, I think this does not actually flash the bootloader, just loads it into SDRAM temporarily for development purposes. I think you need to use |
@digetx I think I caused confusion above by not making it clear that my device tree worked only when I rebased it on top of mainline kernel 5.12-rc4, and not grate-kernel. I tried testing your recent changes and it does not boot for me (the screen just goes dark). I tried both the version from PR and the version after some of your modifications, but I get the same result for both. Any recommendation how to proceed? Any way to use the fact that it works in 5.12-rc4 to pin down where it breaks in grate-kernel? |
Thank you very much for your help @mnidza . Will test it that way. Also, if you are in trouble, I suggest you to join |
@mnidza That's likely because of the work-in-progress core power domain patches which require the device-tree to have the voltage regulator specified for the domain. I added the power domain node in this commit: e350a1a I think you should be able to boot with yours original device-tree if you'll cherry-pick this commit. I also think that we could add a default stub regulator to the |
I tested the version at commit ca64561. It had the issue where the screen would go dark and WiFi would disconnect every few seconds; most of the time pushing the power button would restore it, but then it would go out again after a few seconds. I found that removing the |
@mnidza Thank you! Do you know whether TF101 supports lid detection at all or I just messed up the GPIO polarity? I borrowed the GPIO config from downstream kernel https://github.com/Kali-/tf101-kernel/blob/master/arch/arm/mach-tegra/board-ventana.c#L584 Could you please clarify what do you mean by a "not working" and "working" version? You're referring to the same ca64561 commit when saying working/not working, so it's not clear to me what works and what not. The |
Nope. I suppose "lid" in this case has to do with keyboard/dock, and I don't have one.
|
Alright, thank you for the clarification! I'll remove the hall-sensor node on a next kernel update (probably later today), please give it a try. Please also note there are already couple more fixes in the recent versions of kernel and device-tree and I see in the logs that you're using the version from a day ago. |
I'm trying to test sound for the first time, and I'm using commit 5269af0 (master branch at the time of writing) for this. Currently I can't get any output from speakers using |
@mnidza you need ucm config or manually set correct state in alsamixer |
@mnidza , the audio switches should be in off state by default. You may run You may take a look at UCM for Acer A500, but note that A500 uses a different audio routing for speakers, while headphones/headset should be the same. |
@mnidza @antonialoytorrens Could you please tell me your full name and email address that I could add to the patches? I may try to send the battery patches that are related to TF101 for v5.14. |
@digetx I've updated my GitHub profile. You should be able to see both full name and email there. Hope that works. |
In my case, my full name is Antoni Aloy Torrens and my email is |
Thank you! |
Fixes a checkpatch error: ERROR: Macros with complex values should be enclosed in parentheses #23: FILE: drivers/reset/reset-uniphier.c:23: +#define UNIPHIER_RESET_ID_END (unsigned int)(-1) Signed-off-by: Philipp Zabel <[email protected]>
Add initial working version of device tree for ASUS EeePad Transformer TF101.
Basically just copy Ventana device tree and add WiFi and touchscreen to it.