Skip to contentSkip to conversation

spidev: add compatible string for MediaTek IoT (Genio) boards

PATCH In review Macpaul Lin 2 participants 3 messages Aug 28, 2023

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

PATCH 1/1 spidev: add compatible string for MediaTek IoT (Genio) boards

Add compatible string for MediaTek IoT (Genio) boards.

---
 drivers/spi/spidev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/spi/spidev.c +2 -0
index d13dc15cc191..9d7952dbbaa6 100644
@@ -714,6 +714,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
 	{ .name = "spi-authenta" },
 	{ .name = "em3581" },
 	{ .name = "si3210" },
+	{ .name = "genio-board" },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
@@ -742,6 +743,7 @@ static const struct of_device_id spidev_dt_ids[] = {
 	{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
 	{ .compatible = "silabs,em3581", .data = &spidev_of_check },
 	{ .compatible = "silabs,si3210", .data = &spidev_of_check },
+	{ .compatible = "mediatek,genio-board", .data = &spidev_of_check },
 	{},
 };
 MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Signature · 1 line
2.18.0
#1 lore raw
Quoted 1 line

Add compatible string for MediaTek IoT (Genio) boards.

This has already be discussed [1] and was naked.

https://lore.kernel.org/lkml/[email protected]/

-michael

Quoted 28 lines
---
 drivers/spi/spidev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/spi/spidev.c +2 -0
index d13dc15cc191..9d7952dbbaa6 100644
@@ -714,6 +714,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
 	{ .name = "spi-authenta" },
 	{ .name = "em3581" },
 	{ .name = "si3210" },
+	{ .name = "genio-board" },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
@@ -742,6 +743,7 @@ static const struct of_device_id spidev_dt_ids[] = {
 	{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
 	{ .compatible = "silabs,em3581", .data = &spidev_of_check },
 	{ .compatible = "silabs,si3210", .data = &spidev_of_check },
+	{ .compatible = "mediatek,genio-board", .data = &spidev_of_check },
 	{},
 };
 MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Signature · 1 line
2.18.0
#2 lore raw
Quoted 5 lines · Michael Walle

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 7 lines
Quoted 1 line

Add compatible string for MediaTek IoT (Genio) boards.

This has already be discussed [1] and was naked.

https://lore.kernel.org/lkml/[email protected]/

-michael

Thanks for the reminding, I'll check previous discussion thread.

Quoted 20 lines
Quoted 20 lines
---
  drivers/spi/spidev.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/spi/spidev.c +1 -0
index d13dc15cc191..9d7952dbbaa6 100644
@@ -714,6 +714,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
  	{ .name = "spi-authenta" },
  	{ .name = "em3581" },
  	{ .name = "si3210" },
+	{ .name = "genio-board" },
  	{},
  };
  MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
@@ -742,6 +743,7 @@ static const struct of_device_id spidev_dt_ids[] = {
  	{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
Quoted 8 lines
Quoted 8 lines
drivers/spi/spidev.c +1 -0
  	{ .compatible = "silabs,em3581", .data = &spidev_of_check },
  	{ .compatible = "silabs,si3210", .data = &spidev_of_check },
+	{ .compatible = "mediatek,genio-board", .data = &spidev_of_check },
  	{},
  };
  MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Signature · 1 line
2.18.0

Regards,
Macpaul Lin