d15ffa
# Some devices have a bluetooth HCI connected to an uart, these needs to be
d15ffa
# setup by calling btattach. The systemd btattach-bcm.service takes care of
d15ffa
# this. These udev rules hardware-activate that service when necessary.
d15ffa
#
d15ffa
# For now this only suports ACPI enumerated Broadcom BT HCIs.
d15ffa
# This has been tested on Bay and Cherry Trail devices with both ACPI and
d15ffa
# PCI enumerated UARTs.
d15ffa
d15ffa
# Note we check for the platform device not for the acpi device, because
d15ffa
# some DSDTs list multiple bluetooth adapters, but only some (or none)
d15ffa
# are enabled. Only enabled adapters get a platform device created.
d15ffa
ACTION!="add", GOTO="btattach_bcm_rules_end"
d15ffa
SUBSYSTEM!="platform", GOTO="btattach_bcm_rules_end"
d15ffa
d15ffa
KERNEL=="BCM2E1A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E39:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E3A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E3D:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E3F:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E40:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E54:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E55:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E64:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E65:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E67:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E71:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E7B:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E7C:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E7E:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E95:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
KERNEL=="BCM2E96:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
d15ffa
d15ffa
LABEL="btattach_bcm_rules_end"