udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB3)
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/platform/soc/10300000.xhci_0/usb1/1-1/1-1:1.4/ttyUSB3/tty/ttyUSB3':
KERNEL=="ttyUSB3"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/platform/soc/10300000.xhci_0/usb1/1-1/1-1:1.4/ttyUSB3':
KERNELS=="ttyUSB3"
SUBSYSTEMS=="usb-serial"
DRIVERS=="option1"
ATTRS{port_number}=="0"
looking at parent device '/devices/platform/soc/10300000.xhci_0/usb1/1-1/1-1:1.4':
KERNELS=="1-1:1.4"
SUBSYSTEMS=="usb"
DRIVERS=="option"
ATTRS{bInterfaceProtocol}=="01"
ATTRS{bInterfaceNumber}=="04"
ATTRS{bInterfaceSubClass}=="03"
ATTRS{bInterfaceClass}=="ff"
....