diff options
author | Maxim Devaev <[email protected]> | 2022-03-27 23:54:21 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-03-27 23:54:26 +0300 |
commit | 8e2688d82007698bafee0aed77db679029df9cb8 (patch) | |
tree | 31fa1dfdc18f4dae39abe6b2ae93517df8183c7b | |
parent | f474fd6453698c4dd96164db0993e0013a6dd0d8 (diff) |
default values for the serial hid plugin
-rw-r--r-- | configs/kvmd/main/v0-hdmi-rpi.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-rpi2.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-rpi3.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-zero2w.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmi-zerow.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-rpi.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-rpi2.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-rpi3.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-zero2w.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v0-hdmiusb-zerow.yaml | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/_mcu/__init__.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/serial.py | 2 |
12 files changed, 2 insertions, 22 deletions
diff --git a/configs/kvmd/main/v0-hdmi-rpi.yaml b/configs/kvmd/main/v0-hdmi-rpi.yaml index 3daa2384..53366196 100644 --- a/configs/kvmd/main/v0-hdmi-rpi.yaml +++ b/configs/kvmd/main/v0-hdmi-rpi.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmi-rpi2.yaml b/configs/kvmd/main/v0-hdmi-rpi2.yaml index 3daa2384..53366196 100644 --- a/configs/kvmd/main/v0-hdmi-rpi2.yaml +++ b/configs/kvmd/main/v0-hdmi-rpi2.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmi-rpi3.yaml b/configs/kvmd/main/v0-hdmi-rpi3.yaml index 4a309712..d054a6d2 100644 --- a/configs/kvmd/main/v0-hdmi-rpi3.yaml +++ b/configs/kvmd/main/v0-hdmi-rpi3.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmi-zero2w.yaml b/configs/kvmd/main/v0-hdmi-zero2w.yaml index 53983e9f..04416ee8 100644 --- a/configs/kvmd/main/v0-hdmi-zero2w.yaml +++ b/configs/kvmd/main/v0-hdmi-zero2w.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmi-zerow.yaml b/configs/kvmd/main/v0-hdmi-zerow.yaml index 14c07ec6..4bfccdb2 100644 --- a/configs/kvmd/main/v0-hdmi-zerow.yaml +++ b/configs/kvmd/main/v0-hdmi-zerow.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmiusb-rpi.yaml b/configs/kvmd/main/v0-hdmiusb-rpi.yaml index 5dc3f278..62ede331 100644 --- a/configs/kvmd/main/v0-hdmiusb-rpi.yaml +++ b/configs/kvmd/main/v0-hdmiusb-rpi.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmiusb-rpi2.yaml b/configs/kvmd/main/v0-hdmiusb-rpi2.yaml index 5dc3f278..62ede331 100644 --- a/configs/kvmd/main/v0-hdmiusb-rpi2.yaml +++ b/configs/kvmd/main/v0-hdmiusb-rpi2.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmiusb-rpi3.yaml b/configs/kvmd/main/v0-hdmiusb-rpi3.yaml index 6f3268e7..983ba6d2 100644 --- a/configs/kvmd/main/v0-hdmiusb-rpi3.yaml +++ b/configs/kvmd/main/v0-hdmiusb-rpi3.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmiusb-zero2w.yaml b/configs/kvmd/main/v0-hdmiusb-zero2w.yaml index 6f3268e7..983ba6d2 100644 --- a/configs/kvmd/main/v0-hdmiusb-zero2w.yaml +++ b/configs/kvmd/main/v0-hdmiusb-zero2w.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/configs/kvmd/main/v0-hdmiusb-zerow.yaml b/configs/kvmd/main/v0-hdmiusb-zerow.yaml index 5dc3f278..62ede331 100644 --- a/configs/kvmd/main/v0-hdmiusb-zerow.yaml +++ b/configs/kvmd/main/v0-hdmiusb-zerow.yaml @@ -11,8 +11,6 @@ kvmd: hid: type: serial - reset_pin: 4 - device: /dev/kvmd-hid atx: type: gpio diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py index 49016560..595abbc4 100644 --- a/kvmd/plugins/hid/_mcu/__init__.py +++ b/kvmd/plugins/hid/_mcu/__init__.py @@ -147,7 +147,7 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many- def get_plugin_options(cls) -> Dict: return { "gpio_device": Option("/dev/gpiochip0", type=valid_abs_path, unpack_as="gpio_device_path"), - "reset_pin": Option(-1, type=valid_gpio_pin_optional), + "reset_pin": Option(4, type=valid_gpio_pin_optional), "reset_inverted": Option(False, type=valid_bool), "reset_delay": Option(0.1, type=valid_float_f01), diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index 1058f191..044a8d9e 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -101,7 +101,7 @@ class Plugin(BaseMcuHid): @classmethod def __get_phy_options(cls) -> Dict: return { - "device": Option("", type=valid_abs_path, unpack_as="device_path"), + "device": Option("/dev/kvmd-hid", type=valid_abs_path, unpack_as="device_path"), "speed": Option(115200, type=valid_tty_speed), "read_timeout": Option(2.0, type=valid_float_f01), } |