Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532
@ 2022-06-15 12:53 Felix Fietkau
  2022-06-15 12:53 ` [PATCH RESEND v10 2/3] PCI: mediatek: Allow building for ARCH_AIROHA Felix Fietkau
  2022-06-15 15:31 ` [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Bjorn Helgaas
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Fietkau @ 2022-06-15 12:53 UTC (permalink / raw)
  To: Ryder Lee, Jianjun Wang, Bjorn Helgaas, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger
  Cc: John Crispin, Rob Herring, linux-pci, linux-mediatek, devicetree,
	linux-kernel, linux-arm-kernel

From: John Crispin <john@phrozen.org>

EN7532 is an ARM based platform SoC integrating the same PCIe IP as
MT7622, add a binding for it.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 Documentation/devicetree/bindings/pci/mediatek-pcie.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie.txt b/Documentation/devicetree/bindings/pci/mediatek-pcie.txt
index 57ae73462272..684227522267 100644
--- a/Documentation/devicetree/bindings/pci/mediatek-pcie.txt
+++ b/Documentation/devicetree/bindings/pci/mediatek-pcie.txt
@@ -7,6 +7,7 @@ Required properties:
 	"mediatek,mt7622-pcie"
 	"mediatek,mt7623-pcie"
 	"mediatek,mt7629-pcie"
+	"airoha,en7523-pcie"
 - device_type: Must be "pci"
 - reg: Base addresses and lengths of the root ports.
 - reg-names: Names of the above areas to use during resource lookup.
-- 
2.36.1


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

* [PATCH RESEND v10 2/3] PCI: mediatek: Allow building for ARCH_AIROHA
  2022-06-15 12:53 [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Felix Fietkau
@ 2022-06-15 12:53 ` Felix Fietkau
  2022-06-15 15:31 ` [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Bjorn Helgaas
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Fietkau @ 2022-06-15 12:53 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Rob Herring, Krzysztof Wilczyński,
	Bjorn Helgaas, Matthias Brugger
  Cc: Lorenzo Pieralisi, linux-pci, linux-kernel, linux-arm-kernel,
	linux-mediatek

Allow selecting the pcie-mediatek driver if ARCH_AIROHA is set, because the
Airoha EN7523 SoC uses the same controller as MT7622.
The driver itself is not modified. The PCIe controller DT node should use
mediatek,mt7622-pcie after airoha,en7523-pcie.

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/pci/controller/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
index b8d96d38064d..2f6806dc2a20 100644
--- a/drivers/pci/controller/Kconfig
+++ b/drivers/pci/controller/Kconfig
@@ -237,7 +237,7 @@ config PCIE_ROCKCHIP_EP
 
 config PCIE_MEDIATEK
 	tristate "MediaTek PCIe controller"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
+	depends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF
 	depends on PCI_MSI_IRQ_DOMAIN
 	help
-- 
2.36.1


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

* Re: [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532
  2022-06-15 12:53 [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Felix Fietkau
  2022-06-15 12:53 ` [PATCH RESEND v10 2/3] PCI: mediatek: Allow building for ARCH_AIROHA Felix Fietkau
@ 2022-06-15 15:31 ` Bjorn Helgaas
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2022-06-15 15:31 UTC (permalink / raw)
  To: Felix Fietkau
  Cc: Ryder Lee, Jianjun Wang, Bjorn Helgaas, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger, John Crispin, Rob Herring,
	linux-pci, linux-mediatek, devicetree, linux-kernel,
	linux-arm-kernel

On Wed, Jun 15, 2022 at 02:53:33PM +0200, Felix Fietkau wrote:
> From: John Crispin <john@phrozen.org>
> 
> EN7532 is an ARM based platform SoC integrating the same PCIe IP as
> MT7622, add a binding for it.
> 
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: John Crispin <john@phrozen.org>
> Signed-off-by: Felix Fietkau <nbd@nbd.name>

Applied patches 1 & 2 to pci/ctrl/mediatek for v5.20, thanks!

I assume patch 3 for:

  arch/arm/boot/dts/en7523-evb.dts
  arch/arm/boot/dts/en7523.dtsi

needs to go through an ARM tree, right?

> ---
>  Documentation/devicetree/bindings/pci/mediatek-pcie.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie.txt b/Documentation/devicetree/bindings/pci/mediatek-pcie.txt
> index 57ae73462272..684227522267 100644
> --- a/Documentation/devicetree/bindings/pci/mediatek-pcie.txt
> +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie.txt
> @@ -7,6 +7,7 @@ Required properties:
>  	"mediatek,mt7622-pcie"
>  	"mediatek,mt7623-pcie"
>  	"mediatek,mt7629-pcie"
> +	"airoha,en7523-pcie"
>  - device_type: Must be "pci"
>  - reg: Base addresses and lengths of the root ports.
>  - reg-names: Names of the above areas to use during resource lookup.
> -- 
> 2.36.1
> 

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

end of thread, other threads:[~2022-06-15 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15 12:53 [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Felix Fietkau
2022-06-15 12:53 ` [PATCH RESEND v10 2/3] PCI: mediatek: Allow building for ARCH_AIROHA Felix Fietkau
2022-06-15 15:31 ` [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox