From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795294936; b=Wvm1xqOaGyujcwSYIgyYJcviRKo06HbyQiH2K82E5Iys7qxNV2xFyvofpmCNWpKNFJJG ziB3E9NXW7xS5ydu6y7eYLe0g5hojUjoAe6X2gEHb4hDHBGIRXqCQL2oGsjhkJgQtVNgH vdMOaPdTHqN1RVGg88jPTzWw3X4o+Kbf8KB7GNOvHDsXDENQ6XLPbmWwlgsDiWwcA8kfm YtFji099IknFIw+gX8u+Ff/99N2OB7hZHZyVV4pCoZK3vwaJ5RmrP986VeQRRvw61E0BC SRrcbtfzEUtWOcXlNVGHzWJ6wgCT/G4TZ7oCo/U4s73Fowdg/cKmCwWJyeSLI+fHc9Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294936; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; b=kfY10UFVZzATbLa2M7UbPoXAOBqN6i6uOLyMHaCs8aLMG/JRocUWif7Zq3RnM19ldckU g43nayODVmsl5eO0UKT4nG3vBbqEiNub1YChDbyA3uJlvkxHU8uUxSXv0Mn1+HhdX9LD0 RdziR+d/3mT8J0exb1/gaQMtpWR+k5T8SKWcSbZ+Gcz+n9VtINe7U1Y4aKjoejzs0FYH8 w3xYZaslbF5l1Q5s7f2MFJ7AQj2S2ixgld2eIzNPM1U9OZ7W+PlFy9O0eAb2+5uDDX6oV y4nzamBSzpuAkIGxlBVMb/5D2UIraY7w8zCz5GHWmPU1BCHvXNFVtoJC8ZE0+/FlnRw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MpH2ir5u; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23684606A680; Sat, 21 Nov 2026 21:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MpH2ir5u Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795294936; b=UN9qlA7eXHxJM/uBwppt8gA8Rzv0iBaygxBGaYhoGZryucfa8VIfhmLFKzIzJ0j1s1Cb 9ua+LvD2w76Ldl/RPQHa4CU4RgbxsvZ69IMMwTgwYTidK8OrdLF8AYZ7g0yOAGE7gdcju 2AOEcx5+yc9vVHELSGg+NA5L3fBt/ThWqljXNL9JSYPjw1QRaQT5sVmqsXVFFFO51VFFk aVnWkyHK9n+zEcX9jl7XpLbZM3ONDE4y+K71uqAbYhG0Dt+UVMmvv06yI9zIHC+AGH4PA pe/j3zbBQLoZotvALiGBMMRwHiVCsEPJMGyoMRpCkgmqlLJe2FnLDl8cwSnONB5heNw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294936; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; b=LuGuS/tFPQ+oC9YIqapDUKh5hUM27/lVm3fy9eBFLz2ZkrDwzUHx9tTIiBvhR7L27VzS +C1aYCgmyPqQRH3HthfxeyRg2sQQtB4ZTPq/AqiYEobcoAsnBY+c6s1HRcQl+mhSZRs1M BaswpXD9CCLKJf6ivfA5WZGquOX6O63B+tRYaxw1NkvQbLRsa+j0PniZE9Fwz/Wdlk9tf /hTB6sJHTtjfxtMiP8L0pWv8PD0Cbo1ib6ZR/kTjU11EvL3YmX8TNKxDT2eerGwrl45iT NqDRR2zGXhaFtRsob+D1+/zcsgcBWCXQ1xEIcCZTHZ+RhFykmTkGfTBJD5n6EPsGU3g== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5975B1F000C0; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294935; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=MpH2ir5uLjiDmdXRmd+wxWiBeoBMG7xqf7FgPFLatpxt1MFti4Pue9qdKON+0woBk TjkgDcfe1nsdVk7u5UtBl0fGRY9/grV/JqrGJS+iaSWYYEaofm5PXQSxrnNBb19SM3 WPgLitl1DwGtuem0z1th3dGdhajWv8dbcXc9Bsxf4MSePqXX0o6cqqtnxaKmebMxC/ H3XaHXgydf+ZuhVFRt8TXrJ9eORevGTbH2ZTFIMnORBs8kNGqTnE7ikd6ksnK9p36q CDiQZCE17FkzP/wgR2iT6+Rs3oREENrVagupD1dBANIsh5rT2ZgKVMe8RLsLOhU6la uWVc76TnWQg+w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 083584BDC2; Sat, 21 Nov 2026 21:02:12 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:53 +0300 Subject: [PATCH v8 08/10] ARM: dts: cortina: Add CS7542 SoC and Securifi Almond+ board X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261122-b4-cs75xx-v8-8-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=6235; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=n/Dq4py/0eGRBnmQUzS6IOXN56dx/13Os1x5nNKfay0=; b=FJMs1zTAIx8C/xLzQrhy+uWIqvA4BFIS9TaUsjwnEE37B1gEWGRXIBDmN+VZJb4CFiv2u/MaR /0WSgmM1MGiBMgK2Q7V7IsAIxeoNGX7n2tMccHiJC11dQjZJXW1X2Ir X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky Reply-To: filipp.dunsky@gmail.com Content-Transfer-Encoding: 7bit From: Fil Dunsky Add a minimal description of the Cortina Systems CS7542 SoC: the two Cortex-A9 cores, SCU, GIC, global timer, private timer and watchdog, PL310 L2 cache controller and the four on-chip UARTs. The peripheral clock (APB) runs at 100, 150 or 170 MHz depending on the boot strap pins. Until there is a driver for the global control block that reads the straps, model it as a fixed clock whose rate is provided by the board. The Securifi Almond+ is a touchscreen Wi-Fi router with 512 MiB of DDR3, 512 MiB of NAND flash, a QCA8337 switch, QCA9880 and AR9580 Wi-Fi and an ASM1042 USB 3.0 controller behind the SoC PCIe root ports. For now, describe the memory and the console UART, and reserve the top 64 MiB of RAM which the vendor firmware hands to the packet engine queue manager. Reviewed-by: Linus Walleij Signed-off-by: Fil Dunsky --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/cortina/Makefile | 3 + .../dts/cortina/cs7542-securifi-almondplus.dts | 46 ++++++++ arch/arm/boot/dts/cortina/cs7542.dtsi | 127 +++++++++++++++++++++ 4 files changed, 177 insertions(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 28fba538d..cf4433001 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -12,6 +12,7 @@ subdir-y += broadcom subdir-y += calxeda subdir-y += cirrus subdir-y += cnxt +subdir-y += cortina subdir-y += gemini subdir-y += hisilicon subdir-y += hpe diff --git a/arch/arm/boot/dts/cortina/Makefile b/arch/arm/boot/dts/cortina/Makefile new file mode 100644 index 000000000..93be6c9ae --- /dev/null +++ b/arch/arm/boot/dts/cortina/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_CORTINA_ACCESS) += \ + cs7542-securifi-almondplus.dtb diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts new file mode 100644 index 000000000..e3152fd1d --- /dev/null +++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Device Tree Source for the Securifi Almond+ router + */ + +/dts-v1/; + +#include "cs7542.dtsi" + +/ { + model = "Securifi Almond+"; + compatible = "securifi,almondplus", "cortina,cs7542"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x00000000 0x20000000>; + }; + + reserved-memory { + ranges; + #address-cells = <1>; + #size-cells = <1>; + + /* Reserved for the packet engine queue manager */ + qm-buffer@1c000000 { + reg = <0x1c000000 0x4000000>; + no-map; + }; + }; +}; + +&apb_clk { + clock-frequency = <150000000>; +}; + +&uart0 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cortina/cs7542.dtsi new file mode 100644 index 000000000..29b0b7da8 --- /dev/null +++ b/arch/arm/boot/dts/cortina/cs7542.dtsi @@ -0,0 +1,127 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Device Tree Source for the Cortina Systems CS7542 SoC + */ + +#include + +/ { + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&gic>; + + /* Rate is selected by the boot strap pins, set by the board */ + apb_clk: clock-apb { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-output-names = "apb"; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <0>; + next-level-cache = <&l2>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a9"; + reg = <1>; + enable-method = "cortina,cs7542-smp"; + cpu-release-addr = <0 0xf00000b8>; + next-level-cache = <&l2>; + }; + }; + + soc { + compatible = "simple-bus"; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + uart0: serial@f0070110 { + compatible = "cortina,cs7542-uart"; + reg = <0xf0070110 0x30>; + interrupts = ; + clocks = <&apb_clk>; + + status = "disabled"; + }; + + uart1: serial@f0070140 { + compatible = "cortina,cs7542-uart"; + reg = <0xf0070140 0x30>; + interrupts = ; + clocks = <&apb_clk>; + + status = "disabled"; + }; + + uart2: serial@f0070170 { + compatible = "cortina,cs7542-uart"; + reg = <0xf0070170 0x30>; + interrupts = ; + clocks = <&apb_clk>; + + status = "disabled"; + }; + + uart3: serial@f00701a0 { + compatible = "cortina,cs7542-uart"; + reg = <0xf00701a0 0x30>; + interrupts = ; + clocks = <&apb_clk>; + + status = "disabled"; + }; + + l2: cache-controller@f5010000 { + compatible = "arm,pl310-cache"; + reg = <0xf5010000 0x1000>; + cache-unified; + cache-level = <2>; + arm,shared-override; + arm,tag-latency = <1 1 1>; + arm,data-latency = <1 1 2>; + }; + + scu@f8000000 { + compatible = "arm,cortex-a9-scu"; + reg = <0xf8000000 0x100>; + }; + + timer@f8000200 { + compatible = "arm,cortex-a9-global-timer"; + reg = <0xf8000200 0x20>; + interrupts = ; + clocks = <&apb_clk>; + }; + + timer@f8000600 { + compatible = "arm,cortex-a9-twd-timer"; + reg = <0xf8000600 0x20>; + interrupts = ; + clocks = <&apb_clk>; + }; + + watchdog@f8000620 { + compatible = "arm,cortex-a9-twd-wdt"; + reg = <0xf8000620 0x20>; + interrupts = ; + clocks = <&apb_clk>; + }; + + gic: interrupt-controller@f8001000 { + compatible = "arm,cortex-a9-gic"; + reg = <0xf8001000 0x1000>, + <0xf8000100 0x100>; + #interrupt-cells = <3>; + interrupt-controller; + }; + }; +}; -- 2.53.0