From nobody Thu Apr 9 12:04:50 2026 Received: from mail.cjdns.fr (mail.cjdns.fr [5.135.140.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CCE83C1988; Mon, 9 Mar 2026 13:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.135.140.105 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773062362; cv=none; b=IciLSJRzP5sM9w9G7UDVZHA1zBilmuAlhVgSrCxDJjZQ08T8oBIDROKIIa1IpWYLCjCVdp5IAvzvPToiyopyVrrSDUhRO1ZitmTwJ6IrCZ1M4XJDCrPOvPMZwSp+c6ZS7XNwmellxcz+etYBIoBZiEqnuzkIjq0nYZTNGI7FLQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773062362; c=relaxed/simple; bh=OuVg1o1oE6Dk4NJfoc56g7qoOxUkOmdON33ACGlQ9fU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IwGtn+KCXsIr/Blj7U2RW5OoIZvykj2dnYERs9Qwyu6vUDXcWx14KfUJKKCzx/CZ5Lhj6SmbI/axr2GvnJylCPpM/RQlCmgQMEGV+tAOqMXVlmwIaGUqn1eS6vUy8JFeNQcKf1aMlbGoW+gMPzibozlpAebCh79XhPe62onkgqo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cjdns.fr; spf=none smtp.mailfrom=cjdns.fr; dkim=pass (2048-bit key) header.d=cjdns.fr header.i=@cjdns.fr header.b=j9ecNe94; arc=none smtp.client-ip=5.135.140.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cjdns.fr Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cjdns.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cjdns.fr header.i=@cjdns.fr header.b="j9ecNe94" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 173DE286152; Mon, 9 Mar 2026 14:19:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjdns.fr; s=dkim; t=1773062357; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=AsslNjPsniHPFq7y9ACqeRGOIicsFNpWA+I3qRFhHu8=; b=j9ecNe94U9Em4IEwzKUh0fU8VAQGLclzvHLaHHqfT106fFGiQDskAYkhTzaE1I6qjgyzGB fzHSl3OV+SjCc2QfXwjyk3yMQLg7T39ghqRKxskqHiybQKxgOfaq5qCLdF/Ewkkym92M4i D9RG+xHxpH0Rcbc7ezS0pZE4VKZJpacQjXW291iNDzVEpnLXuikzBcl2FFHwLxgwYFWxMF RphLbS4y7iN4bji5qazjWyDImLHqnPZ1tXdm1UYNaVs6l13v8UoCR5wmGIbMJWqPjr5MfE SDf5XydOSUjXeliTSKntn/ovIe2m9Wdk7LS6oGl7bpbcJ8nEHlAZkjr2ABmwDw== From: Caleb James DeLisle To: linux-mips@vger.kernel.org Cc: naseefkm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, cjd@cjdns.fr, tsbogend@alpha.franken.de, ryder.lee@mediatek.com, jianjun.wang@mediatek.com, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, bhelgaas@google.com, vkoul@kernel.org, neil.armstrong@linaro.org, p.zabel@pengutronix.de, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, nbd@nbd.name, ansuelsmth@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 8/8] mips: dts: Add PCIe to EcoNet EN751221 Date: Mon, 9 Mar 2026 13:18:18 +0000 Message-Id: <20260309131818.74467-9-cjd@cjdns.fr> In-Reply-To: <20260309131818.74467-1-cjd@cjdns.fr> References: <20260309131818.74467-1-cjd@cjdns.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" Add PCIe based on EN7528 PCIe driver, also add two MT76 wifi devices to SmartFiber XP8421-B. Signed-off-by: Caleb James DeLisle --- arch/mips/boot/dts/econet/en751221.dtsi | 114 ++++++++++++++++++ .../econet/en751221_smartfiber_xp8421-b.dts | 21 ++++ arch/mips/econet/Kconfig | 2 + 3 files changed, 137 insertions(+) diff --git a/arch/mips/boot/dts/econet/en751221.dtsi b/arch/mips/boot/dts/e= conet/en751221.dtsi index 2abeef5b744a..72cb65654c34 100644 --- a/arch/mips/boot/dts/econet/en751221.dtsi +++ b/arch/mips/boot/dts/econet/en751221.dtsi @@ -1,6 +1,8 @@ // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /dts-v1/; =20 +#include + / { compatible =3D "econet,en751221"; #address-cells =3D <1>; @@ -30,6 +32,30 @@ cpuintc: interrupt-controller { #interrupt-cells =3D <1>; }; =20 + chip_scu: syscon@1fa20000 { + compatible =3D "econet,en751221-chip-scu", "syscon"; + reg =3D <0x1fa20000 0x388>; + }; + + pcie_phy1: pcie-phy@1fac0000 { + compatible =3D "econet,en751221-pcie-gen2"; + reg =3D <0x1fac0000 0x1000>; + #phy-cells =3D <0>; + }; + + pcie_phy0: pcie-phy@1faf2000 { + compatible =3D "econet,en751221-pcie-gen1"; + reg =3D <0x1faf2000 0x1000>; + #phy-cells =3D <0>; + }; + + scuclk: clock-controller@1fb00000 { + compatible =3D "econet,en751221-scu"; + reg =3D <0x1fb00000 0x970>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + }; + intc: interrupt-controller@1fb40000 { compatible =3D "econet,en751221-intc"; reg =3D <0x1fb40000 0x100>; @@ -41,6 +67,94 @@ intc: interrupt-controller@1fb40000 { econet,shadow-interrupts =3D <7 2>, <8 3>, <13 12>, <30 29>; }; =20 + pciecfg: pciecfg@1fb80000 { + compatible =3D "mediatek,generic-pciecfg", "syscon"; + reg =3D <0x1fb80000 0x1000>; + }; + + pcie0: pcie@1fb81000 { + compatible =3D "econet,en7528-pcie"; + device_type =3D "pci"; + reg =3D <0x1fb81000 0x1000>; + reg-names =3D "port0"; + linux,pci-domain =3D <0>; + #address-cells =3D <3>; + #size-cells =3D <2>; + interrupt-parent =3D <&intc>; + interrupts =3D <23>; + interrupt-names =3D "pcie_irq"; + clocks =3D <&scuclk EN751221_CLK_PCIE>; + clock-names =3D "sys_ck0"; + phys =3D <&pcie_phy0>; + phy-names =3D "pcie-phy0"; + bus-range =3D <0x00 0xff>; + ranges =3D <0x01000000 0 0x00000000 0x1f600000 0 0x00008000>, + <0x82000000 0 0x20000000 0x20000000 0 0x08000000>; + status =3D "disabled"; + + #interrupt-cells =3D <1>; + interrupt-map-mask =3D <0 0 0 7>; + interrupt-map =3D <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 =3D <0>; + #interrupt-cells =3D <1>; + }; + + slot0: pcie@0,0 { + reg =3D <0x0000 0 0 0 0>; + device_type =3D "pci"; + #address-cells =3D <3>; + #size-cells =3D <2>; + ranges; + }; + }; + + pcie1: pcie@1fb83000 { + compatible =3D "econet,en7528-pcie"; + device_type =3D "pci"; + reg =3D <0x1fb83000 0x1000>; + reg-names =3D "port1"; + linux,pci-domain =3D <1>; + #address-cells =3D <3>; + #size-cells =3D <2>; + interrupt-parent =3D <&intc>; + interrupts =3D <24>; + interrupt-names =3D "pcie_irq"; + clocks =3D <&scuclk EN751221_CLK_PCIE>; + clock-names =3D "sys_ck1"; + phys =3D <&pcie_phy1>; + phy-names =3D "pcie-phy1"; + bus-range =3D <0x00 0xff>; + ranges =3D <0x81000000 0 0x00000000 0x1f608000 0 0x00008000>, + <0x82000000 0 0x28000000 0x28000000 0 0x08000000>; + status =3D "disabled"; + + #interrupt-cells =3D <1>; + interrupt-map-mask =3D <0 0 0 7>; + interrupt-map =3D <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 =3D <0>; + #interrupt-cells =3D <1>; + }; + + slot1: pcie@1,0 { + reg =3D <0x0800 0 0 0 0>; + #address-cells =3D <3>; + #size-cells =3D <2>; + ranges; + }; + }; + uart: serial@1fbf0000 { compatible =3D "ns16550"; reg =3D <0x1fbf0000 0x30>; diff --git a/arch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.dts b/a= rch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.dts index 8223c5bce67f..c633bf73add6 100644 --- a/arch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.dts +++ b/arch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.dts @@ -17,3 +17,24 @@ chosen { linux,usable-memory-range =3D <0x00020000 0x1bfe0000>; }; }; + +&pcie0 { + status =3D "okay"; +}; +&slot0 { + wifi@0,0 { + /* MT7612E */ + compatible =3D "mediatek,mt76"; + reg =3D <0x0000 0 0 0 0>; + }; +}; +&pcie1 { + status =3D "okay"; +}; +&slot1 { + wifi@0,0 { + /* MT7592 */ + compatible =3D "mediatek,mt76"; + reg =3D <0x0000 0 0 0 0>; + }; +}; diff --git a/arch/mips/econet/Kconfig b/arch/mips/econet/Kconfig index fd69884cc9a8..b37b9d25d5a4 100644 --- a/arch/mips/econet/Kconfig +++ b/arch/mips/econet/Kconfig @@ -13,7 +13,9 @@ choice bool "EN751221 family" select COMMON_CLK select ECONET_EN751221_INTC + select HAVE_PCI select IRQ_MIPS_CPU + select PCI_DRIVERS_GENERIC select SMP select SMP_UP select SYS_SUPPORTS_SMP --=20 2.39.5