devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981
@ 2024-07-27 11:48 Rafał Miłecki
  2024-07-27 11:48 ` [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers Rafał Miłecki
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Rafał Miłecki @ 2024-07-27 11:48 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Leilk Liu, linux-spi, devicetree, linux-arm-kernel,
	linux-mediatek, John Crispin, Daniel Golle,
	Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

MT7981 has SPI controllers based on IPM design

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml b/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml
index b6249880c3f9..e1f5bfa4433c 100644
--- a/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml
+++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml
@@ -33,6 +33,7 @@ properties:
           - const: mediatek,mt6765-spi
       - items:
           - enum:
+              - mediatek,mt7981-spi-ipm
               - mediatek,mt7986-spi-ipm
               - mediatek,mt8188-spi-ipm
           - const: mediatek,spi-ipm
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers
  2024-07-27 11:48 [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Rafał Miłecki
@ 2024-07-27 11:48 ` Rafał Miłecki
  2024-07-30  9:11   ` AngeloGioacchino Del Regno
  2024-07-28 10:31 ` [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Rafał Miłecki @ 2024-07-27 11:48 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Leilk Liu, linux-spi, devicetree, linux-arm-kernel,
	linux-mediatek, John Crispin, Daniel Golle,
	Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

MT7981 (Filogic 820) has three on-SoC SPI controllers.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 42 +++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 64aeeb24efac..b096009ef99c 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -109,6 +109,48 @@ i2c@11007000 {
 			status = "disabled";
 		};
 
+		spi@11009000 {
+			compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm";
+			reg = <0 0x11009000 0 0x1000>;
+			interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&topckgen CLK_TOP_CB_M_D2>,
+				 <&topckgen CLK_TOP_SPI_SEL>,
+				 <&infracfg CLK_INFRA_SPI2_CK>,
+				 <&infracfg CLK_INFRA_SPI2_HCK_CK>;
+			clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		spi@1100a000 {
+			compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm";
+			reg = <0 0x1100a000 0 0x1000>;
+			interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&topckgen CLK_TOP_CB_M_D2>,
+				 <&topckgen CLK_TOP_SPI_SEL>,
+				 <&infracfg CLK_INFRA_SPI0_CK>,
+				 <&infracfg CLK_INFRA_SPI0_HCK_CK>;
+			clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		spi@1100b000 {
+			compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm";
+			reg = <0 0x1100b000 0 0x1000>;
+			interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&topckgen CLK_TOP_CB_M_D2>,
+				 <&topckgen CLK_TOP_SPI_SEL>,
+				 <&infracfg CLK_INFRA_SPI1_CK>,
+				 <&infracfg CLK_INFRA_SPI1_HCK_CK>;
+			clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		pio: pinctrl@11d00000 {
 			compatible = "mediatek,mt7981-pinctrl";
 			reg = <0 0x11d00000 0 0x1000>,
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981
  2024-07-27 11:48 [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Rafał Miłecki
  2024-07-27 11:48 ` [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers Rafał Miłecki
@ 2024-07-28 10:31 ` Krzysztof Kozlowski
  2024-07-29 15:40 ` (subset) " Mark Brown
  2024-08-05 13:09 ` AngeloGioacchino Del Regno
  3 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-28 10:31 UTC (permalink / raw)
  To: Rafał Miłecki, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno
  Cc: Leilk Liu, linux-spi, devicetree, linux-arm-kernel,
	linux-mediatek, John Crispin, Daniel Golle,
	Rafał Miłecki

On 27/07/2024 13:48, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> MT7981 has SPI controllers based on IPM design
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (subset) [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981
  2024-07-27 11:48 [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Rafał Miłecki
  2024-07-27 11:48 ` [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers Rafał Miłecki
  2024-07-28 10:31 ` [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Krzysztof Kozlowski
@ 2024-07-29 15:40 ` Mark Brown
  2024-08-05 13:09 ` AngeloGioacchino Del Regno
  3 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2024-07-29 15:40 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Rafał Miłecki
  Cc: Leilk Liu, linux-spi, devicetree, linux-arm-kernel,
	linux-mediatek, John Crispin, Daniel Golle,
	Rafał Miłecki

On Sat, 27 Jul 2024 13:48:27 +0200, Rafał Miłecki wrote:
> MT7981 has SPI controllers based on IPM design
> 
> 

Applied to

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

Thanks!

[1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981
      commit: 158678bea637020dd6fc521536c5b07701447777

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers
  2024-07-27 11:48 ` [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers Rafał Miłecki
@ 2024-07-30  9:11   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-07-30  9:11 UTC (permalink / raw)
  To: Rafał Miłecki, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger
  Cc: Leilk Liu, linux-spi, devicetree, linux-arm-kernel,
	linux-mediatek, John Crispin, Daniel Golle,
	Rafał Miłecki

Il 27/07/24 13:48, Rafał Miłecki ha scritto:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> MT7981 (Filogic 820) has three on-SoC SPI controllers.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (subset) [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981
  2024-07-27 11:48 [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Rafał Miłecki
                   ` (2 preceding siblings ...)
  2024-07-29 15:40 ` (subset) " Mark Brown
@ 2024-08-05 13:09 ` AngeloGioacchino Del Regno
  3 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-08-05 13:09 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, Rafał Miłecki
  Cc: Leilk Liu, linux-spi, devicetree, linux-arm-kernel,
	linux-mediatek, John Crispin, Daniel Golle,
	Rafał Miłecki

On Sat, 27 Jul 2024 13:48:27 +0200, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> MT7981 has SPI controllers based on IPM design
> 
> 

Applied to v6.11-next/dts64, thanks!

[2/2] arm64: dts: mediatek: mt7981: add SPI controllers
      commit: 64b1cbad62cb11ab25ef87ed71561bad92ab93e2

Cheers,
Angelo



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-05 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-27 11:48 [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Rafał Miłecki
2024-07-27 11:48 ` [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers Rafał Miłecki
2024-07-30  9:11   ` AngeloGioacchino Del Regno
2024-07-28 10:31 ` [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Krzysztof Kozlowski
2024-07-29 15:40 ` (subset) " Mark Brown
2024-08-05 13:09 ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).