I am looking into the possibility for OpenWrt on Dahua routers, in particular, the WR-5200-IDC.
According to the stock web interface, it uses the RTL8197FHT processor.
Here is the FCC internal photos for the WR-5210-IDC, a similar product.
I have looked extensively online for the GPL sources, but I didn't find it for any Dahua product.