FDT away for RTL8366. Also fixed FDT support gpioiic.c.
Boot log is this.
https://gist.github.com/yamori813/bd6ccdbd73dd02eebfdd0bd6d92411d8
Differential D12649
FDT support for RTL8366 on etherswitch framework yamori813_yahoo.co.jp on Oct 13 2017, 12:48 AM. Authored by Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions All is fine, one improvement is possible (gpio_pins for non-fdt case).
Comment Actions I don't like all the duplicate code in gpioiic.c. Can you explain which bugs are you trying to fix ? gpioiic seems to works fine with FDT, but if you want to use the new API, maybe you should consider something like what was done with gpioled (and its FDT counterpart). Comment Actions I think IVAR can't use on FDT. Current gpioiic.c is use IVAR. Tell me dts file on work current gpioiic.c. Current code is crash in gpioiic_attach() at devi->pins[] access in at FDT build. Other FDT base gpio code use simplebus or ofwbus by DRIVER_MODULE. But gpioiic not use this. Comment Actions Custom dts files shouldn't be put to sys/gnu/dts. This directory is periodically synced with upstream tree, so custom changes may be hard to maintain. The right way to new .dts is to put it to boot/fdt/dts/mips. All include operators should just work Comment Actions loos Please show me complete dts file use gpioiic.c.
|