Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5044

Device Tree • Re: gpio-poweroff questions

$
0
0
Where I can find the source code for this overlay? (I did decompile it there were some errors)
https://github.com/raspberrypi/linux/bl ... verlay.dts
Can I either merge this with another overlay or load it with another overlay?
the whole point of overlays, is that they get merged into the base dtb, and you can load as many as you need, as long as the overlays dont conflict
My goal is to create a new overlay that will activate i2c 1 set up GPIO 4 as an input with pulldown, offer some option to tweak setting, and either activate or copy the functionality of gpio-poweroff. All but the last item I can already do with an overlay, just need help with the last bit.
i dont believe you can assign the same pin to 2 tasks
so if you have i2c enabled, you have to put poweroff on some other pin

Statistics: Posted by cleverca22 — Mon Apr 22, 2024 11:03 pm



Viewing all articles
Browse latest Browse all 5044

Trending Articles