From nobody Wed Dec 17 06:05:38 2025 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 56F7B289E31; Wed, 7 May 2025 13:45:31 +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=1746625533; cv=none; b=XVBzD2pgEu7adoul9cReZG7Ywoo70RNnH71RP6t/ZirhxZCUZSjmXxtM9+4Em10fXj83+ssNNA1HEaQ0ZIfJe0CHsI+RyOfgT0FrUwouZEDle/1IuoX1fyK/ISeorWoWeLBo2LjNQb1iZofBcUGAwufTQnfM2BT/rY0eZSDJMlQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746625533; c=relaxed/simple; bh=oX+Ztd25v66Sb5REJQd42xqs/ojNkFh/oLIAFsDAtw0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hTl8RbRdEUhBN1LLtEPRNOvQpvvCh2Q6KtoMKsPWmZM0it8gcuCHv8fuUkFCAtyOkquINuYS3/7dS1RBIiGuMym/Pz/qYF6tSlwiZddCVy4bBH/u23BS3yffJaGbmDimf6EPOfA5X8nCxRflQD4fK6xxNbMDW14PuYCCcdJ2aGs= 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=A1rgmmI/; 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="A1rgmmI/" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EF2D4DCBA1; Wed, 7 May 2025 15:45:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjdns.fr; s=dkim; t=1746625529; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=YUv2jrm/2nVKMFeBecycu6Y/zhH0/c7aL9vxZ/qJMkw=; b=A1rgmmI/lev6kS1xcuFO2Y/SUuTN1eaMucREkY4ZmVHtFZqf+R1zNQNL3sHXtIWiS0kiZY WG0VjWlC/WlIdw9gUDXvV9SwWV2s/2vOIBo4J7PPkunzKp2/LWU83+VVPNCmOTixRHRjd+ pm5lWetPkVfI6mv5F2TFEonFhvIKnGRDF7alO+2dtcpiHCKFtuPSjkuuCPXNWy7wtwQnC0 QL3YM8Gc3NhbQwYKyPFwUhPimq3vot0FUqFXgyP25gSDW+Dj9fjF3FUqoUr2hQXq2sOI58 dHPCjVXy1NE8iwlgBsmPiLZO5Z0IYZbO82rIrs+G3p8GBaVkAs6fG6Xg1nMfqw== From: Caleb James DeLisle To: linux-mips@vger.kernel.org Cc: tglx@linutronix.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, daniel.lezcano@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.larsson@genexis.eu, linux-mediatek@lists.infradead.org, cjd@cjdns.fr Subject: [PATCH v5 6/7] mips: dts: Add EcoNet DTS with EN751221 and SmartFiber XP8421-B board Date: Wed, 7 May 2025 13:44:59 +0000 Message-Id: <20250507134500.390547-7-cjd@cjdns.fr> In-Reply-To: <20250507134500.390547-1-cjd@cjdns.fr> References: <20250507134500.390547-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 DTS files in support of EcoNet platform, including SmartFiber XP8421-B, a low cost commercially available board based on EN751221. Signed-off-by: Caleb James DeLisle --- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/econet/Makefile | 2 + arch/mips/boot/dts/econet/en751221.dtsi | 67 +++++++++++++++++++ .../econet/en751221_smartfiber_xp8421-b.dts | 19 ++++++ arch/mips/econet/Kconfig | 11 +++ 5 files changed, 100 insertions(+) create mode 100644 arch/mips/boot/dts/econet/Makefile create mode 100644 arch/mips/boot/dts/econet/en751221.dtsi create mode 100644 arch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.= dts diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index ff468439a8c4..7375c6ced82b 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 subdir-$(CONFIG_BMIPS_GENERIC) +=3D brcm subdir-$(CONFIG_CAVIUM_OCTEON_SOC) +=3D cavium-octeon +subdir-$(CONFIG_ECONET) +=3D econet subdir-$(CONFIG_EYEQ) +=3D mobileye subdir-$(CONFIG_FIT_IMAGE_FDT_MARDUK) +=3D img subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON) +=3D img diff --git a/arch/mips/boot/dts/econet/Makefile b/arch/mips/boot/dts/econet= /Makefile new file mode 100644 index 000000000000..b467d5624e39 --- /dev/null +++ b/arch/mips/boot/dts/econet/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_DTB_ECONET_SMARTFIBER_XP8421_B) +=3D en751221_smartfiber_xp84= 21-b.dtb diff --git a/arch/mips/boot/dts/econet/en751221.dtsi b/arch/mips/boot/dts/e= conet/en751221.dtsi new file mode 100644 index 000000000000..66197e73d4f0 --- /dev/null +++ b/arch/mips/boot/dts/econet/en751221.dtsi @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/dts-v1/; + +/ { + compatible =3D "econet,en751221"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + hpt_clock: clock { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <200000000>; /* 200 MHz */ + }; + + cpus: cpus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cpu@0 { + device_type =3D "cpu"; + compatible =3D "mips,mips24KEc"; + reg =3D <0>; + }; + }; + + cpuintc: interrupt-controller { + compatible =3D "mti,cpu-interrupt-controller"; + interrupt-controller; + #address-cells =3D <0>; + #interrupt-cells =3D <1>; + }; + + intc: interrupt-controller@1fb40000 { + compatible =3D "econet,en751221-intc"; + reg =3D <0x1fb40000 0x100>; + interrupt-parent =3D <&cpuintc>; + interrupts =3D <2>; + + interrupt-controller; + #interrupt-cells =3D <1>; + econet,shadow-interrupts =3D <7 2>, <8 3>, <13 12>, <30 29>; + }; + + uart: serial@1fbf0000 { + compatible =3D "ns16550"; + reg =3D <0x1fbf0000 0x30>; + reg-io-width =3D <4>; + reg-shift =3D <2>; + interrupt-parent =3D <&intc>; + interrupts =3D <0>; + /* + * Conversion of baud rate to clock frequency requires a + * computation that is not in the ns16550 driver, so this + * uart is fixed at 115200 baud. + */ + clock-frequency =3D <1843200>; + }; + + timer_hpt: timer@1fbf0400 { + compatible =3D "econet,en751221-timer"; + reg =3D <0x1fbf0400 0x100>; + + interrupt-parent =3D <&intc>; + interrupts =3D <30>; + clocks =3D <&hpt_clock>; + }; +}; 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 new file mode 100644 index 000000000000..8223c5bce67f --- /dev/null +++ b/arch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/dts-v1/; + +#include "en751221.dtsi" + +/ { + model =3D "SmartFiber XP8421-B"; + compatible =3D "smartfiber,xp8421-b", "econet,en751221"; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x00000000 0x1c000000>; + }; + + chosen { + stdout-path =3D "/serial@1fbf0000:115200"; + linux,usable-memory-range =3D <0x00020000 0x1bfe0000>; + }; +}; diff --git a/arch/mips/econet/Kconfig b/arch/mips/econet/Kconfig index d03f90f3daa4..fd69884cc9a8 100644 --- a/arch/mips/econet/Kconfig +++ b/arch/mips/econet/Kconfig @@ -32,6 +32,17 @@ choice =20 config DTB_ECONET_NONE bool "None" + + config DTB_ECONET_SMARTFIBER_XP8421_B + bool "EN751221 SmartFiber XP8421-B" + depends on SOC_ECONET_EN751221 + select BUILTIN_DTB + help + The SmartFiber XP8421-B is a device based on the EN751221 SoC. + It has 512MB of memory and 256MB of NAND flash. This kernel + needs only an appended initramfs to boot. It can be loaded + through XMODEM and booted from memory in the bootloader, or + it can be packed in tclinux.trx format and written to flash. endchoice =20 endif --=20 2.39.5