<Luffitys[m]>
Hi I'm trying to bring up the Xiaomi Mi 10 Pro (cmi, sm8250) but I'm having issues. I tried creating a minimal .dts for it but i only see the MI boot logo for a second, it then flickers green once and reboots again. I have pasted my dts here:
<Luffitys[m]>
Maybe someone immediately sees what's wrong with it, but I don't see anything
<ungeskriptet>
Luffitys[m]: You need gpio-reserved-ranges
<Luffitys[m]>
<ungeskriptet> "Luffitys: You need gpio-reserved..." <- I'm not sure where to find the values for it. I tried to find something in the stock DT but didn't see anything. I also added xbl_aop_mem because it seems to differ but I still don't see more than the flicker before the reboot.... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/XmMdCrIxUsvEiKehurWGZpgn>)
<ungeskriptet>
Luffitys[m]: To get the values you need to mount debugfs in downstream and cat /sys/kernel/debug/gpio. The missing gpios in that output are most likely your reserved gpios
<ungeskriptet>
You could also look into the section of the pinctrl driver where it handles debugfs. The skipped gpios should be somewhere in a for loop
<Luffitys[m]>
Tried 3 times. I dont really see why it force reboots into fastboot directly after. i only have like 5 frames at 60fps recording so it reboots basically instantly
<ungeskriptet>
Luffitys[m]: You need to disable unused clock cleanup
<ungeskriptet>
Add clk_ignore_unused to you cmdline
<Luffitys[m]>
or do i add it as a cmdline in mkbootimg?
<ungeskriptet>
No that should be fine
<ungeskriptet>
But I'd recommend remove max77705_pd.c
<ungeskriptet>
whoop
<ungeskriptet>
meant to say fw_devlink=permissive
<ungeskriptet>
Also you could disable dispcc entirly
<ungeskriptet>
* entirely
<Luffitys[m]>
Hm I tried many times and i just dont see anything related to the crash or errors in the super short dmesg. so i cant really make progress
<ungeskriptet[m]>
Luffitys: Does it instantly reboot after it goes black or is it stuck there?