From nobody Tue Nov 24 12:34:55 2026 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=1795296961; b=Zaa8NAih/A2jaFPIqJRkH61QxsS73TwHwsfAlhJ2rr1YjNdtT96kUFXX6mdwn9nr+8GV cnXEp8a9bTbtjf1Wt5z5RHCX+7RdwNPOR5IAXULnfFBOQEFL8oNB0BkFEBOrF13lOkuk1 Anu2ejERJZNTSVwB2Qjqx+BzctEuiVb3F4F5RSvp7HWzvn9fTiysH3tU5HvwaV5daW33L rk4HCwKtcMUDZlgbA5MtSDL0+yQVxEvESiWvdgUNaX0z75ySQXh1q2hUxQlMOBr9c+dsz U2WdG6lStqOT+gqqTAAEUt5DfUxV3kaq6qHjCdUK/WZxKmj4QWaOCQ4vwxcAENU7p7A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296961; 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=vxTe7UYstr5zmWrUwGezYJ045qR2VI9dQROuNPPuSTw=; b=mAqU4GXtSVcOMHL+RpcKLs7XQ4oXoNb5KD9PT0pq6hsrlUWBB/HKqR7GO/vtBsVKre/8 ZNH2h2yqUG4U6FPX6DmDSmbp56EBj00TNMzmRcHowQ/RZmLcBQv0JQfNRMs8UoHLNKGyg o/jxYT/F0mxyw4T+CmgEIbS2A3r3p7Q2h2xkwBix5qtyzsop48v2Iuy5wiDpML9zQLtGz WW0Xgdq0WdmpvLNaK40PIZTDqnnhg53UTpmO+X+vHL9sRXpzoN+FPMzFkRyQt2syxlOcJ 3iMTnFd+WCxKVO01BP9TZ7cvPYjKOG6h3IyBpuo8YPpxoX35efLy2AiHQLpz8dgvVYA== 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=WQ1FapKF; 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 30A5F606A320; Sat, 21 Nov 2026 21:36:00 +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=WQ1FapKF 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=1795296960; b=nA4hgaMVXPIbWJ34MNvgKLHmBpaGnHdu8eFGHUFvEf3mCLyfEtW8VEmGG96QfOd4Frnx 1UikhL0oWaArt5RiYKoMcP66yyuvSfoclwD7ykoSQAPyMs2XqE9orgjbCgc53vZbCKjcv xF8WEkMnxEs0njnUP4L4sc0sXEy/Twv9z2Amr7t/ma5j5X3uO2MdotUhLuzk92xJM58mG F5PwEsAxglYk1RA7Fxri4VAQ6DjJ29dDqLmLDLZDpkqBzVDtn7+uOxd7yiHK0CS4bBEwD eFUKoi8swU6OTpcJE5edX5405cS8XCc7nn3ImfxfVeA7fkQLdqBiPCLrW00lO/eFJhg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296960; 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=vxTe7UYstr5zmWrUwGezYJ045qR2VI9dQROuNPPuSTw=; b=rg9SBj+zpNnSXoCYE619SqZYDcNRCP77uPEWCukU/vgvSvS+GKa2kolkLmop1lM1sJ17 n+AHohMBWfhmkM1iNuk44TqB6rPfOd1vXrYbaEqy80cT78xhyotIXGXOFhaB1tjz6PuvT DExUIuS+mB4RNSilVbwaUgOUbEV5pYRkuDuZAekqCxo1xHqz7CdU2HFFcMjyssRn2SoqU dP4X3m74PLM7nR5Sl3h58tQYXBT8ASax4kytpEQoeqCGNCnM85jSlwNycHFjbs8msSZzS 7p/Qn9T28J7Ab74YmzhoSjxrjoAkB2+tX8fBvI/lHYMjeEnj40zXQJXq1pFQ2TYxz5A== 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 EC48A1F000C6; Sat, 21 Nov 2026 21:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296960; bh=vxTe7UYstr5zmWrUwGezYJ045qR2VI9dQROuNPPuSTw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=WQ1FapKFFXkrKoT9Qp7+QbBvdJ3g5dgUP3HmqzDATvEVOajIA6pnch5/OzDzdqRDv ntaf+yTXp6yI0ALbt+Udu/FVklgIQd+LJu+P6FDKm79FiBvwsD3j9jPJhwuR4OcqMB MGG/MzeMa5AcW1zkiQU/42kes4q08Tr1RYmHusHJMCcujLb4i3JcJcXOO8zWNexWGa A6MhsyyaMfWSidAkKB7Gr/FOqIi1atJVEEnIcm9kjomKYftREDCyoeu2qEOS3xWLQI n/7bWrnZVPU+y/u8CFxx2rqig4RK1z/jZpKMX28+8ZETdgU/W6AdGgeryDKOmHxdyg UKQlcfHSs48Wg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 799DE4BDEC; Sat, 21 Nov 2026 21:35:59 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:46 +0300 Subject: [PATCH v9 01/10] dt-bindings: vendor-prefixes: Add Securifi 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-v9-1-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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 , Conor Dooley , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795296958; l=944; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=573roVKzdDYFuCfGNESYptLR9xpcGKVT07rDsXKZwOU=; b=qZV+7PsIoAs6rx65ELMjzNgCkSpGirEaRjILMSTf9jTg3fmA8MHitrZyiUJRwNoSlcJts6u57 6bv24uB4uA5DJUuB9bb28Acp8yK9DTYLEUG4vxLHHIlv95HWdLryKBQ 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: quoted-printable From: Fil Dunsky Securifi Ltd. makes the Almond series of touchscreen Wi-Fi routers. Add a vendor prefix for it. Reviewed-by: Linus Walleij Acked-by: Conor Dooley Signed-off-by: Fil Dunsky --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 5471a06f9..f1f764ddb 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1499,6 +1499,8 @@ patternProperties: description: SDMC Technology Co., Ltd "^seagate,.*": description: Seagate Technology PLC + "^securifi,.*": + description: Securifi Ltd. "^seeed,.*": description: Seeed Technology Co., Ltd "^seirobotics,.*": --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1795296961; b=CaSuyPo1OQWr5bk7Du/Y/p+iXosn54VWOS3RAIOoa9AwYaDD7sEaZyEgy5u/ugl7JWAq fIsP9MaHeLH+QkGPqtuO21pIwZmOMkYCl4A8YciNHjOMgpo8BIjoWdtkrR7TKwrHxZZRx 7cDI/6Hytk4nnIxNOimDx1AMtMeOBtb0Fq6REQ6wUdEVyD0NxMZzA6sPATok6BP8iyn1T zc74aoFeNtsfUXKUpoNlVkHjjKiI2pCrVORCoryRuPVXPEEiYYUnuYf/BgRQXa2HhVKh4 rt6O4wVmuEKlPwJXdyYiHMADsf99pI2jLhRyYnvAElfwHt3YIPCRT5amlaVn66qziZw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296961; 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=Gvf3IdDLDeRNj9nlhALrJ/CcwWCiWPj0Ri5V51Dn7x8=; b=xmQGru2zgI0ZzCC3MmeG4Osv19lLYsh9ye49hx0FL4BQ0s65MUSEx49oie8DXh3lBFEj KZ70CNuoJCXR+wuavC+arWjkpQz/eYw8rc1rj+VpqxA+wFhYdSX+EhnXj6J67yp+h77r8 V8D47BSMYvv8hbt5T0f9wzohSbdCkRi60Ua1eGRxr//zqMB+4lSRzY7hHsE9sKfq8PyLx C2eDgrNiUotcudhBblk7MRosjzwMZsrBC9roVJYoRpso0t3JYWa9YkcwMoxWafOReM5pq 6fiqDhSe6JhxvIYxQxWMk84hHdcSWuvJgNB5PCGq6iSsm3ID0PX2an76AjPYKSJ+9Jg== 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=aYmicm12; arc=fail 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 30B3C606A32A; Sat, 21 Nov 2026 21:36:01 +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=aYmicm12 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=1795296960; b=vwT7gxucorxk5ygBxgULg9b88PCFgZiQRLO3qBAyOS6hg0JauOa3uQcYtsRsI/AN6QfL Y0ZDW/RjOGDJXPIaJ43PpEe0XkPcKmAaKwren190XnlyxH78JbS0Pa4ppiC+SnMcz27db MsBv5zDAOZZY27oFUKAbXKs5tZ05gWdTGXxflsdAgI2samudHWlgPOb82pWInJUvp1On/ 99YZavemtAAxVADgTWsSK7VLJ90Oyfw2lusZEQ2srY/wf0IDTtKBqQMq52B01emHQ4DIj pms+QBNJziVWBP6TyufebScRBwWbULdkZQhnkmXSEjBJQFPM85d5TyY65UKSoiyqaBg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296960; 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=Gvf3IdDLDeRNj9nlhALrJ/CcwWCiWPj0Ri5V51Dn7x8=; b=WdS/UgEclw3l5aiC4gRQNtGbtd+G8xteBE4h1WWs7g8N/9UPRlfOm1rX2fOM5A1zXQ4A RB7lgXsljuQBDY09c71FggJ4YxdQegj/y5IalzwvQywUI3MJIy1eovvrVdsNkXittFamV zLKkD6oXpPxdQYl1TvOC2VpVwHw4HWLjmbR3sbC8q/Nan7wbnZwkvZ77TMJ3NEvJZp8WY cN529TOjfyf5J0S8e8nEFqLj3Xl/nePtTcb9G8XxOwRtPg/VQgZUxazmpaXa4HQ2qBYgG 0eqHM5zaX5pbuO1Sw2PlHacjHWg9/OHgcTkc6Ye/2tEv4YBTGjoM1jxlcdEXEAgHT+Q== 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 12E7E1F000CA; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296960; bh=Gvf3IdDLDeRNj9nlhALrJ/CcwWCiWPj0Ri5V51Dn7x8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=aYmicm12+lYvbdJ0MPJGUjoOaFtO8vhOAiETO9tkP0Yxy7JxWH3g4PU0IHKXMR0Ix qP8/pKqHPrQyolKSLQPf9qCAZ7rQRagmbNfomy5JjPxg15KuW26TRv4h5CpRyXvuDZ UsUYA4X0eu18v8t1A2rbTQiRyL72sPiwrXqQkdreugF1OfBAL35PLOzIWebvGh/vfj CAHmplg99NKK1OXyx/SorQ2R7CnnriLjAsDIiSoyTJvlWTxHgMOgMshlKm3jwR/ftt WVqR1fM0e7u1B1I9nb4aVb0nOnEaU+dJmZubgRynzDIKyVD5PR6EqYnzubpNWJLDsY FcnyzGQM3jnIw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 9415E4BDF1; Sat, 21 Nov 2026 21:35:59 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:47 +0300 Subject: [PATCH v9 02/10] dt-bindings: arm: Add Cortina Systems CS7542 and Securifi Almond+ 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-v9-2-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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 , Conor Dooley , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795296958; l=1646; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=ur5Y90DJUCyqB+ubnyEmmsptLVPvVwYRa4Bevb+7QSg=; b=Z2vBiAMUHknExlzA/PRjJFmk8HT5qsuEPNQ6oXY0lQYko0o1V2Tp+gayf8LFE+n2XmAytUWnf 7O48VkrAPZWB9P1VO8RBe42pYcA5WmS/5shKkb1D2PA4XT7EiifQ01Z 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: quoted-printable From: Fil Dunsky Add the top-level binding for boards built around the Cortina Systems CS7542 ("Goldengate G2") network processor, a dual Cortex-A9 SoC, and the first such board, the Securifi Almond+ touchscreen router. Reviewed-by: Linus Walleij Acked-by: Conor Dooley Signed-off-by: Fil Dunsky --- Documentation/devicetree/bindings/arm/cortina.yaml | 31 ++++++++++++++++++= ++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cortina.yaml b/Documenta= tion/devicetree/bindings/arm/cortina.yaml new file mode 100644 index 000000000..1c04b1781 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/cortina.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/cortina.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina Systems CS75xx platforms + +maintainers: + - Fil Dunsky + +description: + The CS75xx ("Goldengate G2") family are network processors from Cortina + Systems. The CS7542 has two Cortex-A9 cores with an SCU, GIC, private + timers and a PL310 L2 cache controller, a packet processing engine, three + PCIe root ports, a NAND flash controller and low speed peripherals. + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: CS7542 based boards + items: + - enum: + - securifi,almondplus + - const: cortina,cs7542 + +additionalProperties: true + +... --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296963; b=CYJY8eq3XFeg5pq0qaD6OD0jCACtyuE6ObpSL3RCYze8PvtQmYWf9u2qAWi+xd7uXG1V BE3i24TqEnJBNsuU42N+p634ehN/DnOMFJ9LcHo46qSv2ABvQI1doiy1PjPl3GJd25rxq tk5tc5vHsDWT7W9ojmcQYeJ7Ybv3UdF7qiBkk+nxdVV5zlvQoJyhMLeyn/tltN3KgB4VA Uizr4FF1nZRahY0fNZZO+VltCxuzZlVR7KLAW6v4ej1GWG0yMuPuBR35wiFd96Gukyilv a8jK4i6V7B26ex6G7FGWUnPJILdsUlN4WUaqxDpmhXWcjJIEyyqzcSpHoiX/ZJmqcGA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=2CbMbhj1YJKeMqmSmi9IRjYMrfEw9kWn4Z0tl8AznQs=; b=RTHNKolnaBBQ3VwSGDu85bHhzyEhs6zqCU/9Khd5t3nt4zLou5UmUOwxv0dPDnXrXjOz G9poosFhZuAlHZzSWq3SvEnN6lARlukIzgYpTS+R2Q8Sw4j9yuJV01SKb+fryK5N51Dwb zneOaPXElnQUMlO3EPyID3VC8k3Q0EsJHsCSEQvTbJl2dB/596sPC88yyumleMgrEBI5N Iqz71jkT8N3RQzQLmj9DA8420XN6K6gkWMONCv24v1bMGchdaZec913krtdFAadwY+yb9 uWtP6ZvzeQ56II+QXx2h3Kr0/tBD+2FKATU7thS1Mv0pFJ3WSYA04+UQMB1r1kVu/SA== 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="T/VOIttv"; 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 6709D606A696; Sat, 21 Nov 2026 21:36:03 +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=T/VOIttv 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=1795296963; b=uiZCGt9wBguinVMaExFl/aVX6OKk0zrKR7CRmTMbIbEFPzu4vnlCE/gfdAMI9X71ua85 2/BALtiNgjYSwwe4xuogo3f8n8drARJOXh7GW/1aF6SrGvDsmPlqIoUGKftDHtwWgMm9H vj+b2eTMASIeA0YLesHQsSsUB7P6UYKjPQ3ddCOTF1EbHx5yg/8tyXsGeDu+hKDxH068J emyh5RRRz5IAE8qz5xpzupv4iOejL17fac/dVcrh1eABM2+zQYDvD39swEClelFlv+2KN trCLmSJ5pf7hgdSs9nmu5xFKsqtT2UXUYE6O+OmAgV+eSB7QOti0Ze+GWSdjweokhSQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=2CbMbhj1YJKeMqmSmi9IRjYMrfEw9kWn4Z0tl8AznQs=; b=T+g/xkWUaUVXlTf95pa+cVIJSaGPIds0rwnnBcmOknRs+DiE0K+sD8s1RuSkOrbiyHkE +4KYQsB/gGcUCKhUlaJJpNEXyKQ1IMMz9KU3in20C1oi4vk8hp/564vBRAbAzx5hlq+VT pjQZsXEmp7/Y1Uk2BNZfMRRrW8i3M5uZluXrF5NicDX5pCts9O7RRt8YwmfzG4yn3ViI8 nLsymIeoDlRogkY8R8UqLFMWYLBPkVY2E6MW3wPZ0Uf2ZZDhNwnZ755WLVPNfeClUG/SA 4lxmYZduqbFaB1dftPj4m71CDSIYVxVR91a8d9H4oIz6h/UFCoT4pXtUbrKnuuo5HRQ== 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 2DB0A1F000CF; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296963; bh=2CbMbhj1YJKeMqmSmi9IRjYMrfEw9kWn4Z0tl8AznQs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=T/VOIttv0gYaozbnXxiWK8KHwTnMx6VPcrO+J///M09GPY/knguNZRtXBbBb5Y/I7 /5tzmh0nA1rvX9ItV/LDN+37qWf6V3WbHEfrI144GJTV7KRqZhfaMyfTig+HBT4GU1 a6UvHQFvnwudzhf2PUvj0DaLyV+b/RtcuYuMS0RPK/bM5bWB5M/8QbFSIRL4MF/uta ERp2fWBt56ASqlpSs2X2f45ALpW2pbpocr6qTSirpb+M/mubwj3C0MkfUiQJeVvuHx yJOmsA3c/PZHVTLt+gYyTBW7dvXp0hzb9fTmV/+TwF8uh3OesfyzUCD7Yp7os0N1Fm MIEEbWt/d1qxA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id AF1904BDF5; Sat, 21 Nov 2026 21:35:59 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:48 +0300 Subject: [PATCH v9 03/10] dt-bindings: arm: cpus: Add Cortina Systems CS7542 enable method 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-v9-3-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=1316; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=2pJil7R2I4RJ4Qw+FGFzoukNOQ10CC3HjRA0bSlNdco=; b=Sq6SE3O2HKGm6YN5KuSwcD57eTipqmlH8pLho31vj7nWfs5gWIOBEJ83OETuBPSPl2/PIjIYK M+9rVCpx+CyAzxPDXSgldCnOSCiz7nRRJS2dWMHcUyo5ckUcyDh4PpH 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: quoted-printable From: Fil Dunsky On the CS7542 the bootloader parks the secondary Cortex-A9 core in a WFI loop that polls a global software register and jumps to the address found there. Add the "cortina,cs7542-smp" enable method for it and, as with the other release-address based methods, require cpu-release-addr to point at that register. Reviewed-by: Linus Walleij Acked-by: Rob Herring (Arm) Signed-off-by: Fil Dunsky --- Documentation/devicetree/bindings/arm/cpus.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentatio= n/devicetree/bindings/arm/cpus.yaml index 96136b70d..7a394c500 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -269,6 +269,7 @@ properties: - brcm,bcm63138 - brcm,bcm-nsp-smp - brcm,brahma-b15 + - cortina,cs7542-smp - marvell,armada-375-smp - marvell,armada-380-smp - marvell,armada-390-smp @@ -484,6 +485,7 @@ allOf: enable-method: enum: - spin-table + - cortina,cs7542-smp - renesas,r9a06g032-smp required: - enable-method --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296963; b=m9IatOoQ+kP1LAddvUNZiuYPczqY9Prpj13Uek2Bo6Z/3vHavps+HCX1waq2k1JN6fLi FYfOS6MHik/pX89AsnP2zZhDAQfcg7UEigYe2AXE7w9gYxy0g8TBNomOP1EEYJydsPsn+ f163LACnT/SlJdVMtaDXbAk93/wbEsjBmtxbV8LWryDqPuilxxhhlfBpG+2PgH2xWfSWZ xSzM1sc5Yg71Jy+GmBW/d6RPH/SXgoq1r8mXnosufcfHOSA4Fplcu7ANL2Zwc4vQrDfaO HLgLP6jgAqD+OD/QrfjoTIqbYh3mokoPimSq53RHT3+11JcdPLR6pPyS8B+DN3hVhcQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=5yPoSbTCYvIdSzDOXsxGntkkui/i1Du//m4UfG6w1zA=; b=wEOrukeHg5Jc3k0MIkJz34SIcsGKQQ2hHpZ81OW3ZpCJEeUYw/84Z4WHUJO3moymDIYu FzlB9Bd6YVTqsxJl+HrF4l8lvgClpSjhwz07KqhZJ2tn3lBoHQKnecm0PUBFcDvmT0GSY MyotbhvV19Yi9dSUjkkSMF2nlAdUywzTFH8DX4zcfhZlJto5e/rRn71IuXvB42QeAN/Sj 0Dg9x2Prc7obYaIZMQO3V6wIMJftebxr6sl+3CH8Sf8xiLBCvB+QTEbesWDglci9b5cQW YcdIutGCJly2rveXT7iCHLjBaj039jYV3tvD7AK2VqQq/CdNLrZkxg9fynQmQXXEf6A== 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=PjkoeKkX; 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 40763606A690; Sat, 21 Nov 2026 21:36:03 +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=PjkoeKkX 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=1795296962; b=BDPRTal9UisAYc1gDjNb3CWXkzjl8Hs1MFa2/dFoBSM48lOENIkOOX3JzWYXAJQXf/Wx PhGj1uCrmw/+GUeSCzG/pBtU+y2k6MGgzgf3cX6kGhTJeKSBO8KtzIvBpUSr7sY+ZxOsJ lwMOBS1dSZ/b5zURtyKbtV50aFwqKapcMhZJwKAiU2Ke6iyQe2tbqsTfE5cDhyDLLBSlV AorlCx/5GaGhMEuGQvab+dmHqOmbzgL7srNUF4lmxxN5Y68gS6M3F8oCusWNGlNbEQNAZ R3FMFnQfk1ocwPkQVB0g7MEpLGw7KBFSW41VPIfjacajAVN11+P4Twsl143PB7e2QWQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296962; 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=5yPoSbTCYvIdSzDOXsxGntkkui/i1Du//m4UfG6w1zA=; b=EIGL4Mn+/xLph+PHJo1ac7UlVMwnyOW1EYEjzkmeyu2EDvVj8wJ/wK8k1oQD8xsBK4mD GPK8tM+Icq7XcwPtMOO4xfnmF45aPL94Bl3q6wNVvtP2v5zTL5VGA+bVgRX5Y/awg22OV dt2xYcMelqN0kBbMegL/m4KjUbqbGXBHDBwzu5zWn7RAcWQdC45hKrHqrAOQd2KPK5MnR flmQy7zudO///1Yf4pwE+9CCEAXkr4zqVHUlsrZj4yiVyWayozbgLqldKza/qo8tHnT0d VpWRpas3yUyCf+kbatrGp/bnL085hHoHDjNq/BE1zLy6/nnrzRx0XyF1+XdUl7hjSUQ== 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 4A14C1F000D0; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296962; bh=5yPoSbTCYvIdSzDOXsxGntkkui/i1Du//m4UfG6w1zA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=PjkoeKkXmhWSfr72o06rYyUsAQyNowr0kkCrlrvPFB4JdFnEr2uA+29bEFujLZk7F w3LLhXVXVDf5DF7UF0UGeo+RqsCU5M4NYFL7M8cEDJDDiygsb3tPl2l/jduMal2owC u19vi2yL4wO2ZPe5uXPYTE6XVHmsbXd0EgiLX35is8x3KogekwiB329u5WQsov9oyF HZ+JWJd0Yq/XThXofyGSlwFy6t0HNTEa1iRUhy2zCAzQhWvoHA1lJC/cdM9ItX8DMW vWvNYBVhJOz2AriL3qdm2YRBXwNSBvVsoTnSNxk1DZP3otC1VG9pODra9UwmeBOnKX yP37UQIHCVaRQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id CAEFC4BDF9; Sat, 21 Nov 2026 21:35:59 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:49 +0300 Subject: [PATCH v9 04/10] ARM: goldengate: Add support for the CS75xx SoC family 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-v9-4-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=6148; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=nTS5Z74lLExG23tYr5NCIxQN5f9mdU4gDsH+rip8OJo=; b=3CEF3buFG5JwZz8bVn9NEFtNsof3SvVYnH15Dytxqzjfe8dz7aqohSx5jbgCwLAUqLtl4pGAc 8TOmLLMSvG0AYlL4P/0qJP9V7xf6Ir2CkNegErHtiYqMnQbxasmz6lG 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: quoted-printable From: Fil Dunsky The Cortina Systems CS75xx ("Goldengate G2") are network processors with two Cortex-A9 cores, an SCU, GIC, the Cortex-A9 global and private timers and a PL310 L2 cache controller. The family includes at least the CS7522 and the CS7542; the CS7542 is used, among others, in the Securifi Almond+ router. Apart from the vendor this has little in common with the Cortina Systems Gemini (SL3516/CS3516) supported by mach-gemini: Gemini is a single ARMv4 FA526 with Faraday peripherals (FTINTC010, FTTMR010, FTGPIO010, a 16550 UART) built for ARCH_MULTI_V4, while the CS75xx is an ARMv7 MPCore whose UART, GPIO, interrupt controller and NAND controller are different blocks. It therefore gets its own directory, named after the Goldengate codename like in the vendor kernel. The Kconfig symbol, ARCH_CORTINA_ACCESS, covers the whole family and is named after Cortina Access, which last sold these chips and also makes the newer 64-bit parts. The generic DT machine is sufficient for the platform, so only the SMP bring-up needs code: the bootloader parks the secondary core in a WFI loop that polls a global software register, so boot it by writing the physical address of secondary_startup to the register named by the cpu-release-addr property and sending it a wakeup IPI. The CPU is a Cortex-A9 r2p1, so select the errata workarounds that apply to that revision and can be enabled on a multiplatform kernel. The PL310 is r3p1-50rel0 (CACHE_ID 0x410000c7), select the workaround for its erratum 769419 as well. Reviewed-by: Linus Walleij Signed-off-by: Fil Dunsky --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-goldengate/Kconfig | 19 ++++++++++ arch/arm/mach-goldengate/Makefile | 2 ++ arch/arm/mach-goldengate/platsmp.c | 72 ++++++++++++++++++++++++++++++++++= ++++ 5 files changed, 96 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0cc289a71..87ff65256 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -391,6 +391,8 @@ source "arch/arm/mach-footbridge/Kconfig" =20 source "arch/arm/mach-gemini/Kconfig" =20 +source "arch/arm/mach-goldengate/Kconfig" + source "arch/arm/mach-highbank/Kconfig" =20 source "arch/arm/mach-hisi/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 573813ef5..21d7a443c 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -187,6 +187,7 @@ machine-$(CONFIG_ARCH_DOVE) +=3D dove machine-$(CONFIG_ARCH_EXYNOS) +=3D exynos machine-$(CONFIG_ARCH_FOOTBRIDGE) +=3D footbridge machine-$(CONFIG_ARCH_GEMINI) +=3D gemini +machine-$(CONFIG_ARCH_CORTINA_ACCESS) +=3D goldengate machine-$(CONFIG_ARCH_HIGHBANK) +=3D highbank machine-$(CONFIG_ARCH_HISI) +=3D hisi machine-$(CONFIG_ARCH_IXP4XX) +=3D ixp4xx diff --git a/arch/arm/mach-goldengate/Kconfig b/arch/arm/mach-goldengate/Kc= onfig new file mode 100644 index 000000000..302e24841 --- /dev/null +++ b/arch/arm/mach-goldengate/Kconfig @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0-only +config ARCH_CORTINA_ACCESS + bool "Cortina Systems CS75xx (Goldengate G2)" + depends on ARCH_MULTI_V7 + select ARM_ERRATA_754322 + select ARM_ERRATA_764369 if SMP + select ARM_GIC + select ARM_GLOBAL_TIMER + select CACHE_L2X0 + select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK + select HAVE_ARM_SCU if SMP + select HAVE_ARM_TWD if SMP + select PL310_ERRATA_769419 + help + Support for the Cortina Systems CS75xx (Goldengate G2) family of + network processors, such as the CS7542 used in the Securifi + Almond+ router. These SoCs have two Cortex-A9 cores with a PL310 + L2 cache controller, a packet processing engine, PCIe, NAND and + the usual low speed peripherals. diff --git a/arch/arm/mach-goldengate/Makefile b/arch/arm/mach-goldengate/M= akefile new file mode 100644 index 000000000..b839201c9 --- /dev/null +++ b/arch/arm/mach-goldengate/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-$(CONFIG_SMP) +=3D platsmp.o diff --git a/arch/arm/mach-goldengate/platsmp.c b/arch/arm/mach-goldengate/= platsmp.c new file mode 100644 index 000000000..d9285297b --- /dev/null +++ b/arch/arm/mach-goldengate/platsmp.c @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * SMP support for the Cortina Systems CS75xx SoCs + * + * The bootloader parks the secondary core in a WFI loop that polls a + * global software register and jumps to the address found there once it + * becomes non-zero. The register is described by the cpu-release-addr + * property of the secondary CPU node. + */ + +#include +#include +#include +#include +#include +#include + +static int cs75xx_boot_secondary(unsigned int cpu, struct task_struct *idl= e) +{ + struct device_node *np; + void __iomem *release; + u64 addr; + int ret; + + np =3D of_get_cpu_node(cpu, NULL); + if (!np) + return -ENODEV; + + ret =3D of_property_read_u64(np, "cpu-release-addr", &addr); + of_node_put(np); + if (ret) { + pr_err("CPU%u: missing cpu-release-addr\n", cpu); + return ret; + } + + release =3D ioremap(addr, sizeof(u32)); + if (!release) + return -ENOMEM; + + writel(__pa_symbol(secondary_startup), release); + iounmap(release); + + /* The secondary core waits in WFI, wake it up */ + dsb_sev(); + arch_send_wakeup_ipi_mask(cpumask_of(cpu)); + + return 0; +} + +static void __init cs75xx_smp_prepare_cpus(unsigned int max_cpus) +{ + struct device_node *np; + void __iomem *scu_base; + + np =3D of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); + scu_base =3D of_iomap(np, 0); + of_node_put(np); + if (!scu_base) { + pr_err("failed to map SCU\n"); + return; + } + + scu_enable(scu_base); + iounmap(scu_base); +} + +static const struct smp_operations cs75xx_smp_ops __initconst =3D { + .smp_prepare_cpus =3D cs75xx_smp_prepare_cpus, + .smp_boot_secondary =3D cs75xx_boot_secondary, +}; + +CPU_METHOD_OF_DECLARE(cs7542_smp, "cortina,cs7542-smp", &cs75xx_smp_ops); --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296965; b=iBK+4UbzM2Z1Mz/O5Z6b/HQYVrwP9wHmCdUo1tywD/CNTdI9BdotPHoA3KUEsMo7hyMX t3o8eZ+8G4Cs7BNHY6IMuXEhuPbvVFcOfF94a4jjpVuczxofgpzeQl/IUNfXXi6EtTp8t yyEvmrZ/hWfV534lr1PiUeJhwiUD1XtcERAEdTK3HewHnjIiJiuJhDLC+RE7W4E5U/sdK zv2ECxv5gc9V4+Wlkp8zig29S8NbBbryka1y0NxfsOOvGrSJvqxsavg50Rw5waOD1PKYh 4efRVkHYaEZMpQo8sDtkyhIIF2yb8evVKk/DdMEsFy3LX2YXsPs9iomm1iHaAoEqqzA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296965; 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=ViW+J37vlQnKvGYExQxk1bMlBbVAMGgbVTcmrc54d/s=; b=G8lEYvzzsLhYjItXkuo8i/DisnTY7i2KKNN5azeYGZk4C1PUw3V/CaW5WqzD6rnY/UyH IeLBRfI/twmsCsMkW4AjISKzTK8dOni5PGlu05Ih8LFfTYYJvFfpfCgopI0NGWR976Due AadtlkFffj+gpHWDMuBDDxArMvTAyRFMsYKPFXw8hP/upG0oKg2N4oTWsYVJJHmq+WTVV TLlmsdfhoDvxhrpB44HFiZjI/Oi2GpkYfZ33FFVGUoJKM6iYEFAZGS6sJfQmWoL1M+Jk2 Gvmvprbce9vNK6UhfGEkkjpocyVYhkNGtxJEFPsH01dDO7pOMrVjEYZ/iWSzLEjppZg== 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=SUfekZDj; 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 1A3E9606A333; Sat, 21 Nov 2026 21:36:05 +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=SUfekZDj 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=1795296964; b=A3PlgsyBP/nJ9/CtvA4V47WqpWp1kbBq9kZTAxUnMgft4+xH4WZtQKZWQUKdLb/5LBnS rgIp1dvgKu2G9Y9xhnCVtHyUru/hry+Jp6YI+Qj5Qut2fIf46rd8f6WOnQPEugwh9+EWY CUzPiPpHN2JqMbIyNr5qABJwm5tpglYDTGOT73+qK9Jx9qtSeJR3pvzpC1e0Z0BUutoon 55cOih6ov8eejaEXqo8OPYek4JF2yOrPeKEgNpXvFDvu5ERTkfLQcQcVZapNpsfhh0yPc hvbki0tYhOLm9l3EnyoWsEcXIZIr9i6oD+icn9HFKIBAS8T6gnN2kixyQf6OEauuchg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296964; 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=ViW+J37vlQnKvGYExQxk1bMlBbVAMGgbVTcmrc54d/s=; b=WLAkBHEWk6S620TiXjb1mHjidZwaUzQ8wtbOnsNww/JioUiwUw2yUO+6Odv6iZWk9qho uvlYm4+htKFGRq/fidddG9DQOk6hhsiul5yPw032mUc9WS9+w20vb2UIle4Rc6cgSTjb/ oJZ+lBl5Ix178F8iV3Ix7b0bgeZ/YJ83sJvfHMAGTGZAtLMuWQgzk+4EyZ5KNrJFZqvlR a601g2TAEo0xezIzj8GcJyMK6jslm+Vw3nuKnEDxLjPVQEF6eTZnLHzC8octCJlwew/an aIcG0MKeZcl3Hx4qHo/cpShFCNTISuIN3O3cPj3JIaXw9re0FWeKrRbCJ4KyWqgqZVA== 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 54B8F1F000C6; Sat, 21 Nov 2026 21:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296964; bh=ViW+J37vlQnKvGYExQxk1bMlBbVAMGgbVTcmrc54d/s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=SUfekZDjVoFkdDAykqK9ryg1fRmQA+NARHZEGmXuC66dSKOa3G1ffqCAngNwa7hRc Ho+S8F113heJXP0sZzt2qffZNSYj58USBe8KnwAdkWxYVTU6CuWlfRy5rEmemjjbiB CxbIDe4wvqPNk9YJoZmZorxhyRMIAwFouIhiPzc1k5CooEYZbdx5K95AJUya0a/8or W6JjvNKs2hC/cgM068ujv0+fmTjd0suZS5aZ0TwEcIxJOc4R3yWaXPS7Htjhh+C0U/ 5E1qdHlogug0Sn+pWSPEtpnRB+76HoSsaBv83Os5ZB1xa6JxQ9h1vv3XzrDnyXTjdK tpM8kCrVZbjaA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id E5B894BDFD; Sat, 21 Nov 2026 21:35:59 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:50 +0300 Subject: [PATCH v9 05/10] ARM: debug: Add Cortina Systems CS75xx UART0 support 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-v9-5-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=4419; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=XANVvquwZ46csK0xa+Qk9KFcex+6JNnk+DkCsDkUuAQ=; b=8K4WSBVu/HWUYaUqDSkGJLMeYtCLNp84PLPH56fSRK/CWzMoakwL6pz0dmyaj3pDLIOHIkb41 PZcK3i1uvK9ATEEGzMQ6ny12BMHXRPZvJ0E+CKJG1DvlGSSkDQXwShH 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: quoted-printable From: Fil Dunsky Add low-level debug output through UART0 of the Cortina Systems CS75xx SoCs. The UART is mapped at a fixed virtual address by the generic debug_ll_io_init(), so no platform map_io is needed. Reviewed-by: Linus Walleij Signed-off-by: Fil Dunsky --- arch/arm/Kconfig.debug | 16 ++++++++++++++-- arch/arm/include/debug/cs75xx.S | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index abcf14f10..c43fe288b 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -308,6 +308,15 @@ choice Say Y here if you want the debug print routines to direct their output to the second serial port on these devices. =20 + config DEBUG_CS75XX_UART0 + bool "Kernel low-level debugging messages via CS75xx UART0" + depends on ARCH_CORTINA_ACCESS + help + Say Y here if you want the debug print routines to direct + their output to UART0 of Cortina Systems CS75xx SoCs. This + is the console port on the Securifi Almond+. The UART is + expected to be set up by the bootloader. + config DEBUG_DAVINCI_DA8XX_UART1 bool "Kernel low-level debugging on DaVinci DA8XX using UART1" depends on ARCH_DAVINCI_DA8XX @@ -1531,6 +1540,7 @@ config DEBUG_LL_INCLUDE default "debug/vt8500.S" if DEBUG_VT8500_UART0 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 default "debug/bcm63xx.S" if DEBUG_BCM63XX_UART || DEBUG_BCMBCA + default "debug/cs75xx.S" if DEBUG_CS75XX_UART0 default "debug/digicolor.S" if DEBUG_DIGICOLOR_UA0 default "debug/brcmstb.S" if DEBUG_BRCMSTB_UART default "mach/debug-macro.S" @@ -1632,6 +1642,7 @@ config DEBUG_UART_PHYS default 0xe8008000 if DEBUG_R7S72100_SCIF2 || DEBUG_R7S9210_SCIF2 default 0xe8009000 if DEBUG_R7S9210_SCIF4 default 0xf0000000 if DEBUG_DIGICOLOR_UA0 + default 0xf0070110 if DEBUG_CS75XX_UART0 default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE default 0xf1012100 if DEBUG_MVEBU_UART1_ALTERNATE default 0xf7fc9000 if DEBUG_BERLIN_UART @@ -1670,7 +1681,7 @@ config DEBUG_UART_PHYS DEBUG_RMOBILE_SCIFA4 || \ DEBUG_S3C64XX_UART || \ DEBUG_BCM63XX_UART || DEBUG_BCMBCA || DEBUG_ASM9260_UART || \ - DEBUG_DIGICOLOR_UA0 || \ + DEBUG_CS75XX_UART0 || DEBUG_DIGICOLOR_UA0 || \ DEBUG_AT91_UART || DEBUG_STM32_UART || \ DEBUG_STIH41X_ASC2 || DEBUG_STIH41X_SBC_ASC1 || \ DEBUG_STIH418_SBC_ASC0 @@ -1708,6 +1719,7 @@ config DEBUG_UART_VIRT default 0xf7000800 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART2 default 0xf7000c00 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART3 default 0xf7020000 if DEBUG_AT91_SAMA5D2_UART1 + default 0xf7070110 if DEBUG_CS75XX_UART0 default 0xf7fc9000 if DEBUG_BERLIN_UART default 0xf8007000 if DEBUG_HIP04_UART default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9 @@ -1772,7 +1784,7 @@ config DEBUG_UART_VIRT DEBUG_QCOM_UARTDM || \ DEBUG_S3C64XX_UART || \ DEBUG_BCM63XX_UART || DEBUG_BCMBCA || DEBUG_ASM9260_UART || \ - DEBUG_DIGICOLOR_UA0 || \ + DEBUG_CS75XX_UART0 || DEBUG_DIGICOLOR_UA0 || \ DEBUG_AT91_UART || DEBUG_STM32_UART || \ DEBUG_STIH41X_ASC2 || DEBUG_STIH41X_SBC_ASC1 || \ DEBUG_STIH418_SBC_ASC0 diff --git a/arch/arm/include/debug/cs75xx.S b/arch/arm/include/debug/cs75x= x.S new file mode 100644 index 000000000..967821add --- /dev/null +++ b/arch/arm/include/debug/cs75xx.S @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Debugging macro include header for the Cortina Systems CS75xx UART + */ + +#define CS75XX_UART_TXDAT 0x10 +#define CS75XX_UART_INFO 0x18 +#define CS75XX_UART_INFO_TX_FULL (1 << 2) +#define CS75XX_UART_INFO_TX_EMPTY (1 << 3) + + .macro addruart, rp, rv, tmp + ldr \rp, =3DCONFIG_DEBUG_UART_PHYS + ldr \rv, =3DCONFIG_DEBUG_UART_VIRT + .endm + + .macro senduart, rd, rx + ARM_BE8(rev \rd, \rd) + str \rd, [\rx, #CS75XX_UART_TXDAT] + ARM_BE8(rev \rd, \rd) + .endm + + .macro waituartcts, rd, rx + .endm + + .macro waituarttxrdy, rd, rx +1001: ldr \rd, [\rx, #CS75XX_UART_INFO] + ARM_BE8(rev \rd, \rd) + tst \rd, #CS75XX_UART_INFO_TX_FULL + bne 1001b + .endm + + .macro busyuart, rd, rx +1002: ldr \rd, [\rx, #CS75XX_UART_INFO] + ARM_BE8(rev \rd, \rd) + tst \rd, #CS75XX_UART_INFO_TX_EMPTY + beq 1002b + .endm --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296963; b=ZnusIsVs51r0c0E8WxX+vD4JEzPRDzUB300s6Eg6U7HAL392e31gzwYaMyE80jRG2N8/ /FWIvYyaK92FV9uEQmG8TB0H/xdWcOHSa7rS2PryWu/KQIsh0nqM+ZwPUg+IqVGaKnWSX XbYLudHzTx6HprTxOEmezRSlEdwwqp7qaY+Oz8xPE2NTX1/70WWSdIUvXeJp4VxriLmc0 UEnn5bL8+uI14NqUlIN5zShQR5Wgp5/YBhWvkuuLCHHbYSAwjU48zjGBhag0N8tyewiFW i2oO+ee6/8jDx58VrZUeXzTfMXTFLmNHIJy2Ke7NIyomtFqkij9TpTQMHgN/gDvWeuA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=WZVIFiJUDu2/Fg3EPA3lEzUb/a4f/sw98rZcKXqawYM=; b=5R1UwdOIJiobGaJ1X28Zk2D2FgJmKHbpffGFvg2gy+NQ9q/HVCGNZJ1uIEpSadSliR3Q LbJbOcjwwm8qCp92I6oWJIatF/ac3buBFP5Lm3jXmrMF6foSoggi8kuMnIZYBDJYTgIMP EjYSdDGBoWskAgV80ZM1FSik53Rl9W3VjoJykDasNfT9Idswpx6vK13aEtamLY9gQuZ7f xELXolRkDhTx+MZKrWPKde9tXiBFwvd9eRRFeS+oJvcN1KNbYQ0dcQUjXkeuDSOpp+qUT jfImg9C4K1s7Lotp9llZGAPDMaJtT79t9wNc8t2scD2s7tq2LYWUmhwaES9QJuTpJpw== 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=ZGNflnUw; 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 87CA2606A699; Sat, 21 Nov 2026 21:36:03 +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=ZGNflnUw 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=1795296963; b=KOBIIFv/vRVd28m86e57epFb8LmMGdAcq2qehXnXGxUMyBq34P74nObglhghqLpNmWqM RHFbs9CtUNLYLP+Zu2s20CBLv77K5pGr1drAB6mZVCq6+IfrKMG9QU7L1f3WP0zWB0DA6 CmziXyvl4x1ObhMxzopNjq8FtUKxfLc1mfrW1SAnz90Cl+cTHwYO736BOLrMKmG1WRet+ oHp2SOpzgp/iCQe3mTcpIO7KCVh1+FGFIAfUaiD8AqgCtMsXjGvRF9ddQCGwbKcqIwyFZ uvp4jbQFxKNgecVSLh+bLhHxlKbMBR5ImDh1mQQBpwlFSxDteSQX8T8SjkP/pACpj9A== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=WZVIFiJUDu2/Fg3EPA3lEzUb/a4f/sw98rZcKXqawYM=; b=22ij5gobq9TnSf+N3wfgyt2JjqR/SbkXRjzOQbQhZhOgzsTuROmUqxkjfxftHAtVJ1z9 KyUnzm6Zke8GXbUo69bSbtJCMwIxWSs5O3S5960TfXlKhb5VfHlZt4u4p2DJlJD25fNuf CoBS/fnzkYSKNxSzO/GQ/1J2/J00KSXkEO5jatU+nw0FXx2SyGFIFYfBSnc3H3hYR7Y9m xXpDmyHopbDcUmfvPXYAlHXUjplwhbreZNhjauMaK36jbcCB6jXYP0+tBRFpi9+rGRwyL 38JKGeXDmeCu/kFvmN66ATW80CCfn0JMIpGRCTRMCOGungC8eumqfi8j4bWubOtRqLw== 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 590811F000CA; Sat, 21 Nov 2026 21:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296963; bh=WZVIFiJUDu2/Fg3EPA3lEzUb/a4f/sw98rZcKXqawYM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=ZGNflnUwbE6xqmdZE4U7L3r2y8mHRB763TMPyknX8mfV4K3mHhPogkFGY7erJ5RTD jnLiSqTYmXEfz2LfEJtcfKl3k1HUG+MQCY2GrHX8qcX6UbmSRO1EGj0gafVul1Sa2G 8HcISfxkK4gIBhMdM15ytZ08bYSVgSQb/jMSiEyjF4HSufc+bZTMp/pNBjNgWHzGwf TNXYH2WQZafmVaZQU+vpcQ5BmDDDsWYD9N3/RqMy+P9HjxO+R7HVGXZulUfZ76PvLZ xr1W6F+GgdGKfwRmFZR7M9hlPtF8LM3zINJfXyUPGnviRHfTnWnAxA0QdMxq1L3Qpg gKEwJLDDOX83A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 0C2C24BE01; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:51 +0300 Subject: [PATCH v9 06/10] dt-bindings: serial: Add Cortina Systems CS7542 UART 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-v9-6-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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 , Krzysztof Kozlowski , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795296958; l=2007; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=zTU7TdprhBB5oPgA4d7D2ACpTGMQAb+yACsbn1DZcmY=; b=p3aLfZRKQtlY6rQSevp2fIFA7aYp/G3pwWWVe/6fbfXbENMdr6fm0b43mO/YgOZ/xJgpWlEeB gY4+EkbmTicC2klt6J/jJ5kEoqViNTqpIwvAsOg7PBjgjVYX200GzBc 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: quoted-printable From: Fil Dunsky Add the binding for the UART found in the Cortina Systems CS75xx (Goldengate G2) SoCs such as the CS7542. Reviewed-by: Linus Walleij Reviewed-by: Krzysztof Kozlowski Signed-off-by: Fil Dunsky --- .../bindings/serial/cortina,cs7542-uart.yaml | 52 ++++++++++++++++++= ++++ 1 file changed, 52 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/cortina,cs7542-uart.y= aml b/Documentation/devicetree/bindings/serial/cortina,cs7542-uart.yaml new file mode 100644 index 000000000..62f80d722 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/cortina,cs7542-uart.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/cortina,cs7542-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina UART + +maintainers: + - Fil Dunsky + +description: + The UART found in the Cortina Systems CS7542 (Goldengate G2) SoC. It has + transmit and receive FIFOs and a 24-bit baud rate divider running from t= he + peripheral (APB) clock. Other SoCs with the same block, the rest of the + CS75xx family and the Cortina Access parts, are to be added with their o= wn + compatible string and "cortina,cs7542-uart" as the fallback. + +allOf: + - $ref: serial.yaml# + +properties: + compatible: + const: cortina,cs7542-uart + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + serial@f0070110 { + compatible =3D "cortina,cs7542-uart"; + reg =3D <0xf0070110 0x30>; + clocks =3D <&apb_clk>; + interrupts =3D ; + }; --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296964; b=BNT0QyBOh9eqnD7Ywz4PfsCVjl/Lqht6wojyJl4eNrG/eACOyhmUMupehPGPgkwTszw5 SNz0x2vAvwaoXR/IaFfhn3kBi35lVw3ob3VeQYuCNp5k5L+5FdFSy9IxKyLWiQZGaq/14 UHww3wWLI5mLBCrNlOHRuTVsyVYunl3QOhhcL0U/dikrdO2XfxEJ6Mk4VDbhMn3Gt1XAh zgfpo8WND5RWEq1eKuGYkFtRA4mwz6XNPk7dJdom18CWqswWOilJU6+/vAGgy8IoMRyGL BZPe1a4zygeRGCDjyGRSmzypGxCNGOa+dqYpfuKJRl4lBS84nW9uOvnBJ0rw6fdVgEQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296964; 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=Umyfk+9D5LEGgnzvkGwfiEjua+JyXFkM17SYMARh3PI=; b=EAv6RGG5+PwbziidegzQbxwnBLIzg810ajD3MscDdRiXM6+tM2nXDPp/pmouCM+Tt3WB 9kKv4ZgTygRida8vPulUrdVvm/4aGo1z0b2cSd84XW+L7okUNInOiRqYItdvTr0sWIfGs CERDokfe2ipjNaZ+V3V1Trvy37CHPhM9tLbd09mHeq4BECr3yceRubE1xtkUUMlqd3AIe wNLFWD7pmC31Xwvmw4PjK9ZtXI1FctDze6Iw3tksNXTplV81FM8JejfcZfTReMZ1RTSeB uNxO+gROT7BaPv2ZuZk8qUgyS+6g18dKI/H7/IMt9uiJCWjkKfhBNWwpb9fcviqExFg== 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=DrpbEYWC; 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 DB2A760A2601; Sat, 21 Nov 2026 21:36:04 +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=DrpbEYWC 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=1795296964; b=P1GMfjyVjVq36Ah/KICV2L7bfPg5EGVa8pOiEyjabR+Uwm4alacppJxBjla8sQUyrWi0 p/S95xlmSD9zvPA+2AyJJzoV4uKWeBkw1VoJqgHsFJ6Z3O4uH5a9zVXlLM8B8KCANWf+V Er5Gykbtn7c/t7qaIVzBH+q4PMYe8k87Lf+tgybEgA+w/KuojTxMiFEd+ckbPw99elh2w o/2FftLLsa4H0645wkU8zoWO+IoOpuUkg3Aq11pOrQMCV2B/vdkRncSoHbMTmUL96GVTf mciiwTnlYN4LRt95udFVnRQsj46OFM89mwRlBKfD/GUtWwq/fbap1bMYfpxFzdXPn/Q== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296964; 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=Umyfk+9D5LEGgnzvkGwfiEjua+JyXFkM17SYMARh3PI=; b=mS9Abips1XnZBU0dndcjAWPCLM80gfs9OZe8ooxOqBqhr/kzQzspPrS9axJtF46m67Aj f6QBDe/96+Zw9hcqScmsoxZu0Vw5AJYhpUn5LlBxl/MAzbiU0NqzDt41fIs5eofJG17u4 DpmuwgrS+gXk+/qFr+ZADqNOuFbyb3X4Ly9nwRKdHBKlwYQ32qoQEC8K9G1gFWb2DkE1e O/0qTJw8/p/EUsiShEF/CiM+GtwFaaNh83u1aZH/qP1kARTQ8EKBAMRtRJcvvchr4lzlZ yRyV92aqfx+lBFtXRLUw5u5lxDai32FqXnjgU7Z5lZGB++cOnjX+HA7sw8F8DW8GV+A== 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 7A53E1F000D1; Sat, 21 Nov 2026 21:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296964; bh=Umyfk+9D5LEGgnzvkGwfiEjua+JyXFkM17SYMARh3PI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=DrpbEYWCO5+v7wTCiEHiytDhjmFdJDMEjrm+9npQWJBDbxA3bCaSQM7U59BiHlYnI ictLvHXIl82M0IvDao0WmAkRaP8fwUzMmeXMw7niIL55inbqC3w5x1SIMIiCZm1r28 Pr7ci8znvZRi+Fghdb6Gaxk6Uz6S5jNAeq0J6qEa0k4EFhhWSy8EiYD+psvBMdDp7E ZwJQk7FIzeq5T/iwxOrH+wtovU4UWubU16ZoUW3cquyypw4/1/6ZdyMsUBoIuPwkFF Pe4k25q0GFXVQGSnHS61AccquCx6XQvFZtt2s97iGZbg/w70QfJ9Yx3Y4rykiM+lyh LLPrpGRACQDfQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 288FD4BE05; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:52 +0300 Subject: [PATCH v9 07/10] tty: serial: Add Cortina UART driver 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-v9-7-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=22044; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=yrM/5k2daVRBjzB8HAzWKfFuamrI/Q9RGQjL/QJhUB0=; b=2i14Io84W1WoPbKzGwOedW7zXA+4OmOnbIC4fL1HambNXelKYnIEewEySx5vRF6r2p395UmE0 7b3LmEl16iBA/Qe10NpFSf71HOa4n5Lss0ZrIrMbWq3E/OsT50gLpPL 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: quoted-printable From: Fil Dunsky Add a driver for the UART found in Cortina SoCs, starting with the Cortina Systems CS75xx (Goldengate G2) family such as the CS7542. The block has transmit and receive FIFOs with full/empty status, a 24-bit baud rate divider clocked from the peripheral (APB) clock, a receive sampling point register and one interrupt line per port with per-cause enable and write-one-to-clear status registers. The same block, with an additional flow control register and a few more interrupt causes, is used in the Cortina Access CAxxxx SoCs, which were briefly supported by commit b61c8bf4694b ("tty: serial: Add UART driver for Cortina-Access platform") before it was removed again. The driver is therefore named after the vendor rather than one SoC, so that those parts can be added with their own compatible strings. The driver is a rewrite of the vendor driver shipped with the Linux 2.6.36 and 4.9 based vendor kernels, using the current serial core API (uart_port_tx(), port lock helpers) and devm resource management. It supports the system console and earlycon. Hardware flow control is not supported, and neither is SysRq: the UART does not report a break condition. The ports are named ttyCS so that the driver can coexist with the 8250 driver in multiplatform kernels, where the 8250 core registers ttyS0 and up even without any 8250 hardware, and PORT_GENERIC is used rather than allocating a new port type. Signed-off-by: Fil Dunsky --- drivers/tty/serial/Kconfig | 24 ++ drivers/tty/serial/Makefile | 1 + drivers/tty/serial/cortina-uart.c | 613 ++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 638 insertions(+) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 3864cef71..4ad28ce07 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -1359,6 +1359,30 @@ config SERIAL_CONEXANT_DIGICOLOR_CONSOLE If you have enabled the USART serial port on Conexant Digicolor SoCs, you can make it the console by answering Y to this option. =20 +config SERIAL_CORTINA + tristate "Cortina UART support" + depends on ARCH_CORTINA_ACCESS || COMPILE_TEST + depends on OF + select SERIAL_CORE + help + Support for the on-chip UART of Cortina Systems CS75xx + (Goldengate G2) SoCs such as the CS7542. Cortina Access SoCs use + the same UART. The ports are named ttyCS0 to ttyCS3. + + To compile this driver as a module, choose M here: the module + will be called cortina-uart. + +config SERIAL_CORTINA_CONSOLE + bool "Console on Cortina UART" + depends on SERIAL_CORTINA=3Dy + select SERIAL_CORE_CONSOLE + select SERIAL_EARLYCON + help + Say Y here to use a Cortina UART as the system + console. This also enables the early console, which can be + selected with "earlycon" on the kernel command line when the + device tree chosen node has a stdout-path pointing at the UART. + config SERIAL_ST_ASC tristate "ST ASC serial port support" select SERIAL_CORE diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile index d63b126f4..9a354ad8f 100644 --- a/drivers/tty/serial/Makefile +++ b/drivers/tty/serial/Makefile @@ -36,6 +36,7 @@ obj-$(CONFIG_SERIAL_BCM63XX) +=3D bcm63xx_uart.o obj-$(CONFIG_SERIAL_CLPS711X) +=3D clps711x.o obj-$(CONFIG_SERIAL_CPM) +=3D cpm_uart.o obj-$(CONFIG_SERIAL_CONEXANT_DIGICOLOR) +=3D digicolor-usart.o +obj-$(CONFIG_SERIAL_CORTINA) +=3D cortina-uart.o obj-$(CONFIG_SERIAL_DZ) +=3D dz.o obj-$(CONFIG_SERIAL_FSL_LINFLEXUART) +=3D fsl_linflexuart.o obj-$(CONFIG_SERIAL_FSL_LPUART) +=3D fsl_lpuart.o diff --git a/drivers/tty/serial/cortina-uart.c b/drivers/tty/serial/cortina= -uart.c new file mode 100644 index 000000000..397f5f654 --- /dev/null +++ b/drivers/tty/serial/cortina-uart.c @@ -0,0 +1,613 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * UART driver for Cortina SoCs (Cortina Systems CS75xx "Goldengate G2") + * + * Copyright (C) 2026 Fil Dunsky + * + * Based on serial_cortina.c from the Cortina Systems vendor kernel. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define CORTINA_UART_CFG 0x00 +#define CORTINA_UART_CFG_BAUD GENMASK(31, 8) +#define CORTINA_UART_CFG_EN BIT(7) +#define CORTINA_UART_CFG_RX_EN BIT(6) +#define CORTINA_UART_CFG_TX_EN BIT(5) +#define CORTINA_UART_CFG_PARITY_EN BIT(4) +#define CORTINA_UART_CFG_PARITY_EVEN BIT(3) +#define CORTINA_UART_CFG_STOP_2BIT BIT(2) +#define CORTINA_UART_CFG_CHAR GENMASK(1, 0) +#define CORTINA_UART_RX_SAMPLE 0x08 +#define CORTINA_UART_TXDAT 0x10 +#define CORTINA_UART_RXDAT 0x14 +#define CORTINA_UART_RXDAT_VALID BIT(8) +#define CORTINA_UART_RXDAT_DATA GENMASK(7, 0) +#define CORTINA_UART_INFO 0x18 +#define CORTINA_UART_INFO_TX_EMPTY BIT(3) +#define CORTINA_UART_INFO_TX_FULL BIT(2) +#define CORTINA_UART_INFO_RX_EMPTY BIT(1) +#define CORTINA_UART_IE 0x1c +#define CORTINA_UART_INT 0x24 + +/* Interrupt bits, shared by the IE and INT registers */ +#define CORTINA_UART_IRQ_RX_NONEMPTY BIT(6) +#define CORTINA_UART_IRQ_TX_EMPTY BIT(5) +#define CORTINA_UART_IRQ_RX_OVERRUN BIT(3) +#define CORTINA_UART_IRQ_RX_PARITY BIT(2) +#define CORTINA_UART_IRQ_RX_STOP BIT(1) +#define CORTINA_UART_IRQ_ALL GENMASK(6, 0) +#define CORTINA_UART_IRQ_RX_ERR (CORTINA_UART_IRQ_RX_PARITY | \ + CORTINA_UART_IRQ_RX_STOP) + +#define CORTINA_UART_DIV_MIN 16 +#define CORTINA_UART_DIV_MAX FIELD_MAX(CORTINA_UART_CFG_BAUD) + +#define CORTINA_UART_NR_PORTS 4 +#define CORTINA_UART_FIFO_SIZE 16 +#define CORTINA_UART_POLL_TIMEOUT_US 10000 +#define CORTINA_UART_RX_BUDGET 256 + +struct cortina_uart_port { + struct uart_port port; + struct clk *clk; +}; + +static struct cortina_uart_port *cortina_uart_ports[CORTINA_UART_NR_PORTS]; +static DEFINE_MUTEX(cortina_uart_ports_lock); + +static void cortina_uart_ie_update(struct uart_port *port, u32 clear, u32 = set) +{ + u32 ie =3D readl(port->membase + CORTINA_UART_IE); + + writel((ie & ~clear) | set, port->membase + CORTINA_UART_IE); +} + +static void __maybe_unused cortina_uart_putchar(struct uart_port *port, + unsigned char ch) +{ + u64 timeout_us; + u32 info; + + /* Wait for one character to leave the FIFO, which is slow at low rates */ + timeout_us =3D max_t(u64, CORTINA_UART_POLL_TIMEOUT_US, + div_u64((u64)port->frame_time * 2, NSEC_PER_USEC)); + readl_poll_timeout_atomic(port->membase + CORTINA_UART_INFO, info, + !(info & CORTINA_UART_INFO_TX_FULL), 1, + timeout_us); + writel(ch, port->membase + CORTINA_UART_TXDAT); +} + +static unsigned int cortina_uart_tx_empty(struct uart_port *port) +{ + u32 info =3D readl(port->membase + CORTINA_UART_INFO); + + return (info & CORTINA_UART_INFO_TX_EMPTY) ? TIOCSER_TEMT : 0; +} + +/* + * There are no modem control lines, but serial_core calls ->set_mctrl() + * unconditionally. + */ +static void cortina_uart_set_mctrl(struct uart_port *port, unsigned int mc= trl) +{ +} + +static unsigned int cortina_uart_get_mctrl(struct uart_port *port) +{ + return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR; +} + +static void cortina_uart_stop_tx(struct uart_port *port) +{ + cortina_uart_ie_update(port, CORTINA_UART_IRQ_TX_EMPTY, 0); +} + +static void cortina_uart_tx_chars(struct uart_port *port) +{ + u8 ch; + + uart_port_tx(port, ch, + !(readl(port->membase + CORTINA_UART_INFO) & + CORTINA_UART_INFO_TX_FULL), + writel(ch, port->membase + CORTINA_UART_TXDAT)); +} + +static void cortina_uart_start_tx(struct uart_port *port) +{ + /* + * The TX empty interrupt only fires when the FIFO drains, so prime + * the FIFO here. Drop a stale TX empty event first: it would fire + * at once while the FIFO is being filled. + */ + writel(CORTINA_UART_IRQ_TX_EMPTY, port->membase + CORTINA_UART_INT); + cortina_uart_ie_update(port, 0, CORTINA_UART_IRQ_TX_EMPTY); + cortina_uart_tx_chars(port); +} + +static void cortina_uart_stop_rx(struct uart_port *port) +{ + cortina_uart_ie_update(port, CORTINA_UART_IRQ_RX_NONEMPTY, 0); +} + +static void cortina_uart_rx_chars(struct uart_port *port, u32 status) +{ + struct tty_port *tport =3D &port->state->port; + unsigned int budget =3D CORTINA_UART_RX_BUDGET; + u32 data, err; + + if (status & CORTINA_UART_IRQ_RX_OVERRUN) + port->icount.overrun++; + if (status & CORTINA_UART_IRQ_RX_PARITY) + port->icount.parity++; + if (status & CORTINA_UART_IRQ_RX_STOP) + port->icount.frame++; + + /* + * The parity and framing error status is only latched in the interrupt + * register, not per character, so charge it to the first character + * read in this pass. + */ + err =3D status & port->read_status_mask & CORTINA_UART_IRQ_RX_ERR; + + while (budget-- && !(readl(port->membase + CORTINA_UART_INFO) & + CORTINA_UART_INFO_RX_EMPTY)) { + u8 ch, flag =3D TTY_NORMAL; + u32 ch_err =3D err; + + data =3D readl(port->membase + CORTINA_UART_RXDAT); + if (!(data & CORTINA_UART_RXDAT_VALID)) + continue; + + port->icount.rx++; + ch =3D FIELD_GET(CORTINA_UART_RXDAT_DATA, data); + err =3D 0; + + if (port->ignore_status_mask & CORTINA_UART_RXDAT_VALID) + continue; + if (ch_err & port->ignore_status_mask) + continue; + + if (ch_err & CORTINA_UART_IRQ_RX_PARITY) + flag =3D TTY_PARITY; + else if (ch_err & CORTINA_UART_IRQ_RX_STOP) + flag =3D TTY_FRAME; + + tty_insert_flip_char(tport, ch, flag); + } + + /* The characters left in the FIFO were received before the lost ones */ + if (status & CORTINA_UART_IRQ_RX_OVERRUN & + ~port->ignore_status_mask) + tty_insert_flip_char(tport, 0, TTY_OVERRUN); + + tty_flip_buffer_push(tport); +} + +static irqreturn_t cortina_uart_isr(int irq, void *dev_id) +{ + struct uart_port *port =3D dev_id; + u32 status, pending; + + guard(uart_port_lock_irqsave)(port); + + status =3D readl(port->membase + CORTINA_UART_INT); + pending =3D status & readl(port->membase + CORTINA_UART_IE); + if (!pending) + return IRQ_NONE; + + /* + * The RX error bits are not enabled as interrupts. Leave them latched + * until the characters they belong to are read. + */ + if (pending & CORTINA_UART_IRQ_RX_NONEMPTY) + pending |=3D status & (CORTINA_UART_IRQ_RX_OVERRUN | + CORTINA_UART_IRQ_RX_ERR); + writel(pending, port->membase + CORTINA_UART_INT); + + if (pending & CORTINA_UART_IRQ_RX_NONEMPTY) + cortina_uart_rx_chars(port, status); + if (pending & CORTINA_UART_IRQ_TX_EMPTY) + cortina_uart_tx_chars(port); + + return IRQ_HANDLED; +} + +static void cortina_uart_rx_flush(struct uart_port *port) +{ + unsigned int n =3D CORTINA_UART_RX_BUDGET; + + while (n-- && !(readl(port->membase + CORTINA_UART_INFO) & + CORTINA_UART_INFO_RX_EMPTY)) + readl(port->membase + CORTINA_UART_RXDAT); +} + +static int cortina_uart_startup(struct uart_port *port) +{ + u32 cfg; + int ret; + + scoped_guard(uart_port_lock_irqsave, port) { + writel(0, port->membase + CORTINA_UART_IE); + writel(CORTINA_UART_IRQ_ALL, port->membase + CORTINA_UART_INT); + } + + ret =3D request_irq(port->irq, cortina_uart_isr, 0, dev_name(port->dev), + port); + if (ret) + return ret; + + guard(uart_port_lock_irqsave)(port); + + cfg =3D readl(port->membase + CORTINA_UART_CFG); + cfg |=3D CORTINA_UART_CFG_EN | CORTINA_UART_CFG_RX_EN | CORTINA_UART_CFG_= TX_EN; + writel(cfg, port->membase + CORTINA_UART_CFG); + + /* Drop whatever was received while the port was closed */ + cortina_uart_rx_flush(port); + writel(CORTINA_UART_IRQ_ALL, port->membase + CORTINA_UART_INT); + + writel(CORTINA_UART_IRQ_RX_NONEMPTY, port->membase + CORTINA_UART_IE); + + return 0; +} + +static void cortina_uart_shutdown(struct uart_port *port) +{ + scoped_guard(uart_port_lock_irqsave, port) { + writel(0, port->membase + CORTINA_UART_IE); + /* The console only needs the transmitter */ + writel(readl(port->membase + CORTINA_UART_CFG) & + ~CORTINA_UART_CFG_RX_EN, + port->membase + CORTINA_UART_CFG); + } + + free_irq(port->irq, port); +} + +static void cortina_uart_set_termios(struct uart_port *port, + struct ktermios *termios, + const struct ktermios *old) +{ + unsigned int baud, div; + u32 cfg; + + /* No hardware flow control or mark/space parity support */ + termios->c_cflag &=3D ~(CRTSCTS | CMSPAR); + + baud =3D uart_get_baud_rate(port, termios, old, + DIV_ROUND_UP(port->uartclk, CORTINA_UART_DIV_MAX), + port->uartclk / CORTINA_UART_DIV_MIN); + div =3D DIV_ROUND_CLOSEST(port->uartclk, baud); + + cfg =3D FIELD_PREP(CORTINA_UART_CFG_BAUD, div) | CORTINA_UART_CFG_EN | + CORTINA_UART_CFG_RX_EN | CORTINA_UART_CFG_TX_EN; + cfg |=3D FIELD_PREP(CORTINA_UART_CFG_CHAR, + tty_get_char_size(termios->c_cflag) - 5); + if (termios->c_cflag & CSTOPB) + cfg |=3D CORTINA_UART_CFG_STOP_2BIT; + if (termios->c_cflag & PARENB) { + cfg |=3D CORTINA_UART_CFG_PARITY_EN; + if (!(termios->c_cflag & PARODD)) + cfg |=3D CORTINA_UART_CFG_PARITY_EVEN; + } + + guard(uart_port_lock_irqsave)(port); + + port->read_status_mask =3D CORTINA_UART_IRQ_RX_OVERRUN; + if (termios->c_iflag & INPCK) + port->read_status_mask |=3D CORTINA_UART_IRQ_RX_ERR; + + port->ignore_status_mask =3D 0; + if (termios->c_iflag & IGNPAR) + port->ignore_status_mask |=3D CORTINA_UART_IRQ_RX_ERR; + /* Without CREAD everything received is dropped, overruns included */ + if (!(termios->c_cflag & CREAD)) + port->ignore_status_mask |=3D CORTINA_UART_RXDAT_VALID | + CORTINA_UART_IRQ_RX_OVERRUN; + + uart_update_timeout(port, termios->c_cflag, baud); + + writel(cfg, port->membase + CORTINA_UART_CFG); + /* Sample the received bits in the middle of the bit time */ + writel(div / 2, port->membase + CORTINA_UART_RX_SAMPLE); + + if (tty_termios_baud_rate(termios)) + tty_termios_encode_baud_rate(termios, baud, baud); +} + +static const char *cortina_uart_type(struct uart_port *port) +{ + return port->type =3D=3D PORT_GENERIC ? "CORTINA" : NULL; +} + +static void cortina_uart_config_port(struct uart_port *port, int flags) +{ + if (flags & UART_CONFIG_TYPE) + port->type =3D PORT_GENERIC; +} + +static int cortina_uart_verify_port(struct uart_port *port, + struct serial_struct *serinfo) +{ + if (serinfo->type !=3D PORT_UNKNOWN && serinfo->type !=3D PORT_GENERIC) + return -EINVAL; + if (serinfo->irq !=3D port->irq) + return -EINVAL; + + return 0; +} + +#ifdef CONFIG_CONSOLE_POLL +static int cortina_uart_poll_get_char(struct uart_port *port) +{ + u32 data; + + if (readl(port->membase + CORTINA_UART_INFO) & CORTINA_UART_INFO_RX_EMPTY) + return NO_POLL_CHAR; + + data =3D readl(port->membase + CORTINA_UART_RXDAT); + if (!(data & CORTINA_UART_RXDAT_VALID)) + return NO_POLL_CHAR; + + return FIELD_GET(CORTINA_UART_RXDAT_DATA, data); +} + +static void cortina_uart_poll_put_char(struct uart_port *port, unsigned ch= ar c) +{ + cortina_uart_putchar(port, c); +} +#endif + +static const struct uart_ops cortina_uart_ops =3D { + .tx_empty =3D cortina_uart_tx_empty, + .set_mctrl =3D cortina_uart_set_mctrl, + .get_mctrl =3D cortina_uart_get_mctrl, + .stop_tx =3D cortina_uart_stop_tx, + .start_tx =3D cortina_uart_start_tx, + .stop_rx =3D cortina_uart_stop_rx, + .startup =3D cortina_uart_startup, + .shutdown =3D cortina_uart_shutdown, + .set_termios =3D cortina_uart_set_termios, + .type =3D cortina_uart_type, + .config_port =3D cortina_uart_config_port, + .verify_port =3D cortina_uart_verify_port, +#ifdef CONFIG_CONSOLE_POLL + .poll_get_char =3D cortina_uart_poll_get_char, + .poll_put_char =3D cortina_uart_poll_put_char, +#endif +}; + +#ifdef CONFIG_SERIAL_CORTINA_CONSOLE +static void cortina_uart_console_write(struct console *co, const char *s, + unsigned int count) +{ + struct cortina_uart_port *up =3D cortina_uart_ports[co->index]; + struct uart_port *port; + unsigned long flags; + bool locked =3D true; + u64 timeout_us; + u32 ie, info; + + if (!up) + return; + port =3D &up->port; + + if (oops_in_progress) + locked =3D uart_port_trylock_irqsave(port, &flags); + else + uart_port_lock_irqsave(port, &flags); + + ie =3D readl(port->membase + CORTINA_UART_IE); + writel(ie & ~CORTINA_UART_IRQ_TX_EMPTY, port->membase + CORTINA_UART_IE); + + uart_console_write(port, s, count, cortina_uart_putchar); + + /* Wait for the whole FIFO to drain, which is slow at low rates */ + timeout_us =3D max_t(u64, CORTINA_UART_POLL_TIMEOUT_US, + div_u64((u64)port->frame_time * (port->fifosize + 1), + NSEC_PER_USEC)); + readl_poll_timeout_atomic(port->membase + CORTINA_UART_INFO, info, + info & CORTINA_UART_INFO_TX_EMPTY, 1, timeout_us); + writel(ie, port->membase + CORTINA_UART_IE); + + if (locked) + uart_port_unlock_irqrestore(port, flags); +} + +static int cortina_uart_console_setup(struct console *co, char *options) +{ + struct cortina_uart_port *up; + int baud =3D 115200; + int bits =3D 8; + int parity =3D 'n'; + int flow =3D 'n'; + + if (co->index < 0 || co->index >=3D CORTINA_UART_NR_PORTS) + return -ENODEV; + + up =3D cortina_uart_ports[co->index]; + if (!up) + return -ENODEV; + + if (options) + uart_parse_options(options, &baud, &parity, &bits, &flow); + + return uart_set_options(&up->port, co, baud, parity, bits, flow); +} + +static struct uart_driver cortina_uart_driver; + +static struct console cortina_uart_console =3D { + .name =3D "ttyCS", + .write =3D cortina_uart_console_write, + .device =3D uart_console_device, + .setup =3D cortina_uart_console_setup, + .flags =3D CON_PRINTBUFFER, + .index =3D -1, + .data =3D &cortina_uart_driver, +}; + +static void cortina_uart_earlycon_write(struct console *co, const char *s, + unsigned int count) +{ + struct earlycon_device *dev =3D co->data; + + uart_console_write(&dev->port, s, count, cortina_uart_putchar); +} + +static int __init cortina_uart_earlycon_setup(struct earlycon_device *dev, + const char *options) +{ + if (!dev->port.membase) + return -ENODEV; + + dev->con->write =3D cortina_uart_earlycon_write; + + return 0; +} + +OF_EARLYCON_DECLARE(cortina, "cortina,cs7542-uart", cortina_uart_earlycon_= setup); + +#define CORTINA_UART_CONSOLE (&cortina_uart_console) +#else +#define CORTINA_UART_CONSOLE NULL +#endif + +static struct uart_driver cortina_uart_driver =3D { + .owner =3D THIS_MODULE, + .driver_name =3D "cortina-uart", + .dev_name =3D "ttyCS", + .nr =3D CORTINA_UART_NR_PORTS, + .cons =3D CORTINA_UART_CONSOLE, +}; + +static int cortina_uart_probe(struct platform_device *pdev) +{ + struct device *dev =3D &pdev->dev; + struct cortina_uart_port *up; + struct uart_port *port; + struct resource *res; + int id, ret; + + up =3D devm_kzalloc(dev, sizeof(*up), GFP_KERNEL); + if (!up) + return -ENOMEM; + + port =3D &up->port; + + port->membase =3D devm_platform_get_and_ioremap_resource(pdev, 0, &res); + if (IS_ERR(port->membase)) + return PTR_ERR(port->membase); + + ret =3D platform_get_irq(pdev, 0); + if (ret < 0) + return ret; + port->irq =3D ret; + + up->clk =3D devm_clk_get_enabled(dev, NULL); + if (IS_ERR(up->clk)) + return dev_err_probe(dev, PTR_ERR(up->clk), "failed to get clock\n"); + + port->uartclk =3D clk_get_rate(up->clk); + if (port->uartclk < CORTINA_UART_DIV_MIN * 9600) + return dev_err_probe(dev, -EINVAL, "clock rate %u Hz is too low\n", + port->uartclk); + + port->dev =3D dev; + port->mapbase =3D res->start; + port->mapsize =3D resource_size(res); + port->iotype =3D UPIO_MEM32; + port->ops =3D &cortina_uart_ops; + port->fifosize =3D CORTINA_UART_FIFO_SIZE; + port->flags =3D UPF_BOOT_AUTOCONF; + + platform_set_drvdata(pdev, up); + + guard(mutex)(&cortina_uart_ports_lock); + + id =3D of_alias_get_id(dev->of_node, "serial"); + if (id < 0) { + for (id =3D 0; id < CORTINA_UART_NR_PORTS; id++) + if (!cortina_uart_ports[id]) + break; + } + if (id >=3D CORTINA_UART_NR_PORTS) + return dev_err_probe(dev, -EINVAL, "invalid port index %d\n", id); + if (cortina_uart_ports[id]) + return dev_err_probe(dev, -EBUSY, "port %d already in use\n", id); + + port->line =3D id; + cortina_uart_ports[id] =3D up; + + ret =3D uart_add_one_port(&cortina_uart_driver, port); + if (ret) + cortina_uart_ports[id] =3D NULL; + + return ret; +} + +static void cortina_uart_remove(struct platform_device *pdev) +{ + struct cortina_uart_port *up =3D platform_get_drvdata(pdev); + + uart_remove_one_port(&cortina_uart_driver, &up->port); + + guard(mutex)(&cortina_uart_ports_lock); + cortina_uart_ports[up->port.line] =3D NULL; +} + +static const struct of_device_id cortina_uart_of_match[] =3D { + { .compatible =3D "cortina,cs7542-uart" }, + { } +}; +MODULE_DEVICE_TABLE(of, cortina_uart_of_match); + +static struct platform_driver cortina_uart_platform_driver =3D { + .probe =3D cortina_uart_probe, + .remove =3D cortina_uart_remove, + .driver =3D { + .name =3D "cortina-uart", + .of_match_table =3D cortina_uart_of_match, + }, +}; + +static int __init cortina_uart_init(void) +{ + int ret; + + ret =3D uart_register_driver(&cortina_uart_driver); + if (ret) + return ret; + + ret =3D platform_driver_register(&cortina_uart_platform_driver); + if (ret) + uart_unregister_driver(&cortina_uart_driver); + + return ret; +} +module_init(cortina_uart_init); + +static void __exit cortina_uart_exit(void) +{ + platform_driver_unregister(&cortina_uart_platform_driver); + uart_unregister_driver(&cortina_uart_driver); +} +module_exit(cortina_uart_exit); + +MODULE_DESCRIPTION("Cortina UART driver"); +MODULE_LICENSE("GPL"); --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296964; b=B8sqs6cOmkOhO1OOJQ5NXJzlGZNkItnP3bBOimgIxj4nF35QqHO9bLPc0rjucc7h4WeM F1lzZuFB0V386vZREnF3jS3AmKx0fi5aBwrHRXYfwFOjQkz6uZPHWoSpHVXV8tiMDHpih yvDwNTdJ/NDrOilYo+43jh80DwS8V+7a1n9KOoN8o/WOxVy7BZj+e+9JMg80Fm7EeScKA 5MSDmAP/UIKEjxDiQhJrcVl+Uhm/UmxNkizlscqnSC5pX1mU9solTTNF1vHxF6zRY7AEI ejOKNDkCg1R3+vEg9WfAD3Y8lCaPNLOBCviD9440ULCK5bJkDfr6tS8EUCNngL8HcDA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296964; 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=ZXQkGktKDdMgZVtSfM6zzUzhWM5T5f6UtRUja6RkSmJtzypm2JDBC38yAAlCE40k3YeS 7tTaMAbOnoeI3De5uWh3JZ5E88U8KywUW0ncS4JhQIQ2+ws210fB8emRKJyxUfiC/ZYIk +aQMG59DSSgBH6EWys41n48uy9zE8pxsyObR/ZHsJqzYBaDj0ynHJbxHLjsOMkCzszNsw 7n0Q0breIshLD/BvJ/3k4run1neyDNJFTAD8L4XLyCZCSv3/lDWbaT7jE9iX5C6NzA7qb +NZ3pfneAXB+C9Pi/rdvQ5BSdQpEYaFQogJvW2yr50JQua2kZI++7XAoh6qzSN4WJTQ== 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=XoGKvBfO; 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 25AFB606A6A1; Sat, 21 Nov 2026 21:36:04 +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=XoGKvBfO 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=1795296964; b=rSA1WClxzdZQm3CYxjS0KCAJWioK0e69aOYhXhznBxkFu0QQ2UjNuHxTuOd0+n625ed8 Mwdvmpd1JyM7jIJFJlRL1F0USK/qEz1B7SmoCFvuG4Wv9+utcgLexb4BGPAjRolJqFNkr pH+EmRrxDFBMDFz/LluNB3Ac8/SEaene281G0w6NsZJ3A1F876tgkg8chRX+fSnWOKMRG EMmVGycV5OK/FyhkcNRjKExNIAznZrl1CAGVIjis5IwOvG7plCtED1jOUtdHFNhFm/tr1 IfJPzanTruShFs0ZxPi5GxWRIxEeNrKXCTyLXgg/ur6I3x2HxmpZYYSr+yBWna+yiPQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296964; 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=OsmQVTeguuX8EGP0M1t2SMmzTF8a6v/uNNmUJiJog8YETA2gtQ+3e+OF+vrgcVVb2Wi0 AW68FvCI3b6RNVy5tbpk/XMSOF+CTl5Gq/ZQfJIoFLOgnrAC6RxEjGrwoclMQdWqsQhpg dtcBEyqA3jnBqElyndGuW88mA1jVun+ezt18QFwzOJ56kqjuehTMNZ9sPveHg7L7nDapr GyuEI1CVIyQjKvZ5pMmOGUcbSV+mp5NBT9cBQWtCwoLyTm4rsrqDSrUUQammY2nZJJoqa uxcwISw3XNVw6EQx/oUj8pNmP2lYDVw16Al/IFA+SP3MvuFJ+EwCcNFHTSuqv71FpRg== 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 7FAA81F000D2; Sat, 21 Nov 2026 21:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296963; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=XoGKvBfOt1lAAWuogz2mwY+CV9P0sskZAsPflXKM3Ymdp2XMzrT0WIUbQueQkDMUs HoTICKg0SgLfTXPpX294UhTdDfckmmFG6IkMoeKhYU7ApgPMIAo3rcrbj14+j3TOjO rrCB81hvZBiHtGWF9lD/Wc6muFzJFiQT2rVTlOnMsRyd3jMisRbkyLx0Y+EzurW7FI y2zRJX7oxVfl6/2k3xc/7kHZHWqpXzOKxZYJY1/8uVayftzstwM1LEiWxW83nQBh8J KkUZo4o/vncK3kML3Wn/fzUnysC7nM3tm29s7i270U++57nqBgPdfzWDWkaWBaIYU3 5j3BDapi2SXPQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 461CF4BE09; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:53 +0300 Subject: [PATCH v9 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-v9-8-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=6235; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=n/Dq4py/0eGRBnmQUzS6IOXN56dx/13Os1x5nNKfay0=; b=QjBv7YDFh8DYH6OvBP6oyUz6ukdGjhD7BxqaxBZteqT0cIVlyM9uNqOKQUv8Ek5TsBgmlhOz3 RoWHTrXCXZ/DV+E0OgY3bIGjyOOvYAFdhClE1UqIigZEdKyYiz5tcqQ 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: quoted-printable 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 +=3D broadcom subdir-y +=3D calxeda subdir-y +=3D cirrus subdir-y +=3D cnxt +subdir-y +=3D cortina subdir-y +=3D gemini subdir-y +=3D hisilicon subdir-y +=3D 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) +=3D \ + cs7542-securifi-almondplus.dtb diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arc= h/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 =3D "Securifi Almond+"; + compatible =3D "securifi,almondplus", "cortina,cs7542"; + + aliases { + serial0 =3D &uart0; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x00000000 0x20000000>; + }; + + reserved-memory { + ranges; + #address-cells =3D <1>; + #size-cells =3D <1>; + + /* Reserved for the packet engine queue manager */ + qm-buffer@1c000000 { + reg =3D <0x1c000000 0x4000000>; + no-map; + }; + }; +}; + +&apb_clk { + clock-frequency =3D <150000000>; +}; + +&uart0 { + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cort= ina/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 =3D <1>; + #size-cells =3D <1>; + interrupt-parent =3D <&gic>; + + /* Rate is selected by the boot strap pins, set by the board */ + apb_clk: clock-apb { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-output-names =3D "apb"; + }; + + cpus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cpu@0 { + device_type =3D "cpu"; + compatible =3D "arm,cortex-a9"; + reg =3D <0>; + next-level-cache =3D <&l2>; + }; + + cpu@1 { + device_type =3D "cpu"; + compatible =3D "arm,cortex-a9"; + reg =3D <1>; + enable-method =3D "cortina,cs7542-smp"; + cpu-release-addr =3D <0 0xf00000b8>; + next-level-cache =3D <&l2>; + }; + }; + + soc { + compatible =3D "simple-bus"; + ranges; + #address-cells =3D <1>; + #size-cells =3D <1>; + + uart0: serial@f0070110 { + compatible =3D "cortina,cs7542-uart"; + reg =3D <0xf0070110 0x30>; + interrupts =3D ; + clocks =3D <&apb_clk>; + + status =3D "disabled"; + }; + + uart1: serial@f0070140 { + compatible =3D "cortina,cs7542-uart"; + reg =3D <0xf0070140 0x30>; + interrupts =3D ; + clocks =3D <&apb_clk>; + + status =3D "disabled"; + }; + + uart2: serial@f0070170 { + compatible =3D "cortina,cs7542-uart"; + reg =3D <0xf0070170 0x30>; + interrupts =3D ; + clocks =3D <&apb_clk>; + + status =3D "disabled"; + }; + + uart3: serial@f00701a0 { + compatible =3D "cortina,cs7542-uart"; + reg =3D <0xf00701a0 0x30>; + interrupts =3D ; + clocks =3D <&apb_clk>; + + status =3D "disabled"; + }; + + l2: cache-controller@f5010000 { + compatible =3D "arm,pl310-cache"; + reg =3D <0xf5010000 0x1000>; + cache-unified; + cache-level =3D <2>; + arm,shared-override; + arm,tag-latency =3D <1 1 1>; + arm,data-latency =3D <1 1 2>; + }; + + scu@f8000000 { + compatible =3D "arm,cortex-a9-scu"; + reg =3D <0xf8000000 0x100>; + }; + + timer@f8000200 { + compatible =3D "arm,cortex-a9-global-timer"; + reg =3D <0xf8000200 0x20>; + interrupts =3D ; + clocks =3D <&apb_clk>; + }; + + timer@f8000600 { + compatible =3D "arm,cortex-a9-twd-timer"; + reg =3D <0xf8000600 0x20>; + interrupts =3D ; + clocks =3D <&apb_clk>; + }; + + watchdog@f8000620 { + compatible =3D "arm,cortex-a9-twd-wdt"; + reg =3D <0xf8000620 0x20>; + interrupts =3D ; + clocks =3D <&apb_clk>; + }; + + gic: interrupt-controller@f8001000 { + compatible =3D "arm,cortex-a9-gic"; + reg =3D <0xf8001000 0x1000>, + <0xf8000100 0x100>; + #interrupt-cells =3D <3>; + interrupt-controller; + }; + }; +}; --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296963; b=g0pwhcTSYxnsiZcvRQBqgmrRKppcChnRTwir2PM5vikmy72z/i1mBqTk9PUDrmJedgXv 0luqB64dV3jcJtv0CJdTG6pmNB/1/5At5tbIPOD6Xg2B7ggInLgexCGgAzzp7JKODmE3K 1toPkM3c2h6loz96OlnYbogS8Pq6h9b5kSiHx1/8uBR4Pa3tKGJP0SQG2vnA2I98LmVAq 3naafqHI6oGw6oDOjRhXd6qFyrlKq2Bjb44hXE19X+Re0gEHOBy7PryWiGKS2TO22vT+p 3eKKJ3fxjUpjoksNVX8RIYfUbA/D3jIto8XoHfGzvh94BbLpLzAXpV0z84IKVfVKujA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=IWGxRSF6TsGu8YkPR66UCDbiThQFkRdGV1nPrINMwrA=; b=Hu+hT4BCb1Wu9oaxe9Uhh0hiOSf2nM966TVF/d2tdbnge3+7txl+biQG9XafQyWbekyJ 3n/7Gf6Q5Y4iLv3SG9fUmm4F5pyqSfl9PUui/tMt06ppyR++HtJlXTf2cuFemSlD6jegi ToZMAaGPuS9ukFltESkoOsb4y2KqfKmQZAlexEIVdDnnIkFDlG0s5m1XJEUleocuZQXUh GIrJktrrAtvCnDw8DUdduH2g6bUziAl10Yg2GKS8tFTx2THSLYXFfeKkhJGGO0Kgtp7MG MArdR6A/4SeLy5zK6TcrFOVI+JNcede0H6wO0JHI1NVEl3Y6mtBD7jeHfKWHb5iwCSQ== 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="Gx/YuX+3"; 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 A9B03606A69D; Sat, 21 Nov 2026 21:36:03 +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=Gx/YuX+3 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=1795296963; b=ZzQAjrahsUmh8xWrweHq6uI2FFXHmRsOMRVitxGG9Xj5QPqubasn6sCWjWcfPEf3aRO0 LyU/122y+A2VDwAddAp7AE7x5jln1Tlh9DwNskp/Q85q4P8cEoJF6ajiak/r1TWOWQwBj xHFlVwIe3pAVb3B+ZENpLQ+4gYEvsVcBY/C2amsHS33oWZjDdxn302686+b0xnWjv+WYK DgHwR5StpgQP9O5dGSbimPGQ+CsNEiZWuPtaipSTDaFwKgpSue3Hov+bl0szJwrJkh8Mi 8dRgVVm8+b8QoAUNSO4iUcIDoFAMplAmzOWv3YQ+Ou12eizZPU71raZKK4cAO6043rA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=IWGxRSF6TsGu8YkPR66UCDbiThQFkRdGV1nPrINMwrA=; b=biVcCekQ/jMubTl8+ok0+9A0NexCVr7cXVrMIlC/M8Mz15V1PAYnWYl1SxL/41UHks4Y FqXm1knST6vW/+Vp5bXFYtQLX9/CAMTlP3eQMINTvgglPw1DIXdz3Ggj1v2C2oIFxgsyb wOdV7to6QvPTZ3S0C/3DV15cGL5+q+tRPsgQh/GK7htxIJiOZ3RU11p9vq0j8KnOvJQZc QxD6/dB6lQamFiRt08MBVaMZnahYx1pP84za9Z1BNXfc6ELCj19h4FW134G4iduyqcgHt s+coKdmdEsuD2BdIDfYXccMvb3dCQAguIXEf7Xv65YaNLdiOdcwr2GYhTKTFoQE1eSA== 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 199AE1F000ED; Sat, 21 Nov 2026 21:36:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296963; bh=IWGxRSF6TsGu8YkPR66UCDbiThQFkRdGV1nPrINMwrA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Gx/YuX+3BdrWJ+9LWb/i/CegdA72WtSfElBTC3f0RXUHRzD/+mLinxxG5bGVL/Xs2 i1IqZMHXnu/3YENEiOSicp5Mz7o8RXt7rAwz5zTeJtg6WfvPComj81wvkd5mI2+W6f xdIjYvTfeFxJMcvuBBcdoVcSeGl+etVx0nINLkIEygWPDVF5BJpL8O9TXgkpQqliA5 UMgSZ8WrqjVCsnPIXeMQSxEd2OKmCeSzOiwIsjtNh+O/F4mzI5zuoH/QU71Vw1proI ljwooU9C2DDLLwRRrgpUrSdJDBcbMDZql/g8vQw9A/p2h9Xp7zGJvyZvrx9JuYsFXO jHPrEtx1C4wTA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 5FE1F4BE0D; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:54 +0300 Subject: [PATCH v9 09/10] ARM: multi_v7_defconfig: Enable Cortina Systems CS75xx support 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-v9-9-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=1073; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=6lUn6eCTFyPOKvxFHES2Y+JrDHysCcc0CgLi4Om4C1M=; b=/AdLPokHgNTKSs8qJDHsydIJEi1vTVxTcUO3jWZQVyFk4cp2u1lZIqXm3owJkC839C/yJ7uoE EGUtEDrr9GlB8UuOQ9UESILEfvc6ZIFn3tOGZmPrh15Zuwy4OtLqiC0 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: quoted-printable From: Fil Dunsky Enable the Cortina Systems CS75xx platform and its UART driver with console support, as used on the Securifi Almond+ router. Reviewed-by: Linus Walleij Signed-off-by: Fil Dunsky --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v= 7_defconfig index 069d5a49f..23f144359 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -45,6 +45,7 @@ CONFIG_MACH_BERLIN_BG2CD=3Dy CONFIG_MACH_BERLIN_BG2Q=3Dy CONFIG_ARCH_DIGICOLOR=3Dy CONFIG_ARCH_EXYNOS=3Dy +CONFIG_ARCH_CORTINA_ACCESS=3Dy CONFIG_ARCH_HIGHBANK=3Dy CONFIG_ARCH_HISI=3Dy CONFIG_ARCH_HI3xxx=3Dy @@ -396,6 +397,8 @@ CONFIG_SERIAL_FSL_LPUART=3Dy CONFIG_SERIAL_FSL_LPUART_CONSOLE=3Dy CONFIG_SERIAL_CONEXANT_DIGICOLOR=3Dy CONFIG_SERIAL_CONEXANT_DIGICOLOR_CONSOLE=3Dy +CONFIG_SERIAL_CORTINA=3Dy +CONFIG_SERIAL_CORTINA_CONSOLE=3Dy CONFIG_SERIAL_ST_ASC=3Dy CONFIG_SERIAL_ST_ASC_CONSOLE=3Dy CONFIG_SERIAL_STM32=3Dy --=20 2.53.0 From nobody Tue Nov 24 12:34:55 2026 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=1795296964; b=zmQes8uh4rBDj7CVcRy5dUyMd5xgIkVWk0OCWyLg27pPFY+eaeCK40o371/9iFuIjZkE GcTW7fgB8+QVqstON9JbDDPjpbzT+fRUQYplQVYhrMqqh5mSKJDYIAwQf+CHxFk244d/N QW5aLGClyyQGdZqmgYmOhbSdb0qE9+K5HniTOPf1N511kgY0yqW59c8SXC0k7LHLERAsE YEzaeeZ61Znw+4wsgxXzVHjoxQyZTLMY4HQ9niWZbTDsCrUbGYkCriWW2cZ65cixctXip nx4jX4Mjb+3Ap97ZeOpu9rr/xBDJOS1wgvEHNv8vthlxgiWY9pJdw3CMmS13NM0Zijw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795296964; 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=La2K15nDGTc5QdvSUYADH/M3UC5c5ws+911+TdMxDuM=; b=iZyoOKTXl6AjFuYnL9diSQA/jx3eTea7ZniBr4pdFeYhXPAVvgb4Z/fZ8OQkMN8fq6IK e6J3wGprEn6xp60ea+H3fPQ5zDx2/lCwNBdX90REsEZQQ8OrtaK3MbOrM4puWkCW5Y7JO sWDz3MI+jnOvDbHIOa+tonr75kptcDkOE55RhU8cA6t4cX3ydKVfgyrtMKwRdZtk8Mvce W82jCEZBpHTMN5U6nzdTSF3TYf1azreP80eZK9Mo8WhkvWtVARFYHmfl/kCpngFLKNP2s y0kiPw/pyH7c5Wwdqax4a7RDCoDlAV4sfLU3hmteVEmgqc8OVJC4Xn/jy9zEK5LUuPg== 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=O0tsX5GO; 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 E3DBA606A6AB; Sat, 21 Nov 2026 21:36:03 +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=O0tsX5GO 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=1795296963; b=TfWCwLJ4QhZ0Uk4ye6GQXF6xRj/d9cf5L6JbynT4JUdf2LPZVaNQo/Wkw7cWjcbV1cyp 4zSZZhtEiEhGlRXZrCbN6nUXyFN/xBST1+ysZqpE5NUBthZTiuQneJbFFuIqxJoKnDsFp AyYkyN+yPDhRJUC45YQO6cMmuVJLyweR9Qa/Bo6KCMZL0vfYudh9zzAvctUHQ38qCLuxg XL+SHSiTZU/yoVc/CX6K7w4gHFIee5/t0bZMvgHdl06611QVcsogV/Ffgf6LiHKASw2RN Ej6WQdqO6liNk7nt1JORuTxt9oroxGMaJkcPCbhJSGyid7pqZMUuyl2CoGUQ1t7OYJQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795296963; 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=La2K15nDGTc5QdvSUYADH/M3UC5c5ws+911+TdMxDuM=; b=vQCURcvaUE0MZxSqGZhKvaAMIkPaQ4YK8tvf3AtrpDjduJ312gVrETkXdgcaTTN45ikY dR0F+rdR2CEbsx/J9QgmBZb0J6OMr0RX1pC4e8TbS0QJQ6y+8wtQSeAr47e7NtUOdW5Oy AuqicoqO8Ekmp0u2HwKYBmeUOMiEJMf7rEDLmYEOzI1GrxanKmhVRx2q8FoVxa8FDU7Gc wG8OUosvHtcV/d6IKqY9HX4DxO8aufnRi4+disyiCH8rxj7zyHThiLROZNXq0dOYS8LZw RmvH38c/Sw05VTfIZMImo3jHSt4MeKTmaucLvGsOAx1beVKNMMjjMP7cmYtqz/xeg8A== 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 1E52F1F0089F; Sat, 21 Nov 2026 21:36:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795296963; bh=La2K15nDGTc5QdvSUYADH/M3UC5c5ws+911+TdMxDuM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=O0tsX5GOXLVQjEhygFrcUpPWnESOzChJQtBOFRWj2snvhDH0KtxnlM+SMutPzASp1 IzKIDJg7mEQEz/JkAmV5ikHT3jvHGc1Qi8Ot/SdpQAEdXBChRVGph+oa4dwUFc4noo xccLBmO2V8JlqYXgx4dkkpb+7REiOwklWiSO/iPpck1X7vfRHOf4ppbPoXxZXt26SA fIsEjg21eaYx+5w/UUUFxMyuAqhbtm/UPB+UePPdzSavrmTLvUfft3AyzdlhuaFW2q DRj1ZH0MY+u/9Xbs0Sb9T1ME2U1f7w1GhsUB8t+CAktLSFWChzKnBdbulVQQlSJHYi xRH61WLe7ZpJA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 7AE5B4BE11; Sat, 21 Nov 2026 21:36:00 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:35:55 +0300 Subject: [PATCH v9 10/10] MAINTAINERS: Add entry for Cortina Systems CS75xx 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-v9-10-1fc1b90bd097@gmail.com> References: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@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=1795296958; l=1124; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=Kv86vwete327NDTNam7eZzSsG2pJVcHBfV+Z7+P5PJ4=; b=xo+yg1jFe9G9n0jGbQtv9lanulwawI8aybgUle0JSSZm/sd58mxrZlV42NEbP87Ukmc5uvFi6 b9hpZSSH2+HDFG7/36n5ReoyiYuC87/tcCmvvIUUEtR4I+rnrIP42Yu 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: quoted-printable From: Fil Dunsky Add an entry covering the Cortina Systems CS75xx platform code, device trees, bindings and UART driver. Reviewed-by: Linus Walleij Signed-off-by: Fil Dunsky --- MAINTAINERS | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 93abbb315..deb2ca570 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2950,6 +2950,17 @@ F: tools/perf/tests/shell/coresight/* F: tools/perf/util/cs-etm-decoder/* F: tools/perf/util/cs-etm.* =20 +ARM/CORTINA SYSTEMS CS75XX ARM ARCHITECTURE +M: Fil Dunsky +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/arm/cortina.yaml +F: Documentation/devicetree/bindings/serial/cortina,cs7542-uart.yaml +F: arch/arm/boot/dts/cortina/ +F: arch/arm/include/debug/cs75xx.S +F: arch/arm/mach-goldengate/ +F: drivers/tty/serial/cortina-uart.c + ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE M: Hans Ulli Kroll M: Linus Walleij --=20 2.53.0