Skip to contentSkip to conversation

i2c: designware: Add ACPI ID MSFT0006 for Microsoft Cobalt SoCs

PATCH In review Siddharth Chintamaneni 2 participants 4 messages Nov 9 – Nov 10

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i2c: designware: Add ACPI ID MSFT0006 for Microsoft Cobalt SoCs

Add the MSFT0006 ACPI ID for the DesignWare I2C controller integrated on Microsoft Cobalt SoCs, along with its 300 MHz input clock description in acpi_apd.c.

Without an explicit MSFT0006 entry, ACPI device matching falls back to its _CID (APMC0D0F), which configures a 100 MHz input clock instead of the controller's actual 300 MHz clock.

---
 drivers/acpi/acpi_apd.c                     | 6 ++++++
 drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
 2 files changed, 7 insertions(+)
drivers/acpi/acpi_apd.c +6 -0
index ea226fd987567..66a7607752d9b 100644
@@ -198,6 +198,11 @@ static const struct apd_device_desc hjmc_i2c_desc = {
 	.fixed_clk_rate = 200 * HZ_PER_MHZ,
 };
 
+static const struct apd_device_desc msft_i2c_desc = {
+	.setup = acpi_apd_setup,
+	.fixed_clk_rate = 300 * HZ_PER_MHZ,
+};
+
 #endif /* CONFIG_ARM64 */
 
 #endif
@@ -272,6 +277,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
 	{ "HJMC3001", APD_ADDR(hjmc_i2c_desc) },
 	{ "LECA0002", APD_ADDR(leca_spi_desc) },
 	{ "LECA0003", APD_ADDR(leca_i2c_desc) },
+	{ "MSFT0006", APD_ADDR(msft_i2c_desc) },
 	{ "NXP0001", APD_ADDR(nxp_i2c_desc) },
 #endif
 	{ }
drivers/i2c/busses/i2c-designware-platdrv.c +1 -0
index 13dd7c50486a4..cf364f3c26199 100644
@@ -280,6 +280,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
 	{ .id = "INT3433" },
 	{ .id = "INTC10EF" },
 	{ .id = "LECA0003" },
+	{ .id = "MSFT0006" },
 	{ }
 };
 MODULE_DEVICE_TABLE(acpi, dw_i2c_acpi_match);
Signature · 1 line
2.45.4
#1 lore raw
Quoted 4 lines · Siddharth Chintamaneni

Add the MSFT0006 ACPI ID for the DesignWare I2C controller integrated on Microsoft Cobalt SoCs, along with its 300 MHz input clock description in acpi_apd.c.

Quoted 8 lines

Without an explicit MSFT0006 entry, ACPI device matching falls back to its _CID (APMC0D0F), which configures a 100 MHz input clock instead of the controller's actual 300 MHz clock.

---

Where is the changelog?
Haven't I given a tag already?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 10 lines · Andy Shevchenko
Quoted 8 lines · Siddharth Chintamaneni

Add the MSFT0006 ACPI ID for the DesignWare I2C controller integrated on Microsoft Cobalt SoCs, along with its 300 MHz input clock description in acpi_apd.c.

Without an explicit MSFT0006 entry, ACPI device matching falls back to its _CID (APMC0D0F), which configures a 100 MHz input clock instead of the controller's actual 300 MHz clock.

Quoted 6 lines
Quoted 4 lines

---

Where is the changelog?

Oh I just dropped cc tags.

Quoted 1 line

Haven't I given a tag already?

no, I thought you were suggesting that I repost it.

Quoted 6 lines

--
With Best Regards,
Andy Shevchenko

reviewer Reviewed-by
#3 lore raw
Quoted 17 lines · Siddharth Chintamaneni
Quoted 15 lines · Andy Shevchenko
Quoted 12 lines · Siddharth Chintamaneni

Add the MSFT0006 ACPI ID for the DesignWare I2C controller integrated on Microsoft Cobalt SoCs, along with its 300 MHz input clock description in acpi_apd.c.

Without an explicit MSFT0006 entry, ACPI device matching falls back to its _CID (APMC0D0F), which configures a 100 MHz input clock instead of the controller's actual 300 MHz clock.

---

Quoted 7 lines
Quoted 1 line

Where is the changelog?

Oh I just dropped cc tags.

Quoted 1 line

Haven't I given a tag already?

no, I thought you were suggesting that I repost it.

Okay, it's fine to me

Signature · 2 lines
With Best Regards,
Andy Shevchenko