diff mbox series

[3/3] i2c: designware: Add LECARC ACPI ID

Message ID 20260514024014.3376511-4-thomas_lin@lecomputing.com
State Superseded
Headers show
Series Add LECARC ACPI IDs for DesignWare GPIO, SPI, I2C | expand

Commit Message

Thomas Lin May 14, 2026, 2:40 a.m. UTC
Add ACPI ID "LECA0003" for LECARC SoCs that integrate the DesignWare
I2C controller.

Also add corresponding ACPI description in acpi_apd.c.

Signed-off-by: thomas <thomas_lin@lecomputing.com>
---
 drivers/acpi/acpi_apd.c                     | 5 +++++
 drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
 2 files changed, 6 insertions(+)

Comments

Andy Shevchenko May 15, 2026, 9:38 a.m. UTC | #1
On Thu, May 14, 2026 at 10:40:12AM +0800, thomas wrote:
> Add ACPI ID "LECA0003" for LECARC SoCs that integrate the DesignWare
> I2C controller.
> 
> Also add corresponding ACPI description in acpi_apd.c.

> Signed-off-by: thomas <thomas_lin@lecomputing.com>

Fix the name field in SoB, has to be your real name and not an alias.

Code wise, after rebasing on a new version of SPI patch (see comments there),
will be perfect.
diff mbox series

Patch

diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index 3a80e833215e..ae6a7da56e89 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -187,6 +187,10 @@  static const struct apd_device_desc leca_spi_desc = {
 	.fixed_clk_rate = 400000000,
 };
 
+static const struct apd_device_desc leca_i2c_desc = {
+	.setup = acpi_apd_setup,
+	.fixed_clk_rate = 250000000,
+};
 #endif /* CONFIG_ARM64 */
 
 #endif
@@ -259,6 +263,7 @@  static const struct acpi_device_id acpi_apd_device_ids[] = {
 	{ "HISI0173", APD_ADDR(hip08_spi_desc) },
 	{ "NXP0001", APD_ADDR(nxp_i2c_desc) },
 	{ "LECA0002", APD_ADDR(leca_spi_desc) },
+	{ "LECA0003", APD_ADDR(leca_i2c_desc) },
 #endif
 	{ }
 };
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 3351c4a9ef11..b435b4015f02 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -279,6 +279,7 @@  static const struct acpi_device_id dw_i2c_acpi_match[] = {
 	{ "INT3432", 0 },
 	{ "INT3433", 0 },
 	{ "INTC10EF", 0 },
+	{ "LECA0003", 0 },
 	{}
 };
 MODULE_DEVICE_TABLE(acpi, dw_i2c_acpi_match);