Hi, Johannes! I just came across your patches. Surprisingly, our work interferes. I recently posted patch-series for configuring ECP5 and was asked to make generalized sysCONFIG driver with support for both ECP5 and MachXO2, which I did. Sadly I don't have hardware with MachXO2, but you clearly do :) Please, take a look at https://lore.kernel.org/linux-fpga/20220825112433.14583-1-i.bornyakov@xxxxxxxxxxx/ and please help test MachXO2 variant. When we pull this off, you may add I2C interface on top.