From patchwork Thu May 2 12:32:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13651690 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 122C6C4345F for ; Thu, 2 May 2024 12:32:44 +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=BMvvGFhF0lcieVKNelpE53azHoWKMChcercG1UU8f0I=; b=iVecPXjLkLLvLS3ZcIMNdhnUX9 bu3GD7cmzBRP/Aoj2bADT12fOBK9u07yjWKqcodeWINutg6WnDlsqCQ2qTamvTQM7fpMfC+SV2NAm fv3qc6403cXevt8OZeMvaquh0qk+tOHv71TcSDNyO7u7hKOw2fLoqtpsvWOO6p3w7ymuzb6Cg9A2X BCTYiZ4vFcDM4BvVZzwdRVElKtcsBTdP/NYAlCuH11iixtend4K1TsD4LXRM7uW3Ob8RGQPizeZqY UJ1NMcAqofDs6nWRQZ3po8p1VySWb49R5J5F+mAEkDPm1sK+wBejFQIAh7xbVWxh2GX500rPX7CC6 oSzhzHDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vc1-0000000CfZ4-1vKY; Thu, 02 May 2024 12:32:33 +0000 Received: from mail-vi1eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2607::701] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vbw-0000000CfVK-3rO2 for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2024 12:32:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Az0OZf500ZThMGLhiof6ehBy8+Nk/KYXKH4IEV1qs8L3JwVB6gEi4p6EU0CEfI7p+tGaHNWCfZ7f+NCr9d0ezbogrEGggXZ7o0SQV+C/uCi4sVcSgZLCm7eciwkXRWCmhG5lU5Q6aP6PUxAt7KvsFtTdFXn906SgZB1qVVoIIqzgHk2tUYnCcacxA1PEkcMtlfubdkkNPA2uPakQWAsU15yJSm9tLG0kFumvwCUwiuLhtVQGDB5CeTivOwcCUZilfXRMe41moGS6Y/m0AsCmjmIY/QB8pP6IvIMqDA/QmtVMjdRbN9JZ8XlYhkQEfcCn8pmzhx0pKcKHZswoTJm5eQ== 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=GHuDlE4bz3Ri64XL5zF4+GOIm5j56U6XO6oNEWy+k7s=; b=jLph0+mSTUsOoUMP8udwo4wu+74/W6bOPJbbnSPlyV5vVejYKbTqj75IDt6r0NZOnNsAuiJSUi+6SV9Ck2GYJJc8E644aWwrmxZODUO1q/n4ZfzOLFVCh+6jjl2AyeFXLOmXGqgFmfIGf+Coy/JNcFr3doVY4IxIzP/4jsCGr1jhHUikL6WMhUosVDlk6vC4P4YAwQuOeBVpo/3R9CWIExCNiXTx3e72gOPBnQ3jLUZVjEMbphs7Jxp++GTmcT5C/IOQdPrb8ZSN8YWu5TZApQPp7FZbKIpaK9+ZYUIgqkvqLMQbU3wkPLX2n02DfGvISZ9PsHhER0boCvHD3laTGw== 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=GHuDlE4bz3Ri64XL5zF4+GOIm5j56U6XO6oNEWy+k7s=; b=fg5L18hRqKc3Yt/kkPCpJLYmRSG+2hzau8dFVth6Ht7g5KRfRPnC3cplGwzcNypanGj9ItcqmZsconJnPon+yqzNhfEvLxQCJBPmNIbOE4xQzK4/y0NEWhVVqPng+y26AhQt6iBV8m3KuMx7g5WNFAWIxJW/l5R11lXwuyWuLC8= 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 DBBPR04MB7900.eurprd04.prod.outlook.com (2603:10a6:10:1e8::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Thu, 2 May 2024 12:32:17 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%7]) with mapi id 15.20.7544.029; Thu, 2 May 2024 12:32:17 +0000 From: Josua Mayer Date: Thu, 02 May 2024 14:32:15 +0200 Subject: [PATCH v4 1/4] dt-bindings: arm64: marvell: add solidrun cn9130 som based boards Message-Id: <20240502-cn9130-som-v4-1-0a2e2f1c70d8@solid-run.com> References: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> In-Reply-To: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Herring Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0108.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::11) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7900:EE_ X-MS-Office365-Filtering-Correlation-Id: 92aba2fe-ca02-457e-288d-08dc6aa3e776 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?WegzwmwgOR5KxqM9jTUZusQ4As4dMS6?= =?utf-8?q?7StHRzIEEAZNjyvns6xTGFZ1bGfJkNsVWRLqQBTE1LD01OPdTlQdHwkX7sKH33Vfr?= =?utf-8?q?ZxnBSPfZTZTa5xwqSyWslSkjSQGBvY8ciLH45iMF2YNgOvDOWDXuPsixg8MbdYJxf?= =?utf-8?q?J0Liri8cG8VQvu5w7af/LJEZmwZhMca78wJnGDsxjiveHSf5jsyVpTzP7g6opFisU?= =?utf-8?q?9Fz9NGE2PhR2j1Wf8QeodfwB18u7DPw601YFg0pUlXG6QgkPODCTnYfFyKBJySU+Z?= =?utf-8?q?vWuuz4eqEFqLFDwSZBk7cBRguIuEvsminVrGCixjwktpigodPUufpqJATcCFKgXoH?= =?utf-8?q?FSGEkJ/+1Amt4XHE5BzHqYrsZUFhR+An3lYXhFKGewvfUEukYjf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bUNvEcpWGLrAKp?= =?utf-8?q?HJf6EConHNSy6HfWuJrOmLpEzuEYhoBmEkA=3D=3D?= 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)(7416005)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OxoXGrqrAtATbYdw9LXHnHDI6/mO?= =?utf-8?q?zkaG66ZY7yTHxhMdzawryTHdDTVOkxEtlMWaWcVuJi7kmzLahYM5VQTdCRaL8f8j1?= =?utf-8?q?kb+nIUYKA5i1aNgbYFPyekTmyM1Z7GOyzQVG0Gs7C0qNStWip+2KNH00VaGI1uqkY?= =?utf-8?q?CzpI1eU0kwEQ2MNxqlebKC4PPZcaBgtV/sa46zfMSykQF2OcxMcVbpJLCqekbJQ3U?= =?utf-8?q?5B23NmeD6KkqReAdt0nFct8C2Ixd9tz7Fk4LrECg+ORY2Yy6SP2cOtCe9UHRl99+F?= =?utf-8?q?I4Wfa0P4i2jZGNfDCONS1OogvEnVvrL1q8T2ywS6kvo+wxSPvTsZ6jLtlEnZM08Qw?= =?utf-8?q?yt4eulJzFjkdqhgEHPs55wv1BC4q7BmHJrkLFRIVCTzdnq4tg7LMHO9/ru1s1xnUq?= =?utf-8?q?EPv+vQoSlt2c/X7tE6vb5IL08vCEMgp8vHAyDOq9HuShKafLNIm8l86zJ3rU1Us53?= =?utf-8?q?rYo53mSlLlMUNAANadTkjBJrVg5EJGA1r1sJZyeDFXkrwcKpU7C+TUNEk48chEOrZ?= =?utf-8?q?/Kcf/1uJ8LOryGHsea4t1AqLZ3UUoCNmeYtJZbHiCQAVNQthrwb7P3NfSSlyz9m5U?= =?utf-8?q?yQMGNbdh9ijrQr7ut/hiHOljr7c7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+yzwFGgEezfjRH1FU5IIQbNwKm1KGTePfyPp?= =?utf-8?q?XxlJ8JPi5EQd?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92aba2fe-ca02-457e-288d-08dc6aa3e776 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 12:32:17.5876 (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: N+szoffbAKLD62NYzM6xUDFWIqefoUPbQgZeda2lG2ym8iIUBOSp1M87pj57B4GqHA4zzBBinqo57Uj2WsufoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7900 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240502_053229_027447_81CC9FC7 X-CRM114-Status: GOOD ( 12.07 ) 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 boards based on CN9130 SoM. Three boards are added in total: - Clearfog Base - Clearfog Pro - SolidWAN The Clearfog boards are identical to the older Armada 388 based boards, upgraded with a new SoM and SoC. However the feature set and performance characteristics are different, therefore compatible strings from armada 388 versions are not included. SolidWAN uses the same SoM adding a southbridge on the carrier. Since 2019 there are bindings in-tree for two boards based on cn9130 and 9131. These are extremely verbose by listing cn9132, cn9131, cn9130, ap807-quad, ap807 for the SoC alone. CN9130 SoC combines an application processor (ap807) and a communication processor (cp115) in a single package. The communication processor (short CP) is also available separately as a southbridge. It only functions in combination with the CN9130 SoC. Complete systems adding one or two southbridges are by convention called CN9131 and CN9132 respectively. Despite different naming all systems are built around the same SoC. Therefore marvell,cn9131 and marvell,cn9132 can be omitted. The number of CPs is part of a board's BoM and can be reflected in the board compatible string instead. Existing bindings also describe cn9130 as a specialisation of ap807-quad. Usually board-level compatibles stop at the SoC without going into silicon versions or individual dies. There is no programming model at this layer, and in particular not for parts of an SoC. Therefore the ap compatibles can also be omitted. Signed-off-by: Josua Mayer Reviewed-by: Krzysztof Kozlowski Reviewed-by: Andrew Lunn --- .../devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 10 ++++++++++ 1 file changed, 10 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..74d935ea279c 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +++ b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml @@ -82,4 +82,14 @@ properties: - const: marvell,armada-ap807-quad - const: marvell,armada-ap807 + - description: + SolidRun CN9130 SoM based single-board computers + items: + - enum: + - solidrun,cn9130-clearfog-base + - solidrun,cn9130-clearfog-pro + - solidrun,cn9131-solidwan + - const: solidrun,cn9130-sr-som + - const: marvell,cn9130 + additionalProperties: true From patchwork Thu May 2 12:32:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13651691 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 5A8E9C25B5C for ; Thu, 2 May 2024 12:32:44 +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=aMT9XG4GtBFArGbV2ebdztkQnqKhgXMhy8KwvCxhNRI=; b=UGM4UPn+FnlNMTYlXJkwZaYiJh BmMK1mGgghJ6y4REygKZrfELFRYqkRkDXALj0K5+Y83ATowpUzBLskFTxY+NGzFq+CO9Lq5icko6n GSfu5R2+0T6tUpFHoiFTBr4Pq8J/LnVgUo4iKMP0gkjQKVOah9IUC60EP0Mlf2vEnP6lKzpr30/kc 4dJfWiQhZIvIb/af49o54LZjQunbEXZG5BFtHsYNpf7olEDamiXQV0rXK2CGsALn+Q0sF79r7p0wG ndmqf/0Xq1gmzCQWfs1YGlTuajSK5rJQEDrX3xpGSNAD44rUe1dm1X8wAs/UTYGp32uiE7DJC9TVm ia585caA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vby-0000000CfXp-2VKt; Thu, 02 May 2024 12:32:30 +0000 Received: from mail-vi1eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2607::701] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vbv-0000000CfVK-10AG for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2024 12:32:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PoyQka7YpBKlOPje3/YHQHixLsTOLk48/F/Hm2fLOGZ+aL097x/Pvbqa3NOvZfSyOhlBUBBzvtfW7OS234dvC5mQaMyQmSWczJJmtspQDqb/+W3PR5lflmza9MyZiVhQM1Tx2BvRBi9JVLSiXbG3AwTAqfABceNAF0mhRyUazm+Tsi2MmHNLOmvaNRH7raEZ5f9d2tcekFrkkoN3I9kh2Tpb9f5tpYQRgkzPWPcsB8VC2Kjzv32WQ1gwfGUmnz+L4EINmawZLmk6RbDfjtOjv+BBAdE5TdQoNTtzaVmIdpegUJWjD1ejsmCtsx2H4Sx6KUxQJdPy9bqZIvlf4+N+ow== 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=LlQy4rBk6ixkdbPr4GAxyRHBN7NhXDroHp6p2aHDx64=; b=D4VPr2Fi2aHeLTHG676Cl6Mqg0zP3nxnCNHIpdsY6ids1ohriZSeWdmIn0TQH2BPRGZ1QLegycsfmGEztSxrStWZVgwl1p9H7jihcODMB8UHO3d9/lDA8nZM58jnvzIr8ht4c9fQ58m6EzobrwnFEfcDxT1vA8NKvEkUoOmmtP0bYk7a4Zut1LSBuAjrBvoGVU+jClZwJF38pxZP1wm0zHfn7NNDF8jv2FXb+4jgBLM9FZB3o6Y/3MYPowqF9KxICG6at35k2DPx0y1nJmiJV2mke0kIbU2bhymX/5rGUjgFqSNrbqn3Ir9tAO+LcWt0y60L7CSUQlsqS9avoqxZAg== 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=LlQy4rBk6ixkdbPr4GAxyRHBN7NhXDroHp6p2aHDx64=; b=kowJRAlguNM7thN2ZXSXHLwieidH2/ILQxmza4prC1UfjZplh3B6v/lswf5HEu8mDzBzcZHMc+nGEUvkuNP8jLjFE+KqUA30Kw+yv06BKe+rl1y2ZfzgHN72TQjMeoxiMEHAvF3lRwthXobSborOZKb0L/z27wdauLn3YvMeItU= 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 DBBPR04MB7900.eurprd04.prod.outlook.com (2603:10a6:10:1e8::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Thu, 2 May 2024 12:32:18 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%7]) with mapi id 15.20.7544.029; Thu, 2 May 2024 12:32:18 +0000 From: Josua Mayer Date: Thu, 02 May 2024 14:32:16 +0200 Subject: [PATCH v4 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board Message-Id: <20240502-cn9130-som-v4-2-0a2e2f1c70d8@solid-run.com> References: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> In-Reply-To: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Herring Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Josua Mayer , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0108.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::11) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7900:EE_ X-MS-Office365-Filtering-Correlation-Id: 7335ac84-deae-4fe8-1f59-08dc6aa3e7b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?WclsmCZlgE/xkjdeoI0vOmTC7Gpsjzy?= =?utf-8?q?RcPY02noV+XnJJXDP+b+wdzgP6PmgN/kUyAOt9Kc0SYcGfahOXGkwHScxy/6gc307?= =?utf-8?q?N5UUB3LaOEpTeGGY82umzbU0oRGbDDvQc0HBo2uOnKDZZmaHKSDP8eVc9FQLH8J18?= =?utf-8?q?GRvtnrfpnkzeQL0hlm37pq0yrHniirOodwrWB3UGgO2Hq5UYqv3fEKaCnHwN6ue4y?= =?utf-8?q?PEpHCxrrPkhyN9nVaGoF85tNpckx2z0bx8lxkhX3DV8WHfDXuFZ/OQfwH/UWoeEXl?= =?utf-8?q?Wr0F57yh2ms4KoKN/xIIRDR8sMt3QNlEyoDZ1EhfW2GZaTWtTBcqV2POV1wLxPYMx?= =?utf-8?q?42xUnpmxJvNfZ3+KaGkZ9ET4PB3Pitxv8v1qNP+yqLzo04PBTC31c8vqovWpsbqBC?= =?utf-8?q?bv22b91/Pwr11enJoruy6ACXzc0zPcoQzdw3MFTxFqH7eE7UY4B1HRL8LVNXpUvGs?= =?utf-8?q?gceW+rthFLzJ4KooxApqz59I1SsTQJDxxlncM4tQYmyyXe/Hp5E8lKv3j/Fxkev3y?= =?utf-8?q?b/nttWLxckmUZ4whYsxjRyXWK4cR8i/eLJ+65GwKUoeQXn5ufJroTpHY18SSRPXZk?= =?utf-8?q?ZopFWtlTqr7mWdc0VptBu0koqQedCQo78frD6PLF8FzXk3XY+1L1X+gwWbfnMZBdG?= =?utf-8?q?SgagLSeeLF910knKF3o2ecspbRoIOdZmWgSok0jRT2y+ZC9JOiblh4wA4JgmmSjgX?= =?utf-8?q?PMu8L2CUpvKIenQe8qnKACN/UwYyItCEGt60hls9YOD2rW8A42Md7T6kJtIull8OH?= =?utf-8?q?4eUHe+BcKiq+GnzgpjMcfl7Cf5DEygSeto/+KHaOHTaFIBgXjeUrj5hdIf4F8BGh1?= =?utf-8?q?UtJWy873LwcQXzWPlMxD4wIBAJT2q1S/ZK4sfxwup8tb0k4gpY68RZ8Nf8KM3lqij?= =?utf-8?q?acxAW7ff1v2Wc8MWX2fIvqbJZBDBXJVgz9i4Y6I18HJm+9XbNo5RdVSnmDs0WQaF3?= =?utf-8?q?xs+t03KeepuXzbgPKk7cPo8ArQDIN+WyyS4JVwxRaq32X+xCAo0KIkR6SJYBAfxvu?= =?utf-8?q?cKSl2pzGHkfaW7Fdtx3czB0DcJNyTnYvQ2XnEZQPaqNVs4cKMZrcylFhmZr8tE5rn?= =?utf-8?q?ZKdbcvUiWcSU9Zvkl7VP8sVarqknKM8GFsNlqMZaZCPAijTaV2yMWQyaINwCh6FJM?= =?utf-8?q?sfd8qBGRUwT3OcpWBC/DkvL2FcZVKaBrSEKQa8vrgBzgm2LiOQkWlDlz5fHFjwUYW?= =?utf-8?q?RPHDwtLFZnF7WPQIsSfl+qiIRFIipeEbAFQRiOmp/ilaV7IgxqpQ0yuOjvHkR3k+5?= =?utf-8?q?0Xc4pNCovCDRDi4HviMumx4uP2CPGH6VrMg=3D=3D?= 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)(7416005)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q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gGsqHXLc9Fgm7OdmcXh7fg+f4JKIQFBlyxQt7KA?= =?utf-8?q?XtV2f+pvfBJzoJQeBIG2oVLu2l4wmRhcIOkAN9cbCdClWSIb6p/JnR72Ug4Cpi75r?= =?utf-8?q?TkK3wUFMJ5Uj4XJ4HZ2D0H0T/gtHwIDacm3Vqfrr4jpGeTHmulaMNwnor/C6HtnoS?= =?utf-8?q?iFBKTOAWeauHgorCECFMExCK7HRGi36Gup1loAuSchnJtG+vA7BHOBfEgxyR8hlfn?= =?utf-8?q?nPf/InVLRiV8dry21igbsh5Q6HAdmSWiNzg9rEswiHpiZXkNmz8YNnEtxdqZZ8o2M?= =?utf-8?q?9WsCXY4s5bcduE3RY8QvZirJ1LhSeyjdajIY14aAEKQY+YtOMHwwbpK5Z47y4rVEH?= =?utf-8?q?JNPou6AeTzxEEwGO1TIxqf+REU2i2lJ4t9lCEIfPJg6b7yjz0nfvNzbHu2lHiPaoP?= =?utf-8?q?S5iEiRXDCcesuFGNJYnXEiL+MIFqUiWXZ3miBa+Q8tcaf2WxiXfuqK691seY4aaLv?= =?utf-8?q?xrB8TY2vlzSGCf9bhnNUoqF0wN343Xpue9WhKZoX5wBtZmO3CM3QtdiX7Obsshqzf?= =?utf-8?q?i4bUxhWt7cXYWoaLIoe7uBy8wC2ustomPap03C5CmMMtwiz3hBkjnXJnJLv17k8GA?= =?utf-8?q?8TQNJ4OVmI4yCQhKnLnS3UozoyV7aB59HvdwgJfjY8Mn+JmbMZwQxN94rIklaWGLm?= =?utf-8?q?tw3XZMLUZyPl?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7335ac84-deae-4fe8-1f59-08dc6aa3e7b7 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 12:32:18.0170 (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: Gw1S4dcEBPSbUp8YS1WDdf7dEptpLczmug8hXCehjbLC8QsNrVMnHvYW0VJcjXZ0Vz1uRJXzn6AN6Bjw39+S4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7900 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240502_053227_328450_78AED6E0 X-CRM114-Status: UNSURE ( 8.34 ) 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 the SolidRun CN9132 COM-Express Type 7 evaluation board. The CEX is based on CN9130 SoC and includes two southbridges. Because CN9132 and 9131 are just names for different designs around the same SoC, no soc compatibles beside marvell,cn9130 are needed. Signed-off-by: Josua Mayer Acked-by: Krzysztof Kozlowski Reviewed-by: Andrew Lunn --- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml index 74d935ea279c..538d91be8857 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +++ b/Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml @@ -92,4 +92,12 @@ properties: - const: solidrun,cn9130-sr-som - const: marvell,cn9130 + - description: + SolidRun CN9132 COM-Express Type 7 based single-board computers + items: + - enum: + - solidrun,cn9132-clearfog + - const: solidrun,cn9132-sr-cex7 + - const: marvell,cn9130 + additionalProperties: true From patchwork Thu May 2 12:32:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13651693 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 4FE52C25B5C for ; Thu, 2 May 2024 12:32:52 +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=4SSuHJwA6oTS5LoyLEAud43yLQ8nH87CXNjmVH044PA=; b=zSeYXINM84C8ttkXE/yYD2PyTt 7r1XeqMDGxMQQSJpvs4slwbJcyWtX7lSsUDlTUp1fkcQnp5JD8otCe//lhfZxRJe/o0uRAe9RGdMz 8c12D0yRefW4u0RZV/teeeNlvS7pTadYn03TowKrnI9eigl4fMeCdxJaK3RTUh9RaEEjJZAYl5HfE X1JMpCtMXhFPOd2U5GissbJBjaJxmvU9WwvbBXhRcAMchX3iiGPDVjqo/6hPsLdeSQIjv/mPT4XRy M/Lck9AJPgk4Vr+K5P2/NLTQXtpY9jLCb5V5CfC1SGYhTH9hG32AcaESpDSrCTDitkqBBpiY9ePtb CsxeYPIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vc7-0000000Cfcm-14bQ; Thu, 02 May 2024 12:32:39 +0000 Received: from mail-vi1eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2607::701] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vc2-0000000CfVK-2NoV for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2024 12:32:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jvDfcbw/p4jUkjSDXZ4DJUjF55Zu6KCGooL0YsmYkcoE02aLhUv4xHQP4yW3dTYIqctYdQpEAt3berC9dTOfTco716UiOgQTe98oenLvBtwsX9Li5bkEas1HobrtNBxR5F1B9cFuSEqtwcMUkIMk9QwZe9FGkWQlTyInj4tOpTtYB+W305iIAtCXz+u2gLl6OWzmKfkanH3mS/SAs4VPrzFwdkkiwhbm1Rq7YZ4nDZemt41pu7DSL2wUAY1wiaU3qDhjY98YfEu5dG/mt6LjKvCFzUE0C+H4I+yFRtp1+PcBBG35+3EzdCa6O6XtBwlpPKSm72hlHNLbm7P79YW73w== 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=vo5BGbWiFZAiTCPdzisQWFKPxsJtR4IjKCUlGVn58CE=; b=WxB9I6nkbJFhcPfQTwkuAFBwOJlOaQtWG9BfYiHlHlBIOlnjlvWfZEQAtWudxZ0mJBi+UC24ZsAiIPOQ1zGRV3Kc3UD1Yec1h3yPSLqbAaaku5CJFETizO0QefNRSixrPqbySsJIbrlkSa6GAmTGsOsMED5m7deQm5G0dTVGOt1MVw2RD6OfNre9MNR7gxs+fGLZvHQoBaSzpxHUh4aDCjIeWSzWIQE1b9EmzI4FzMuiPk0yspTh62xCLuHyxrONEjnY/JUi4HRMk9DZT5nBrmOefT7CDp4DKuPHHWqU3wGnMVjVM8/EufrmfpQ4T3qHQwkHkYNPoxWDpF08OMJ6fA== 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=vo5BGbWiFZAiTCPdzisQWFKPxsJtR4IjKCUlGVn58CE=; b=NZoZBOkVInwQLtC+e/rDoifu/kYKZ7jFAEAw08Z/U70MR6utMBUsdlT9m0i5wCFuhwOkGhs0oE+waJ+1z7bssJYNmY9/b2yMdWiK8wGZfAlZ5TBU2OFo6BtTeLoEpuAl6o07otkxKCsDCZ0qV7HxijM1iSCkboO5VLpGuXOqExQ= 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 DBBPR04MB7900.eurprd04.prod.outlook.com (2603:10a6:10:1e8::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Thu, 2 May 2024 12:32:18 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%7]) with mapi id 15.20.7544.029; Thu, 2 May 2024 12:32:18 +0000 From: Josua Mayer Date: Thu, 02 May 2024 14:32:17 +0200 Subject: [PATCH v4 3/4] arm64: dts: add description for solidrun cn9130 som and clearfog boards Message-Id: <20240502-cn9130-som-v4-3-0a2e2f1c70d8@solid-run.com> References: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> In-Reply-To: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Herring 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: FR3P281CA0108.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::11) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7900:EE_ X-MS-Office365-Filtering-Correlation-Id: e7f98df6-57f2-4660-6b52-08dc6aa3e7f7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+HABa+JPoXeQ5JGck+1KStY8xQNN1mE?= =?utf-8?q?5N9aZCcbu1Ogt3kN3Hu2w+C2d4XAZjLKKN13d3xrcNDKA2a6T8O2ikQ7FSCeZw8y3?= =?utf-8?q?OOZwOQ0vnWomDkumhIMakUg5sTIKJckR5rxkPyYOPXJvNEmk38J8OfriIZXX8ytxI?= =?utf-8?q?gRNFu1/YyMfKrqgQHT7u8301iygzua5s/uCQze28tsQkmbQW0zn/TnC/L3riqgeP8?= =?utf-8?q?Ur+fgyc7fIzLw/99uolwjZY2qRQU6Wif5dOW8B1Qo/3Q24+SLQx5zR+EzJM3WLVek?= =?utf-8?q?JgyQ4Az3HTJE2dWH5n+s49EyNhByGtqK6YuzywpB13Rvyc8oDcq5DfaJsYG1t5jU3?= =?utf-8?q?gMhmjRoo2Rl2YB5JtKtvHzfwIyoWLUOlv6a1sT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A1kVV0xtz1GEuKl4pGvnmfmWFKP1aD+0GZNof?= =?utf-8?q?dmjs9q5KG+J46UYiaNMTm4+n78CyJ8ttKzQ=3D=3D?= 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)(7416005)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?t9I6WRHE3LaZ0YRjJnYHB+44vxTh?= =?utf-8?q?XFZi/R7MNhp85bJuOYzB2RQNivqA1ooch5vu5yxEZ5kfuGU9YpgBx6s/85mCMdqP1?= =?utf-8?q?gCj7EM/EQMlJwNV3+jEaePu52aZtaw5cHJQ0YCmaEjGWgacoM4IzpNkHI7WpE4/wT?= =?utf-8?q?I/DVTUrCOYSZms1LR7UTIL8vUbJRopeRU6x3ZzsaW/BVTccGp6QhGk73H+reWMlny?= =?utf-8?q?bUVYCsW+/r+fV/07ctq8FjBgk7JrmuvpKsEZLA2J1FycKL0uzD21ny9kJHMxkKFU7?= =?utf-8?q?skjtGwD9YuYG+9qQ7OsjQfpAA9b1CNx9scq0EBKy3450u8CI+4rna8ceaDc6cUewk?= =?utf-8?q?QueNYziA8vbd6FXBmhmJ/M1hBLbSbDqzyuszln/ZpDQbiWW3fcw8wXu2wDPKbWCYz?= =?utf-8?q?7z2sL5USe8xsKV7jbiCBN9OQzy84GrC3Pqgqf7YpSXK1PPiwW3Fd1rVsT1ETsED3I?= =?utf-8?q?9rUdawG59jnifyEQgpxXfohtnP1XiVWFS3TRr46ON0KslI3SbHzaSwO4jq68mIehJ?= =?utf-8?q?Px7tBDuXs0t0sgYZ/8HxajJQcx3pbmwubwWsd5hYJx6q0MH9dwFdbvFSePO/ffIPN?= =?utf-8?q?Zp3ll2K5tyIncr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Ck0YlgFDpVwnYGBocWjysozObvEJycAuXJWAP8e?= =?utf-8?q?eQwNu6699ED6?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7f98df6-57f2-4660-6b52-08dc6aa3e7f7 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 12:32:18.4502 (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: UFemjved0OWqGSZs+KTGo3FxU7sKf0mfjZeI0F4JFcf0Z5kOCS2xbef0NVghvOhAVHpmdCtiLsx6Bg7cT5PLDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7900 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240502_053234_828643_A5C8A115 X-CRM114-Status: GOOD ( 14.56 ) 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 Reviewed-by: Andrew Lunn --- arch/arm64/boot/dts/marvell/Makefile | 2 + arch/arm64/boot/dts/marvell/cn9130-cf-base.dts | 178 ++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts | 375 +++++++++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf.dtsi | 197 +++++++++++++ arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 160 +++++++++++ 5 files changed, 912 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..788a5c302b17 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf-base.dts @@ -0,0 +1,178 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for SolidRun CN9130 Clearfog Base. + * + */ + +/dts-v1/; + +#include +#include + +#include "cn9130.dtsi" +#include "cn9130-sr-som.dtsi" +#include "cn9130-cf.dtsi" + +/ { + model = "SolidRun CN9130 Clearfog Base"; + compatible = "solidrun,cn9130-clearfog-base", + "solidrun,cn9130-sr-som", "marvell,cn9130"; + + 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 default behaviour: + * - 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>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_WAN; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_WAN; + default-state = "keep"; + }; + }; +}; + +&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 default behaviour: + * - LED[0]: link/activity: On/blink (green) + * - LED[1]: link is 100/1000Mbps: On (yellow) + * - LED[2]: high impedance (floating) + * + * Configure LEDs electrical polarity + * - on-state: low + * - off-state: high (not hi-z, to avoid residual glow) + */ + marvell,reg-init = <3 16 0xf000 0x0a61>, + <3 17 0x003f 0x000a>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; + }; +}; + +&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..a27fe0042867 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts @@ -0,0 +1,375 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for SolidRun CN9130 Clearfog Pro. + * + */ + +/dts-v1/; + +#include +#include + +#include "cn9130.dtsi" +#include "cn9130-sr-som.dtsi" +#include "cn9130-cf.dtsi" + +/ { + model = "SolidRun CN9130 Clearfog Pro"; + compatible = "solidrun,cn9130-clearfog-pro", + "solidrun,cn9130-sr-som", "marvell,cn9130"; + + 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 = ; + }; + }; +}; + +/* 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 default behaviour 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 with hardware offload. + */ + marvell,reg-init = <3 16 0xf000 0x0a61>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_WAN; + label = "LED2"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_WAN; + label = "LED1"; + default-state = "keep"; + }; + }; +}; + +&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>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED12"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED11"; + default-state = "keep"; + }; + }; + }; + + ethernet-port@1 { + reg = <1>; + label = "lan4"; + phy = <&switch0phy1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED10"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED9"; + default-state = "keep"; + }; + }; + }; + + ethernet-port@2 { + reg = <2>; + label = "lan3"; + phy = <&switch0phy2>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED8"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED7"; + default-state = "keep"; + }; + }; + }; + + ethernet-port@3 { + reg = <3>; + label = "lan2"; + phy = <&switch0phy3>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED6"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED5"; + default-state = "keep"; + }; + }; + }; + + ethernet-port@4 { + reg = <4>; + label = "lan1"; + phy = <&switch0phy4>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED4"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + label = "LED3"; + default-state = "keep"; + }; + }; + }; + + ethernet-port@5 { + reg = <5>; + label = "cpu"; + 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 default behaviour + * for port lan6 leds behind 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"; + }; + + cp0_spi1_cs1_pins: cp0-spi1-cs1-pins { + marvell,pins = "mpp12"; + marvell,function = "spi1"; + }; +}; + +&cp0_spi1 { + /* add pin for chip-select 1 on mikrobus */ + pinctrl-0 = <&cp0_spi1_pins &cp0_spi1_cs1_pins>; +}; + +/* 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..0a0ba2fce537 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi @@ -0,0 +1,197 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for common base of SolidRun CN9130 Clearfog Base and Pro. + * + */ + +/ { + aliases { + /* label nics same order as armada 388 clearfog */ + ethernet0 = &cp0_eth2; + ethernet1 = &cp0_eth1; + ethernet2 = &cp0_eth0; + 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 - USB-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..8f0238a45a58 --- /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"; + + aliases { + ethernet0 = &cp0_eth0; + ethernet1 = &cp0_eth1; + ethernet2 = &cp0_eth2; + 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 { + 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 { + pinctrl-0 = <&cp0_mdio_pins>; + status = "okay"; + + /* assembly option */ + cp0_eth2_phy: ethernet-phy@0 { + reg = <0>; + }; +}; + +&cp0_spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&cp0_spi1_pins>; + /* max speed limited by a mux */ + spi-max-frequency = <1800000000>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + /* read command supports max. 50MHz */ + spi-max-frequency = <50000000>; + }; +}; + +&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"; +}; From patchwork Thu May 2 12:32:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13651694 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 A8CB5C04FFE for ; Thu, 2 May 2024 12:32:53 +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=8YM5VDaYkD59onRrFNbp7mDto7b99W8Vupy/Qe0boWA=; b=vAYLiWsmou/UBi+aB6if4XSnNW WvZSlpeBY8vzrsh8tEzJECMgxa4+BbF/Vv8D/GrBMzkf0AzfR5BvGfAz3jEZB8SqiwtxxQCzNbeU3 qjEahDQRhnmSr0h3wbRqGhcnBNlJvhyNjfwdmOBZGCauX3w7srDr7ufNyT6T5+6ijdtliNHPtF5Co g868m96EAIQNnOsb9cgD+iCAG7YFhOfn+xiDNJ1YguDMaxqbABBzyrCAcTRFNkt+TVMnw2MQDCqOJ whupbb1jdIUOy/4m048ocsT00QcUJXNuuNaTaMxHMlYSxomSec0Ic+UHGBGKUcQGJSD7/cYxRGHvV mbrZfODw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vc9-0000000Cfds-0dsL; Thu, 02 May 2024 12:32:41 +0000 Received: from mail-vi1eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2607::701] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Vc6-0000000CfVK-1HJ3 for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2024 12:32:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fDLhspbrMJ81xSYksnk1Fwd5YE6Zkauo+oEu0MzvBzE46le40dbIsEK6Zu1oRl+C1Ygr/pNZ0tI4XHUZR3HRxgNddkX8psMpigi6ecd+iRytopfnCq2xgRCMpqST/ydJ0juEK7RYXoTTuvRi42Vqc5Qaz0WDQ9dsOqqXHhObKIK6YSSGhmlLeAAu8t1g3HcZJU7wLvlTXrvQ5g9T0U4f5YdsolcuMPovfdEC63P2UJeKcqfaKTRXWH/LstvZBYxgoe4V4+Ut53PShHh7uTlsdmkGWJIDUwgF/hKp+xne9pd9AOW/bBxQcfmlgZhbOXnKMrRsA5i3grl9JGUNphkTiA== 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=MBKqhe1w7Czp4SbSkwED8e2+65CbgvVrXDmxY4WF4NQ=; b=i8zY9kCcA3MdTzC796tZxSdadKrdnyEtEHIluSdets3mGgv53ar3bctlCjrFyB+edA9bupM0jJoD4JMqLb9uhTE75cOia5eA0jwV8argcFz8xDS68cAEFzccnplEmBwgVka9FBjm2TjtRS2nS3u8qzo87rHJElrswK1HwshHcxvtYG3yWhxEXSiR/klAV0fVwE6+VLglTdNeDdySfoSSMyJoGoSmhwC8yeokpnwBeJfx1KwIoKR4Yvi2hnSskFOfPVMbP3zs0DWAYbZJRXJXTrLAkhtADSGvJUIEq2+U968za+anuLtw+kuo/Rb9ntjnEqh4HNrHpfLPhkPdUBy8lQ== 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=MBKqhe1w7Czp4SbSkwED8e2+65CbgvVrXDmxY4WF4NQ=; b=L8NyYSGNVS8Ac6X7Yg6j3WLr0IAYfHN2JbQ93AZ4FGZ56IrjVM5N30SyuonZjEPXEhTgVKsV2P+9smReIDnEVK6Qt2l73rQFi5Eu4C/v0wN2yVfZ7e3S0WxCInrO5+XdZQrLYLaPQHyKFOFuy3RigoIFeXUa0HrckRGxyAT33Ao= 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 DBBPR04MB7900.eurprd04.prod.outlook.com (2603:10a6:10:1e8::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Thu, 2 May 2024 12:32:19 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%7]) with mapi id 15.20.7544.029; Thu, 2 May 2024 12:32:18 +0000 From: Josua Mayer Date: Thu, 02 May 2024 14:32:18 +0200 Subject: [PATCH v4 4/4] arm64: dts: add description for solidrun cn9131 solidwan board Message-Id: <20240502-cn9130-som-v4-4-0a2e2f1c70d8@solid-run.com> References: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> In-Reply-To: <20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Herring 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: FR3P281CA0108.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::11) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7900:EE_ X-MS-Office365-Filtering-Correlation-Id: aa75f3cf-f20f-4661-61eb-08dc6aa3e835 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|52116005|366007|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?h4GXA6TKVRNSj7YmT0bklrLw0PV7lbT?= =?utf-8?q?xbps1O5PB5Ir2iEwtYQK6SasTbuLq+R7Cxnok1VtXYGeTDoMkjif76XyrrcpxRcfz?= =?utf-8?q?9n0xK9nwCIw9Pty5p7+v9Dvx8j2cBp/Ezmu1sPipriQOBUfgEfHGTJw0sVotAPuPw?= =?utf-8?q?sS3+A6mQpX174fOyuo4fnE931WRNfyA6H2LXyhPN79m6tMc4rhYRtgsR9CllEvZ5p?= =?utf-8?q?Tuq8Z5rlnMTyY4SweSEQp+DE1J/jaZtOweZaGMWkQjPNuxl0pANd8c6z2b5PrkeBr?= =?utf-8?q?+fHQDOjobolUtegblTHqj08m75/qmEF8GcXhOIkNlQOGNVSczCOH1PNyTLK7+OODy?= =?utf-8?q?Yl+PgGN4TagsjaGmUBs6VBoPTu/3mTtToHF6LJyFNIEVcU54SikS0+cept1ThMxh+?= =?utf-8?q?FMXk3Id207Q8CKnwg8D2sdxV1kb7FWej9DPj8p33SqyWVjzoTex0E+5WxvCYgflR8?= =?utf-8?q?C5FQG5mTYuKNPOeiFYCcMceotci8HHo+uPuupLBWIR4zxg46gsHBA21p8zw+RJGsp?= =?utf-8?q?g1NL5I8BwY/jXekCJTksEWtufSC1H1XG6tUL/cGmZicKcV8CH5jt5NAUB3uURtRDm?= =?utf-8?q?bmSeJVoLpUMrrbU7VsmsOtjvr+vnRfSVg5uLckLaBgmeB68NAZebECnhvZTlBdERq?= =?utf-8?q?/BGE9MmGS46+4HBVCu4umGMyZt51FFjW/yyg6P1RanyoDeEf3ygHSfSPMUiSW1G4P?= =?utf-8?q?/kxGEoXWTwVv5JPSbdqPkHIhkGdO9vHkFICf9NHl7/8r6AfG9cGxFkc2qmm4Rp7nN?= =?utf-8?q?Ee1eDZoN+0Luo//g76KpWaGY+QnPODNThYB4SLbvp0Reo7VfYOVm7u9so+17wZWoK?= =?utf-8?q?hhbqCbuzMwsvxar6AODG9OKMMsIq+At04y72D6XMEJn7JVO7Bl2fUYIlr5QSNpdqA?= =?utf-8?q?yNqitZKFVEgd5uRaCDkx9hwHV2vEHlsglinoTnCG6Tq2Be6xgUejF1Mxhy9w+lvwy?= =?utf-8?q?pzzyVaoGlFqvJZJClMPCNLSmZhgXNq2CKS4EyBmeWI1x76ytTAhTlAJCarEZmFJi2?= =?utf-8?q?QnLVgbICY4WhEw1pk5PYIrFF8/VQIv1a9LhuFEt6TyhFuAL8K6OguJUDFYnU1szMl?= =?utf-8?q?9zowFnXP0pvl2pB8aqXtQsG3vIMAN5PauciHwRWxpKlhZS61Wz0gjMLgWVGwm+xRW?= =?utf-8?q?Z8hFcGiWezqz6RBkNjLDdvm3rJ0h79l+k0j+QfPXVNW9gxvULYmK1E8PnJW04sy9r?= =?utf-8?q?uIANS/FQUXKmctFxlw92ukYYavtXGmRO6ee+iSPQvq9iwSs0kyNjipE9sjMFjlisv?= =?utf-8?q?1AyB1r0p6+bKZJf3tkPaIyAm4dquOzLTkDg=3D=3D?= 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)(7416005)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dvoJYzUggx7m8v8uaJs3gWdqTIqd?= =?utf-8?q?yNveSWeTdoMlFOVQIHl/uEShaSa+egZYx2BkPU8qk7bDIBd2TR7uGlLGQcyEFP6uL?= =?utf-8?q?JCEUw3fPKrfOGqL7K79ixXyXcPKoaNtRbKmVRmMpd3eJEy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PMcDXILX7A9P7qauO5s0ZHm?= =?utf-8?q?A8uw2YzkweOHBx6RbBegkR8H3rNht4/OOQML4g+ZDYkrO/Brr+vF7gaGvx8ZWbibO?= =?utf-8?q?uYEw/YMcZyyBJJKaMPB/lV6L1EvVwLutPuEc5dHMzcJy5fWqR1JARV7tLTIErv2F5?= =?utf-8?q?tvXC4CGjmrS0SfEWacs6qgC/MY+Ue4AZrRVzNsRB835NYkJ42HP7kA3cxNsdjP1Iz?= =?utf-8?q?rT4kEvTER3aCM0VbCpEE4/fCamiV4E6QcIkZvEyatibtW6Z1tFYz6iv5ETwP0roqU?= =?utf-8?q?140WuJX8TFZphA2BzkOG5TOofMtbMLcevIx1zL78G92oIZNSFVOLASyS1JiNnSECV?= =?utf-8?q?BANx4emHOSr9p7lGJvdfsJR64Cj7erPBA3t8UxcfyO9KgRK4GOoVY1WTgHuATYwxU?= =?utf-8?q?47JZnIhMyP6PsWbPaSGz0GE9YEiGMhcAr4xW5mKkk4ENxeecATkTc4Pg+IzQHHJdj?= =?utf-8?q?pgJfRlQBu1jIDIdcc0nnQDqNiPoKnyWokEzVvsDFSnCPIXx7dh4EapGOAWr3hvG/D?= =?utf-8?q?bMOMKosbNc4n?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa75f3cf-f20f-4661-61eb-08dc6aa3e835 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 12:32:18.8551 (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: 1bqpIPWqcV2ThDS+gGvTfUOT1TWQJKshMppOGE+yjXJUgwpAcMdapBStRXvLlI6wXsrjB5IgduEJ34qJtdlIdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7900 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240502_053238_402620_19C7EF55 X-CRM114-Status: GOOD ( 13.49 ) 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 CN9131 SolidWAN, based on CN9130 SoM with an extra communication processor on the carrier board. This board differentiates itself from CN9130 Clearfog by providing additional SoC native network interfaces and pci buses: 2x 10Gbps SFP+ 4x 1Gbps RJ45 1x miniPCI-E 1x m.2 b-key with sata, usb-2.0 and usb-3.0 1x m.2 m-key with pcie and usb-2.0 1x m.2 b-key with pcie, usb-2.0, usb-3.0 and 2x sim slots 1x mpcie with pcie only 2x type-a usb-2.0/3.0 Signed-off-by: Josua Mayer --- arch/arm64/boot/dts/marvell/Makefile | 1 + arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts | 643 +++++++++++++++++++++ 2 files changed, 644 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile index 019f2251d696..16f9d7156d9f 100644 --- a/arch/arm64/boot/dts/marvell/Makefile +++ b/arch/arm64/boot/dts/marvell/Makefile @@ -30,3 +30,4 @@ 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 +dtb-$(CONFIG_ARCH_MVEBU) += cn9131-cf-solidwan.dtb diff --git a/arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts b/arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts new file mode 100644 index 000000000000..a63a8961bad0 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts @@ -0,0 +1,643 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Josua Mayer + * + * DTS for SolidRun CN9130 Clearfog Base. + * + */ + +/dts-v1/; + +#include +#include + +#include "cn9130.dtsi" +#include "cn9130-sr-som.dtsi" + +/* + * Instantiate the external CP115 + */ + +#define CP11X_NAME cp1 +#define CP11X_BASE f4000000 +#define CP11X_PCIEx_MEM_BASE(iface) (0xe2000000 + (iface * 0x1000000)) +#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000 +#define CP11X_PCIE0_BASE f4600000 +#define CP11X_PCIE1_BASE f4620000 +#define CP11X_PCIE2_BASE f4640000 + +#include "armada-cp115.dtsi" + +#undef CP11X_NAME +#undef CP11X_BASE +#undef CP11X_PCIEx_MEM_BASE +#undef CP11X_PCIEx_MEM_SIZE +#undef CP11X_PCIE0_BASE +#undef CP11X_PCIE1_BASE +#undef CP11X_PCIE2_BASE + +/ { + model = "SolidRun CN9131 SolidWAN"; + compatible = "solidrun,cn9131-solidwan", + "solidrun,cn9130-sr-som", "marvell,cn9130"; + + aliases { + ethernet0 = &cp1_eth1; + ethernet1 = &cp1_eth2; + ethernet2 = &cp0_eth1; + ethernet3 = &cp0_eth2; + ethernet4 = &cp0_eth0; + ethernet5 = &cp1_eth0; + gpio0 = &ap_gpio; + gpio1 = &cp0_gpio1; + gpio2 = &cp0_gpio2; + gpio3 = &cp1_gpio1; + gpio4 = &cp1_gpio2; + gpio5 = &expander0; + i2c0 = &cp0_i2c0; + i2c1 = &cp0_i2c1; + i2c2 = &cp1_i2c1; + mmc0 = &ap_sdhci0; + mmc1 = &cp0_sdhci0; + rtc0 = &cp0_rtc; + rtc1 = &carrier_rtc; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&cp0_led_pins &cp1_led_pins>; + + /* for sfp-1 (J42) */ + led-sfp1-activity { + label = "sfp1:green"; + gpios = <&cp0_gpio1 7 GPIO_ACTIVE_HIGH>; + }; + + /* for sfp-1 (J42) */ + led-sfp1-link { + label = "sfp1:yellow"; + gpios = <&cp0_gpio1 4 GPIO_ACTIVE_HIGH>; + }; + + /* (J28) */ + led-sfp0-activity { + label = "sfp0:green"; + gpios = <&cp1_gpio2 22 GPIO_ACTIVE_HIGH>; + }; + + /* (J28) */ + led-sfp0-link { + label = "sfp0:yellow"; + gpios = <&cp1_gpio2 23 GPIO_ACTIVE_HIGH>; + }; + }; + + /* Type-A port on J53 */ + reg_usb_a_vbus0: regulator-usb-a-vbus0 { + compatible = "regulator-fixed"; + pinctrl-0 = <&cp0_reg_usb_a_vbus0_pins>; + pinctrl-names = "default"; + regulator-name = "vbus0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-oc-protection-microamp = <1000000>; + gpio = <&cp0_gpio1 27 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + reg_usb_a_vbus1: regulator-usb-a-vbus1 { + compatible = "regulator-fixed"; + pinctrl-0 = <&cp0_reg_usb_a_vbus1_pins>; + pinctrl-names = "default"; + regulator-name = "vbus1"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-oc-protection-microamp = <1000000>; + gpio = <&cp0_gpio1 28 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + sfp0: sfp-0 { + compatible = "sff,sfp"; + pinctrl-0 = <&cp0_sfp0_pins>; + pinctrl-names = "default"; + i2c-bus = <&cp0_i2c1>; + los-gpio = <&cp0_gpio2 2 GPIO_ACTIVE_HIGH>; + mod-def0-gpio = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>; + tx-disable-gpio = <&cp0_gpio2 1 GPIO_ACTIVE_HIGH>; + tx-fault-gpio = <&cp0_gpio1 31 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <2000>; + }; + + sfp1: sfp-1 { + compatible = "sff,sfp"; + pinctrl-0 = <&cp1_sfp1_pins>; + pinctrl-names = "default"; + i2c-bus = <&cp1_i2c1>; + los-gpio = <&cp1_gpio2 2 GPIO_ACTIVE_HIGH>; + mod-def0-gpio = <&cp1_gpio2 18 GPIO_ACTIVE_LOW>; + tx-disable-gpio = <&cp1_gpio2 1 GPIO_ACTIVE_HIGH>; + tx-fault-gpio = <&cp1_gpio2 17 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <2000>; + }; +}; + +&cp0_ethernet { + status = "okay"; +}; + +/* SRDS #2 - SFP+ 10GE */ +&cp0_eth0 { + managed = "in-band-status"; + phy-mode = "10gbase-r"; + phys = <&cp0_comphy2 0>; + sfp = <&sfp0>; + status = "okay"; +}; + +/* SRDS #3 - SGMII 1GE */ +&cp0_eth1 { + managed = "in-band-status"; + phy-mode = "sgmii"; + /* Without mdio phy access rely on sgmii auto-negotiation. */ + phys = <&cp0_comphy3 1>; + status = "okay"; +}; + +/* SRDS #1 - SGMII */ +&cp0_eth2 { + /delete-property/ pinctrl-0; + /delete-property/ pinctrl-names; + managed = "in-band-status"; + phy-mode = "sgmii"; + phy = <&cp0_phy1>; + phys = <&cp0_comphy1 2>; +}; + +&cp0_gpio1 { + pcie0-0-w-disable-hog { + gpio-hog; + gpios = <6 GPIO_ACTIVE_LOW>; + output-low; + line-name = "pcie0.0-w-disable"; + }; + + /* J34 */ + m2-full-card-power-off-hog { + gpio-hog; + gpios = <8 GPIO_ACTIVE_LOW>; + output-low; + line-name = "m2-full-card-power-off"; + }; +}; + +&cp0_i2c0 { + /* assembly option */ + fan-controller@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + + expander0: gpio@41 { + compatible = "nxp,pca9536"; + reg = <0x41>; + + usb-a-vbus0-ilimit-hog { + gpio-hog; + gpios = <0 GPIO_ACTIVE_LOW>; + input; + line-name = "vbus0-ilimit"; + }; + + /* duplicate connection, controlled by soc gpio */ + usb-vbus0-enable-hog { + gpio-hog; + gpios = <1 GPIO_ACTIVE_HIGH>; + input; + line-name = "vbus0-enable"; + }; + + usb-a-vbus1-ilimit-hog { + gpio-hog; + gpios = <2 GPIO_ACTIVE_LOW>; + input; + line-name = "vbus1-ilimit"; + }; + + /* duplicate connection, controlled by soc gpio */ + usb-vbus1-enable-hog { + gpio-hog; + gpios = <3 GPIO_ACTIVE_HIGH>; + input; + line-name = "vbus1-enable"; + }; + }; + + carrier_eeprom: eeprom@52 { + compatible = "atmel,24c02"; + reg = <0x52>; + pagesize = <8>; + }; + + /* usb-hub@60 */ + + /* assembly option */ + carrier_rtc: rtc@68 { + compatible = "st,m41t83"; + reg = <0x68>; + pinctrl-0 = <&cp1_rtc_pins>; + pinctrl-names = "default"; + interrupt-parent = <&cp1_gpio1>; + interrupts = <12 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&cp1_gpio1 13 GPIO_ACTIVE_LOW>; + }; +}; + +&cp0_i2c1 { + /* + * Routed to SFP. + * Limit to 100kHz for compatibility with SFP modules, + * featuring AT24C01A/02/04 at addresses 0x50/0x51. + */ + clock-frequency = <100000>; + pinctrl-0 = <&cp0_i2c1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&cp0_mdio { + /* + * SoM + Carrier each have a PHY at address 0. + * Remove the SoM phy node, and skip adding the carrier node. + * SGMII Auto-Negotation is enabled by bootloader for + * autonomous operation without mdio control. + */ + /delete-node/ ethernet-phy@0; + + /* U17016 */ + cp0_phy1: ethernet-phy@1 { + reg = <1>; + /* + * Configure LEDs default behaviour: + * - LED[0]: link is 1000Mbps: On (yellow) + * - LED[1]: link/activity: On/blink (green) + * - LED[2]: high impedance (floating) + */ + marvell,reg-init = <3 16 0xf000 0x0a17>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; + }; +}; + +/* SRDS #0 - miniPCIe */ +&cp0_pcie0 { + num-lanes = <1>; + phys = <&cp0_comphy0 0>; + status = "okay"; +}; + +/* SRDS #5 - M.2 B-Key (J34) */ +&cp0_pcie2 { + num-lanes = <1>; + phys = <&cp0_comphy5 2>; + status = "okay"; +}; + +&cp0_pinctrl { + pinctrl-0 = <&cp0_m2_0_shutdown_pins &cp0_mpcie_rfkill_pins>; + pinctrl-names = "default"; + + cp0_i2c1_pins: cp0-i2c1-pins { + marvell,pins = "mpp35", "mpp36"; + marvell,function = "i2c1"; + }; + + cp0_led_pins: cp0-led-pins { + marvell,pins = "mpp4", "mpp7"; + marvell,function = "gpio"; + }; + + cp0_m2_0_shutdown_pins: cp0-m2-0-shutdown-pins { + marvell,pins = "mpp8"; + marvell,function = "gpio"; + }; + + cp0_mmc0_pins: cp0-mmc0-pins { + marvell,pins = "mpp43", "mpp56", "mpp57", "mpp58", + "mpp59", "mpp60", "mpp61"; + marvell,function = "sdio"; + }; + + cp0_mpcie_rfkill_pins: cp0-mpcie-rfkill-pins { + marvell,pins = "mpp6"; + marvell,function = "gpio"; + }; + + cp0_reg_usb_a_vbus0_pins: cp0-reg-usb-a-vbus0-pins { + marvell,pins = "mpp27"; + marvell,function = "gpio"; + }; + + cp0_reg_usb_a_vbus1_pins: cp0-reg-usb-a-vbus1-pins { + marvell,pins = "mpp28"; + marvell,function = "gpio"; + }; + + cp0_sfp0_pins: cp0-sfp0-pins { + marvell,pins = "mpp31", "mpp32", "mpp33", "mpp34"; + marvell,function = "gpio"; + }; + + cp0_spi1_cs1_pins: cp0-spi1-cs1-pins { + marvell,pins = "mpp12"; + marvell,function = "spi1"; + }; +}; + +/* microSD */ +&cp0_sdhci0 { + pinctrl-0 = <&cp0_mmc0_pins>; + pinctrl-names = "default"; + bus-width = <4>; + no-1-8-v; + status = "okay"; +}; + +&cp0_spi1 { + /* add pin for chip-select 1 */ + pinctrl-0 = <&cp0_spi1_pins &cp0_spi1_cs1_pins>; + + flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; + /* read command supports max. 50MHz */ + spi-max-frequency = <50000000>; + }; +}; + +/* USB-2.0 Host to USB-Hub */ +&cp0_usb3_0 { + phys = <&cp0_utmi0>; + phy-names = "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +/* SRDS #4 - USB-3.0 Host to USB-Hub */ +&cp0_usb3_1 { + phys = <&cp0_comphy4 1>, <&cp0_utmi1>; + phy-names = "comphy", "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +&cp0_utmi { + status = "okay"; +}; + +&cp0_utmi { + status = "okay"; +}; + +&cp0_utmi1 { + status = "disabled"; +}; + +&cp1_ethernet { + status = "okay"; +}; + +/* SRDS #4 - SFP+ 10GE */ +&cp1_eth0 { + managed = "in-band-status"; + phy-mode = "10gbase-r"; + phys = <&cp1_comphy4 0>; + sfp = <&sfp1>; + status = "okay"; +}; + +/* SRDS #3 - SGMII 1GE */ +&cp1_eth1 { + managed = "in-band-status"; + phy-mode = "sgmii"; + phy = <&cp1_phy0>; + phys = <&cp0_comphy3 1>; + status = "okay"; +}; + +/* SRDS #5 - SGMII 1GE */ +&cp1_eth2 { + managed = "in-band-status"; + phy-mode = "sgmii"; + phy = <&cp1_phy1>; + phys = <&cp0_comphy5 2>; + status = "okay"; +}; + +&cp1_gpio1 { + status = "okay"; + + /* J30 */ + m2-full-card-power-off-hog-0 { + gpio-hog; + gpios = <29 GPIO_ACTIVE_LOW>; + output-low; + line-name = "m2-full-card-power-off"; + }; + + /* J44 */ + m2-full-card-power-off-hog-1 { + gpio-hog; + gpios = <30 GPIO_ACTIVE_LOW>; + output-low; + line-name = "m2-full-card-power-off"; + }; +}; + +&cp1_gpio2 { + status = "okay"; +}; + +&cp1_i2c1 { + /* + * Routed to SFP. + * Limit to 100kHz for compatibility with SFP modules, + * featuring AT24C01A/02/04 at addresses 0x50/0x51. + */ + clock-frequency = <100000>; + pinctrl-0 = <&cp1_i2c1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&cp1_mdio { + pinctrl-0 = <&cp1_mdio_pins>; + pinctrl-names = "default"; + status = "okay"; + + cp1_phy0: ethernet-phy@0 { + reg = <0>; + /* + * Configure LEDs default behaviour: + * - LED[0]: link is 1000Mbps: On (yellow) + * - LED[1]: link/activity: On/blink (green) + * - LED[2]: high impedance (floating) + */ + marvell,reg-init = <3 16 0xf000 0x0a17>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; + }; + + cp1_phy1: ethernet-phy@1 { + reg = <1>; + /* + * Configure LEDs default behaviour: + * - LED[0]: link is 1000Mbps: On (yellow) + * - LED[1]: link/activity: On/blink (green) + * - LED[2]: high impedance (floating) + */ + marvell,reg-init = <3 16 0xf000 0x0a17>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; + }; +}; + +/* SRDS #0 - M.2 (J30) */ +&cp1_pcie0 { + num-lanes = <1>; + phys = <&cp1_comphy0 0>; + status = "okay"; +}; + +&cp1_rtc { + status = "disabled"; +}; + +/* SRDS #1 - SATA on M.2 (J44) */ +&cp1_sata0 { + phys = <&cp1_comphy1 0>; + status = "okay"; + + /* only port 0 is available */ + /delete-node/ sata-port@1; +}; + +&cp1_syscon0 { + cp1_pinctrl: pinctrl { + compatible = "marvell,cp115-standalone-pinctrl"; + pinctrl-0 = <&cp1_m2_1_shutdown_pins &cp1_m2_2_shutdown_pins>; + pinctrl-names = "default"; + + cp1_i2c1_pins: cp0-i2c1-pins { + marvell,pins = "mpp35", "mpp36"; + marvell,function = "i2c1"; + }; + + cp1_led_pins: cp1-led-pins { + marvell,pins = "mpp54", "mpp55"; + marvell,function = "gpio"; + }; + + cp1_m2_1_shutdown_pins: cp1-m2-1-shutdown-pins { + marvell,pins = "mpp29"; + marvell,function = "gpio"; + }; + + cp1_m2_2_shutdown_pins: cp1-m2-2-shutdown-pins { + marvell,pins = "mpp30"; + marvell,function = "gpio"; + }; + + cp1_mdio_pins: cp1-mdio-pins { + marvell,pins = "mpp37", "mpp38"; + marvell,function = "ge"; + }; + + cp1_rtc_pins: cp1-rtc-pins { + marvell,pins = "mpp12", "mpp13"; + marvell,function = "gpio"; + }; + + cp1_sfp1_pins: cp1-sfp1-pins { + marvell,pins = "mpp33", "mpp34", "mpp49", "mpp50"; + marvell,function = "gpio"; + }; + }; +}; + +/* + * SRDS #2 - USB-3.0 Host to M.2 (J44) + * USB-2.0 Host to M.2 (J30) + */ +&cp1_usb3_0 { + phys = <&cp1_comphy2 0>, <&cp1_utmi0>; + phy-names = "comphy", "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +/* USB-2.0 Host to M.2 (J44) */ +&cp1_usb3_1 { + phys = <&cp1_utmi1>; + phy-names = "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +&cp1_utmi { + status = "okay"; +};