[PATCH v4 2/2] ACPI: APD: Add clock frequency for HJMC01 I2C controller
From: clarke.li
Date: Thu Aug 13 2026 - 03:56:43 EST
From: Xiangyang Yu <hunter.yu@xxxxxxxxxxxx>
I2C clock frequency for HJMC01 is 200MHz, define a new ACPI
HID for it.
Signed-off-by: Xiangyang Yu <hunter.yu@xxxxxxxxxxxx>
Signed-off-by: Hongnan Li <clarke.li@xxxxxxxxxxxx>
---
drivers/acpi/acpi_apd.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c
index 275027ebd01f..e7366fcb76ee 100644
--- a/drivers/acpi/acpi_apd.c
+++ b/drivers/acpi/acpi_apd.c
@@ -193,6 +193,11 @@ static const struct apd_device_desc leca_i2c_desc = {
.fixed_clk_rate = 250 * HZ_PER_MHZ,
};
+static const struct apd_device_desc hjmc_i2c_desc = {
+ .setup = acpi_apd_setup,
+ .fixed_clk_rate = 200 * HZ_PER_MHZ,
+};
+
#endif /* CONFIG_ARM64 */
#endif
@@ -263,6 +268,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
{ "HISI02A2", APD_ADDR(hip08_i2c_desc) },
{ "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) },
{ "HISI0173", APD_ADDR(hip08_spi_desc) },
+ { "HJMC3001", APD_ADDR(hjmc_i2c_desc) },
{ "LECA0002", APD_ADDR(leca_spi_desc) },
{ "LECA0003", APD_ADDR(leca_i2c_desc) },
{ "NXP0001", APD_ADDR(nxp_i2c_desc) },
--
2.55.0