pacman: Add script to generate servod config files

Pacman config files currently consist of a python file with information
about sensors, rails and GPIOs. This commit adds the
`gen_servod_config.py` script to generate servod config files from the
config files used by pacman. Example snippet of generated output:
```
config_type='servod'

inas = [
    ('pac1954', '0x10:0', 'ppvar_vddcr', 0.6, 0.003, 'rem', True),
    ('pac1954', '0x10:1', 'ppvar_vddcr_soc', 0.6, 0.01, 'rem', True),
    ('pac1954', '0x10:2', 'pp1800_s0', 1.8, 0.01, 'rem', True),
    ('pac1954', '0x10:3', 'pp1800_s5', 1.8, 0.03, 'rem', True),
```

BUG=b:231983768
TEST=Ran generated config through servod's `generate_ina_controls.py`

Change-Id: I51bef6fe9b643d0b6b8d8c18e64e11a01d65b0e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3688611
Commit-Queue: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Tested-by: Robert Zieba <robertzieba@google.com>
Auto-Submit: Robert Zieba <robertzieba@google.com>
1 file changed