systemd/hwdb.d
Alper Nebi Yasak e2f25ae648 udev: hwdb: Match iio sensors based on their label
The IIO subsystem exposes a 'label' sysfs file to help userspace better
identify its devices [1]. Standardized labels include the sensor type
along with its location, including 'accel-base' and 'accel-display'.

Most Chrome OS boards have two accelerometers that are indistinguishable
except for this label (or a 'location' sysfs file before Linux v6.0),
and need different mounting matrix corrections based on their location.

Add a udev rule that matches hwdb entries using this label, so we can
correct both accelerometers on these devices with hwdb entries. The
existing rules and hwdb entries are not modified to keep potential
out-of-tree entries working, but new entries in this form will override
existing ones. Also add currently standardized labels to parse-hwdb.py.

[1] https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio
2022-08-18 21:17:19 +03:00
..
.gitattributes Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
.gitignore Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-acpi-vendor.hwdb hwbd: run "update-hwdb" for v251-rc2 2022-04-28 17:42:25 +02:00
20-acpi-vendor.hwdb.patch hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-bluetooth-vendor-product.hwdb hwdb: Update database of Bluetooth company identifiers 2020-04-05 10:01:14 +02:00
20-dmi-id.hwdb hwdb: Add Microsoft Surface Pro 1 chassis quirk 2022-01-21 21:59:09 +01:00
20-net-ifname.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-OUI.hwdb hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-pci-classes.hwdb hwdb: update for v251 2022-03-29 18:15:06 +02:00
20-pci-vendor-model.hwdb hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-sdio-classes.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-sdio-vendor-model.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-usb-classes.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-usb-vendor-model.hwdb hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-vmbus-class.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
60-autosuspend-fingerprint-reader.hwdb hwdb: run "ninja update-hwdb-autosuspend" for v251-rc2 2022-04-28 17:43:27 +02:00
60-autosuspend.hwdb tree-wide: link to docs.kernel.org for kernel documentation 2022-07-04 19:56:53 +02:00
60-evdev.hwdb hwdb: add touchpad parameters for Lenovo T15g Gen1 (#23373) 2022-05-15 06:39:02 +09:00
60-input-id.hwdb hwdb: drop boilerplate about match patterns being unstable 2022-04-06 23:16:39 +09:00
60-keyboard.hwdb hwdb: Add Acer Aspire A317-33 (#24050) 2022-07-18 15:03:44 +09:00
60-seat.hwdb login: use a hwdb entry for tagging Parallels' fb devices with 'master-of-seat' tag 2021-07-05 11:56:10 +02:00
60-sensor.hwdb udev: hwdb: Match iio sensors based on their label 2022-08-18 21:17:19 +03:00
70-analyzers.hwdb hwdb: Add Greaseweazle "drives" to the list of analyzers 2022-08-09 18:12:19 +02:00
70-av-production.hwdb hwdb: Add AV production access to Elgado Stream Deck devices 2022-03-14 14:49:04 -03:00
70-cameras.hwdb hwdb: Tag IR cameras as such 2021-10-27 00:14:41 +02:00
70-joystick.hwdb Partially revert "hwdb: reindent commments and say that "*" should always be trailing" 2020-11-03 15:02:52 +01:00
70-mouse.hwdb hwdb: drop boilerplate about match patterns being unstable 2022-04-06 23:16:39 +09:00
70-pda.hwdb hwdb: add HP calculators 2022-02-04 11:01:20 +09:00
70-pointingstick.hwdb hwdb: drop boilerplate about match patterns being unstable 2022-04-06 23:16:39 +09:00
70-touchpad.hwdb Partially revert "hwdb: reindent commments and say that "*" should always be trailing" 2020-11-03 15:02:52 +01:00
80-ieee1394-unit-function.hwdb hwdb: ieee1394-unit-function: add entry for MOTU Track 16 2021-11-16 16:54:33 +01:00
acpi-update.py licensing: add two missing spdx headers 2021-10-18 09:04:45 +02:00
acpi_id_registry.html hwbd: run "update-hwdb" for v251-rc2 2022-04-28 17:42:25 +02:00
ids_parser.py hwdb: make sure "ninja update-hwdb" works on f35 2022-04-28 17:42:25 +02:00
ma-large.txt hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
ma-medium.txt hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
ma-small.txt hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
meson.build meson: Use meson test suite feature 2022-05-04 16:11:34 +02:00
parse_hwdb.py udev: hwdb: Match iio sensors based on their label 2022-08-18 21:17:19 +03:00
pci.ids hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
pnp_id_registry.html hwbd: run "update-hwdb" for v251-rc2 2022-04-28 17:42:25 +02:00
README Add READMEs in all .d directories 2021-03-26 09:35:07 +01:00
sdio.ids Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
usb.ids hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00

Files in this directory specify a description of hardware devices, in the form
of mappings from modalias-like keys (which identify specific hardware devices)
to udev properties.

Files in this directory are not read by udev directly. Instead,
man:systemd-hwdb(8) compiles them into a binary database.

See man:hwdb(7) for an overview of the configuration file format, and
man:systemd-udevd.service(8) for a description of the udev daemon.

Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.