mt7621 GPIO mapping mystery

Bas Mevissen abuse at basmevissen.nl
Sat Jan 21 13:53:09 PST 2023


On 2023-01-21 22:42, Lukas Zeller wrote:
> Hi Tomasz,
> 
> thanks a lot for that hint to dtbocfg and the makefile!
> 
>> On 21 Jan 2023, at 17:27, Tomasz Maciej Nowak <tmn505 at gmail.com> 
>> wrote:
>> 
>> [...]
>> 
>> W dniu 21.01.2023 o 16:33, Lukas Zeller pisze:
>>> 
>>> So basically, I'm suggesting to revisit the decision to reject the 
>>> patch from Daniel Golle [1].
>> 
>> Instead of doing it the hard way of patching, why not using 
>> out-of-tree kernel
>> module[2] for loading dtb overlay with configfs? It already exists for 
>> some
>> time.
> 
> That really looks like a great solution with all advantages combined!
> 
> I agree this is better than patching, I just did not realize it was
> possible at all to modularize dt overlay functionality this way.
> 

It is a thing very commonly done on RPi "hats" to change the pin config 
on the extension header.
You may find some documentation and examples there that may help you.


>> [...] Unfortunately I didn't test it, as the board I wanted to use it 
>> has gone
>> in flames. For ready to use recipe see the attachment. Feel free to 
>> submit it
>> to packages feed and take over maintainership after giving it a test.
> 
> I will certainly try that, as soon as I find some time for it, but
> that's not likely to happen before ~March, unfortunately...
> 
>> [...]
>> 2. https://github.com/ikwzm/dtbocfg
> 
> Lukas
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel




More information about the openwrt-devel mailing list