Skip to contentSkip to conversation

spi: dw: Add ACPI ID for the Sophgo SG2044 SoC SPI

PATCH In review Inochi Amaoto 2 participants 3 messages Mar 4, 2025 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: dw: Add ACPI ID for the Sophgo SG2044 SoC SPI

The Sophgo SG2044 SoC can enumerated its SPI device via ACPI. Add ACPI ID for it.

---
 drivers/spi/spi-dw-mmio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/spi/spi-dw-mmio.c +1 -0
index f0f576fac77a..70fdc4b6de9e 100644
@@ -426,6 +426,7 @@ MODULE_DEVICE_TABLE(of, dw_spi_mmio_of_match);
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id dw_spi_mmio_acpi_match[] = {
 	{"HISI0173", (kernel_ulong_t)dw_spi_pssi_init},
+	{"SOPHO004", (kernel_ulong_t)dw_spi_pssi_init},
 	{},
 };
 MODULE_DEVICE_TABLE(acpi, dw_spi_mmio_acpi_match);
Signature · 1 line
2.48.1
#1 lore raw
Quoted 23 lines · Inochi Amaoto

The Sophgo SG2044 SoC can enumerated its SPI device via ACPI. Add ACPI ID for it.

---
 drivers/spi/spi-dw-mmio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/spi/spi-dw-mmio.c +1 -0
index f0f576fac77a..70fdc4b6de9e 100644
@@ -426,6 +426,7 @@ MODULE_DEVICE_TABLE(of, dw_spi_mmio_of_match);
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id dw_spi_mmio_acpi_match[] = {
 	{"HISI0173", (kernel_ulong_t)dw_spi_pssi_init},
+	{"SOPHO004", (kernel_ulong_t)dw_spi_pssi_init},
 	{},
 };
 MODULE_DEVICE_TABLE(acpi, dw_spi_mmio_acpi_match);
Signature · 1 line
2.48.1

Drop this patch for now as the ACPI id is not registed.

Regards,
Inochi

#2 lore raw
Quoted 3 lines · Inochi Amaoto
Quoted 2 lines · Inochi Amaoto

The Sophgo SG2044 SoC can enumerated its SPI device via ACPI. Add ACPI ID for it.

...

Quoted 7 lines

drivers/spi/spi-dw-mmio.c MODULE_DEVICE_TABLE(of, dw_spi_mmio_of_match); · line 431

Quoted 5 lines

static const struct acpi_device_id dw_spi_mmio_acpi_match[] = {

drivers/spi/spi-dw-mmio.c +1 -0
 	{"HISI0173", (kernel_ulong_t)dw_spi_pssi_init},
+	{"SOPHO004", (kernel_ulong_t)dw_spi_pssi_init},
 	{},
 };

Drop this patch for now as the ACPI id is not registed.

Right, more details are in another thread:
https://lore.kernel.org/r/[email protected]

And here is a formal NAK from me.

Thanks, Inochi, to take this into account!

Signature · 2 lines
With Best Regards,
Andy Shevchenko