Skip to contentSkip to conversation

Bluetooth: BCM: Add support for MINIX Z83-4 based devices

PATCH Superseded Ian W MORRISON 1 participant 2 messages Sep 4, 2017 – Oct 6, 2017 Bluetooth drivers

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: BCM: Add support for MINIX Z83-4 based devices

The MINIX NEO Z83-4 and MINIX NEO Z83-4 Pro devices use an AP6255 chip for wifi and bluetooth. Bluetooth requires an ACPI device id of BCM2EA4 with BCM4345 rev C0 firmware.

---
 drivers/bluetooth/btbcm.c   | 1 +
 drivers/bluetooth/hci_bcm.c | 9 +++++++++
 2 files changed, 10 insertions(+)
drivers/bluetooth/btbcm.c +1 -0
index cc4bdef..7de75f1 100644
@@ -327,6 +327,7 @@ static int btbcm_read_info(struct hci_dev *hdev)
 	{ 0x4406, "BCM4324B3"	},	/* 002.004.006 */
 	{ 0x610c, "BCM4354"	},	/* 003.001.012 */
 	{ 0x2209, "BCM43430A1"  },	/* 001.002.009 */
+	{ 0x6119, "BCM4345C0"  },	/* 003.001.025 */
 	{ }
 };
 
drivers/bluetooth/hci_bcm.c +9 -0
index e254011..8a97810 100644
@@ -704,6 +704,14 @@ static int bcm_resume(struct device *dev)
 		.driver_data = &acpi_active_low,
 	},
 	{
+		.ident = "MINIX Z83-4",
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "MINIX"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Z83-4"),
+		},
+		.driver_data = &acpi_active_low,
+	},
+	{
 		.ident = "Asus T100CHI",
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR,
@@ -926,6 +934,7 @@ static int bcm_remove(struct platform_device *pdev)
 	{ "BCM2E71", (kernel_ulong_t)&acpi_bcm_int_last_gpios },
 	{ "BCM2E7B", (kernel_ulong_t)&acpi_bcm_int_last_gpios },
 	{ "BCM2E7C", (kernel_ulong_t)&acpi_bcm_int_last_gpios },
+	{ "BCM2EA4", (kernel_ulong_t)&acpi_bcm_int_first_gpios },
 	{ "BCM2E95", (kernel_ulong_t)&acpi_bcm_int_first_gpios },
 	{ "BCM2E96", (kernel_ulong_t)&acpi_bcm_int_first_gpios },
 	{ },
Signature · 1 line
1.9.1
#1 lore raw

PATCH RESEND 1/1 Bluetooth: BCM: Add support for MINIX Z83-4 based devices

The MINIX NEO Z83-4 and MINIX NEO Z83-4 Pro devices use an AP6255 chip for wifi and bluetooth. Bluetooth requires an ACPI device id of BCM2EA4 with BCM4345 rev C0 firmware.

---
 drivers/bluetooth/btbcm.c   | 1 +
 drivers/bluetooth/hci_bcm.c | 9 +++++++++
 2 files changed, 10 insertions(+)
drivers/bluetooth/btbcm.c +1 -0
index cc4bdef..7de75f1 100644
@@ -327,6 +327,7 @@ static int btbcm_read_info(struct hci_dev *hdev)
 	{ 0x4406, "BCM4324B3"	},	/* 002.004.006 */
 	{ 0x610c, "BCM4354"	},	/* 003.001.012 */
 	{ 0x2209, "BCM43430A1"  },	/* 001.002.009 */
+	{ 0x6119, "BCM4345C0"  },	/* 003.001.025 */
 	{ }
 };
 
drivers/bluetooth/hci_bcm.c +9 -0
index e254011..8a97810 100644
@@ -704,6 +704,14 @@ static int bcm_resume(struct device *dev)
 		.driver_data = &acpi_active_low,
 	},
 	{
+		.ident = "MINIX Z83-4",
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "MINIX"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Z83-4"),
+		},
+		.driver_data = &acpi_active_low,
+	},
+	{
 		.ident = "Asus T100CHI",
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR,
@@ -926,6 +934,7 @@ static int bcm_remove(struct platform_device *pdev)
 	{ "BCM2E71", (kernel_ulong_t)&acpi_bcm_int_last_gpios },
 	{ "BCM2E7B", (kernel_ulong_t)&acpi_bcm_int_last_gpios },
 	{ "BCM2E7C", (kernel_ulong_t)&acpi_bcm_int_last_gpios },
+	{ "BCM2EA4", (kernel_ulong_t)&acpi_bcm_int_first_gpios },
 	{ "BCM2E95", (kernel_ulong_t)&acpi_bcm_int_first_gpios },
 	{ "BCM2E96", (kernel_ulong_t)&acpi_bcm_int_first_gpios },
 	{ },
Signature · 1 line
1.9.1