summaryrefslogtreecommitdiff
diff options
authorPierre Equoy <pierre.equoy@canonical.com>2021-12-09 11:11:57 +0800
committerPierre Equoy <pierre.equoy@canonical.com>2021-12-09 11:11:57 +0800
commit563566aa9627334ed4d498ea97f39207df130962 (patch)
tree7ed01df9ef091fe18dfb434f438e50eed47c7c98
parent5f38ae7efa7175bc67fad462db7bd1a6ce44a7de (diff)
Add: GPIO test for AAEON UPN device
-rw-r--r--data/gpio-loopback.UPN-EHL01.in4
-rw-r--r--units/gpio/vendor-aaeon.pxu2
2 files changed, 5 insertions, 1 deletions
diff --git a/data/gpio-loopback.UPN-EHL01.in b/data/gpio-loopback.UPN-EHL01.in
new file mode 100644
index 0000000..259cbc1
--- /dev/null
+++ b/data/gpio-loopback.UPN-EHL01.in
@@ -0,0 +1,4 @@
+# GPIO IDs as presented by sysfs. See:
+# https://github.com/up-board/up-community/wiki/Pinout_UPXi11
+# (in this case, this means connecting GPIO pins 13 and 15 together)
+22,27
diff --git a/units/gpio/vendor-aaeon.pxu b/units/gpio/vendor-aaeon.pxu
index 7f8d6bc..cdf5f2d 100644
--- a/units/gpio/vendor-aaeon.pxu
+++ b/units/gpio/vendor-aaeon.pxu
@@ -1,7 +1,7 @@
unit: template
template-resource: dmi
-template-filter: dmi.category == 'SYSTEM' and dmi.vendor == 'AAEON' and dmi.product in ('UPX-TGL01')
+template-filter: dmi.category == 'SYSTEM' and dmi.vendor == 'AAEON' and dmi.product in ('UPX-TGL01', 'UPN-EHL01')
template-unit: job
id: gpio/sysfs_loopback_pairs_{vendor}_{product}
_summary: Test GPIO lines exposed on headers can be controlled via sysfs