ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #sm8250-mainline
ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #sm8250-mainline
ungeskriptet has quit [Ping timeout: 480 seconds]
ungeskriptet has joined #sm8250-mainline
<Zekiu_[m]> <ungeskriptet> "If you want to boot a mainline..." <- Hey! Is there a guide or something for writing a device tree for my device? I tried to port PostmarketOS but using the vendor kernel seems to cause more problems, and maybe writing the device tree will be less hassle
<ungeskriptet> Zekiu_[m]: We don't really have a specific guide for SM8250 but this one should work https://wiki.postmarketos.org/wiki/SM7150_Mainlining
<ungeskriptet> You can always reference other SM8250 device trees
<ungeskriptet> As I said for mini.al
<ungeskriptet> Whoops, pressed enter by accident
<ungeskriptet> What I meant to say is that you only need qcom,msm-id, qcom,board-id, reserved-memory and gpio-reserved-ranges in the dts for mainline to boot
<Zekiu_[m]> Alright, when I have the time I'll try this, thank you!
<ungeskriptet> To find out which gpios are reserved you can boot a downstream kernel with debugfs enabled and cat /sys/kernel/debug/gpio to see which gpios are not being listed
<ungeskriptet> Or you can try to find the source code responsible for reserving gpios in downstream and see which pins are being skipped
<alexeymin-matrix> <ungeskriptet> "To find out which gpios are..." <- I've seen on some downstream kernels this cat leads straight up to device freeze/reboot as it tries to read reserved pins also 🤣 on others it works
<alexeymin-matrix> have anyone here heard of some work being done for sm8250-xiaomi-lmi (or cmi)?