From patchwork Thu Mar 21 21:47:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13599391 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B130BC54E58 for ; Thu, 21 Mar 2024 21:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=GyBf+OONfNRTEUIlK+pxmjff0MAyhnAIz3PrglSXwDQ=; b=BmikUjQl0uWOJGHA/CDz+zd0H3 tSUJwbUkLRvt3IXrHQqrVUnyPnsSNMbMqE8ayjEkXBEldsq2esG09WaqtILIaPwY5+RhNvZSC8Fid xKTFRuBd8acZSYZEpUcZDaWazjxYOH0YgcDGwhPcI77HL/I4Gn2Kzn2TRb5MV8Wsf4Mk19GNaO0LP sb6O/8ARpGe0vZ8T2ZVavUZwIUgGQqaSotdKdYxE5HctJRHf3G6xzkQ4qHLw9oz0I5xRgzmC+XlDz qoVOUKp+8cZjlZbS/8jG0DLdIyV1BFUzGkjxk/Chuy42FAOuGxW+bl2r7TeAy+qbabe9tUyVv94EY 4rSjddoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnQG9-00000004mIO-3Ima; Thu, 21 Mar 2024 21:47:37 +0000 Received: from mail-he1eur04on20701.outbound.protection.outlook.com ([2a01:111:f403:260f::701] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnQG2-00000004mEw-2ep0 for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 21:47:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c8JcTXeXBkCwRINt8gdNTKtxZpJDUyu11bd027HxHhBssDlQ/rtEgR2VDWINItKMRGr+zeXDqQ4U5YTOBb9Or/BBDB9OU85BuFGU4uKxYdfj4GJuUs5EDxozJbNfNfRLONzaoC6WfICdD/hDRpwQuQH+dwL2cgR5lbvgWR90fTN6Wyxk8batmR9SIxGf74rkm9RL25LK5yrlWK+7fK5YfkzZVxDzaVup0L8JJKrY5qmT8uktLa3CHVw/rVDjnb7x0ePjB5NVD9DjfGfNNGzzwr+D4v6ljfvb34upXq56+xDbJ9QTkfCxoG/zsBn9Itrf6ETYKZJ9xhIKyvOGD4EV1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jEt4gxlPjpub5Ndo9VZ+tz5IbDf3ZqXjsUfCrjVBraQ=; b=EZM+juPsigIJC/dBVcn1KLIY49AM95dIgINWA3QHxSzyBdKb4mfJ1ET01RyMQtNqYDcjTBUMR4nIDVfpVdGgp6UPlqDb9k/POD1bNOJd7MFaSFbk/XWbWiQAVBSKRVYKbUBTxPSj9YooXWNvwSKbL/F5ib/zknvsBTOXiqOsAmb2ruObhfUjuUdArDrM50Mlynrm7Z+OWgB6kWbf2KHk+1Jj+BZXtUkge30ADkeyn0gH7EyETL/VY7wNi5or2F+m/v1AAGpmveu/RfJQMgdwPtAVgV4BhrRkO5vsVWehtdnjHumwbhqpQ27Vmhpgx0vKkYRB3itGyRJJ/qp/BQ5epw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jEt4gxlPjpub5Ndo9VZ+tz5IbDf3ZqXjsUfCrjVBraQ=; b=lMO2daTvaVuthHIt1oqgk7lea7kXiF0aAFKy3ScOoqQgd8VmzirD2sboLGpbq04t/xGK/FeqFNMGPt7bs+4QNwgxH+Aykrr5UN3xZUf8goiDHIDqSQ89ikE/ydAI9X8GKxggSW3NU0EPSqg5yy1zZzsepFzcBy69Z2qZSEr8RLA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by PA4PR04MB9413.eurprd04.prod.outlook.com (2603:10a6:102:2a8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Thu, 21 Mar 2024 21:47:20 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::57e1:e1cb:74e2:2e9d]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::57e1:e1cb:74e2:2e9d%5]) with mapi id 15.20.7386.031; Thu, 21 Mar 2024 21:47:20 +0000 From: Josua Mayer Date: Thu, 21 Mar 2024 22:47:11 +0100 Subject: [PATCH 1/2] dt-bindings: arm64: marvell: add solidrun cn9130 clearfog boards Message-Id: <20240321-cn9130-som-v1-1-711127a409ae@solid-run.com> References: <20240321-cn9130-som-v1-0-711127a409ae@solid-run.com> In-Reply-To: <20240321-cn9130-som-v1-0-711127a409ae@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR4P281CA0142.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b8::6) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|PA4PR04MB9413:EE_ X-MS-Office365-Filtering-Correlation-Id: f089505c-f12e-4f62-11cc-08dc49f07bf2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: keBpmPsrm3iFsUVcgEpps23LxGHQR+Be8uAzF3vpZLGXnm+/b53hgTMiAu52DDJ7jVr2eQCretCEV45R66gzAFfzNnbgn5GGqN98N7G76ZPvgTsz0hyGH5PKazzARW+LcsU47gnwxd4iZmIpZZt+YZ5XpZVNrX5wIZTEH0oth3JcXLP3QTurc7KpHBdT9bhRvR90N/BFoFA5Hvi4ayA9yq6ZJiDKKqoFunNh31+aZJhU/7/pA8ZvNbl39QanShGgxGO/ExdyKiMj8ECOGWCsaOnW1efiIQE/IqklG3iBdqtoo3rC6w/kMAQpcBrVvf+ZBUAhSmM+rJPqGMmjgEqic7/j3osZDblbnuHsSxBzqc5QkXdAp5HjclXzq+4iMp8FarnSgVxbKUxsdcIfWs7/tdOM5YtcqSDNAFksi/CdbBwnryU8/6T2NzHMKlhLGF1BIMbQ4JCW37eVY5JuRuwYP7jjjS4ceQtLAXcfXPH0X1/Y8LmXMzXdHq1CgfnTRsAyxWxQl/jG8JAUGsMVqFSd4CZqDskrB142wM/60ZwJrYcrjsHIpDabJM1o39/DIwqV3CX1c0J41ianlFBdJ/5XIRdj8WYZe4hiinFN4htQd87e3SzXKIaGgRfxzsDDUCRTsuly+hDs++pte20Me6FDvoAHpdQ2KOV2QjbLvLRkLBOXjXRX6HHHuaq/g3uL3CMau444mTLVHL0nZHs73qNfjg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qucnl05eEm710/zXmKPNTfITCE2T?= =?utf-8?q?Wts/J9rbpgrfBBglsDiAoEERJQuNUDvrJyx4Jj0ZSd2bgfljeqmDq6OFyP9wDFpL6?= =?utf-8?q?X/fejIvtPTEnH9u7xidKZOGYSBFSYYUFYEc1rHvYajXWv+Iy6EN4XxVBoyKOgY6d7?= =?utf-8?q?E9VyHLZYWNhVkIlHog2anSQN2JwJRXV7OyrO0bk8x/DpDVnS0GnAKimPz+I7Ugzp2?= =?utf-8?q?rLMzy4gbPcLWegnqx7gMOuutnDXI9RD5f3QF1ojn6rBnhvuatMyAxezmYMM2GzOW5?= =?utf-8?q?kBwnowGR6zY9+N8zlWfyROkjFd8UvqMMT5rK3TZf1dlrEnR+5zBFTPpSjTPpbdCHd?= =?utf-8?q?rh15Fxi8vRItVmuZMOgvnOSsiEnef3RZq6WtZkj/9kH7g7PkGJ5H4hFy4gcBmlN9a?= =?utf-8?q?d/CEv2Fpl04vHGD2WVDTfg7QGiYfhFnmPRAdi7r5ntlTUbjEPE5lvV3mAUOfLvTj3?= =?utf-8?q?xdk0GzAtl3exkPTmin9zGssSgCc4wGJad1UaCtldn4lNCGoW1UVA5pU2ALGWV9q0U?= =?utf-8?q?QYgyhWwQuthNFJSKLqjBb6vB7eAkHTCLDKeTZ6SJRtp6IyJgIfQ6pPYL/vxd0W1BG?= =?utf-8?q?96MCzdwy+i3ZZK9O1K7JWZLnkgrEXdyl4SBhIN7lV1Fbjr8rlwf0Hb+2YfcbPetfq?= =?utf-8?q?SOUhg9ge1pyrYFH2eFTWcX73OnHTs2RMa9WL1Z6yjFqudf8F/qz9/u/VaFYCwMuqx?= =?utf-8?q?Pt9WvDxJ4zI0xKb+1eQgVW4jlVYySIuqxPo6o17z51tmfA/FqyDW2atESwnSrJvTx?= =?utf-8?q?cE4PeM2+XXkv/RBWQoiDbz5FQAtk4oujDOgLAcFwwz487/92TDnyypEas2eoauzba?= =?utf-8?q?LT2p6Rsd7io6+N06NokimgbKkZ/8cE7PLuWMlrfYDe7KZaGSr0PtCQzJByq4r5wMa?= =?utf-8?q?u4zQDYSj4st2vaD2APBA+9HMCQcb194jeWsKV13lJ8Pf1HKJXtPJv8mBh72oOBdjp?= =?utf-8?q?9KhyQVVWnU/Cj457UbSQshVfgT9aULYej6IB/wHsKsYfueoLDt+ULcYegjwVAq5Ne?= =?utf-8?q?piH6LhzRXvf+JzeXAscckiM2trCH7uCtOIr3Pa0YP+s7aZTqiu35Pi7P1wtWjBh+h?= =?utf-8?q?GXHo9dLafq8Wv9u0s8I46tSW26D+6eKJ8y/ZT/1nk9DbN3VAQYuBIB8/LLb8+vioP?= =?utf-8?q?L3LR2gLSP8LYQ2bqtsk+AcuyQKVk+e36hWWkRef+2sYWjFnpZSi4+iXZcr1sXVLZX?= =?utf-8?q?p5+3leoBx1ubb2leYl8PcpXKJv6zHIS/sumMZoptPrIeE9IfyhJzzpJPTApdZ+0T+?= =?utf-8?q?l9f0HvZlqogXyP33NTl3r1kqsbqWMFdIjU0A81UbAPP/xvrl5M7c087t7UucWPcwU?= =?utf-8?q?2MA1iiVLg7F71ka6TnsOOhrwckLwS5nmbR3sXBsZ+Yp+KhiyeGfxUIYhRb4FSdfdx?= =?utf-8?q?7y8vRegDMv8GnQkXT4boWWRdUFXmykjJoFRyW4cJqlX43KJT6U6nsS26+nhbX0Eg4?= =?utf-8?q?dAnensyYdK3ri7OXxlfA8z6Flr9xFz7DPgXR4sfpQvBM407LUMV7SDxrlHM7TG/oX?= =?utf-8?q?Cc8RK7+QQn9u?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: f089505c-f12e-4f62-11cc-08dc49f07bf2 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 21:47:20.8669 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lG/7wb5CCnBWtjeL3R1sFL+flpv1E+hQ4Dijh3gRU8FkD7rG1BPyFBi7UU4ua107Ew0XgQVY0ZOvr7UyvrGyIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9413 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240321_144730_714964_1231663E X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add bindings for SolidRun Clearfog boards, using a new SoM based on CN9130 SoC. The carrier boards are identical to the older Armada 388 based Clearfog boards. For consistency the carrier part of compatible strings are copied, including the established "-a1" suffix. Signed-off-by: Josua Mayer Acked-by: Rob Herring --- .../devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml index 16d2e132d3d1..36bdfd1bedd9 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +++ b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml @@ -82,4 +82,16 @@ properties: - const: marvell,armada-ap807-quad - const: marvell,armada-ap807 + - description: + SolidRun CN9130 clearfog family single-board computers + items: + - enum: + - solidrun,clearfog-base-a1 + - solidrun,clearfog-pro-a1 + - const: solidrun,clearfog-a1 + - const: solidrun,cn9130-sr-som + - const: marvell,cn9130 + - const: marvell,armada-ap807-quad + - const: marvell,armada-ap807 + additionalProperties: true From patchwork Thu Mar 21 21:47:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13599392 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DEDE7C6FD1F for ; Thu, 21 Mar 2024 21:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=YS4hYJ+4X4yKAlGN0TT7fSvPFn2yKDHrv9tc86RWOAo=; b=wtLhoUF/reXK1SokeG3WnET23E +BALyHq6hPo9UDG1XIEFpIENZ9eQPwjr6oxruzgra6GxGpqYomEJJqG6Ck6VY+RrBEX1tFLm34Od+ vSTseP1vWNEJjytfzghP4qSuTE+OuzI5vG2CRqPzo+fTTEgG4BYXasQCa5xGzjKa68kuNoMorB5wj SPtDecsDKqPCEX7rH+HC8I+SKnw+gR21OPuCsn6gCCCNnmeoUAKxAJT2ihyeJd5V4Yvw9L6tn5jKF GX3bfLnL9g8tbp3KA2yS1h5+gZjjofZwMD17lIWwDmi4dlxXqRZ/3HYspiNez+IP1HnGjh4wXvzv7 OjFieZPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnQGA-00000004mJZ-3xJo; Thu, 21 Mar 2024 21:47:38 +0000 Received: from mail-he1eur04on20701.outbound.protection.outlook.com ([2a01:111:f403:260f::701] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnQG4-00000004mEw-1KF4 for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 21:47:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=btGSBXPMwE2q5NVRGSOquqVRIOYbkXzugBoGQL+x8bNnCmicwYGvL9Qgt27eFfg11Na/IApi0UhadWofDrkZSO4E0e6usrKf2CtszEgxXGssG7vcb5j5I8eZX/Ou28xViM/TTPTKNJpHx5JrWI971ag1Pmqz/9P7PgW8y3fn2ld0yu/+W8Jr5m+kvyXfThvjYD+hvJ6e9Q76xlxHlfzZtGy7MVUBmIvaXpOGbLkYEjvwNDAyJNO6D3LSrHhoHIQ1t5ptnAd+Dm9r+rwo/JEVvn/y1JFMfM03rN8iEsaQqWQ/EXMw1iHEPiTjcfZnUgC8viEDyD5tvBq3yn9m6e5K3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nSdLGMFR7pmXn6xASLyA7Kg+orWjEJa8Pv9LRsqTa94=; b=VG44emYuspiyseDdkkf8uXH7faL4vvEviM5UKbIP5jmaC8hkRhglF9V1cOAd8EQchYIxpCxHqGLjJc+ki2k/9KD/nEKCZuRV1v5IGDcP7iVEmylqWZrdw1Nj+2lM0cd46JzoTHSHX/ZUwQ9o//djokZlM9nzXiAz3jqkYiDL+8UMMtvY72Hf8DU6uUF4HrRlp8SUjgXOcS85yDdxh4l5X7sldz0+m0bDOwa8XcTkxNmZk+QDGSEfiBztC5aHESAUIBsszhQp0OZ8Kb7rLHzKpvnPcYxrnmLdIDm9uVFDzVZW/1LIOVRIkPnseEc0O42TNLpZT6UE5+dX62vwr0sUMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nSdLGMFR7pmXn6xASLyA7Kg+orWjEJa8Pv9LRsqTa94=; b=pgAQ+YGM4ii/n1Rpb0e/XZqBcFLbHbN4oXZyokzFrixP9jmBSkuNd4fX914xuy8+Rwxk6G1IbeJyTgqK9PpUW3YBtqdJQLyz+6HGJkQCJHjlj4WZxYvLvHsjbqTmvN5oFJEbQnm5SWef7qdBadbEYZvJnXVvaL5hD0xKSl55EOU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by PA4PR04MB9413.eurprd04.prod.outlook.com (2603:10a6:102:2a8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Thu, 21 Mar 2024 21:47:21 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::57e1:e1cb:74e2:2e9d]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::57e1:e1cb:74e2:2e9d%5]) with mapi id 15.20.7386.031; Thu, 21 Mar 2024 21:47:21 +0000 From: Josua Mayer Date: Thu, 21 Mar 2024 22:47:12 +0100 Subject: [PATCH 2/2] arm64: dts: add description for solidrun cn9130 som and clearfog boards Message-Id: <20240321-cn9130-som-v1-2-711127a409ae@solid-run.com> References: <20240321-cn9130-som-v1-0-711127a409ae@solid-run.com> In-Reply-To: <20240321-cn9130-som-v1-0-711127a409ae@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR4P281CA0142.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b8::6) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|PA4PR04MB9413:EE_ X-MS-Office365-Filtering-Correlation-Id: 2afe29f5-27a3-4fbc-764b-08dc49f07cf9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y8GDrTLe3lpKWfbvC/qA7mhVQcqG06d6ZGxI48xRlaY3Wgb3gnjCXDoYlDpAYQ2q/EAIYg6ceDiP9yjLxil+F0b6nUsD0Bww1P+xySyAPYOeYCowQO31wcXY8N7UmWdSDz3y+O3jSsl4YYxc0kWQlQH++d6266HS3pCBRxvO1K2wxp/TPsFBYaxxOIxYN9k2E+1PZ0Wq3flKiguPgRysdysJ/EEUaXB1isHZnAfvW5xMHVrSa05Gsb+Pt8jwiGDqF/O2IjcQ5hMDMpv0nweCyOmXzNBoCkjXlTygBLOyiJ8lOV6mAbjYMlimgkBBwnmA1bWjq2oSNWOM1SQFUv4xgj8J6ktp8i6yS8Dzv8YffWnAiFYIVSW/eVtoFMdT+1NVTz5RY2nZV5l5mj9Z/3Sgn9j7p0mZeoctFb2etkBrS8mPt7PhmBDE1RrgkatrFIsti1HC3qXk/luBBBuURlPVDXOtBsn6rb11RZ/aGCQkOm7hbaRo1iNcTPJqhJO3Z8h87jkxo0MBz6pNaQjVxqib4sDl3OXlPY4S9ZyFDwhmzNDlebMVg6tSXY8czoLIzlhVj15O0sHT4+Z1BKl5d6vUvQdwkR0qO3xv6ksj3m8BiPO2kJrfrWHCkUPPOreF1Gxqvk4EekncpsD7GFL1/awse+awgvNPQ4WNyFDkERohNM7i6x22cilknivmJXHGRul+p4fnyNNOMH3yURJek7MoCg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NGil9XhJRNkUxKTSCLhktoOSnppI?= =?utf-8?q?NT67xwy3yMZNaqEKMlGN6R69FeVgpVj6Pbx3pNPVfy9GEjdMZeOx+9YO3Fqm6Anjq?= =?utf-8?q?wefZ36NtgH9VAOE5kZRdQKJBEDJGH7MQHI3ACCLNOsl/apMgtfoFgljzcpzs8DGGC?= =?utf-8?q?U6lPsqoXADBL8OP6kCXqf8NHVsVcHUzt2lMe3QOAzzkyt2JrTDeV4WzUy2RURYLPm?= =?utf-8?q?2L+guUqVOrG+CtoGp/aA62OJHuqT0RhAFm62um/7bj9LWJ/EFFbCxFhD2qO92iiA9?= =?utf-8?q?ThXdqK8/g04wi0cG2oNCz2sQlkaVNOSW+g1xqKamYQd4TZwxSxYtbYm+bV/MjQaNP?= =?utf-8?q?GPoSmZ4SblrYq8oIoOQkhLuy0RyYknTUYTfyjXbf/8pyPYlTOPSxSHhWLJRFKz9IM?= =?utf-8?q?vXcMFKArWZKKhIE966oLhqawjvIM83JG29MlqClZipYLTLVvt7UPz6AuecSi4UNCZ?= =?utf-8?q?ocHXo/riv+awfKjYIcC4n8YDu8eGOUPSkBahRjtVtm48dIAy3zM7wl6nhNx9lwiOq?= =?utf-8?q?CWoiIXTohH6i8nx635XQ+5qW05bA1eP3KderS57526bDXoefgVkolGrsRNRBOdfyl?= =?utf-8?q?i2Rc0hLmwlZYSS9GAUG0nQx5g1csVyGGeIAHFWq2KIcgzq9Z8jVRM9kMCFm9RoFDV?= =?utf-8?q?yjn7arl+A2dvAp4yfhxaD/M7vtGzpiB+PN78RvSLoy3mJL3upxTclhqFEj9XZVOuM?= =?utf-8?q?U7f8Vd1UQT5ZT7zmgpyskulTpnyf08+Zqhtl0E2DpBzhCiVJjzwIm1knYj43NVhSn?= =?utf-8?q?h85A92EUCtQJbMFF6JbgmBIHtchT4Hzy1CoBDjAUdzJOHPrY7IiafGpDK+gxOKAOy?= =?utf-8?q?gqWXo7rjZ9CEwwrzh5ESxV1WPvCizIYioPxj8Ua7nZngF/q6058g7K2etITw7M/i0?= =?utf-8?q?OWOTMxoedmj/SjBSn9pnecSquvZujAdCuYUNjfQzSSEva5QlBv8ENBdrkx5GHH9Qh?= =?utf-8?q?HtMZqbriUW2+1gpiuUqRJ9tI4/oNiFyBgKOnkm/WelnnG9amjnU/uRe+tbLQ3MfXw?= =?utf-8?q?hqjCW9jd8Swnr4Auhxdr+GoVh2deofI6Ew6ERECIs/vyf6UNUDt5364mntM4mtdXZ?= =?utf-8?q?IhyAtOVV5yg+sCsIJHPv9FYob3WRVsPj19rZ2Trud0PasS9/ew2gUOnj+sraybzUx?= =?utf-8?q?TJH0GXmNg1OfvhNZWF8Wzg+4NuDUnts0jKf54ooiGQrS/Ht71BpBDj45VxJzEe067?= =?utf-8?q?AgSVa7rXgxDpSnGIB92vnoVKEFLMM66aFSyrUi4c52LFPxnKYmezqe/VZiVrfab8x?= =?utf-8?q?LHeR0JXA8cz9DhM7brz1FaWftShsdlJDUdnbKvh19I7xTv0Ij2HZZtB/nBsyiioWg?= =?utf-8?q?IvxVpdnDymQsc29SoVjWWSrTkWR5hcCqwowk4oXq+tWM/Vp5qxtNSVvt5LfJmM0Nh?= =?utf-8?q?O8h3voCnoMaUfw5Ldh4HTGUJzN8ILYW71WG9imwSGgWFNLWV48eaTZb4TfUFh6p5c?= =?utf-8?q?PRUFx9C5fMPRE2+8gir/iU5CUrAygUeWQpx4uU6n2OwCOlZHfAPNWpaA9fVPEyt21?= =?utf-8?q?O+MqmKX6meYn?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2afe29f5-27a3-4fbc-764b-08dc49f07cf9 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 21:47:21.8440 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QtZIX29Bf7sk5r320vkprTuQZKR6lN7BkRbH24k2SruS6fK3pfI/vLV0VBMvdxo2n/6IJnxxn1QFfWVYVDHbdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9413 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240321_144732_446386_3DE971AB X-CRM114-Status: GOOD ( 15.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add description for the SolidRun CN9130 SoM, and Clearfog Base / Pro reference boards. The SoM has been designed as a pin-compatible replacement for the older Armada 388 based SoM. Therefore it supports the same boards and a similar feature set. Most notable upgrades: - 4x Cortex-A72 - 10Gbps SFP - Both eMMC and SD supported at the same time The developer first supporting this product at SolidRun decided to use different filenames for the DTBs: Armada 388 uses the full "clearfog" string while cn9130 uses the abbreviation "cf". This name is already hard-coded in pre-installed vendor u-boot and can not be changed easily. NOTICE IN CASE ANYBODY WANTS TO SELF-UPGRADE: CN9130 SoM has a different footprint from Armada 388 SoM. Components on the carrier board below the SoM may collide causing damage, such as on Clearfog Base. Signed-off-by: Josua Mayer --- arch/arm64/boot/dts/marvell/Makefile | 2 + arch/arm64/boot/dts/marvell/cn9130-cf-base.dts | 138 ++++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts | 249 +++++++++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf.dtsi | 198 ++++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 160 ++++++++++++++++ 5 files changed, 747 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile index 99b8cb3c49e1..019f2251d696 100644 --- a/arch/arm64/boot/dts/marvell/Makefile +++ b/arch/arm64/boot/dts/marvell/Makefile @@ -28,3 +28,5 @@ dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-A.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-B.dtb dtb-$(CONFIG_ARCH_MVEBU) += ac5x-rd-carrier-cn9131.dtb dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb +dtb-$(CONFIG_ARCH_MVEBU) += cn9130-cf-base.dtb +dtb-$(CONFIG_ARCH_MVEBU) += cn9130-cf-pro.dtb diff --git a/arch/arm64/boot/dts/marvell/cn9130-cf-base.dts b/arch/arm64/boot/dts/marvell/cn9130-cf-base.dts new file mode 100644 index 000000000000..b0067940d5e4 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf-base.dts @@ -0,0 +1,138 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for SolidRun CN9130 Clearfog Base. + * + */ + +/dts-v1/; + +#include + +#include "cn9130.dtsi" +#include "cn9130-sr-som.dtsi" +#include "cn9130-cf.dtsi" + +/ { + model = "SolidRun CN9130 Clearfog Base"; + compatible = "solidrun,clearfog-base-a1", "solidrun,clearfog-a1", + "solidrun,cn9130-sr-som","marvell,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807"; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&rear_button_pins>; + pinctrl-names = "default"; + + button-0 { + /* The rear SW3 button */ + label = "Rear Button"; + gpios = <&cp0_gpio1 31 GPIO_ACTIVE_LOW>; + linux,can-disable; + linux,code = ; + }; + }; + + rfkill-m2-gnss { + compatible = "rfkill-gpio"; + label = "m.2 GNSS"; + radio-type = "gps"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 9 GPIO_ACTIVE_HIGH>; + }; + + /* M.2 is B-keyed, so w-disable is for WWAN */ + rfkill-m2-wwan { + compatible = "rfkill-gpio"; + label = "m.2 WWAN"; + radio-type = "wwan"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 8 GPIO_ACTIVE_HIGH>; + }; +}; + +/* SRDS #3 - SGMII 1GE */ +&cp0_eth1 { + phy = <&phy1>; + phys = <&cp0_comphy3 1>; + phy-mode = "sgmii"; + status = "okay"; +}; + +&cp0_eth2_phy { + /* + * Configure LEDs: + * - LED[0]: link/activity: On/blink (green) + * - LED[1]: link is 100/1000Mbps: On (yellow) + * - LED[2]: high impedance (floating) + */ + marvell,reg-init = <3 16 0xf000 0x0a61>; +}; + +&cp0_gpio1 { + sim-select-hog { + gpio-hog; + gpios = <27 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "sim-select"; + }; +}; + +&cp0_mdio { + phy1: ethernet-phy@1 { + reg = <1>; + /* + * Configure LEDs: + * - LED[0]: link/activity: On/blink (green) + * - LED[1]: link is 100/1000Mbps: On (yellow) + * - LED[2]: high impedance (floating) + * + * Polarity: On = low, Off = high (not hi-z) + */ + marvell,reg-init = <3 16 0xf000 0x0a61>, + <3 17 0x003f 0x000a>; + }; +}; + +&cp0_pinctrl { + pinctrl-0 = <&sim_select_pins>; + pintrl-names = "default"; + + rear_button_pins: cp0-rear-button-pins { + marvell,pins = "mpp31"; + marvell,function = "gpio"; + }; + + sim_select_pins: cp0-sim-select-pins { + marvell,pins = "mpp27"; + marvell,function = "gpio"; + }; +}; + +/* + * SRDS #4 - USB 3.0 host on M.2 connector + * USB-2.0 Host on Type-A connector + */ +&cp0_usb3_1 { + phys = <&cp0_comphy4 1>, <&cp0_utmi1>; + phy-names = "comphy", "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +&expander0 { + m2-full-card-power-off-hog { + gpio-hog; + gpios = <2 GPIO_ACTIVE_LOW>; + output-low; + line-name = "m2-full-card-power-off"; + }; + + m2-reset-hog { + gpio-hog; + gpios = <10 GPIO_ACTIVE_LOW>; + output-low; + line-name = "m2-reset"; + }; +}; diff --git a/arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts b/arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts new file mode 100644 index 000000000000..f7733f6a89b8 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts @@ -0,0 +1,249 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for SolidRun CN9130 Clearfog Pro. + * + */ + +/dts-v1/; + +#include + +#include "cn9130.dtsi" +#include "cn9130-sr-som.dtsi" +#include "cn9130-cf.dtsi" + +/ { + model = "SolidRun CN9130 Clearfog Pro"; + compatible = "solidrun,clearfog-pro-a1", "solidrun,clearfog-a1", + "solidrun,cn9130-sr-som","marvell,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807"; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&rear_button_pins>; + pinctrl-names = "default"; + + button-0 { + /* The rear SW3 button */ + label = "Rear Button"; + gpios = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>; + linux,can-disable; + linux,code = ; + }; + }; + + /* mini-pcie w-disable could be either wlan or wwan */ + rfkill-mpcie1-xxan { + compatible = "rfkill-gpio"; + label = "mPCI-e WLAN (CON2)"; + radio-type = "wlan"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 7 GPIO_ACTIVE_HIGH>; + }; +}; + +/* SRDS #3 - SGMII 1GE to L2 switch */ +&cp0_eth1 { + phys = <&cp0_comphy3 1>; + phy-mode = "sgmii"; + status = "okay"; + + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + +&cp0_eth2_phy { + /* + * Configure LEDs similar to switch ports: + * - LED[0]: link/activity: On/blink (green) + * - LED[1]: link is 100/1000Mbps: On (red) + * - LED[2]: high impedance (floating) + * + * Switch port defaults: + * - LED0: link/activity: On/blink (green) + * - LED1: link is 1000Mbps: On (red) + * + * Identical configuration is impossible. + */ + marvell,reg-init = <3 16 0xf000 0x0a61>; +}; + +&cp0_mdio { + ethernet-switch@4 { + compatible = "marvell,mv88e6085"; + reg = <4>; + pinctrl-0 = <&dsa_clk_pins &dsa_pins>; + pinctrl-names = "default"; + reset-gpios = <&cp0_gpio1 27 GPIO_ACTIVE_LOW>; + interrupt-parent = <&cp0_gpio1>; + interrupts = <29 IRQ_TYPE_EDGE_FALLING>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-port@0 { + reg = <0>; + label = "lan5"; + phy = <&switch0phy0>; + }; + + ethernet-port@1 { + reg = <1>; + label = "lan4"; + phy = <&switch0phy1>; + }; + + ethernet-port@2 { + reg = <2>; + label = "lan3"; + phy = <&switch0phy2>; + }; + + ethernet-port@3 { + reg = <3>; + label = "lan2"; + phy = <&switch0phy3>; + }; + + ethernet-port@4 { + reg = <4>; + label = "lan1"; + phy = <&switch0phy4>; + }; + + ethernet-port@5 { + reg = <5>; + ethernet = <&cp0_eth1>; + phy-mode = "sgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + ethernet-port@6 { + reg = <6>; + label = "lan6"; + phy-mode = "rgmii"; + + /* + * Because of mdio address conflict the + * external phy is not readable. + * Force a fixed link instead. + */ + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + switch0phy0: ethernet-phy@0 { + reg = <0x0>; + }; + + switch0phy1: ethernet-phy@1 { + reg = <0x1>; + /* + * Indirectly configure LEDs for port + * lan6 using external phy. + * Internal PHYs are not using page 3, + * therefore writing to it is safe. + */ + marvell,reg-init = <3 16 0xf000 0x0a61>; + }; + + switch0phy2: ethernet-phy@2 { + reg = <0x2>; + }; + + switch0phy3: ethernet-phy@3 { + reg = <0x3>; + }; + + switch0phy4: ethernet-phy@4 { + reg = <0x4>; + }; + }; + + /* + * There is an external phy on the switch mdio bus. + * Because its mdio address collides with internal phys, + * it is not readable. + * + * mdio-external { + * compatible = "marvell,mv88e6xxx-mdio-external"; + * #address-cells = <1>; + * #size-cells = <0>; + * + * ethernet-phy@1 { + * reg = <0x1>; + * }; + * }; + */ + }; +}; + +/* SRDS #4 - miniPCIe (CON2) */ +&cp0_pcie1 { + num-lanes = <1>; + phys = <&cp0_comphy4 1>; + /* dw-pcie inverts internally */ + reset-gpios = <&expander0 2 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&cp0_pinctrl { + dsa_clk_pins: cp0-dsa-clk-pins { + marvell,pins = "mpp40"; + marvell,function = "synce1"; + }; + + dsa_pins: cp0-dsa-pins { + marvell,pins = "mpp27", "mpp29"; + marvell,function = "gpio"; + }; + + rear_button_pins: cp0-rear-button-pins { + marvell,pins = "mpp32"; + marvell,function = "gpio"; + }; +}; + +/* + * USB-2.0 Host on Type-A connector + */ +&cp0_usb3_1 { + phys = <&cp0_utmi1>; + phy-names = "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +&expander0 { + /* CON2 */ + pcie1-0-clkreq-hog { + gpio-hog; + gpios = <4 GPIO_ACTIVE_LOW>; + input; + line-name = "pcie1.0-clkreq"; + }; + + /* CON2 */ + pcie1-0-w-disable-hog { + gpio-hog; + gpios = <7 GPIO_ACTIVE_LOW>; + output-low; + line-name = "pcie1.0-w-disable"; + }; +}; diff --git a/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi b/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi new file mode 100644 index 000000000000..1aaa0d916e75 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi @@ -0,0 +1,198 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for common base of SolidRun CN9130 Clearfog Base and Pro. + * + */ + +/ { + model = "SolidRun CN9130 Clearfog"; + compatible = "solidrun,clearfog-a1", + "solidrun,cn9130-sr-som","marvell,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807"; + + aliases { + i2c1 = &cp0_i2c1; + mmc1 = &cp0_sdhci0; + }; + + reg_usb3_vbus0: regulator-usb3-vbus0 { + compatible = "regulator-fixed"; + regulator-name = "vbus0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&expander0 6 GPIO_ACTIVE_LOW>; + }; + + sfp: sfp { + compatible = "sff,sfp"; + i2c-bus = <&cp0_i2c1>; + los-gpios = <&expander0 12 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&expander0 15 GPIO_ACTIVE_LOW>; + tx-disable-gpios = <&expander0 14 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&expander0 13 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <2000>; + }; +}; + +/* SRDS #2 - SFP+ 10GE */ +&cp0_eth0 { + managed = "in-band-status"; + phys = <&cp0_comphy2 0>; + phy-mode = "10gbase-r"; + sfp = <&sfp>; + status = "okay"; +}; + +&cp0_i2c0 { + expander0: gpio-expander@20 { + compatible = "nxp,pca9555"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + pinctrl-0 = <&expander0_pins>; + pinctrl-names = "default"; + interrupt-parent = <&cp0_gpio1>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + + /* CON3 */ + pcie2-0-clkreq-hog { + gpio-hog; + gpios = <0 GPIO_ACTIVE_LOW>; + input; + line-name = "pcie2.0-clkreq"; + }; + + /* CON3 */ + pcie2-0-w-disable-hog { + gpio-hog; + gpios = <3 GPIO_ACTIVE_LOW>; + output-low; + line-name = "pcie2.0-w-disable"; + }; + + usb3-ilimit-hog { + gpio-hog; + gpios = <5 GPIO_ACTIVE_LOW>; + input; + line-name = "usb3-current-limit"; + }; + + m2-devslp-hog { + gpio-hog; + gpios = <11 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "m.2 devslp"; + }; + }; + + /* The MCP3021 supports standard and fast modes */ + adc@4c { + compatible = "microchip,mcp3021"; + reg = <0x4c>; + }; + + carrier_eeprom: eeprom@52 { + compatible = "atmel,24c02"; + reg = <0x52>; + pagesize = <8>; + }; +}; + +&cp0_i2c1 { + /* + * Routed to SFP, M.2, mikrobus, and miniPCIe + * SFP limits this to 100kHz, and requires an AT24C01A/02/04 with + * address pins tied low, which takes addresses 0x50 and 0x51. + * Mikrobus doesn't specify beyond an I2C bus being present. + * PCIe uses ARP to assign addresses, or 0x63-0x64. + */ + clock-frequency = <100000>; + pinctrl-0 = <&cp0_i2c1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +/* SRDS #5 - miniPCIe (CON3) */ +&cp0_pcie2 { + num-lanes = <1>; + phys = <&cp0_comphy5 2>; + /* dw-pcie inverts internally */ + reset-gpios = <&expander0 1 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&cp0_pinctrl { + cp0_i2c1_pins: cp0-i2c1-pins { + marvell,pins = "mpp35", "mpp36"; + marvell,function = "i2c1"; + }; + + cp0_mmc0_pins: cp0-mmc0-pins { + marvell,pins = "mpp43", "mpp56", "mpp57", "mpp58", + "mpp59", "mpp60", "mpp61"; + marvell,function = "sdio"; + }; + + mikro_spi_pins: cp0-spi1-cs1-pins { + marvell,pins = "mpp12"; + marvell,function = "spi1"; + }; + + mikro_uart_pins: cp0-uart-pins { + marvell,pins = "mpp2", "mpp3"; + marvell,function = "uart1"; + }; + + expander0_pins: cp0-expander0-pins { + marvell,pins = "mpp4"; + marvell,function = "gpio"; + }; +}; + +/* SRDS #0 - SATA on M.2 connector */ +&cp0_sata0 { + phys = <&cp0_comphy0 1>; + status = "okay"; + + /* only port 1 is available */ + /delete-node/ sata-port@0; +}; + +/* microSD */ +&cp0_sdhci0 { + pinctrl-0 = <&cp0_mmc0_pins>; + pinctrl-names = "default"; + bus-width = <4>; + no-1-8-v; + status = "okay"; +}; + +&cp0_spi1 { + /* CS1 for mikrobus */ + pinctrl-0 = <&cp0_spi1_pins &mikro_spi_pins>; +}; + +/* + * SRDS #1 - 3.0 Host on Type-A connector + * USB-2.0 Host on mPCI-e connector (CON3) + */ +&cp0_usb3_0 { + phys = <&cp0_comphy1 0>, <&cp0_utmi0>; + phy-names = "comphy", "utmi"; + vbus-supply = <®_usb3_vbus0>; + dr_mode = "host"; + status = "okay"; +}; + +&cp0_utmi { + status = "okay"; +}; + +/* mikrobus uart */ +&cp0_uart0 { + pinctrl-0 = <&mikro_uart_pins>; + pinctrl-names = "default"; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi b/arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi new file mode 100644 index 000000000000..f151a2a399c1 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi @@ -0,0 +1,160 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2024 Josua Mayer + * + */ + +#include + +/ { + model = "SolidRun CN9130 SoM"; + compatible = "solidrun,cn9130-sr-som", "marvell,cn9130", + "marvell,armada-ap807-quad", "marvell,armada-ap807"; + + aliases { + /* label nics like armada-388 som */ + ethernet0 = &cp0_eth2; + ethernet1 = &cp0_eth1; + ethernet2 = &cp0_eth0; + i2c0 = &cp0_i2c0; + mmc0 = &ap_sdhci0; + rtc0 = &cp0_rtc; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + v_1_8: regulator-1-8 { + compatible = "regulator-fixed"; + regulator-name = "1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + /* requires assembly of R9307 */ + vhv: regulator-vhv-1-8 { + compatible = "regulator-fixed"; + regulator-name = "vhv-1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + pinctrl-0 = <&cp0_reg_vhv_pins>; + pinctrl-names = "default"; + gpio = <&cp0_gpio2 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&ap_pinctrl { + ap_mmc0_pins: ap-mmc0-pins { + marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3", "mpp4", "mpp5", + "mpp6", "mpp7", "mpp8", "mpp9", "mpp10", "mpp12"; + marvell,function = "sdio"; + /* + * mpp12 is emmc reset, function should be sdio (hw_rst), + * but pinctrl-mvebu does not support this. + * + * From pinctrl-mvebu.h: + * "The name will be used to switch to this setting in DT description, e.g. + * marvell,function = "uart2". subname is only for debugging purposes." + */ + }; +}; + +&ap_sdhci0 { + bus-width = <8>; + pinctrl-0 = <&ap_mmc0_pins>; + pinctrl-names = "default"; + vqmmc-supply = <&v_1_8>; + status = "okay"; +}; + +&cp0_ethernet { + status = "okay"; +}; + +/* for assembly with phy */ +&cp0_eth2 { + pinctrl-names = "default"; + pinctrl-0 = <&cp0_eth2_pins>; + phy-mode = "rgmii-id"; + phy = <&cp0_eth2_phy>; + status = "okay"; +}; + +&cp0_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&cp0_i2c0_pins>; + clock-frequency = <100000>; + status = "okay"; + + som_eeprom: eeprom@53 { + compatible = "atmel,24c02"; + reg = <0x53>; + pagesize = <8>; + }; +}; + +&cp0_mdio { + status = "okay"; + pinctrl-0 = <&cp0_mdio_pins>; + + /* assembly option */ + cp0_eth2_phy: ethernet-phy@0 { + reg = <0>; + }; +}; + +&cp0_spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&cp0_spi1_pins>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + }; +}; + +&cp0_syscon0 { + cp0_pinctrl: pinctrl { + compatible = "marvell,cp115-standalone-pinctrl"; + + cp0_eth2_pins: cp0-ge2-rgmii-pins { + marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47", + "mpp48", "mpp49", "mpp50", "mpp51", + "mpp52", "mpp53", "mpp54", "mpp55"; + /* docs call it "ge2", but cp110-pinctrl "ge1" */ + marvell,function = "ge1"; + }; + + cp0_i2c0_pins: cp0-i2c0-pins { + marvell,pins = "mpp37", "mpp38"; + marvell,function = "i2c0"; + }; + + cp0_mdio_pins: cp0-mdio-pins { + marvell,pins = "mpp40", "mpp41"; + marvell,function = "ge"; + }; + + cp0_spi1_pins: cp0-spi1-pins { + marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16"; + marvell,function = "spi1"; + }; + + cp0_reg_vhv_pins: cp0-reg-vhv-pins { + marvell,pins = "mpp41"; + marvell,function = "gpio"; + }; + }; +}; + +/* AP default console */ +&uart0 { + pinctrl-0 = <&uart0_pins>; + pinctrl-names = "default"; + status = "okay"; +};