Skip to contentSkip to conversation

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

PATCH Superseded Siddharth Chintamaneni 5 participants 10 messages Nov 4 – Nov 9 1 message not in the archive

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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 9fc667d6776c8..a1baa056931c4 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 1da6b0314b6a0..f359d38cc63c7 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 10 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.

Cc Jarred White <[email protected]>
Cc Jeff Kirsher <[email protected]>

Move Cc list after the '---' line below. It will reduce the noise in the commit message and hence Git history.

Quoted 2 lines

---

Cc list goes here...

Quoted 2 lines
 drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
 2 files changed, 7 insertions(+)

Code wise LGTM, I assume MS allocated that HID for the specific device and we will not see collisions in the future.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
Acked-by on v1 1/1
#2 lore raw
In reply to Siddharth Chintamaneni
Quoted 21 lines

-----Original Message-----
From: Siddharth Chintamaneni <[email protected]>
Sent: Wednesday, November 4, 2026 3:49 PM
To: Andi Shyti <[email protected]>; Mika Westerberg <[email protected]>; Rafael J . Wysocki <[email protected]>
Cc: Andy Shevchenko <[email protected]>; Len Brown <[email protected]>; [email protected]; [email protected]; [email protected]; Allen Pais <[email protected]>; [email protected]; [email protected]; Siddharth Chintamaneni <[email protected]>; Jarred White <[email protected]>; Jeff Kirsher <[email protected]>
Subject: [EXTERNAL] [PATCH v1 1/1] i2c: designware: Add ACPI ID MSFT0006 for Microsoft Cobalt SoCs

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

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 5 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.

Quoted 46 lines

---
Cc: Jarred White <[email protected]>

 drivers/acpi/acpi_apd.c                     | 6 ++++++
 drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
 2 files changed, 7 insertions(+)
drivers/acpi/acpi_apd.c index renamed from drivers/acpi/acpi_apd.c +0 -0

9fc667d6776c8..a1baa056931c4 100644

drivers/acpi/acpi_apd.c +5 -0
@@ -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 1da6b0314b6a0..f359d38cc63c7 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);
--
2.45.4

A message that is not in the archive (sent off-list or not yet received): DS1PR21MB4279C556CFB876C5562C7F1182772@DS1PR21MB4279.namprd21.prod.outlook.com

Acked-by
#4 lore raw
Quoted 11 lines

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification <https://aka.ms/LearnAboutSenderIdentification> ]

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 49 lines

---
Cc: Jarred White <[email protected]>
Cc: Jeff Kirsher <[email protected]>

  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 9fc667d6776c8..a1baa056931c4 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 1da6b0314b6a0..f359d38cc63c7 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);
--
2.45.4

#5 lore raw
Quoted 9 lines · Jarred White
Quoted 9 lines

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification> ]

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
Quoted 5 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.

Thanks!
Do I have to respin the patch?

Quoted 51 lines
Quoted 50 lines

---
Cc: Jarred White <[email protected]>
Cc: Jeff Kirsher <[email protected]>

  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 9fc667d6776c8..a1baa056931c4 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/ renamed from drivers/i2c/busses/i2c-designware-platdrv.c +0 -0

busses/i2c-designware-platdrv.c
index 1da6b0314b6a0..f359d38cc63c7 100644

drivers/i2c/busses/i2c-designware-platdrv.c +1 -0
@@ -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);
--
2.45.4

#6 lore raw
Quoted 16 lines · Siddharth Chintamaneni
Quoted 13 lines · Jarred White
Quoted 13 lines

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification
<https://aka.ms/LearnAboutSenderIdentification> ]

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 59 lines
Quoted 4 lines
Quoted 1 line

Thanks!
Do I have to respin the patch?

Quoted 51 lines
Quoted 50 lines

---
Cc: Jarred White <[email protected]>
Cc: Jeff Kirsher <[email protected]>

  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 9fc667d6776c8..a1baa056931c4 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/ renamed from drivers/i2c/busses/i2c-designware-platdrv.c +0 -0

busses/i2c-designware-platdrv.c
index 1da6b0314b6a0..f359d38cc63c7 100644

drivers/i2c/busses/i2c-designware-platdrv.c +1 -0
@@ -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);
--
2.45.4

Andy,

For Cobalt, the firmware exposes the designware input clock frequency through the ACPI HCLK object.
Is there an existing way to retrieve or configure this clock frequency through the ACPI tables, rather than hardcoding it in the driver? Although the frequency is currently constant, it could change in future hardware revisions that use the same ACPI HID. Would it make sense to retrieve the frequency from firmware instead of relying on a fixed value?

#7 lore raw

Hi Siddharth,

Quoted 4 lines

For Cobalt, the firmware exposes the designware input clock frequency through the ACPI HCLK object.
Is there an existing way to retrieve or configure this clock frequency through the ACPI tables, rather than hardcoding it in the driver?

Calling for Andy here for being the designware + ACPI expert.

Quoted 4 lines

Although the frequency is currently constant, it could change in future hardware revisions that use the same ACPI HID. Would it make sense to retrieve the frequency from firmware instead of relying on a fixed value?

Yes, as long at it can be overridden by the driver. I heard of buggy firmware out there...

Happy hacking,

Wolfram

#8 lore raw
Quoted 7 lines · Wolfram Sang
Quoted 5 lines

For Cobalt, the firmware exposes the designware input clock frequency through the ACPI HCLK object.
Is there an existing way to retrieve or configure this clock frequency through the ACPI tables, rather than hardcoding it in the driver?

Calling for Andy here for being the designware + ACPI expert.

We don't have the common way, it's unspecified. However, many drivers and some firmwares adopted the "clock-frequency" property. Unfortunately for I2C it means the clock of the bus, and not functional clock of the controller. So, I'm afraid you will need to have your own custom solution. Also makes sense to look what ARM people do in the same situtions (I know that Qualcomm tries hard to enable ACPI on laptops, if I was you, I would ask them first).

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#9 lore raw
Quoted 8 lines · Andy Shevchenko
Quoted 6 lines · Wolfram Sang
Quoted 5 lines

For Cobalt, the firmware exposes the designware input clock frequency through the ACPI HCLK object.
Is there an existing way to retrieve or configure this clock frequency through the ACPI tables, rather than hardcoding it in the driver?

Quoted 9 lines
Quoted 1 line

Calling for Andy here for being the designware + ACPI expert.

We don't have the common way, it's unspecified. However, many drivers and some firmwares adopted the "clock-frequency" property. Unfortunately for I2C it means the clock of the bus, and not functional clock of the controller. So, I'm afraid you will need to have your own custom solution. Also makes sense to look what ARM people do in the same situtions (I know that Qualcomm tries hard to enable ACPI on laptops, if I was you, I would ask them first).

Thanks Andy for the suggestion. Not sure how to reach out to Qualocomm ppl, I'll figure that out. I'll re-spin the patch for now.

Quoted 5 lines

--
With Best Regards,
Andy Shevchenko