* [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
` (2 more replies)
0 siblings, 3 replies; 5+ 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] 5+ 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 12:53 ` [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523 Felix Fietkau
2022-06-15 15:31 ` [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Bjorn Helgaas
2 siblings, 0 replies; 5+ 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] 5+ messages in thread
* [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523
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 12:53 ` Felix Fietkau
2022-06-15 16:54 ` Matthias Brugger
2022-06-15 15:31 ` [PATCH RESEND v10 1/3] dt-bindings: PCI: Add support for Airoha EN7532 Bjorn Helgaas
2 siblings, 1 reply; 5+ messages in thread
From: Felix Fietkau @ 2022-06-15 12:53 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Matthias Brugger
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
This uses the MediaTek MT7622 PCIe driver, since the PCIe IP block is nearly
identical to the one in MT7622
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
arch/arm/boot/dts/en7523-evb.dts | 8 +++++
arch/arm/boot/dts/en7523.dtsi | 58 ++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git a/arch/arm/boot/dts/en7523-evb.dts b/arch/arm/boot/dts/en7523-evb.dts
index a8d8bb0419a0..f23a25cce119 100644
--- a/arch/arm/boot/dts/en7523-evb.dts
+++ b/arch/arm/boot/dts/en7523-evb.dts
@@ -33,3 +33,11 @@ &gpio0 {
&gpio1 {
status = "okay";
};
+
+&pcie0 {
+ status = "okay";
+};
+
+&pcie1 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi
index 2e705b87b6c1..7f839331a777 100644
--- a/arch/arm/boot/dts/en7523.dtsi
+++ b/arch/arm/boot/dts/en7523.dtsi
@@ -143,4 +143,62 @@ gpio1: gpio@1fbf0270 {
gpio-controller;
#gpio-cells = <2>;
};
+
+ pcie0: pcie@1fa91000 {
+ compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie";
+ device_type = "pci";
+ reg = <0x1fa91000 0x1000>;
+ reg-names = "port0";
+ linux,pci-domain = <0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "pcie_irq";
+ clocks = <&scu EN7523_CLK_PCIE>;
+ clock-names = "sys_ck0";
+ bus-range = <0x00 0xff>;
+ ranges = <0x82000000 0 0x20000000 0x20000000 0 0x8000000>;
+ status = "disabled";
+
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0 0 0 7>;
+ interrupt-map = <0 0 0 1 &pcie_intc0 0>,
+ <0 0 0 2 &pcie_intc0 1>,
+ <0 0 0 3 &pcie_intc0 2>,
+ <0 0 0 4 &pcie_intc0 3>;
+ pcie_intc0: interrupt-controller {
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <1>;
+ };
+ };
+
+ pcie1: pcie@1fa92000 {
+ compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie";
+ device_type = "pci";
+ reg = <0x1fa92000 0x1000>;
+ reg-names = "port1";
+ linux,pci-domain = <1>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "pcie_irq";
+ clocks = <&scu EN7523_CLK_PCIE>;
+ clock-names = "sys_ck1";
+ bus-range = <0x00 0xff>;
+ ranges = <0x82000000 0 0x28000000 0x28000000 0 0x8000000>;
+ status = "disabled";
+
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0 0 0 7>;
+ interrupt-map = <0 0 0 1 &pcie_intc1 0>,
+ <0 0 0 2 &pcie_intc1 1>,
+ <0 0 0 3 &pcie_intc1 2>,
+ <0 0 0 4 &pcie_intc1 3>;
+ pcie_intc1: interrupt-controller {
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <1>;
+ };
+ };
};
--
2.36.1
^ permalink raw reply related [flat|nested] 5+ 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 12:53 ` [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523 Felix Fietkau
@ 2022-06-15 15:31 ` Bjorn Helgaas
2 siblings, 0 replies; 5+ 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] 5+ messages in thread
* Re: [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523
2022-06-15 12:53 ` [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523 Felix Fietkau
@ 2022-06-15 16:54 ` Matthias Brugger
0 siblings, 0 replies; 5+ messages in thread
From: Matthias Brugger @ 2022-06-15 16:54 UTC (permalink / raw)
To: Felix Fietkau, Rob Herring, Krzysztof Kozlowski
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
On 15/06/2022 14:53, Felix Fietkau wrote:
> This uses the MediaTek MT7622 PCIe driver, since the PCIe IP block is nearly
> identical to the one in MT7622
>
> Signed-off-by: Felix Fietkau <nbd@nbd.name>
applied to v5.19-next/dts32
Thanks!
> ---
> arch/arm/boot/dts/en7523-evb.dts | 8 +++++
> arch/arm/boot/dts/en7523.dtsi | 58 ++++++++++++++++++++++++++++++++
> 2 files changed, 66 insertions(+)
>
> diff --git a/arch/arm/boot/dts/en7523-evb.dts b/arch/arm/boot/dts/en7523-evb.dts
> index a8d8bb0419a0..f23a25cce119 100644
> --- a/arch/arm/boot/dts/en7523-evb.dts
> +++ b/arch/arm/boot/dts/en7523-evb.dts
> @@ -33,3 +33,11 @@ &gpio0 {
> &gpio1 {
> status = "okay";
> };
> +
> +&pcie0 {
> + status = "okay";
> +};
> +
> +&pcie1 {
> + status = "okay";
> +};
> diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi
> index 2e705b87b6c1..7f839331a777 100644
> --- a/arch/arm/boot/dts/en7523.dtsi
> +++ b/arch/arm/boot/dts/en7523.dtsi
> @@ -143,4 +143,62 @@ gpio1: gpio@1fbf0270 {
> gpio-controller;
> #gpio-cells = <2>;
> };
> +
> + pcie0: pcie@1fa91000 {
> + compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie";
> + device_type = "pci";
> + reg = <0x1fa91000 0x1000>;
> + reg-names = "port0";
> + linux,pci-domain = <0>;
> + #address-cells = <3>;
> + #size-cells = <2>;
> + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "pcie_irq";
> + clocks = <&scu EN7523_CLK_PCIE>;
> + clock-names = "sys_ck0";
> + bus-range = <0x00 0xff>;
> + ranges = <0x82000000 0 0x20000000 0x20000000 0 0x8000000>;
> + status = "disabled";
> +
> + #interrupt-cells = <1>;
> + interrupt-map-mask = <0 0 0 7>;
> + interrupt-map = <0 0 0 1 &pcie_intc0 0>,
> + <0 0 0 2 &pcie_intc0 1>,
> + <0 0 0 3 &pcie_intc0 2>,
> + <0 0 0 4 &pcie_intc0 3>;
> + pcie_intc0: interrupt-controller {
> + interrupt-controller;
> + #address-cells = <0>;
> + #interrupt-cells = <1>;
> + };
> + };
> +
> + pcie1: pcie@1fa92000 {
> + compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie";
> + device_type = "pci";
> + reg = <0x1fa92000 0x1000>;
> + reg-names = "port1";
> + linux,pci-domain = <1>;
> + #address-cells = <3>;
> + #size-cells = <2>;
> + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "pcie_irq";
> + clocks = <&scu EN7523_CLK_PCIE>;
> + clock-names = "sys_ck1";
> + bus-range = <0x00 0xff>;
> + ranges = <0x82000000 0 0x28000000 0x28000000 0 0x8000000>;
> + status = "disabled";
> +
> + #interrupt-cells = <1>;
> + interrupt-map-mask = <0 0 0 7>;
> + interrupt-map = <0 0 0 1 &pcie_intc1 0>,
> + <0 0 0 2 &pcie_intc1 1>,
> + <0 0 0 3 &pcie_intc1 2>,
> + <0 0 0 4 &pcie_intc1 3>;
> + pcie_intc1: interrupt-controller {
> + interrupt-controller;
> + #address-cells = <0>;
> + #interrupt-cells = <1>;
> + };
> + };
> };
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-06-15 16:54 UTC | newest]
Thread overview: 5+ 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 12:53 ` [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523 Felix Fietkau
2022-06-15 16:54 ` Matthias Brugger
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;
as well as URLs for NNTP newsgroup(s).