gpio: stmfx: add function stmfx_read_reg and stmfx_write_reg