From nobody Tue Nov 24 11:17:54 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=1795294932; b=WowNSdyVS/Nl29dyvQ8qLKfe2zBgJa5NefQMTKXJWyL40ZUp35LQFY8bKXJ6Cp0sLIvu 7XibRu5HgtNcTQZjUjSoMIH1taAt9xESrqQdquYJl8rKIajhHsYebiDULBjZiMCGlh31m DLDT0rr28NTWxOMkWT3ROpwpbd2GncsMiOg+n0LGCo2Sncgmljfjg4swUAyKjr48U86J9 +pothOihDDPc9mLx+jMxb0bKY6D1AQQNgLMRzDuMJWvoa0lL0AfSWnyKGt/H8Ywhj8CjP nuNylVrlxLpCZiwC5hoGsZx14L/9QM+wmUBGBrS2pmQKXJyT1a064bzVox/8iRHH+rw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294932; 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=2BN+ZtfguNtrKH1YmLUVtScYXMz/CE+x5wFODJnTABrzkDEWIqyTa36EyMtEWQUMTmkJ AcQDYJdXwe41LLZT/EFgZz5eP3btFABporeHsglrn2W6a4OBbqEXl2X5DMZ6MWckVN6cW IvZUIl5VWyDnX2saYIdFplb5hX1rePUe3KXDN15Zyxbt/cjj+KcQMjPdNXyqr54cPiPYX jh35YfQO/xwc1HbQuiPESa83AGEcIriIVjMFCef09rdR+8iFgc2QDdfHxyzQ2cwXYjdsm 5/6C8/7zPudNA7u5Qz5nwDqt3cGMQW9yaJPaBQ64RaKZkWntO/3bp/epEQ45yCELITA== 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=QbLMPLtH; 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 D09ED606A320; Sat, 21 Nov 2026 21:02:12 +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=QbLMPLtH 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=1795294932; b=2fJnnYRw3nMEngaagJ1FjPkOSA2ItVrrIySI7tg2QbajEkg6zupwDy26XHnAF1ZB7KuO zrRSvmNMyBGvm6INX5f1a3TyUZ74Sk7fJd4cepxtXALmLRZUswgOlSnjBr8pASVQ+koZh DJ+IJTj/kOBVqNxZ/aHinl2HMlPtFcg8C92Xiui1pSMT5OcfaHaOfCJvjMeWnZStNBW0P dLgBkqHxp3Jl2gQmm7XRwUOmer94wSTTwA1M+Awj3z3WfjuDYl7WWIxXUaJWnNaU+172+ unPIz1Xe1CRlkJdPGt/JvVgZDrtl9Ga9C0p6rv8g5wwgJ2iCvfnicBM5+gr+oX9Wo0Q== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294932; 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=t5ozOomsp7iKI3sei0aseUA74JudO4UTz2amxLLSuDn+qQ6EtCaJ6dZDnUaqwuLQV/aU fKGDLfezXXfcYWw1QqOslMK3Cr/dJ2FWzKPgafx+K3WTJbkrCu9ZFxETyCmyw73LZLfWl C/umzOmS1VBkh3fPEsFtxMLHiSoSOHnVUuKBlLUuD+uUfPyiKWtIREaxaxVeG1TYTPt2z gxM8ARhNnpYByfTBzJBM1AbsNFWoRfsYn6OhHuGtUNVyJHHXPATvxOk6aEXDBjDRc57Ij ixDhFBxN3Hhm0dPj3LCcDD9fMAmgzqCWGjdhvZNWPjnzkpsWd1+sG57GSIsFGPzo81A== 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 BD7991F000C6; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294932; bh=vxTe7UYstr5zmWrUwGezYJ045qR2VI9dQROuNPPuSTw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=QbLMPLtH3KdGFjFbfvtaqZdha1mh+Sexnyu+6xTGM97Vw0aSbkX/uaVernZFa/j7I V7LKfusAYVYLLkNAWoWrdh6kD1/QCz4fVX7DObQ4wssHzFda67k3X8oxxUPrB7INSi XW7KiTFxL/5KirkRnPVruewuUNMVVE/LBDiWUL7zVs1QZz46MmgS80P/D1jjcwmoXM JdxvetMcMT5OJytLFDTr3LeICG5mqZlzMuypkS3+k5P+dsyns4ONqJVUNMa1rs5+xP jLy5CGwabYMFz41sHjCDUq0fAp6h8yENzMkHDbnucJUmhey8j9Oo8L4Bvi2CyeKupq /3+MohpCiCXTQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 49CC04BD96; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:46 +0300 Subject: [PATCH v8 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-v8-1-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Conor Dooley , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=944; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=573roVKzdDYFuCfGNESYptLR9xpcGKVT07rDsXKZwOU=; b=9IGSTp+UPPKwidUo+IM1fJmflAPWiRdgWJM34LaPqXfLkS6YSbKB5HlKAFo0OMxaOaa7XVoWu 0Udkp5udGS1BN/jxVxh2g71uO3xJxvsOdXh7b0LzaCN98LWeOnK7mO2 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 11:17:54 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=1795294933; b=LunrGz43lHvWjSMPKeuW8ogPVWU7hZpJkqMVJcOFsPHNn/52n7Ia6dVxO4ff4MJ5hvfr u3Dyg6nkw9WMEFcNdy83oYR6fYzxPTP60zRHODZIR7+rksrNnYsatSdAKHnVibNyN51us h7r/7K73iY50SlSASxWutTLQb3j67/pGCTaGLHbjgqyaBWmw7lEvZgWCCmSk+Bs2I+3pM nzGuCHjOWXpWYob2gTNEhErVodjRKf48NA9lMpMqCNIFyvZD73ykPeO/jYuMxNeoVtls6 YBx4Gxf5DXLACAi2t2UC7v8t7Vtz1GJyRyNW8IokMROnsknVGLBCKigkAJxJXOo/SCA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294933; 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=h2ynOQm1OZV8Is3Or2mq+TNJq0A7izHSMy1uGvM4VSJRJ8Z573Vu9RzY6Z7dt9rsVB1+ tTk1cOULz9heBjWsJNBCwxc3q9fxw8Bxc+Z3HAq5LHdzaGWPlG3Chxz+NmcDnbrXJY23e jgBov0p3cw0gWUSgr4nXjmj90qqHX00dhOJRy3a2Uc4KFyUbEOfpKbMzsLNSTpBMZY42X Qt+HheOboYlBk422cvjDO/wJl02ZGaXkjxSzeDQVCBFWDvyRV07VM5QQCp+NtWWoe6sae oran87MpR8IcKiLqD1qrJBRzhlrMcnWmOfwvrg+oL9VQF6/IH2j2LP4P6/pLBhnQY3Q== 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=NATfXn7Y; 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 B616D606A33D; Sat, 21 Nov 2026 21:02:13 +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=NATfXn7Y 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=1795294933; b=uepjgrM0oh2zfTFHzNDg5vc4J0yzbVBdbe94hovPLGaifR8YsD/FaHBtBKABe8hp6R/+ TctZu2v+EomdwctJeZJSt589P6uRBtR3osNyoFEetOnOYWW6GLaDTV7tjf64oWaWqS267 bK2IiRgSaPxwsAOxJEHp0dIbOMfjxbhChU5DkKckOInjcneFfmMx2ZW3T2NiP9i7DaOkZ kCHCoLCqNV/YGHOM7YO5w3lzQy8/42cPIGYjMwvQsmXYOVRkgcNbTZWxI7nxL0oYluZ3+ QOPJQYWzeB3tNP9SVm0XM2aY2lUR4NnQaKC2BAbon9uqPdfvyYLAcJHLRX73UgFnd0w== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294933; 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=RiXdwUYNXinrdc3gmDneYj3j0hGWMQjVv5ucLR08vvjYHPvuG8SCYu5/LIr4DSNH917A WBqscSPLWKHju6S9QWU3tHcVERYEZ219I5UTYRLf7Y8LXjCuO7407wjEikOXdxG8343QN 1EJU6/MttDuWsk6l4CD09ni2V6UhYLog+g8KkLHKhTSemvpqYJlk8qqSLZhNxiTc/OoTu vp1prCYyN32wBSgacVDZlDWX/JYfLrTeGbhnqZ4eCaOA3i3oiaQFuxwS4eqXfJ+4vTPOs ytdJnPHWlblzeoaj7gFOmNVTWBxJVvF6zhYvV8y7wod+pPhSMSMDwYJdlDpGN9QolqQ== 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 D83E81F000CF; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294933; bh=Gvf3IdDLDeRNj9nlhALrJ/CcwWCiWPj0Ri5V51Dn7x8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=NATfXn7YwJD6t4rsNY69dnuHHbGWdKPpmZp8hv/F7YKSQ0yJRwqibuNUnjt3WTk1k bP91Ag8MCSxEbS8pvtVaGhIQdE7uCr1rQRA44pBuNsJEP9mH5Chjm1eYlPk3WtpxUM fiFrqIEqzBLMMlVRUZxjJK5G8YXl1EppniGP/D+ZAFzbJydN05AEF44C3t/JR+EjNc nJraG5EfZqipFpbJ1qtiyEdcfLTgk5VgHkzT3GpcPALgL4ca6FObGYJgZ9TvTtF8GO 6LUi4GVVJPitVc/jQA3YNg2xTwuO3ZskXF7cpgsPK+Sbc+w56eFlCxbdXltCVnSvbZ xJKPLe1tJ/Wuw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 656304BDAA; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:47 +0300 Subject: [PATCH v8 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-v8-2-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Conor Dooley , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=1646; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=ur5Y90DJUCyqB+ubnyEmmsptLVPvVwYRa4Bevb+7QSg=; b=B5/+P0DJsOW/YHdPo//fCPFgKUQixMQbYcIlqD+bgRJXcRJMXCKJa5fH3XrbmRIcrZBmnG2tV 0bEsaHtWg7KAFyrxjSaBzsCqQey9+AeRg9e+B/zGFwccQ/w2l+IV45/ 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 11:17:54 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=1795294933; b=KV74U50IwfJGv9w/7Vg1DvCFeUjFDphOh68m+eFLOQBFk/hsoT/9FEpwwIXc6grN/D1/ nRgJBnUwoL8AspxkxL3nMm2ZO/yB/0N+tB54IRBaBB0plu9oqdQAK4qFTTn1RBxK4LAg9 xvS478tbpBnhQB7UdP+58zAL5QOR6kQRtMKHJs0E8JQ7iB6KwEF9CLZKZod6f4/1DKWdc iMoBwRytUmou5oRbV73MALGnnIDjaV6488KG07VnlSz10Vi43ZYrnWz+SxS+bFEyj//jX y0FY0mxHww7s5LkdrDk/0vGH8X8WORP1uiUNrwbVl7ZrPUsBcB7dN4GOi2zPy5V3JtQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294933; 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=x2BXI6oHOMdf8jyaimUcM5ARqEkJDtSiFtFzRvJDxIPrA8PU2E83zGfE50BOj/uZoxMA Jyq9KGpunBrPjMMIQiFYT6Ge5xg4AWQ1NmWi1cjB0SnrmsmZslI+4tNwCnxJM39VfKr3J rjNWcspnmHJCBQhKPGZ36+54v+H8FM8Te8v6db5gtryAfcS6P4N5KUeb6TTl5qeswsx60 PkXNNOnzyjT2j/asfyUzfowBEubJ6RwDesA7JoCjyJLOrZDKXyMXyjFjIKb+7QFXtdiXn UU19OKlGLLyj5A6EE8d6nfD6pu4quO9Ny4xo9Z1oAJ2mlGMZAZNSEo5AyxmQDcbJ4Qw== 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=Izspf0o9; 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 E11A7606A32A; Sat, 21 Nov 2026 21:02:12 +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=Izspf0o9 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=1795294932; b=01Fd03i+7cbGYx5Dk2MpwL83XwBLofBZC1+8uLgZs4WI9TrL3AP3YDKn2kUZDSP6b1aW OcOI2Hn/LsgLbG84W/B4+SwOZmnaK4PSc4SFsDzPi0BJ7+LNhmS+dABdUk+o7azK4ZHGS 3kOAcq5hCDnoeguPVmizfxainuusfseUZZjvSusx/HU8v9plkqy3LVJj9dX5RsqESKs4/ aW3tOxGBxD4JBXXdAVGSpgj39mLIZc+nWT7yysE/qumfqmAoahTzUtXbWgqObn10nOlwe XejiHKeBHpod9YAzEm5oEBbkQpLyI+gUikwy5/nh0Pqpa4ppOYrKrB3KPW5MyXkcUnw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294932; 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=S8qJ7TJvZUXjPbFKEVhg1GXN1Nlg/UpzVfRX2kLNSVmjKB3ds/3U7fod3nA+scKppCW2 WJBjuf7S24yQ6n4dpdRvuX9KfL0k/gDBPMYKKTK/dj4TpLtEhBit4iuYYGyONl3rBj4e3 thchrqeTU1/918RnCGFdMlyH8B/tyo8noix+EDt6zEUqbdKyLz/s7cGhQZygJG4c65edN fqNeMXYf9nfgQW1Fr60LlTGrRKZ0h27GfeI5CwgR/xb1OH7e6nZEJvtKoZdUIIYbxgDK3 l/wPv06eIF333KInbENsyYRVRdQYefR9umW3/py4cIQ4DCbi5Z1ahlTZa7fkm02UWAw== 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 F264D1F000D0; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294932; bh=2CbMbhj1YJKeMqmSmi9IRjYMrfEw9kWn4Z0tl8AznQs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Izspf0o9cXqN3/cjqmKZhouSyAvhjmeWymOitEVg5YZhSCxeeMS5z2s8g0BT4t4v6 RTyl2nooDkvttwtlsiiu8bryMNbANnRog+eKIfqsAihrA/09+eQKQ9Jo8RNZn+AnBy szNmoYrbEbIDQDiuNmC5539MJwI+wFFmiKxPTnnjNlvUH2tQpfQFRMl+sPjCoYcZrv bPTCtjiuQ538L4PzfMkE4Kpd1l6QutEbNYD2ZaSH1EUl3qzWIX0glgh1p2r0WV+5Ac IEorPXu1ukACA2Vf0DsdzitZkReE+UATdjbY7gGJTjZgUAx/4559NvKUitwvXqPZ64 Iv1OJVdJqpljw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 7EABF4BDAE; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:48 +0300 Subject: [PATCH v8 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-v8-3-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=1316; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=2pJil7R2I4RJ4Qw+FGFzoukNOQ10CC3HjRA0bSlNdco=; b=WlY8b9E8AdITWV+qUKiaHmWpxXDiahKt/vuDbXxTP+x0kRNjzezMHzuI9wBdYuSScDBaa9Lvy hay6fojvmCQCSPcllPKNpS1oKa5yqQoMA7oQl8wTuKrbmtPetVpv2Wg 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 11:17:54 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=1795294933; b=nyh/mF/6va4dFsQog+THrSFk7Sq3TGxKGdz1pRQ+NP46mZPMfa34jtIcdDzCEQA3vUN6 zF3xD/j2f2K489LGQsqT4LnS2UmYtxnCjDE+tKn0RdGwuBjNGhdHAoReTm1J4RqjtOmgN 9TT4yirIFYGRI1GP4QDsbRmpHV4Qo5LZ1p3HEV+SHsCYPkYsxAmgnYf1GcKm18haqK+G+ /6zioPurLue1Ynvcf7Qmfl3WquthllqpzlUh6Tu5tln7dWXVuDuxZD8L5OMpjBt1lUBSt LN4RAyKKWubJCo0GoYpJ3NKjaWb5HScqDZu5n1NUVmNrO8AWRRHg3vVi/X3KOShjH8A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294933; 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=VlRFgo5u7pa9ilYOVNgeuX3BbeFRMHCH3B1A4lj98niPeZmH9uOgOW63yGESxeBCsJbr Nq+h/wOkhosIdFiuclB7xilnj7E30u43B0wMtnDB7yBnwAI5uaXdcPkE2tX3ikZmEb+y9 t5N18NzG4LzHdlsBwnnULG1OY5p2/LT29xa9TQsIAhAVKI/oi/I/ux6q9aBft1lURCoUf T5QEs4xvfFlwDMWx1mvMNoBJIdFAtytqyQI5LCRSxJ3K1NkqySdESqPJFqm4xljcEanIU UnZfUzP1Dt5FtRgL34q4tNGjWPRXTfQul3yBhd54f4g4wMwlk+v5pZhIvjdA1zOltqQ== 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=Qlr4lcdS; 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 B6060606A33C; Sat, 21 Nov 2026 21:02:13 +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=Qlr4lcdS 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=1795294933; b=iDyDVzZF4eMka7UnNxEXcvfsdkAIBRaqiD8mTf2aX5aYW9/dmIcofQg8mktQz0mjyWBb YZsHEgtEuNcht/VBSJSSxtmVkgRY+r4yWG9vi6zodJ3aRK9UgC8M2d4VMFnjz5gv11F2i N7DI4Uyjat1XxahRF9SIsrB6VKG0pi6iGfHnxD3gltQidbeHTeDHrTJmfii/AMvw9lPgt i4NutoP0FSiy7HeQFeTWJ9qB6j14cpodJRhrmdbU2+rDAh0qqUPza9W5AaXYlTSV4WVNH TUMon+d1yDeW5mUIkoq/iQZz5G2tMIExG0unrtmRLyV1TLMppLDGhBJZZ1Hw+MaXQeA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294933; 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=2e3K+8JfnwOmo93cMrUAmvCGZwxtgPVdkOrhriNq8V0QHjlAc7KXAPZtYAGGb+BmKkaH 6kqszeU+YUttg/eYrQyC0oLn3cBCBXVT9nyod0bYs5IS0NPdY3pS+/8xnVka3n20i+4P0 ZKXxJrCtHIUpNLkcsyM+qvpIJ3Q+xsbucqJ1ZAo8U6zximyeZt/BjA1cYdIz9+RR8sbMZ 1FGEO3V7V/AaCttc8qjvngVFmUhbiVHWl28dG9g9TEi4jfMQhmvjIMMqUd4BFRjKMSlOG qBzJ5HWnCIp8SQu1ygUp9z+xpWlTIEdFcYUP5ghcoMY8xaUS8THS4hhho8Ufhyom/UQ== 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 17F9E1F000D2; Sat, 21 Nov 2026 21:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294933; bh=5yPoSbTCYvIdSzDOXsxGntkkui/i1Du//m4UfG6w1zA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Qlr4lcdSnSDm1KFVg6Q3r1JIYHfmT03PxZ/egLHBvkHnPekHobL/thRRvtbUh/wAX 86rMUcK31y0cMLR1bHK/4h2K2rbUeUJ8PLXpuc0dDWKqqUvLaJGj5oH7EzzhkxAhPi PbcBoFsFWeSzp6xoMILgg3CUoWnU5gmwBxj5hA5fzskWRlf51JNvgqV+BRyEWhmtKG mIemmE/IpWKrh+QxaQNZYGbrb+OwL4zf9VWObFMWOcylfnNarEQJdi43R1gAL2v6S6 wrttr8uSB5t7PcoV8XDj5QIcWuQQ0I8uCQIOST3OXH5H3sWBypw2PfbvCqaqZgwQ5q 5ht6JqzeymrAQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 967F74BDB2; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:49 +0300 Subject: [PATCH v8 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-v8-4-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=6148; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=nTS5Z74lLExG23tYr5NCIxQN5f9mdU4gDsH+rip8OJo=; b=Rf3SJSwRTWDOTPjzOJAjnOXYxQxn2I1p4BaKDxim+tOQfs48m1sYtWlcUzRIZPkywJ515B+gv YGOZYRsqFL5DnCU4r95oZQ4Ei6gcFHgOrR1e4WAqvinPw1/9/IHw06S 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 11:17:54 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=1795294934; b=zkm2aSVQyKcmTC7QlEyF1HAds8tos1eGPS4+iZneM1EwddDCRzOehOTlQTXiSZ/BnTwu NhoKnHqUet7AzSRGSlOLdFmElc2xlCWimHm+LyzDqa5Gz1CK2CvI/j+TlAfuoRAdjiso9 owP2ZWyDx//0SEl4tSnt7CGeIdLkS8kZSvDDRF4Wrnd4KS2AoZ2G7rl73LB7Q++T+B01k 0CijfmWIRrJZiaHUqhOpC6Ru+g7arnBqqQb4jjHUQ8GZ3kFFXoJWHK/ArzT0vmN47prqN tADYuW3t6MWebArgg8ng8aeZARFRnd9WlQXxJ82nj2zLSCZ3NQXXx+otm1iIViLSE2w== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294934; 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=tONShRfvexXCeIyxRpN6EOOaoDxDUWR+RWBwkkG5y0j7tJxeiqEdPo5ag6Jrd79T4ay8 9MgP6+LMqAoz8IZGaYcSJ8hzaTLHXSsHZc+k+NWf2AvU/XjNAzRpU6o+psGEvyuj+F4Vu YKc+q5xSoFIe2uaJl5G02aHPR7FB/segbT7NyWiS95/AwZPlUZvnRLHyqQ0T7Eb+1aBxU dNgWgUR0bEO0QX2KgNb08yxp1dAaVMYVtIKkq6wbnDsd5sbHyg6+dPPG7nmKOHfhWMbFt VkeIq8ords585e2UDbBpUU+LabrMfk82yulBR+RzTRoe/D9OHNVbSDl/FJTF6Fjm0YA== 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=jAdCwet4; 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 C1981606A696; Sat, 21 Nov 2026 21:02:14 +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=jAdCwet4 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=1795294934; b=JSVEPPk2GIiOYJ5H2W7NWCjuVxL19COba6cQbytFQh1KZpmgAq0F5tSMc200cL8ehw3V vwsnvlh7/yEo4d8AijB8dvLMZhMNsL8UKBgtMrv7ZXBFoBTerbHStMWeixN9CR7c4thEz eu49ZpQTnpk/LDxDGOEGIfxNHz30+oUKhXmmKZOvVjhJlBfAkyRmUS3NaIJGLmP2t1PM0 M8irHCbCktJd44zM0BNOSX/22PHZk47PiifUncV0Soyy0tVdg/HpFWT0497b8Ul+NIi8O 0v4JV1Q/57CQ0SB1PkSXFZn6Ss0v7TshChCNb4xJEXqnkB4i/Bfj+NPKm96ucIrJotg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294934; 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=cdqBcD5AaANGrJH4/zG3C+a/oC0SB3WZ3XPcDKZF4GCCBcwqbZPMX6mlWatmAhXfaR+f i7pjv8gYBG9gCiFzyLIqWbidQFJYaYqdcwrjYkNv+970V1iYq7TqHM6AZLK9Wl2YJfhfW H7N6y06nbmWnIL5HQTMaVNSWFqVEr5ZUtgEsuMMSn+wWsRCWlpQgyPfUlULOHkstqpuKo qnhSxnfvKkrLXsYZvwL/XbGp8k5gY9J+iW+SRCGVcl1nWXC/ptd9ze5qBGbWyGvJRyb2Y J1ruK/d6IAplFZxx9TrfFRFP5nFOBQ/VSCehl1xMGpGTq+ht7925iaY6N70/OdfIxMQ== 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 0A8011F000C6; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294934; bh=ViW+J37vlQnKvGYExQxk1bMlBbVAMGgbVTcmrc54d/s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=jAdCwet4/UBRMo9paX937MzlBOZ/qaRuBqLm1SQWo6mN8z+pdJjtkLgAedta7cC18 Sh+BU+VFibMQMXAmX6f43nlC3gcI37lciuORpPC46DhUiOxPYJJjUjVGQ9Ma3NE6BT iFAERkbVcIH6S/0bSMAEMjqEDgEFiaFBCVdY2ysKUPLncZegkI/AgtUcQCB8kyXc5c PcyY7rcPCgdSxo1W1GDZ5up4CBVVOFWxbOEabJIvOdffHuRU0MlHj5bz0wilNKSAIp 0u4brHIjCnFwNA4mC1thLmFR1TikW5eFyhnBOKPUxs4glcUvmNOnju9Q3NubVAmHrk LTuhsgjU2yGVg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id AE5484BDB6; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:50 +0300 Subject: [PATCH v8 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-v8-5-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=4419; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=XANVvquwZ46csK0xa+Qk9KFcex+6JNnk+DkCsDkUuAQ=; b=0KeA9Q3W/jNj9F9hQiFiuW5PCS/9bqyQnr0M6KgVfP93aykNf2q3kuy68jksAKHlYEgIr6+I1 yaKGX5Ne+uIDeqp8YSWSDo9bXRP745f8tresjZ3leHsCvm9xbR6nqPt 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 11:17:54 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=1795294938; b=ti0cByjEs9PI414ZlyrGZMuLcGRclp/NaLaGdbIm9Cd+WRXVGIh5TxsP8/HDCfBa1gDt UrtnbOHWpY13rVQYlDpPiSoHIBJieOwY+ler0rMgOwJUUta72FYrGeRP4Fnd4Jyf6y4Xu BT3RTe8MPbUJUfOXGBcu1AVmxqs2bLj9Uub8gVGFc1xbBzt0XYl2kCf0DA/6M+HuiE4SG LHkQ6DfnPoawdJzvLYqgS3m4sEDWCv7b9RITyEl/I0H1w4TtetEZvtgUOzAidY0G9XETr 6wF8Lof8eISD7v7Ze8LpnjfnjXQLgNLRKB8/QhEHGbX0wHnqexIysn4ISlfl+3eO2Vw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294938; 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=ZogHg7F2r1KKspZv8agum3WlkUtYxRkISXz130hGnsM=; b=E81LHHPlZeNjsJCQ8ydow6FBMVZYJz1gmtG/TPIhQGvQvqjqvpPA8YmwnPFg7h0Lg6EN OFR/p9eHaZK1tfj2LKHzU83TlJLulx6PwuNUMAQ+xypcEWqW6UBn/VLHeRLvnoBZna3mt MqWlR+sxbiVAzGqEqbgZepiLxeVJr8ysUZ+svS5aUzhmP9IOPiF5WkLKMTF3zlv0vPYsU cZJiNowSowh13/KT2sPNXEhgC0u9uMk4jRSbM5Y+UYmMGRsvD0DQgb2GspdhNHKaB/8Ly i1B3h7q0IasvtZyEfjmZrtYHu5jzynp3b/6dZ738GUNPmOmKhdXd0AEAa/XXWGTqQ3w== 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=KAIF3k7k; 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 CA7BB60A2607; Sat, 21 Nov 2026 21:02:18 +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=KAIF3k7k 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=1795294938; b=H7MUdZJq71+OlTgZeo5/siqKCn4GzqHzSGAE9whSyvirQghB16NgsapYBWtTrM70mcQC NlBw9hhXUdhYuwh7nQ5j/lcVM9dSjy+CQOLoKNsjBXWqWIy3MNyu/p270+ma0vk4++gJC CyeSjza7o2XVIUtyRc9d7FZ8kqmSi47W6rO9ECD8N5oOWtdIjX7rYgVyIZdFZE8xnrCAS ClJ7TchykKQFkUsceOcUEujGXHo/XEFpOBn8EOJiXwUcNcjXs+Q9FqDBYU3YBFN7qr9Gr FnFYRSsJ74goL0c6hEIIIyX9bLTDjEpOUX1RlYcRuTI7mLdy/isQZBHeqn9Jql+DxSg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294938; 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=ZogHg7F2r1KKspZv8agum3WlkUtYxRkISXz130hGnsM=; b=JrQmQ2RUpU/0nCOjIyHLY/qlKySG080ZPhVcul2AHfxlZcp+BSZIM7K6UNwdyW0EHDIF draAJvX8GrUQEKDom+WeLn12oEv2MALR0LgcdsWmfZ7eytXphPaKqzuPVFc59ZWcR579C XvV8yr4WyY22UfToItMi7EQD6+n0cONhRxbvpVASUP5o9ouK2xIqzz/b7ON1MNI3C/7AX aLRtbdaZ9gBJ5iRVRi8xUAapsQg3DD/PsCMNuH2yIIFhQ122qyg+GyEuWBwQcdpBPxKn/ J73edajbOrQ61HBTpdLrddFptG+0nWRcDS6UPgDnmKQm+m3gWOVvMNO/WOOyo6g9pWw== 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 0CC8A1F000D3; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294938; bh=ZogHg7F2r1KKspZv8agum3WlkUtYxRkISXz130hGnsM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=KAIF3k7knTsx/UDWqyAsCwr5/hMAyEQU5zgXJZ4kzUirPcEUuX3sbdCa42UNb2dU6 +L+lUSsW+10omo8JAwRMSJaweaHGAUUtkMJTSc9lLQgjywIyVSmKwRtAq4tRo+8NNO nLG4vBy7gLUmUTcTDKtcgbSog1bgEqiWGXCsjkfgUkx96TucxcuoqFWg/HdNvFpQl1 Peu7gfi6pQ4V0IBfvAWUc4Ri1Ve5CYGGe13c6kLgZIbbuw6288gUhZZ+lEmEhUypkO kA5OvHtiLsfDDYFZZSIgGdsjlEsOEJGyAU5q+31GsHWIfir529wOCTYxvtvJIRmTIJ 0UgMYtbnKFQIw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id C88844BDBA; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:51 +0300 Subject: [PATCH v8 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-v8-6-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Krzysztof Kozlowski , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=2007; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=4OEni5PfKeJ3reVZQoQVj435vRxLkT5dV42lrfoFdbA=; b=A5bVd1PoCpW5njZSQnlc7ul9KKp4EEyhLN0eAaQlaTxLhgdS4r4JQw9bjgaiLXxlczmDzYQxp HBGYlLkYxmAD48JQ3gvYlglHPHeDtTnyhtn7tg+dWnjsGXAg3owAqfZ 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..2879a7188 --- /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 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + + serial@f0070110 { + compatible =3D "cortina,cs7542-uart"; + reg =3D <0xf0070110 0x30>; + interrupts =3D ; + clocks =3D <&apb_clk>; + }; --=20 2.53.0 From nobody Tue Nov 24 11:17:54 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=1795294937; b=jIewgg8pB1lnMEbW1Lj/F+rpsixJbyGvkFjZ62Mawm3xtgW7bhZxcTEw9AmSpWMS9swR 8WAMAYsvFsn99T4Lo1/KMDr9iC6Tvnq52FGXu6dV7mIHq+ENQGzaBdijFeAW+CW2V0nHR l7GJS4MQotXr56sURTGP5OJvSiaVdwoYMQ+mSq4Ckdz3agn7ii4uLAEKPczS5K8gLtH8h dQWX6wB0Yxco4S7t8Crs8xOUsoZ5jmXmXs9Zn0SFxcZExHsCUqkIDJHof3Zk9CL/BHIQU n6R9XgVJUi01bCU5i3xaPQic92DT72bi7ClldUI1+hl0zRqhT8WzxHN4jFOa7cyichA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294937; 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=dOfXDX3vo9uKpPrpnAT3djnkmYqzdJX4cgkwVAL6ppQ=; b=QvlZI0TfFBL42PTOC041CB//JmGZfh2F42cYs0WICAg8268DmV95+ZdMdByiE4fEnbSV DVzDGzyPKVBnONtJH/xzfZyPOdEcqtkGxnCOi0uAwmZr5KvLj9mJ5741A+uGJF5h7gbb7 qEUuJeZ1F42GDrBXzjdBLXQkk/KLcAI/J5DAXbYPBu3fz1nWIJVpcVzswRAUp7yrHSDzC p7ObfhF810hdxwWLr4+ZBLsotCS1wA5+nOt8+JtnuEc07jYxc05mZYUwK5zSF3vBTNuTn wB3y1V/10x2LIZctL2dI3J2Y3kToCcJM5ozAFfO1kRjrI/YyhxSSRRRMa0HXEWQggQQ== 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=FlGcvQTt; 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 90ED6606A331; Sat, 21 Nov 2026 21:02:17 +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=FlGcvQTt 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=1795294937; b=p0nLgGaTYT+rQJ9HF4Exc4yxeclpH4KV7It0U0m2TUiocir+sbzwhP3bQ4EgnodW+28Z IEMZAD0SKEs/4FraBHnVzUJh7j3VJetBZHLFsYWtT+h0wh9eA71vfK8ie/r4O/TVSdyo5 26KXFPnmAyxUMy5/wF6+3EyqMUmwuVGLP2mES8cqMtHxCALOqiLDGjb5Xfhiw3kV6nkAB /Nuwc/HMhWwQlg1UpIjkoXcee5p1rGJA+l/KvnQuOUnHxwXLA/ZmgoT6MPDFpiAGRD392 qcsZUfgD88hchSfW4BRDNwN0AgovKgQwf0miR7vPpaVZB+c04WojWdh6pbIErjkOWnw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294937; 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=dOfXDX3vo9uKpPrpnAT3djnkmYqzdJX4cgkwVAL6ppQ=; b=l69s+hBHnhTZfpKebCanjF1yyzQ5e98BaR1OO7p+s4uooqkp7lnPnUd4BFJrzRes4nHr Z/9G6IxTp/r+6QKu6QapZnob396AMqsYOSu/y6ZqQcSVJ7psAxph1pLkQywQfGc1Fi9vK mkkjSTLxAiXf+bzUi2z+u6qvWVdaaH9NyBKiUmP5F1Av8eO0a3BevMgdAq3WopIMXocDh wG9VBJr1xSU19CBYwDnKJV0K/6rZYot4bURbZl7L5uc7BjkdFhCyRb2NJw41WiE7CpELQ oNcu1qSJyxi7NFW7tZBFI6PsEOa40WLrjW1iDxfHXlyxzfVYi80T/8nsMe9QVfCXR2g== 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 54E751F000D1; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294937; bh=dOfXDX3vo9uKpPrpnAT3djnkmYqzdJX4cgkwVAL6ppQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=FlGcvQTtKZV4rugwtiH4T+6+FiOaSai4xFneOqQMRaJ5C2NjTLESLr6clM8MipM03 YPIG+Po+C/CDmmr7SjGHMalGloYvI5gcCC66XdtYtCNi1C9YRr65WItCbz68p4IrRN BoOP+bQFk5braUydXcn+9heHgFQRdFt9xtAze0c4HNOtgNXfzp5ENh9aYj28DTPFFG +YQJISb5Gwxmp0naeGYDoGvuImr82S+uyq5Oc9UQasuWbKpzgPbT4KUiTlFj6jNULy N97FqfxMsl7j6Xcv4/l9daHY/gDja31lT303J5e5tcOmaTrESnWGBE2gNbhbaKULGB HsR6MWCsyQUbg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id E34904BDBE; Sat, 21 Nov 2026 21:02:11 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:52 +0300 Subject: [PATCH v8 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-v8-7-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=22042; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=NxKdeIiSuw3A9BCAbJb/9NiWFwVmvPwB+MGBx9MTAx4=; b=ye5JtVhfAJCvWYGeQgvcQI1VdSA7tT6so8UaRgEe3pZ7KU5x9/0EnJRSz5O7MOWJWuurbX6VE M4ys6llTVOZDLPySC700+hRJYWUR6GFmO5tDvXWpv+hNGN1kPjtxHF/ 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 | 612 ++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 637 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..eb63848f0 --- /dev/null +++ b/drivers/tty/serial/cortina-uart.c @@ -0,0 +1,612 @@ +// 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); + + port->irq =3D platform_get_irq(pdev, 0); + if (port->irq < 0) + return port->irq; + + 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 11:17:54 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=1795294936; b=Wvm1xqOaGyujcwSYIgyYJcviRKo06HbyQiH2K82E5Iys7qxNV2xFyvofpmCNWpKNFJJG ziB3E9NXW7xS5ydu6y7eYLe0g5hojUjoAe6X2gEHb4hDHBGIRXqCQL2oGsjhkJgQtVNgH vdMOaPdTHqN1RVGg88jPTzWw3X4o+Kbf8KB7GNOvHDsXDENQ6XLPbmWwlgsDiWwcA8kfm YtFji099IknFIw+gX8u+Ff/99N2OB7hZHZyVV4pCoZK3vwaJ5RmrP986VeQRRvw61E0BC SRrcbtfzEUtWOcXlNVGHzWJ6wgCT/G4TZ7oCo/U4s73Fowdg/cKmCwWJyeSLI+fHc9Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294936; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; b=kfY10UFVZzATbLa2M7UbPoXAOBqN6i6uOLyMHaCs8aLMG/JRocUWif7Zq3RnM19ldckU g43nayODVmsl5eO0UKT4nG3vBbqEiNub1YChDbyA3uJlvkxHU8uUxSXv0Mn1+HhdX9LD0 RdziR+d/3mT8J0exb1/gaQMtpWR+k5T8SKWcSbZ+Gcz+n9VtINe7U1Y4aKjoejzs0FYH8 w3xYZaslbF5l1Q5s7f2MFJ7AQj2S2ixgld2eIzNPM1U9OZ7W+PlFy9O0eAb2+5uDDX6oV y4nzamBSzpuAkIGxlBVMb/5D2UIraY7w8zCz5GHWmPU1BCHvXNFVtoJC8ZE0+/FlnRw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MpH2ir5u; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23684606A680; Sat, 21 Nov 2026 21:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MpH2ir5u Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795294936; b=UN9qlA7eXHxJM/uBwppt8gA8Rzv0iBaygxBGaYhoGZryucfa8VIfhmLFKzIzJ0j1s1Cb 9ua+LvD2w76Ldl/RPQHa4CU4RgbxsvZ69IMMwTgwYTidK8OrdLF8AYZ7g0yOAGE7gdcju 2AOEcx5+yc9vVHELSGg+NA5L3fBt/ThWqljXNL9JSYPjw1QRaQT5sVmqsXVFFFO51VFFk aVnWkyHK9n+zEcX9jl7XpLbZM3ONDE4y+K71uqAbYhG0Dt+UVMmvv06yI9zIHC+AGH4PA pe/j3zbBQLoZotvALiGBMMRwHiVCsEPJMGyoMRpCkgmqlLJe2FnLDl8cwSnONB5heNw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294936; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; b=LuGuS/tFPQ+oC9YIqapDUKh5hUM27/lVm3fy9eBFLz2ZkrDwzUHx9tTIiBvhR7L27VzS +C1aYCgmyPqQRH3HthfxeyRg2sQQtB4ZTPq/AqiYEobcoAsnBY+c6s1HRcQl+mhSZRs1M BaswpXD9CCLKJf6ivfA5WZGquOX6O63B+tRYaxw1NkvQbLRsa+j0PniZE9Fwz/Wdlk9tf /hTB6sJHTtjfxtMiP8L0pWv8PD0Cbo1ib6ZR/kTjU11EvL3YmX8TNKxDT2eerGwrl45iT NqDRR2zGXhaFtRsob+D1+/zcsgcBWCXQ1xEIcCZTHZ+RhFykmTkGfTBJD5n6EPsGU3g== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5975B1F000C0; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294935; bh=YE3vXI9trThRKlTPUxAcuUZZSJoH5FvS/IfvvJzaeh8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=MpH2ir5uLjiDmdXRmd+wxWiBeoBMG7xqf7FgPFLatpxt1MFti4Pue9qdKON+0woBk TjkgDcfe1nsdVk7u5UtBl0fGRY9/grV/JqrGJS+iaSWYYEaofm5PXQSxrnNBb19SM3 WPgLitl1DwGtuem0z1th3dGdhajWv8dbcXc9Bsxf4MSePqXX0o6cqqtnxaKmebMxC/ H3XaHXgydf+ZuhVFRt8TXrJ9eORevGTbH2ZTFIMnORBs8kNGqTnE7ikd6ksnK9p36q CDiQZCE17FkzP/wgR2iT6+Rs3oREENrVagupD1dBANIsh5rT2ZgKVMe8RLsLOhU6la uWVc76TnWQg+w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 083584BDC2; Sat, 21 Nov 2026 21:02:12 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:53 +0300 Subject: [PATCH v8 08/10] ARM: dts: cortina: Add CS7542 SoC and Securifi Almond+ board X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261122-b4-cs75xx-v8-8-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=6235; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=n/Dq4py/0eGRBnmQUzS6IOXN56dx/13Os1x5nNKfay0=; b=FJMs1zTAIx8C/xLzQrhy+uWIqvA4BFIS9TaUsjwnEE37B1gEWGRXIBDmN+VZJb4CFiv2u/MaR /0WSgmM1MGiBMgK2Q7V7IsAIxeoNGX7n2tMccHiJC11dQjZJXW1X2Ir X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky Reply-To: filipp.dunsky@gmail.com Content-Transfer-Encoding: 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 11:17:54 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=1795294938; b=dthIms8Ku4ySJyUqKgEYLRw83i5eqAm1KouEVTym4dwvqfpcOUCqaFOkCa0Z1+G2aNZx YQU5R95KiMXP8iVzjRp5lwZOrnK12uBVbLYc745vbik2sq9a6SxxvGlWr0wvHQCsn7viN UNyilaXimVMwacKU6elBUWKHoaKO8cxgXdAnMAtS/bC+80r4acpYI6WJbB/nFIQv4+lp2 GD/WuM1Pt0o6SxFySYQl8CPXYvdg4Z5lDXre18359VsxjIRbwa6O8KPDSnleasfGjuEye vYkDTsStISX0ED0jtl8jU8Y/7TPg0YKHp1eF1xwj2J5wnL2hWnfYxWV3EufSwdFF7rA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294938; 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=ZaD6VgLpMNlL3t6jsMzgRz+BgP828IN/bu0sCtBBslKwk3H/lJT0PVKatiWYl8Ty/fe+ Wa1qPKynnB9RNUJoRoNrYVytzdJ+9ylWrePktAtwUCqDyjyNsg2Ahajpdlr8UYrWD5Epp oSnj8iMkXJEroM2bsAblwoU7Mmq+okMkVrteFGZuh5ywa6fwYatyimJM2+NrzCBJtMGCw 6aMBigqm2Cjwt1rUkHrkRnug6fPzquz9rm63ot4c8JtM+zlQgoURriDq5+pM/AUIITQFM 3k/cozIymDqK/8HKJ47oGQw9fOwuikEK6fx8aK41gBhzHR2SFLDmODcHpv/S1LQuucQ== 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=PsEu17ZN; 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 8AB5B60A2602; Sat, 21 Nov 2026 21:02:18 +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=PsEu17ZN 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=1795294938; b=VprGw6QhB5JqSrLUfbSe/h1SvD/PM7HlBBy81fv4vJ0N2ltkCVXwhAqJQaDJqPCRm4ZA ynAZadxUVSk5prJXw47nWKAnDLvh/BQUeKc1ApdKeQnP37w3WoNAKm8ko8RUV2ADV44VM eb4wqhEZ+KWsgt2oOVyyo9Q+KMvuL4a1/Dk9L5J7nfJdhzIjWeLUKCYZ9MHPh+ZiSocJP Ln+/I271mdj1lJO+fb1OIBc2vqqz4dnzoI12XWKyw5u0ybuiwhlPRXsDI3EBLMm74tNRq Hy5M1ChU0ZTo15PWS7imlTisMCJS/5N5tA4BPT/tzmR/9cpyu/HTL1oPTw8wKzoIHVQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294938; 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=WI/XOvYXpzRQpehe3IAnTeCD1nM1jc80MQn1aHRe7aye8I2drT3uU9VnHh9SzQUCzscT ZiyJfekV5vlvoI7WtO5ReAJXEvwWHoslyOsCiIk1D3Je5tHEJ8gjfdy1OkwKNzXJIxE8r dQiL2bBZWDamSi9E5CEN+MCTvbTUs5oVwDk+zuyjP2Z3Tyk4lP4otnsMPvjl283EBy/bo heWUv/XCbT5FHNIxMAVYTfps37guY/yUgjG/H5FcZVusT+BZxxFznWPz8kMVOnij5Dc/h tGkmPxrXvFM5fvR+yA8DJcluVXoW/20P639QdMQYYWOX0k/ToMhjT3hTrxYhKmabzOw== 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 D8A971F000CF; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294938; bh=IWGxRSF6TsGu8YkPR66UCDbiThQFkRdGV1nPrINMwrA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=PsEu17ZNNWl1rYVYbXi8/ST1wi3lQKRD/1HHiQPXK0nvfPvqnXg6B/cBMIrvi81c+ XiHAjMPE3CBw32hUj+wHZQvTXztCBj23srIif6hx32iCqLj9boy86mOXOK1cC1NrY8 Zuyd0NGQD1c2IGB2R9LK5SmCntmrJTtKFDpCtgVkvYb9hD2hd7dyCeA6wTsiNQpY7r My7wpqeiwenSNco7Acc5TQoR33ieWJ1m2VDSuu6odKo3is4BMRy0Ualhlq1Np/p7wJ dPlRWloD3la3reEvGsdEJkE9KPhcB0fGO1hXHjDcM0IoutzYab5RieM7Ab1Geb3U8J fm6w/s4Zn+9Vw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 219864BDC6; Sat, 21 Nov 2026 21:02:12 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:54 +0300 Subject: [PATCH v8 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-v8-9-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=1073; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=6lUn6eCTFyPOKvxFHES2Y+JrDHysCcc0CgLi4Om4C1M=; b=dHGcZw65wtGXywhP33vD+PBaz8Ux8WqqudPybVnZzIFCbAkl8uJchB7YsYy36N6iF9vicZIUD Hpk66EOryWlAh8f9B4fu9Ujat4tam3P6miYl8OrDfdFLYO9bTrAbjcU 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 11:17:54 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=1795294937; b=mD5Q0Mzoa6eRg5Iso8c3qBk70qlOAYkZ4BKAQ+y9EgOmC/02N+IuXZK3RUZRNVnESKOu XtVIrHUCSbeLTbtZG4OB0mPIGHDkawzY3ibzlalMs4qo4/WimWEeIWJ4Ce3gsbZVOwtp5 vGoev0T3jkGD5DtKW8niL/V8yrUbwZWt/LBRgz3bspkKaFS+++g+I3G//5Q5iam1vdmrE WOGpUK74Jm79ZOWtijABc+/HPTghhtPLwbi4H2bqgIdK7jNGCXzcMxsYHFGDhiss/U+iF dv63rjmylXum5+JgGZV86AjgyTFl/0WdSdipn6vNWo8AuMyGoMEqbM5o8Cqhdjugh6g== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795294937; 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=KKTE7hP40CHyj/1X7WfvoxyiG0hfEjsKrCFGrOnQaamFy1qCs22Z7ChbSqm02MTZwf1/ zyojDTJ0kv0cWQWpV+5zHz46eat0Yg55Dv3kl3t3b7o6rwzps7FrMkwIy5QM5n2AXMOhV P/in3O6Q3ea8PJQ0pNU1IcKuDy/Df4ATzH19hIizDOPl1xxNiEtMM3PYzphIRNXEB/v2Q vCL732sBeP3t+kJD+D/lYPXEM03tkfuprJbO62nX3ZnOldZygVAHxl/GIq0p4uDLI/4/4 uTJX8HPilNaTWhcnv45UVrvLRO9dvu4Q74pvWiyUFYz7S3Nj+Y0iVMO1BTPS+45zvZg== 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=YoDvZ9jK; 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 A32CF606A69D; Sat, 21 Nov 2026 21:02:17 +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=YoDvZ9jK 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=1795294937; b=dmUfLDP0Fmnu1hI/Z6XGxF4Y9BTUDoZPwjeZ7ZZ3UR9+VEZzejz/T1twhsApS87vwv04 cAgmKLAI7evCWftAWkP73dfDuYotQXp2Tbv7mErpDGoL5fM+xkbkzUILmn11TvO0/TvBT ZqzHKlKwh9avh/y0ZVAYmV+5VKqUfakUy2i16rtcVID1LA2kHO+PGbyA30ff2i4VPYyHp XL4yKR9dCddV5hPvCsGrFgw8Xy6EhJPNqiY8CxDzTF9VTlA+2H1DqUD8Om/7k2Z+5yVz5 7W8iQzRFdAP074liTvaIort+aFXKyIyMkRkLbF4phE2fhV0JWfsgXs5gTLqjKLpttoA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795294937; 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=LULoYJO71vY4OO2Z3CXIDoZ7nwzqw/J0ejPUbB3OWGrbG0JXo8Ra2Wh5gVdfc3iu00AN 6wb1hP5VTZRuFBDEHNGYuXffCvI8iOWI9ktw724EpaKiHrzwt2PJKByvf2rYZefPS6cr5 ufrkQvZBora05CQQ9OnoxuE3wqbK/xkQ/ShHWSMqN+Gh6YzfhEk1CZRUJsEJdHs/74Yaf vARXL/Z1ihgXXzpmSZKplBqeuJycW6xmaflt0Y3cwqGvc9AQ+NTO9v1LUEjiIpg7Nw6mH rfF+nct5VMHbFbQL7k3APSWf/RjK/BqL48VJZ7MygCUN1GUNg+pHrqGLo0o0qomzLLA== 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 DEF351F000D2; Sat, 21 Nov 2026 21:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795294937; bh=La2K15nDGTc5QdvSUYADH/M3UC5c5ws+911+TdMxDuM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=YoDvZ9jKT3rilfKg9+ZzUqcJiC2ClE3ZfNOeuGmDkZcIsjfhBh2vWL6g78MOgw7ga uNjjzgTGGbUZ5xvDcguM2SJQhc0PD16GgnU4FrwLgx0jcBAHhf3ESRpRI+3cWYR1zP JQweXUPy9TitwdxNf6dH8anmO+voeUAvYE7iAajjIp34XL+PV9HCLgjpH2/W5T8PBS eG8RNy/YE5CbuAyyLs5P3QubQ+Uizo20hTB7qyX70IsoErBRoEm2em4SD/Jd4HIlg3 Kkqvnrc7AeltrEcoSDq6hRzA9ilq/qzGz6xVjb0lmdCN/pMxPkVgk2ReziKRlMa3/b ZCtpE/YArbF6A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 3E1C04BDCA; Sat, 21 Nov 2026 21:02:12 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 22 Nov 2026 00:01:55 +0300 Subject: [PATCH v8 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-v8-10-5f971b0dc69c@gmail.com> References: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> In-Reply-To: <20261122-b4-cs75xx-v8-0-5f971b0dc69c@gmail.com> To: Arnd Bergmann , Linus Walleij , Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li , Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795294929; l=1124; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=Kv86vwete327NDTNam7eZzSsG2pJVcHBfV+Z7+P5PJ4=; b=T6gapxMc4xFsr7/3sTZXvWhELPnQ1tchYsr4K9QMYEetJB4wCQjf5XKc404fLs7AsmUDnmgoI lViaO9eBq4dCI5Cma4jw6qGwsysMF7tbAniD8wBnPkfoWnlZdbv1FoK 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