diff options
| author | Jadyn Emma Jäger <jadyn@jadyn.dev> | 2026-01-19 15:19:07 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-02-14 20:46:09 +0100 |
| commit | fdc563be8c2f61c5832752b0e8a78c8c70f39cf6 (patch) | |
| tree | 7fdbcbdd8b5bed79361835086b23c79f4d402878 | |
| parent | 984f41dcab36a2dee3c77908a3218594466647d6 (diff) | |
| download | vyos-1x-fdc563be8c2f61c5832752b0e8a78c8c70f39cf6.tar.gz vyos-1x-fdc563be8c2f61c5832752b0e8a78c8c70f39cf6.zip | |
lcd: T8213: add support for MTC S16209x
Implementation has been tested using a virtual serial pipe as I (Christian
Breunig) did not find my hardware LCD display. You can easily do this via:
$ sudo socat -d -d PTY,link=/dev/ttyS99,raw,echo=0 PTY,link=/tmp/serial,raw,echo=0
$ sudo cat /tmp/serial
You will get a lot of control characters, but real information like the OS
Kernel version will scroll through.
Co-authored-by: Christian Breunig <christian@breunig.cc>
| -rw-r--r-- | data/templates/lcd/LCDd.conf.j2 | 7 | ||||
| -rw-r--r-- | interface-definitions/system_lcd.xml.in | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/data/templates/lcd/LCDd.conf.j2 b/data/templates/lcd/LCDd.conf.j2 index 3631add1d..456aa79e7 100644 --- a/data/templates/lcd/LCDd.conf.j2 +++ b/data/templates/lcd/LCDd.conf.j2 @@ -55,6 +55,8 @@ Driver=CFontzPacket Driver=sdeclcd {% elif model == 'hd44780' %} Driver=hd44780 +{% elif model == 'mtc-s16209x' %} +Driver=mtc_s16209x {% endif %} {% endif %} @@ -135,5 +137,10 @@ USB=yes ConnectionType=ezio Device={{ device }} Size=16x2 +{% elif model == 'mtc-s16209x' %} +[mtc_s16209x] +Device={{ device }} +Brightness=255 +Reboot=yes {% endif %} {% endif %} diff --git a/interface-definitions/system_lcd.xml.in b/interface-definitions/system_lcd.xml.in index 0cf4de308..13c924229 100644 --- a/interface-definitions/system_lcd.xml.in +++ b/interface-definitions/system_lcd.xml.in @@ -12,7 +12,7 @@ <properties> <help>Model of the display attached to this system</help> <completionHelp> - <list>cfa-533 cfa-631 cfa-633 cfa-635 hd44780 sdec</list> + <list>cfa-533 cfa-631 cfa-633 cfa-635 hd44780 sdec mtc-s16209x</list> </completionHelp> <valueHelp> <format>cfa-533</format> @@ -38,8 +38,12 @@ <format>sdec</format> <description>Lanner, Watchguard, Nexcom NSA, Sophos UTM appliances</description> </valueHelp> + <valueHelp> + <format>mtc-s16209x</format> + <description>Microtips Technology S16209x, Sophos SG appliances</description> + </valueHelp> <constraint> - <regex>(cfa-533|cfa-631|cfa-633|cfa-635|hd44780|sdec)</regex> + <regex>(cfa-533|cfa-631|cfa-633|cfa-635|hd44780|sdec|mtc-s16209x)</regex> </constraint> </properties> </leafNode> |
