ADE7858A is debugged under Linux. According to page 28 of the ADE7858A Data Sheet, the programmable gain is 1, 2, 4, 8, 16. The gain is set to 4 for the cigain register, but it is read as 0, which does not match the manual description

The programmable gain has 1, 2, 4, 8, 16. Setting the gain to 4 for the cigain register, but reading it to 0 does not match the manual description, which can be set differently

And some registers can be set normally, for example, if the cf1den register is set to 4, the reading is also 4
Drive link:
https://elixir.bootlin.com/linux/v4.14.8/source/drivers/staging/iio/meter
After successfully porting the driver to Linux, generate the following list of read/write registers:
Is there a demo software reference routine for ADE7858A?

