Skip to contentSkip to conversation

dt-bindings: spi: update bindings for MT8192 SoC

PATCH In review Leilk Liu 3 participants 7 messages Jul 21, 2020 – Jul 22, 2020

Subsystems (3)
lore
Share & tools
lore

Leilk Liu

author
#0 lore raw

PATCH v2 1/2 dt-bindings: spi: update bindings for MT8192 SoC

From: "leilk.liu" <[email protected]>

Add a DT binding documentation for the MT8192 soc.

---
 Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/spi/spi-mt65xx.txt +1 -0
index 3a8079eb18c8..9e43721fa7d6 100644
@@ -11,6 +11,7 @@ Required properties:
     - mediatek,mt8135-spi: for mt8135 platforms
     - mediatek,mt8173-spi: for mt8173 platforms
     - mediatek,mt8183-spi: for mt8183 platforms
+    - "mediatek,mt8192-spi", "mediatek,mt6765-spi": for mt8192 platforms
     - "mediatek,mt8516-spi", "mediatek,mt2712-spi": for mt8516 platforms
 
 - #address-cells: should be 1.
Signature · 5 lines
2.18.0
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
author
#1 lore raw

PATCH v2 2/2 spi: mediatek: add spi support for mt8192 IC

From: "leilk.liu" <[email protected]>

This patch add spi support for mt8192 IC.

---
 drivers/spi/spi-mt65xx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/spi/spi-mt65xx.c +3 -0
index 6783e12c40c2..3d0d69fe0c69 100644
@@ -170,6 +170,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
 	{ .compatible = "mediatek,mt8183-spi",
 		.data = (void *)&mt8183_compat,
 	},
+	{ .compatible = "mediatek,mt8192-spi",
+		.data = (void *)&mt6765_compat,
+	},
 	{}
 };
 MODULE_DEVICE_TABLE(of, mtk_spi_of_match);
Signature · 5 lines
2.18.0
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
maintainer
#2 lore raw

Re: [PATCH v2 2/2] spi: mediatek: add spi support for mt8192 IC

Quoted 14 lines · Leilk Liu

From: "leilk.liu" <[email protected]>

This patch add spi support for mt8192 IC.

---
  drivers/spi/spi-mt65xx.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/spi/spi-mt65xx.c +0 -0
index 6783e12c40c2..3d0d69fe0c69 100644

drivers/spi/spi-mt65xx.c static const struct of_device_id mtk_spi_of_match[] = { · line 175

Quoted 6 lines
drivers/spi/spi-mt65xx.c +3 -0
@@ -170,6 +170,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
  	{ .compatible = "mediatek,mt8183-spi",
  		.data = (void *)&mt8183_compat,
  	},
+	{ .compatible = "mediatek,mt8192-spi",
+		.data = (void *)&mt6765_compat,
+	},

That's not needed. We will use the fallback compatible which is "mediatek,mt6765-spi" which will take the correct DT data. If in the future we realize that mt8192 has a difference in the HW we can add the compatible. Otherwise with the binding description we should be fine

Quoted 4 lines
drivers/spi/spi-mt65xx.c +0 -0
  	{}
  };
  MODULE_DEVICE_TABLE(of, mtk_spi_of_match);
author
#3 lore raw

Re: [PATCH v2 2/2] spi: mediatek: add spi support for mt8192 IC

Quoted 11 lines · Matthias Brugger
Quoted 9 lines · Leilk Liu

From: "leilk.liu" <[email protected]>

This patch add spi support for mt8192 IC.

---
  drivers/spi/spi-mt65xx.c | 3 +++
  1 file changed, 3 insertions(+)
Quoted 17 lines

drivers/spi/spi-mt65xx.c static const struct of_device_id mtk_spi_of_match[] = { · line 175

Quoted 11 lines
drivers/spi/spi-mt65xx.c +3 -0
index 6783e12c40c2..3d0d69fe0c69 100644
@@ -170,6 +170,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
  	{ .compatible = "mediatek,mt8183-spi",
  		.data = (void *)&mt8183_compat,
  	},
+	{ .compatible = "mediatek,mt8192-spi",
+		.data = (void *)&mt6765_compat,
+	},

That's not needed. We will use the fallback compatible which is "mediatek,mt6765-spi" which will take the correct DT data. If in the future we realize that mt8192 has a difference in the HW we can add the compatible. Otherwise with the binding description we should be fine

So you mean that only the following binding patch is needed? [PATCH v2 1/2] dt-bindings: spi: update bindings for MT8192 SoC

Quoted 4 lines

drivers/spi/spi-mt65xx.c static const struct of_device_id mtk_spi_of_match[] = { · line 178

Quoted 4 lines
drivers/spi/spi-mt65xx.c +0 -0
  	{}
  };
  MODULE_DEVICE_TABLE(of, mtk_spi_of_match);

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer
#4 lore raw

Re: [PATCH v2 2/2] spi: mediatek: add spi support for mt8192 IC

Quoted 29 lines · lei liu
Quoted 11 lines · Matthias Brugger
Quoted 9 lines · Leilk Liu

From: "leilk.liu" <[email protected]>

This patch add spi support for mt8192 IC.

---
   drivers/spi/spi-mt65xx.c | 3 +++
   1 file changed, 3 insertions(+)
Quoted 17 lines

drivers/spi/spi-mt65xx.c static const struct of_device_id mtk_spi_of_match[] = { · line 175

Quoted 11 lines
drivers/spi/spi-mt65xx.c +3 -0
index 6783e12c40c2..3d0d69fe0c69 100644
@@ -170,6 +170,9 @@ static const struct of_device_id mtk_spi_of_match[] = {
   	{ .compatible = "mediatek,mt8183-spi",
   		.data = (void *)&mt8183_compat,
   	},
+	{ .compatible = "mediatek,mt8192-spi",
+		.data = (void *)&mt6765_compat,
+	},

That's not needed. We will use the fallback compatible which is "mediatek,mt6765-spi" which will take the correct DT data. If in the future we realize that mt8192 has a difference in the HW we can add the compatible. Otherwise with the binding description we should be fine

Quoted 3 lines

So you mean that only the following binding patch is needed? [PATCH v2 1/2] dt-bindings: spi: update bindings for MT8192 SoC

Yes, exactly.

Regards,
Matthias

maintainer Reviewed-by on v2 1/2
#5 lore raw
In reply to Leilk Liu
Quoted 5 lines · Leilk Liu

From: "leilk.liu" <[email protected]>

Add a DT binding documentation for the MT8192 soc.

Quoted 17 lines
---
  Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/spi/spi-mt65xx.txt +1 -0
index 3a8079eb18c8..9e43721fa7d6 100644
@@ -11,6 +11,7 @@ Required properties:
      - mediatek,mt8135-spi: for mt8135 platforms
      - mediatek,mt8173-spi: for mt8173 platforms
      - mediatek,mt8183-spi: for mt8183 platforms
+    - "mediatek,mt8192-spi", "mediatek,mt6765-spi": for mt8192 platforms
      - "mediatek,mt8516-spi", "mediatek,mt2712-spi": for mt8516 platforms
 
  - #address-cells: should be 1.
maintainer
#6 lore raw
In reply to Leilk Liu
Quoted 1 line · Leilk Liu

Add a DT binding documentation for the MT8192 soc.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/2] spi: update bindings for MT8192 SoC

      commit: 30962fe33ab5ed4bbd78c12f4b9e25a85c3e8d0b
[2/2] spi: mediatek: add spi support for mt8192 IC
      commit: 8cf125c403f4e0c7c7b78f34bbf9d7a7c55c1ff8

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark