# Output from udevadm info on Razer Blade Pro (2016) 
# uname -a
#   Linux where 4.12.2-gentoo #8 SMP Fri Jul 21 01:00:49 AEST 2017
#   x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux
# Sun Jul 23 12:46:59 AEST 2017


/home/ben/razer/libinput # udevadm info /dev/input/event6 
P: /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-CRQ1001:00/0018:0488:D020.0001/input/input6/event6
N: input/event6
S: input/by-path/pci-0000:00:15.0-platform-i2c_designware.0-event-mouse
E: DEVLINKS=/dev/input/by-path/pci-0000:00:15.0-platform-i2c_designware.0-event-mouse
E: DEVNAME=/dev/input/event6
E: DEVPATH=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-CRQ1001:00/0018:0488:D020.0001/input/input6/event6
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_PATH=pci-0000:00:15.0-platform-i2c_designware.0
E: ID_PATH_TAG=pci-0000_00_15_0-platform-i2c_designware_0
E: ID_SERIAL=noserial
E: LIBINPUT_DEVICE_GROUP=18/488/d020/100:i2c-CRQ1001:00
E: MAJOR=13
E: MINOR=70
E: SUBSYSTEM=input
E: USEC_INITIALIZED=8817873



/home/ben/razer/libinput # udevadm info -a -p $(udevadm info -q path -n /dev/input/event6)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-CRQ1001:00/0018:0488:D020.0001/input/input6/event6':
    KERNEL=="event6"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-CRQ1001:00/0018:0488:D020.0001/input/input6':
    KERNELS=="input6"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{uniq}==""
    ATTRS{properties}=="0"
    ATTRS{phys}=="i2c-CRQ1001:00"
    ATTRS{name}=="CRQ1001:00 0488:D020"

  looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-CRQ1001:00/0018:0488:D020.0001':
    KERNELS=="0018:0488:D020.0001"
    SUBSYSTEMS=="hid"
    DRIVERS=="hid-generic"
    ATTRS{country}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-CRQ1001:00':
    KERNELS=="i2c-CRQ1001:00"
    SUBSYSTEMS=="i2c"
    DRIVERS=="i2c_hid"
    ATTRS{name}=="CRQ1001:00"

  looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0':
    KERNELS=="i2c-0"
    SUBSYSTEMS=="i2c"
    DRIVERS==""
    ATTRS{name}=="Synopsys DesignWare I2C adapter"

  looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0':
    KERNELS=="i2c_designware.0"
    SUBSYSTEMS=="platform"
    DRIVERS=="i2c_designware"
    ATTRS{driver_override}=="(null)"

  looking at parent device '/devices/pci0000:00/0000:00:15.0':
    KERNELS=="0000:00:15.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="intel-lpss"
    ATTRS{subsystem_device}=="0x6750"
    ATTRS{vendor}=="0x8086"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{msi_bus}=="1"
    ATTRS{device}=="0xa160"
    ATTRS{local_cpulist}=="0-7"
    ATTRS{class}=="0x118000"
    ATTRS{driver_override}=="(null)"
    ATTRS{local_cpus}=="ff"
    ATTRS{enable}=="1"
    ATTRS{irq}=="16"
    ATTRS{revision}=="0x31"
    ATTRS{broken_parity_status}=="0"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{devspec}==""
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{subsystem_vendor}=="0x1a58"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

/home/ben/razer/libinput #