summaryrefslogtreecommitdiff
path: root/hwdb.d
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-09-06 21:06:40 +0200
committerGitHub <noreply@github.com>2021-09-06 21:06:40 +0200
commitf0a8ec4372314393ebff9113ec9deba3babd2fb9 (patch)
tree656ac1032729ce00fd6a031a30b92521f3bb114c /hwdb.d
parent4b4a8ef7414c53af9b5f99ed80ce658be1c58c59 (diff)
parent9e2dbfef479060ed850ccdd9cd82d3f0cda2b5c0 (diff)
downloadsystemd-f0a8ec4372314393ebff9113ec9deba3babd2fb9.tar.gz
Merge pull request #20527 from systemd/wip/hadess/usb-analysers-uaccess
hwdb: Allow end-users root-less access to USB analysers
Diffstat (limited to 'hwdb.d')
-rw-r--r--hwdb.d/70-analyzers.hwdb33
-rw-r--r--hwdb.d/meson.build1
-rwxr-xr-xhwdb.d/parse_hwdb.py1
3 files changed, 35 insertions, 0 deletions
diff --git a/hwdb.d/70-analyzers.hwdb b/hwdb.d/70-analyzers.hwdb
new file mode 100644
index 0000000000..4865f0b669
--- /dev/null
+++ b/hwdb.d/70-analyzers.hwdb
@@ -0,0 +1,33 @@
+# This file is part of systemd.
+#
+# Database for signal analyzers (protocol analyzers, logic analyzers,
+# oscilloscopes, multimeters, bench power supplies, etc.) that should
+# be accessible to the seat owner.
+#
+# Permitted keys:
+# Specify if a device is a signal analyzer
+# ID_SIGNAL_ANALYZER=1|0
+
+###########################################################
+# Total Phase
+###########################################################
+# Aarvark I2C/SPI Host Adapter
+usb:v0403pe0d0*
+ ID_SIGNAL_ANALYZER=1
+
+# Beagle Protocol Analyzers
+usb:v1679p2001*
+ ID_SIGNAL_ANALYZER=1
+
+# Cheetah SPI Host Adapter
+usb:v1679p2002*
+ ID_SIGNAL_ANALYZER=1
+
+# Komodo CAN Duo Interface
+usb:v1679p3001*
+ ID_SIGNAL_ANALYZER=1
+
+# Power Delivery Analyzers
+usb:v1679p6003*
+usb:v0483pdf11*
+ ID_SIGNAL_ANALYZER=1
diff --git a/hwdb.d/meson.build b/hwdb.d/meson.build
index 4f3560e37f..fc6ee7c649 100644
--- a/hwdb.d/meson.build
+++ b/hwdb.d/meson.build
@@ -27,6 +27,7 @@ hwdb_files_test = files('''
60-keyboard.hwdb
60-seat.hwdb
60-sensor.hwdb
+ 70-analyzers.hwdb
70-joystick.hwdb
70-mouse.hwdb
70-pointingstick.hwdb
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
index 3cd4b486a6..dea71acfe9 100755
--- a/hwdb.d/parse_hwdb.py
+++ b/hwdb.d/parse_hwdb.py
@@ -147,6 +147,7 @@ def property_grammar():
('ID_INPUT_TOUCHPAD', Or((Literal('0'), Literal('1')))),
('ID_INPUT_TOUCHSCREEN', Or((Literal('0'), Literal('1')))),
('ID_INPUT_TRACKBALL', Or((Literal('0'), Literal('1')))),
+ ('ID_SIGNAL_ANALYZER', Or((Literal('0'), Literal('1')))),
('POINTINGSTICK_SENSITIVITY', INTEGER),
('POINTINGSTICK_CONST_ACCEL', REAL),
('ID_INPUT_JOYSTICK_INTEGRATION', Or(('internal', 'external'))),