From patchwork Thu May 9 10:46:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13659643 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 5243DC10F1A for ; Thu, 9 May 2024 10:46:37 +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=qyJfoPws6LpKGuztJHOWCZeKpU ex4aZrE/1GyDR1gc/igzx9jcQtamM4abTMINk+nxs5u2CturhfjJxW/1OHQ1CFX2/TdP5y1PflazK wfLuR2zsn5lu5cyB90oSbvJ3SWBF0VdoZtRPJVhX2oqcVc31G6s829CawzeVHKthrYYV5YG/OP4tY IDVRGdFZP/kfaEXzBBBgu46chC8AnFD2MtGQcka3bv7bLLiCr8s+emsEE/WpPNcPMEjQZJjqzXaBX dvBH6l6QSC80AdpmIhrWntpz/31vXQ5TX2k+zHPVxQctKNTwsFlYHqzoxQOGVM3Epv8riIo014I4R 6km7EU1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51I8-00000001AIv-1HXI; Thu, 09 May 2024 10:46:24 +0000 Received: from mail-he1eur01on071f.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71f] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51I5-00000001AHU-19TA for linux-arm-kernel@lists.infradead.org; Thu, 09 May 2024 10:46:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g66X5VEWqhIo2csWZ4/nBumVZq5MZf3smfBYArIMOWUKFZZTML7AXmKOyRtzwKs41yoYjlDfin4gYwJSD7IXKV9WOck8laxvpfXei8k4ZbSyowx0LdBPoQqQhxhSVJu7/d4NYHnvRmvaV+9OwLvEUlhbXom1xxP69Zx0RhViIW3VNwtipRFCd/rgvTcTrhxKV4DnPMjU5WvZmZ8A1EdiySN0mxGFIh6sSX3tmUGhyWQV58rXZdUrgjzOxjs2VyVHvkbE2J1DgBPwVKFSatiJjvjHFdYPC1bZJr9/x61jC5Rpqn6x6XDP2gq3sxBuHIpbO0tB2Qz7JUc3dYHt7ocIqA== 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=dAo4Fn9dXOyXZX2jUJ0M/t4UAg7UaV78N0D/LY63w3cOIts4rqd/0VGsSD3TKgvhDwEJYzwX2Tfw/BhRimFr3UGah8s1jzs7/+VQDs8FuSXfpIr3I21TTPkc65PLEcatdc6T/0gerXhKwg69leB0GX2ih97VhSy7ibcCJSYVEQJrJscW0+2Ufk4+I3dKODysPsXO9jTNHb/8sgecb92EpFemL3QtEixsRGxQ1Hm/NPMJfJcAKV/DzANkx37RvPO0Hn0izOY/FES3iQSWEMSczzQ/raH9umUgz02I5oMv4mrF3pCSEugBtE4kVyuCgghWmevhJnuHaKmyRTgnDuYtgA== 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=lRImlVElIhzfyYfP/TtgsV+OQy7AZ+CNOVgx1Zgwbd+7G7Ihr5evqkUM2Rt8+ST6tg5fgB4VWupoRBfhbtUTcyP6u3ysFXIDJpFdc7r7oIz0cQmpCid48c5k3R/PvVVzFR5gHih9jhZMWyH3is7TLOmIsJnSZwi5ApochT80H/8= 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 DBBPR04MB7612.eurprd04.prod.outlook.com (2603:10a6:10:202::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Thu, 9 May 2024 10:46:11 +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.045; Thu, 9 May 2024 10:46:11 +0000 From: Josua Mayer Date: Thu, 09 May 2024 12:46:05 +0200 Subject: [PATCH v5 1/4] dt-bindings: arm64: marvell: add solidrun cn9130 som based boards Message-Id: <20240509-cn9130-som-v5-1-95493eb5c79d@solid-run.com> References: <20240509-cn9130-som-v5-0-95493eb5c79d@solid-run.com> In-Reply-To: <20240509-cn9130-som-v5-0-95493eb5c79d@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: FR0P281CA0092.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::13) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7612:EE_ X-MS-Office365-Filtering-Correlation-Id: cc8cd003-a2d2-4fa5-af7d-08dc70153d4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|7416005|1800799015|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?X7Dl3w3tbjVahDT4mSCzTtyiUEygsL+?= =?utf-8?q?wVvXmXK0hwuePP/NjiaScfQN8vYzjmkVU3zm3B6r19ioRJ5+UGPdz1HZQp0sjvoQF?= =?utf-8?q?D31O686ld/NIiEAk2p2eTJY7Swudr0W31R+eFNkQegsp3YJkE+Ft4y3hhctNmkbtS?= =?utf-8?q?jb2gKwC/34b8bNeKJ0lQSftIUq7H7DA+s3G0E/l1YrqZ0kCUnJlxNp7j3wShcj7hZ?= =?utf-8?q?OY4MqYYgQEgx6JusEtpTEXpZnuKxq7wAxf4vSosz+n6nf1aMoAWYN+SnVRRnSMZKE?= =?utf-8?q?AiOsylAVtN8ySFfInx34U4KG4yAwYF3osysHhtF8myvErzaWL0+Udsp4+Li2P/LAy?= =?utf-8?q?sig0kQrGLIExaJN5j0iysQIiaMV+tX/dmc4AETccOCQ1enyYQNCMdQS9ngCn44FJS?= =?utf-8?q?DsoOygykJ76Zn+oglQhVJPeucV5WVb/wZzrX4By+lVeEblgPUWnSNLKqm4YYZqfnm?= =?utf-8?q?z47EOMSoUlS3yHNrlaqYRqXdd9Lf/ZGGVuhjhG5FSty9TaZXApQiQVw28Cf0qHj4k?= =?utf-8?q?DuVcDnXb17H5ZAwk0rW6Qxq77e0j0dCfmhcMgSx+rKxP4c7RPdAb7wsHymaCWm53Y?= =?utf-8?q?UBYeR4oLy6KObJACZC8HOMUHnQ6RNPtKGVg9p/6QSAgKhnTbVVNDz3kV1pcX8op3O?= =?utf-8?q?7s70bCU21lswJw/w8lk+LGwNET/JL8yQSK5L20ENo2cScCLb8ytrZFmibzuB8OX2v?= =?utf-8?q?ZIuZ2L9f9wVI/kzIfiE/3UsMcUZ3MDCsp8JdFysFKpOu2jNLaQXe8nvGtUxd06YBp?= =?utf-8?q?ewPPXsTxGcIXe8SPJEayQf+MukZWxuqwRBXCqvd8KVlkgFTDBiUUPD7AuSDPv5I0/?= =?utf-8?q?mYecR3lC3UpJ18xLApP7ERlDozgZrvjY7DCPEuoiwOaWXhlhOZubHDRiCB2OgeW0b?= =?utf-8?q?bOO9V1OLW+TnHYBaMdwR4yVW8mRXf/Vlsl4egIEzyVROAGIxdEXmEf7/CbdScXQHV?= =?utf-8?q?NF//hKU3U4cI3Pn9ZJmayoUUHAmsDNfn1GhWr609fHLBf/jk8qAigPsue2nEwSFUM?= =?utf-8?q?GyajaTjef1uQN7DugMnIOzG9hXouH4NO1IxDrjkQeYAJd1TrfUmDNsg7PIiWqCTlu?= =?utf-8?q?kevY90l9RhtflyI2n0HJuppiUD6EFN10RXP9hnsCvY6JlOaQTZVE1XgQgQvxBapYN?= =?utf-8?q?rs+eYFNKsYHjekyRVlkfWneZ0/6niQoj/EP/9IwmABvZ6CO59FqbPyIZxYpiHmqg/?= =?utf-8?q?uNMf3YWPSdl3PWJc6Ad2A2pcRH7bzOqvgtc/tCeBCei/ot0v5qjWJvtBEGp+kBmTY?= =?utf-8?q?sBT998VJ1R7pOQPHhlu8JV+oinwxa8lRq2A=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)(52116005)(376005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+5OD+/O/jndpe/Q0Mizd4XiY4NPB?= =?utf-8?q?MK6yW0ydHz5yx7Q7BGpNBZ+q/rl54B7Dc6b18Yde3hLmyFfRDuiqhJrELKvDfBB9d?= =?utf-8?q?b6eQ/rbRaJ9qbvHy4Ibl3jGZFXQ4e5jC3SAV23DUTrrytOnA0pK4mY3q4qplMrqCS?= =?utf-8?q?UmIeFw1CnR1tQL3eSgCjAdOSOdTFeioV2scqg2TUlw9QR2eld2Sq+4AdJhbkBSGrD?= =?utf-8?q?eDmrUV6e7jPZdrAOnaKvusjCZKxyfHUB40qkFlTNnPD48kMKkxpiB21M7+CTl9QJ3?= =?utf-8?q?JhsltUs3WcgnoxVmrSxPbZXWArrJRlKv83C5QIZaktG8tk8ABAeXUVStsW6CHrI7V?= =?utf-8?q?rLP2oYzi1khHKzSju15t3D9qmnp/oX2oV5M4T7RojzdXpZ2XOftFwAiDakjyw933f?= =?utf-8?q?sBEJJe9x0v5xqPIYsC4OvuzuG6XylKzxPlACG+M2h5XeL3uch6jDeGIqeHcTOaq5J?= =?utf-8?q?a9cptjLxqA+epxw2d20nSP4/EiSoWndInk054/bfg+VfPUblAukeLhNOZ/X49bQZI?= =?utf-8?q?0M4P8jIF4uz+zHjtSQPJVhiE5SnUTPMqBTbXMmD05AUcH9xlMdjXhQkuCtAlFnnda?= =?utf-8?q?b1fBFfSjnwxxommVx63w0+MacWxpUUmz0tmezn2LQPxx/QMCUa/pZLcU2Rg8M0O4E?= =?utf-8?q?sDaOr2sH65atKAhTiK6sdBYgcgv4bBw3oRMz8pqAApWpGKZeZsD4nn/tYIzuO5DXt?= =?utf-8?q?2mAVDGwnnz1qqN9QLWrl+D307ucrQ5i5q2OvQ1dL5aO+WPOXLtMFVXr+byYTuN7oO?= =?utf-8?q?arroGjUO8s2ulGg4NfupIyVJurWp1uF0QQhN+ZgVR0lgLUOHvJEF1vDPP10jGQlPV?= =?utf-8?q?Jqaf+DoWsKUQ+SH4WnR80Y+F7iwjpKXwPbaf0VxIGAN6chmFVBvQRWZel64SifvzX?= =?utf-8?q?Qp/o5j+Ynai1isuoVtHjTj4zuAQtrlmpVLMszNbXugwOFxm5rCMDhcHMpV8s+L0aC?= =?utf-8?q?T9yqaIRkpHgPK8jS9CALwquvNmLENX0oJ0hjdEq8edvWrM342P19m85gvqudpkeKu?= =?utf-8?q?aHFiv+lbLuxQW3TMGoWH6wed9dJ7xyHOYXMaHK3mPwQ1tdy1+wHZpzLDpv/bc1R9J?= =?utf-8?q?c3lgGFfDYGeKLoxHAt/3ApN9r5aPanAIYKbuqGOrR1LA6L2gL+EHtOl2NvzmC+vvX?= =?utf-8?q?f32Esglp1iHfsfL0SkZBrwR1cz7uvK1AetOuqxPmNfTS7l7aWrWHqOjyV07ipf74t?= =?utf-8?q?Pwc50tgY3k3yIbRwPaI5uZNcUvIRxt3EqkABxsPckiBELjGbq1dUe4elJEXve6she?= =?utf-8?q?zfUviN/euH+Gmd5EsaKCLGuWz4iA3SCXemjU4izjXHOHZ04+OYrbYyDsfXTLm0RHU?= =?utf-8?q?rCS/gAZmx4BEn3ngF+XjPxRxWperRugzjgX4flmEoSlzYGYrsEWZQeil2J7pJt8pg?= =?utf-8?q?CWMu0oxRcL39OzqdZDOC3kIQUTfMnCkR/BcAZPXBK6EHFd7g0NWOzK71WzbfsPgtw?= =?utf-8?q?FhJKFsRKu4DwWQgqIrL8dPA6NcpVIDcFv0aHhNdIDCmimlYhLpQkI/eMD0onnZALH?= =?utf-8?q?uMMhEk1xPEwV?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc8cd003-a2d2-4fa5-af7d-08dc70153d4e X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 10:46:10.5750 (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: UMmTxipBSYl0tclIMNndU6kAvHPJ5NXhe6iuw/sD1no+K1SRl/BoENda+lIWEmZU6D7KwY1EJ4a8wNS52fGcpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7612 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_034621_601025_B5F15401 X-CRM114-Status: GOOD ( 12.48 ) 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 9 10:46:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13659645 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 973D6C10F1A for ; Thu, 9 May 2024 10:46:43 +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=U5LfVs2cM2EJouv4NvccLxiliD aRgpahYXL+DpsdveCJ51Feq+D0aqe6hPE9QUEAAmQJfvdBG5jYpiXY/eKr90tDF/LX5sHKG5V4mwM CewdvbUxLVlJVPNFoPPPgF23qU7R2YYOE//fbSlqsfCEC5fqsKlDSVJdhEa5jGgcDYXY7OCWFdpYr RRuouNMXx+ma65cq0bK+gZtzz0uq40CClBD9MjU7MTsDu3pDCyvjhLRE9FZlN2TEPm/K07OMvWj6+ yZWR3QA35AwZtA1HQ8BAEwrcpB89PIkxqV9E+JPN8KHCmvyIsSEXT4cInkR3J+J3d1b9uc2q4LILt Eyj9+T2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51IC-00000001AKo-3mQX; Thu, 09 May 2024 10:46:28 +0000 Received: from mail-he1eur01on071f.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71f] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51I9-00000001AHU-1K4E for linux-arm-kernel@lists.infradead.org; Thu, 09 May 2024 10:46:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nym2uaho1FLqOOrHnyBUAKBaNh1eHp5dbZ5VnTTynp5mExUIzjIhyvIj3YiBQg8tgZQ8Q6KDYRXzK756rVm3UVuMwOiTcomw59g6jDUjKEJiypkkChkvsfZp4KOdbHOqvt8EtclTQkne0BqCmn+VkZLvWt/+3nXC3BO48DVEzVZqxD5ZBYyf7ld0Es9zzsnkKiwhcKM1Q/E9h1ZdYj+W91h7RCf2s28Gvf5owfbT5UwUa/UG52vMONq4h6qY9j0+kv9wP/ZPqCHgSrwxMU8JA++k00fzSCa96lRahH4Wz8oI6c6yihKWvTfU13MABoXsNz7OnMOZ3+3QqscdxcpVQg== 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=XxJX5md7Z6jGe/gtKs8bOcXZvPbaDLYk+4vMkIUD6FYjDbTtnMM5chX3/cwHdtSLgaY3nGHxuaNytfeMvb9N9UmJgAcTTZqYM+rNzgZbzwB08e7fi92M71+LFGW/GMWhLOYL42YGFtWjQwobyXeS0sXU2rbxnlV2V4zAkI1/RouGZAByQy5dqD9Xd5Z2t7dmAttCevj1EzP+sfF4WdemsEHwD8qkS4UukWuHPSuB28mSNWYFRslhOD9JZeavIdUNzTWjhNRSntLBEkXWD8gduyHdKxcn2Q6JcLPy5C3yva5OmTM04gPhzW4ETQH0jvTbY/wXs0C6WNUNSoytWuF/rg== 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=FbrSYGo/YqUV7zyxsXOFPqjJtc3hQMyIp1hm0I7MdSfErsBohZtz7e6knKR5JK5Q+9fB4pfDBypnEh5tp372mmpx0mEgfLXmelLlftuMUWgnx2zjfmJxb3pNMDONOG9/ZGwVEjqS92cxJdNFi7hnvh5x2O+QRsc524rYjgaCWDw= 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 DBBPR04MB7612.eurprd04.prod.outlook.com (2603:10a6:10:202::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Thu, 9 May 2024 10:46:11 +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.045; Thu, 9 May 2024 10:46:11 +0000 From: Josua Mayer Date: Thu, 09 May 2024 12:46:06 +0200 Subject: [PATCH v5 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board Message-Id: <20240509-cn9130-som-v5-2-95493eb5c79d@solid-run.com> References: <20240509-cn9130-som-v5-0-95493eb5c79d@solid-run.com> In-Reply-To: <20240509-cn9130-som-v5-0-95493eb5c79d@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: FR0P281CA0092.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::13) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7612:EE_ X-MS-Office365-Filtering-Correlation-Id: f27a3384-8606-42c0-db78-08dc70153d94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|7416005|1800799015|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Sw7eLaJuMqtMFU1iSV6VRNkMnQMfJGp?= =?utf-8?q?piuqyvhqQPVe7rDjYIYxKPt6+tsRNrnlbM7dxC5qIxfBeWFnlYoWUt77yl+Uoum45?= =?utf-8?q?8BpAPTIelkYKULhmMrAsOxRhwRPZqJy2sv8ivZftx82bGocKPEL+D/y9kysk0T3yw?= =?utf-8?q?obXStREYDxei8hkvRGBW1tEOtdvTkA1xMUmHTGTX8rCQiRkVrysj9BpxIg1ziKVRW?= =?utf-8?q?aSQpTpzZnJ7SZvCVlyDVFM8MivaNDW/2mYfYPNczFp92yrE1IiqamEsoIt8md/yt/?= =?utf-8?q?8PvSBdVypfbOtK/+AfT5AVbmMeodro6Z8TPFOsm4r1dGj1rUV8sEH9aNpRSLh0FBy?= =?utf-8?q?04NuZuRuVvdmHjcglzNo052y6Nrwnt8q5BGuJy6U3rTTReK/5QGANeAWqVkJkb3zM?= =?utf-8?q?jiYx4rNQOfRP/VZ/uQPQzoTf3BJ34H0gjVBt9pHFcOEHTrWH3QVXks18s4QttsqPX?= =?utf-8?q?r5DIAkeqEwYbmKI6wLnpwkt5neOW0AHnvw/HUvpgzThqh2H+/GC+qHS00YtHZjsY2?= =?utf-8?q?9NZ5vxI5RmMUaPHa9FQJjYlIvLwDYNhKZ+dEhSNO/+SB0Ydhl13L8jKLuDUcXz7Gf?= =?utf-8?q?LkcYmJW/2puu/TYBMVjvE22vl/TDYo5uiKXN9TIdhRUu0enWhS/kjHsADxMUc2LWR?= =?utf-8?q?RRcsFIUqD0EMD3wsjrBHw3n8WWTuYsWk0QfGuwNcOIk6lu+6smLlNggsFqMmCFOO6?= =?utf-8?q?gt8a/kL2S+zZXxrRb+yNI1a2lxak2O+RZAs5etfNlfoZy9UIe1qK/OV3o6NKwzmO/?= =?utf-8?q?LqH4pGOZrTK9Fe7Gt+A4VSx4cZqXdvhZFMx+G/X/HydhR9hr7crUGsElKsVUvrjM9?= =?utf-8?q?gZc+8EJ8HeMQMl5a1WwBfdvE+4bsryZneCk8tulK81asrTKL6l5DpZEVmX2Vqy3l1?= =?utf-8?q?kgKDHxBzpKoaRyDDQe+cCPZYUIUAw27UItHT9Znntdps131RbkclEob9vmRvn3b1E?= =?utf-8?q?361m3MpjP8LHGCdDRtKvS0FU4twPseqC11oZG+XaEbIsSlMgGB/Z7B8RrimjEOQNs?= =?utf-8?q?IjsKRTQg0rMJURVHuxLKJS3or29Weh6PaJAgOrh722WMrTd8o3lh/bn6pVc6W/AVD?= =?utf-8?q?vABmrpz3TEDMiIhOYP9+SAgZpnszXTiAmweIQoYyMmtmu2MMBTsAT3cvmVOkcx87k?= =?utf-8?q?0eQwH98SLYTIS3HfPdS6F1lejAvBlnca2zPYPnqrI7PytfKeP0Bv6OB8Sp+yXrxi3?= =?utf-8?q?66Gi2txgu3a2UTB4LeXvSXykkTdNwky7a16YEfZX1l1W5mwJp+O7DQLPtJV43gHUr?= =?utf-8?q?lGj7Xv8TlS7huh/Yxx/sPkFaq53KDBNgh4A=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)(52116005)(376005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?9ny4oJtOtTatZP0lRSFH9hkGRD7i?= =?utf-8?q?TJnSzBfbYDwAH07AjTTEZHG6wxOQHyO8U0hi/jhxCIzzMchk63oBF7Pmsu+o13vD3?= =?utf-8?q?WlQMc5MoGxYxMDNrJOxzvh42HXrSbmvwrto2ZrIKhh7XD/5oRC3BdkghJ3dEN+rg9?= =?utf-8?q?Wpxwrm6fXnNnkIsIeEvLtnd/Es5n+tkk1NA6p4YntTxF5lrSmf+0vR9iVY7iPWp+U?= =?utf-8?q?kW9FgD2CWsj4z/Kii3RWmFZkRgkLCjinPwIk+AHjYDkzbftmCx8Ol4f6mTcsORAlY?= =?utf-8?q?KEml0DyIjxmKkYG2NSrzQtgNUscfRVxemmxV8XQDTaocOTn369DFXYai5MeX4Jh6K?= =?utf-8?q?IEWXClaDw52hPaKRaMuWIB1BNTdYMrpMhIFhh9gtJPHpH0X31gIjihEFb1PdwjvzH?= =?utf-8?q?AggSswVygMzd1B2Cbd00UM7TYVbjBirbwDBqG3DeWO7a3ApCt6fFZ+rnc039mNjjs?= =?utf-8?q?qpv/Ph3PB2WYtFo5qI/jR/JnA5WIO/lDMehi70QyoRHJP4Sb3fj8Enx/EDsLXtCg1?= =?utf-8?q?PPXameUiNLdK7OFh1+TJA5EDJVMGLB2rYqntGczasBSL3mbH7JdAt4AzFaoceOYut?= =?utf-8?q?g0UL/dtu+6UTxakEOj3gCf/aV7SoybWCSPDHlC+YP4AbPmVwXOjvLeLTitKKtT88W?= =?utf-8?q?BoPWcC72ddlVkcjghYIPPIs3M81ti71AWr9+/wRyucYRUgkK0Qr0d5PdFydBxBHiZ?= =?utf-8?q?h0Ml+L2BPkAy/EUNUFFDkSG+0i/l0HqbY6+TrtqnnApVWEXeuJaTiGrl3ntvwEJuK?= =?utf-8?q?SQ/hlf2niokPMHuLpd/b9Ke8BQJ0482A5ZT549kisGWWjC7MA+rP0p6IF/Uful375?= =?utf-8?q?DdUAmcxSDMAyoHNY88mlybWBMEdZemnkYGJdC9W+0ehD/9Ctguy7/WoZ/WHrMHNaP?= =?utf-8?q?Qufodsfhmlr6CmH+46SmoyN61atVIhEZr65mnxErGpUPFquaNYcRXTWXBYC5XqPXX?= =?utf-8?q?JVq4PwgdrXkXfByNkVAz6aseoEoS3d1QXN7zXKRbDOn6juXPvcTY1ds5uAGDvfs37?= =?utf-8?q?PZVkoufTCWn/wh7arFM5otyuwSFYU92UxC8TCM/CEeeDRFn7a+MyL+leZGPOp9VEt?= =?utf-8?q?0lJnG+/QZMrD6ePzFrruubypLqyMvGxnm/zr+rHIWYszJGkAnx8C5abwB10NQGUTk?= =?utf-8?q?zhbiqb17wj1DAyxmiiHEGAn3uRy984toxT83BnPmGKOuMTyogNJNdigLQos6MGn0z?= =?utf-8?q?5yoXEQRuVhK1AiaP1sL8W8rQTyOh9f7pxFHoTMrTux1ha4ElVnEcCuZBJKiKYhun3?= =?utf-8?q?6L2UyRcxjD/boIUi4Xa1xJpnhdMwqiVb0j+F/ox/2zQNtMCOXt15w78vidbTTTj4p?= =?utf-8?q?RQGfk9ExcZiiPFM+yzMx4XjYljiTJ+qH/td1qZiOUzZ+1s2CLtHXbTYFNYZ3wuPKL?= =?utf-8?q?g0d4m/NxnNriaK+o4dBDYnkIlZktSiUK0k2ymqQSgwdTOOBRycG8mTIJBRbEXSiyL?= =?utf-8?q?z0O9eKrioFp8EwiafhcjrdWqzBCuIsFjrS6yJ2trefxRQGoutEbeTWTjWTOXbYtF5?= =?utf-8?q?YAYW+qMZs+oU?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: f27a3384-8606-42c0-db78-08dc70153d94 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 10:46:11.0486 (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: LmhCyQppXqf9i35M4j9VFOTLKinsdAEjfdB3lgRdZweOM9gpzDxSENIPFLuNWj5PZ/VFuxDw7tpnlcFe698wTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7612 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_034625_414353_1B079932 X-CRM114-Status: UNSURE ( 8.75 ) 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 9 10:46:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13659646 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 6F881C10F1A for ; Thu, 9 May 2024 10:46:49 +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=BJjzKJ6SeyuYYo63tKNX2ieVCrQH4hNPDzsr/M0B1j0=; b=gtEWSbrlEOfo406AQDbUGncbgM RrF+k4m2ccifrogoQHEi9KsPvgSgM+ovEz3iSetuh5/L9zCowwoCf8JBokj3Zs4XYlgEiJlbJfPKC HTwizIN0AqclXnYqJ99e9kiAWK8iXwojbzmU0zTT53Mq0cQEpmkDqm2vwnr53f0UghKFgSY14OVZx 84B45B6lFl1pWg0BDPTLJMZZcYwBgnjf+eMabjZu1nXo5YE0dHzhUhjHyCbHCPUydBUjB46zQ9h8T lAOfOYewJV6QgEJVBC4k3Ai7fYSZSE0ievIS7BlNc+QQ2t5ndvpXHd1wfRlPgS/hixUM4z6HaZG51 vQK+gzyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51IJ-00000001AOr-2yGP; Thu, 09 May 2024 10:46:35 +0000 Received: from mail-he1eur01on071f.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71f] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51IB-00000001AHU-1ZEb for linux-arm-kernel@lists.infradead.org; Thu, 09 May 2024 10:46:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZBt77tM8msGeUD+1yriHH286qAGze2h9V17/2ekDnC35xLik6okg0veLHfKI0UXS1N3CbMrwARmWH4gH8P6XDVLC5ZZe5EAPTifjof3aN7b5nEpmHVhrY8SwUYATDeWxHJ4x/pJQuJklnysLpY0vijoF1rfQGQguovjld6kxA4nL9wWCkwXXavaXGNZIm6USw+9nuvCbsNkwDlcrpDDWz6wNIzoJii2ka73Dn5RAOirSqAEioF/XKdoo2X+ersLzIttYPt4Q5OHqb4YjGyL/hX8AHdpuC7NPlXsJHttnx0Ms6feB9eWYp2fovh9SxHxPaYp56J4100iEEqGflB7Fyw== 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=4d05q49xYLdldzIAJAOLYnFweox24PXDvvTxGws5LHM=; b=KMirxxjUeTSyb1B/TxlYy4Qw54oNDuGKZjcPtMh+hR3EZkmsVSLhPgUdZ4AcZ4JkmC4qDAm6NxpH85EGCQyO2gVf3f03Tr8zxNgGkn2vKHf3Riw/u6FmiqHYSebi7l6gHMBcTApiYCuChL316OZimQN+0qhUagfS/t6MXnk+oDjSgABVq/xjD//AmsiQ9x0rvpu8jZscC1Jq2Tcrk875unEl44tX1MbKDqVkO6fnGq1hLx/XIvJbym85vIwYU5gyUyNRH1V/MAN1ibYlCmppQHwy9nOnU9XSNraLq9CUY7u9begNqdAGh8m+Y6HazUW0PJFPxcJu25TdEJx+8jIhHg== 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=4d05q49xYLdldzIAJAOLYnFweox24PXDvvTxGws5LHM=; b=INt3PrJqt5X7ahthpsNE6514x2THMmqK1YliIFN0hcAqPLfbjke96v7XMx/wlP/DMm1eshGK91IWsyPBxe3mBj/hJNqWX7voyeU7n5NBHJezijPlj/qs2mVBfzPauDXAC0uqCsiUchTiNQtAzxiY/HItVNztPABgwHtSA5hw48I= 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 DBBPR04MB7612.eurprd04.prod.outlook.com (2603:10a6:10:202::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Thu, 9 May 2024 10:46:11 +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.045; Thu, 9 May 2024 10:46:11 +0000 From: Josua Mayer Date: Thu, 09 May 2024 12:46:07 +0200 Subject: [PATCH v5 3/4] arm64: dts: add description for solidrun cn9130 som and clearfog boards Message-Id: <20240509-cn9130-som-v5-3-95493eb5c79d@solid-run.com> References: <20240509-cn9130-som-v5-0-95493eb5c79d@solid-run.com> In-Reply-To: <20240509-cn9130-som-v5-0-95493eb5c79d@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: FR0P281CA0092.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::13) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7612:EE_ X-MS-Office365-Filtering-Correlation-Id: 79c5ae95-77aa-43c9-a7a7-08dc70153ddf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|7416005|1800799015|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?p/qPQniL9/+4S3EC5j5KSbAtlQ5k/hs?= =?utf-8?q?1QIMhSAm5Tjte5Raz4GJ2OBr/X8iUfDA3ZSkqgKEjLsMom887VUI9cxlrqXe8cVY1?= =?utf-8?q?ImdrGYsIFkNWW1CLXZ8BpVGbYww3YO3lPl7z2WbJlMSIBYGIKG+HGdwRNqh//uHpk?= =?utf-8?q?/cbLDHg95qFQLMwMuV+TFgy17a6NpWTr8ZZT1JpwgKMzPLt0KxTpfcSVS4d5ynSbB?= =?utf-8?q?01+51t8CGjE2X3mBKccehwzwOBz64lEjN6nTasfWEOkWwoaIw7nWrBo83c2e6xGnu?= =?utf-8?q?fN4Sa9TCrjfEk1f57SeMr23L+aX05gM3DMYKObsqs3eg3rQbWQ2WNmhmtPrW0mJVQ?= =?utf-8?q?su7rhypelu1CV6T1QDvxhzYDlYdrhzdL88wxCfp3Ph5OiVXtmLIlvNlXnHAw/LsmO?= =?utf-8?q?qMBAkFTgO7Vcso5+V1+tXShdt1/bW4BAiporGmjfO3jvS8ttZsY1+EIAI9v2aTKQ+?= =?utf-8?q?oMZ4mYbqMnc7qhTL2ElC4a8pIcsTZQJY7JkvP6eakKLQQ5ol0r2z7b+Bpknrmo485?= =?utf-8?q?YCDohpMj9K+wfN3bMJmETkSGv3hh9dBsFYPTx7uWxLh34kmVVs95b4Ul10lHqt6WN?= =?utf-8?q?TJdpsgI+7dlTh6PBfHtWpoCtV1kJqiUdh/KMRh44iRWSztEpezmCCQ7E16xcC3+/e?= =?utf-8?q?GXpbJK2g8hh2XkL1DsVslV/f9cQwMqpGZWN81e+NjywgLsmetnPn2q9JTOFGOEo8O?= =?utf-8?q?PAm6N3CbFxrDNMyeW7v08x3lTAY4QqO3bGcZlPbEzQHPQ6uK1afeE4kdv+ApyBQyR?= =?utf-8?q?Hu8jTc0Chf9tKkbJJmkCLPPiIJJ/O3XPSvd6wjiXINIjwMIJvIsyNqNfMyeHNOm+x?= =?utf-8?q?Op2oak4XYyU/4tdoCydaA76Il7Do6m7AE1QBIMj+1BL4ReurlyHeIK+DFsgWkrPa2?= =?utf-8?q?6cvp+ZKDEglxSLjckYBCwf53IOpJzuwKipnQieV8X45D0GbzkurIxs9Qjzkb6HjJs?= =?utf-8?q?EvDywaO+XSTupVuFHd91Lludtdp3uQt/B66LG7vG2QQluj91QGJEOw0vsbP8XEzXL?= =?utf-8?q?saczaVwmRStRKHMBw91VbEMCzoZ3y8knlNAmvZqWxShMtIz6vqDUWhpnzSL2B4q0E?= =?utf-8?q?uwpxGpCC20iNwm0nkDoDQS646vN0vb9s/dRS0kvJ1MD9fbFWeNcBnY91a3XSmIDDF?= =?utf-8?q?KyMns6BQ2wwkSC3bFqUrhdHUTX+6jLQRe/dyPwt15PJQJlG/Y7Fv8XHVLgJfNxFbe?= =?utf-8?q?yH6L6eK9I+ac7koe3lB5Jv3yj01qquMDCEosSQrrxoHsBNzUWV/3fds9jNFPmZdkk?= =?utf-8?q?jXHHfEmMrJgrzLEeE7l/HMggp+LVyUlco1Q=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)(52116005)(376005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?YOUro74ZnvECYjcysQG0xmToEauE?= =?utf-8?q?j32apBj+ET7RPW0wiUJe87m6/Q72cE+QssLvCVS9Epdl1FItHtT8dc/QOS9n7KuIc?= =?utf-8?q?03ELCg7tq/y/9Ncz5bMpdOvTCXKLdgyWM6nc99rhSlZBQyFSWIojS446rp1IqHyMU?= =?utf-8?q?XgHAvYykSbMCB5Db0wN/zYAU0f9TAAmAz3kNqG4ECyihnb+mKIuGtv9wC9CrnQ1ck?= =?utf-8?q?6G/q8OEL2dBwbcl8KROVMFMVnmYlnpbJPRtKG9q5vfzW89nwpcIiJbk/+/qvfKwpe?= =?utf-8?q?0tpik1ABlrazJDH+yDT4cg+ao8ZDVTnl/PBaO6Vgl3sDi46fNELmOutRd34NXA8M1?= =?utf-8?q?rUEVcopjdPQhTpNMvqVR9m1FiDkm5oPrehQewO3bM9EA8/CLlP6XoZ0stDvEz0bH5?= =?utf-8?q?xFUxR7G2c/XqjZlHDueC2vhSefOh0KGXK61IDUWcSRXXG9/Jm2J5SQRTkq/qzh2Vv?= =?utf-8?q?O5ZJcdmU7ypJlSV1jgTArLN/UO8qsinJjsI0QgSw19bfCDy3a5pPPxbYMB4+5gmMN?= =?utf-8?q?/xI9t24m8EWwtxsSyGEs62ODRtKWmMHIeBGumAa+EayWO2ct0D6MKjx1HBHY3GJuO?= =?utf-8?q?xNy8+AKUvmg74H5ndL8HC+uH/uji4idmYOH37QxBMU6wJzLyUANOOKt1BhPHXUBVE?= =?utf-8?q?puvsztGCgVHKIz9c993VmuOwUrjvzX+kxdEJgJp2FGP+ZR7p7gqDP10KFHNZdkYqu?= =?utf-8?q?cjNHVqm6c4odZEbYvgKfEXXx3KFYHnBsE1p1534fdSELv5y+fPJxy2z7NFM+Ia9ra?= =?utf-8?q?jW9V28zcm0IiT17KsryYfcTJUCh7rGP8+rc/pNdx6U6by/5RK0m46seFWKgFsLrho?= =?utf-8?q?oPbjxWvaBPeMANnYXy6MRxUt2TPxq3cN7S9rKYtai2QoU9pmzUOVDCwwirk1dozgV?= =?utf-8?q?GTyJ8ZVKo4yJboHNl1Aox0aS4jtYp85YJgUFIqYh03sz98kb1Nx3w9R4pUB/OVDRt?= =?utf-8?q?mQuqiiw6+8jr0KVmXrvfWcVIT9ru7lBBee33czaD7OQd2/L+89lRbRsRp9ZU8NpTv?= =?utf-8?q?WwnYXvfLQO3+mWjRqBKNwG8H5tu+0sL79eGg3XIvm82//AzKikdKVnOLhHwu7yoCU?= =?utf-8?q?QiofAgl9AO4EjkbfekwnxKD3tSiQIAJwvWP6ydnp/YQel6VKzgsV2A2GdXRjVwNMS?= =?utf-8?q?Ok4PMOYUK/3c7AmYA2ZYbCHzKLmj/84nYtig6dWnA3Jdhm3sPIQQfo8VduZtbXe/p?= =?utf-8?q?+WEyqknQcgTQ4pDfLXSUUYResm0ElVXPec0RucQt/iL4ezIMj4dwJSpb7P0yjT9Kp?= =?utf-8?q?MM6tHIWfwlcv8Pk0dz4pQRd6PjKBctk6XyeLAq/6xxQZRiFB+s/KU8VewmbpDbZDT?= =?utf-8?q?gxIvUcJHyhPhJSUSYbtvy8C2/HF2pzQ6jAgaKA/HGmXwq/RiMzQ3tYFba8yU2LwAg?= =?utf-8?q?lJtK4vztlqzN32zBOaJ0q0UqKP9S8Ov193PwzeXnOTAgTEx7t6yuGRl+Xq0kMd3gl?= =?utf-8?q?e+0PHCvnAa9m+k+WhI7OEQ0Chb+p+J3stlEFighCBfMovuExBbVErBc2UBX1fcUdL?= =?utf-8?q?R21PYMsmzd9n?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79c5ae95-77aa-43c9-a7a7-08dc70153ddf X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 10:46:11.5146 (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: rniGGoUFQcdlkGctL7wEPvsWVusEx2cdiv6AegKNZSP2pWXkRsB+kvbPITI+wqRDPFV4rUGhcFNPm7MUrX/J0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7612 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_034627_490861_71F4D056 X-CRM114-Status: GOOD ( 14.97 ) 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..ad0ab34b6602 --- /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>; + gpios = <&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..4676e3488f54 --- /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"; + gpios = <&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 9 10:46:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13659647 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 C9F00C10F1A for ; Thu, 9 May 2024 10:46: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=l+WKiWT+8kDokDyozSIGXfCBRUcAaByq9HwHJIydyuI=; b=poY9zOAVYDwGqacblCVYBEBCgy qTBSQqRTPt2c3JzblcsEV5ZcqVmflDcbatBEXgwdUoyf+cmSiS+Tdw84sDhMUsAwXgp1iJkGNFucA TmjY1gB0tOrPOy/AD7ZP7joHz+1+itHsKEVjNY9TcBa8+tmmhRtFJDwD+RK6MJa9UBQzmBKf51lfg OuKH+nBWOVgIPmPOOVYI2ABUZv2QAnyHxFhRSCeX50JU+EbwqD5FMKfRtbx/qDJzuadmEVqLNebcQ 4rhpRGF+2OZrEyuqu2IB087rcpMOwGugDDGUY03UZcT7yOLRu7GVRi28A1/r4lKwO8+/G0KnaiL9l 6E+7Jzbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51IL-00000001AQC-39qw; Thu, 09 May 2024 10:46:37 +0000 Received: from mail-he1eur01on071f.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71f] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s51ID-00000001AHU-3zWj for linux-arm-kernel@lists.infradead.org; Thu, 09 May 2024 10:46:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U6Ya4rl5m37gECso5dVOQ/RKbMPjlA6cC8PfA4lJK6lD1c5BaoDBJTMsqGWjYTf6PqWHw1WKnv42bu7J9d5Ingy40UCwYoy6wIsEOXnqG//BkFNeqElY1bmKVOOkui0em2rx82iCGOfr90lwBCeUgj3RZhle67ol+iU583lsJnQ4DQVM1qiSF3TSp+kFOWAyYXWp8MTSvW+I2eZ+8Vv2Ia4kyLxkGuawON0xRTXswJgDLeTNaUqdOKY0i73jusm0npbRmW6OjWdupMtpxJ45SlJ33fPYfQQGh629UpLhtnKTAj8cW/IuxH5ByPLv/+zjaopFUXAE/KwRY4/PfTCRBw== 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=8hyYmoNGGsx0t83zxzNRt5wI/CGEJXhYf5ckVHqG0Wc=; b=l8xjp86ricIm2W5F2MgmHgjDJ7LanCumjTMZTK4N0xs/RzKmfgXq0nijaWGF2PUXEqwhhprhai3a+EEtDZqP0EzOQpbQz3o1xL2MvZwoWQezMXu0kQiMN00tzXp6Mpj7GGVJss0BL9p6bKquqOc3q3h4cKXL2BrYt2mReRoA1qrO+rLsJvCklcGQCZb3w4b/k7dQzKCLrMKaR97hC3dPuRoPgau2R9NCkeL+v0AaUcnp7Sn6aqlPDbu9aBH4Ekg7qcaGszS1TI9uHjTJL3SidZzIqwwa/7uwMP3Nlc3suY/+ado77KxwWXAHJ7Yiee6XoDfszZ9yxJxyRrijPAFcgg== 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=8hyYmoNGGsx0t83zxzNRt5wI/CGEJXhYf5ckVHqG0Wc=; b=be4/6d/A3lRxnj5s+FnFrpG4SvrlcfaJOJiUsBAPYcCJ80JzLd5GcCXwRVtW4pVaJ0NIaVZzpw58BgUTHwlQD+6S/dd1GGA495P7xnpXUT5gEyhOVyxhHd1GWtbOHiqkgabpRyaKDgScc+q0aFRPZUXS1p5YM6kc0fG1bJoyJ5M= 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 DBBPR04MB7612.eurprd04.prod.outlook.com (2603:10a6:10:202::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Thu, 9 May 2024 10:46:12 +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.045; Thu, 9 May 2024 10:46:12 +0000 From: Josua Mayer Date: Thu, 09 May 2024 12:46:08 +0200 Subject: [PATCH v5 4/4] arm64: dts: add description for solidrun cn9131 solidwan board Message-Id: <20240509-cn9130-som-v5-4-95493eb5c79d@solid-run.com> References: <20240509-cn9130-som-v5-0-95493eb5c79d@solid-run.com> In-Reply-To: <20240509-cn9130-som-v5-0-95493eb5c79d@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: FR0P281CA0092.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::13) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DBBPR04MB7612:EE_ X-MS-Office365-Filtering-Correlation-Id: cb697dc5-5354-4f7a-2f55-08dc70153e24 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|7416005|1800799015|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?UXn5QQyifQ2A2oghOXF827mvfkx0OrI?= =?utf-8?q?wiKSukMlAV9vhTc7OZtQ3YJeic3E3rhbKlzB9YjFZHCciwCeFa8g7s1B/ElLdZF5N?= =?utf-8?q?mqI4VeXOFSNEmJnkbFyMv8A//VlNVdF7cRhrO57JiwPECS4gOxnVtGVXGtCVAUCZT?= =?utf-8?q?zyxo/y32mjB6dV2BlNhcnR7wk8qCjgCYMZxssSK1FYLs2guMAPuzVtcoqQL3dZ6p0?= =?utf-8?q?UZVvDrB1RPT19c3U1c7Bw1NYvW9p+llvjfhgzGWvoZUXtrcmyEh3FOmFck7kj3kb9?= =?utf-8?q?xWz0fNCziIFgnIidrYILaM/FVi5gF15apI2DeqqJQsHzSFUoTGAglWId4qIvOHA7L?= =?utf-8?q?RyT8TSsNj9WXZYMgYRyMHhJeG+FRl+5mmZvfAzquLBsR49BNV+UlyDymyznqa6Qau?= =?utf-8?q?tDyFm8gNUYIHfuUKYVrfm+byF5TkhucmW8WcC+9IktuzwLcZloEkQYeGYlW8V55Ob?= =?utf-8?q?MNPXKwmi+O2yRCTZsDvmxjWQZmFF5cRjgvUeU9efEttUtqE7PYu7toGETFMZ66v7i?= =?utf-8?q?63rnHXuAUCirLgdq+ht5+VGg4uusta+1BfTKJwpC5EtAR1lp0+DwvKq1tlpqJxPFa?= =?utf-8?q?p3rIA3oYLLk7fMJWnVMqjKvW3aCDxvWC1mRyPuFPWRuEYaMzXZ/ORu0n2IDKbzNdu?= =?utf-8?q?3R5kDNUhEd7Weoz7PP9sdJafp0zoPThl2uhiZ88tTe984ofgjEyJQMAeYu4+CxldI?= =?utf-8?q?7CctgOiWyZMp8NHTnwqvtbE3Nv20tuSFTdZui/bkbODg+NvV2ETZk5SWjPb7cQWrQ?= =?utf-8?q?seKvfddMcbWeoBXqvOPB0sc33FdaknjX+nmRjJ7AIuNKAv2t2T01QhQDxPaD/6Zyu?= =?utf-8?q?qd29V1VFmipltGyELMz3485UsKaLHwav7e+iLR7v7ToweKX0EpvvMu2cGErGb1oq+?= =?utf-8?q?2F9atVMu7luH/DPuoUTn4nnXkiKB1tEtbc6fXGkjGSVAYh82K1ouZOrELuqTo+0VW?= =?utf-8?q?puaCyiZkYjhlF4+u3niXvgYYXNwvLkhPtMfcwhKiJnivf6iWIdZpta5fWGPArpQwV?= =?utf-8?q?mXQFzHCI12Gu7Af6vZpywyAcp9sXFK89mwyZAaaEHEFsYXnR60QLorwx5As2p6QZ/?= =?utf-8?q?JspAp9kGpjt6ntE675v371VCvsCOmpBdRwc5Blgesb3TRiqVCrfdBWM1OwZgAvgMK?= =?utf-8?q?6McuSt5vuCKH52bDuGy9mazJWb9ClXPVz+xhscUVtC2C9fXt0er+BW6Rva03wfS8J?= =?utf-8?q?RQU4FnPljjuoYDGp2YCSz2ZmkauQ8WhdTnrCjQGUex/SGaVNxHk7NCG/k3Z/eCERk?= =?utf-8?q?qg5ao7P3vDTn7//X9YMMMBqdeEuiloRFHzQ=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)(52116005)(376005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bUyph9zXFcVrgGc6CXS41X0apGM+?= =?utf-8?q?6zmsckyorJdPik7ANKYMvQfUjXpbgxCGx8u58UmPkRIeycmFTgOWYL+ZMiX0L3RPH?= =?utf-8?q?qUH6ArgKA5pZTs1fe3Rui9Om/6FiTf8PFJITk3Z4crVPiMu3S9dwaM8mc5+T7FZPt?= =?utf-8?q?HUTT5ClLKQSY5Lk2qKy1/bCVDxomCw7lQm0y6jJ9T8GNiTJAAHOKh4rXXIQc1B1Ts?= =?utf-8?q?MuCLO20bhUhkoxdbXmWHVyM7dw/LqKyaCHt5c27VOws9J6WW8X8kehq/1envOsJhu?= =?utf-8?q?GXxt/JXI45daiithBvMf31YBdOzmEXRrqg/ukL/MXtlQpPGEoF44Jnl6a/60Q+B1+?= =?utf-8?q?5AB0Q3PlhJunTjOwe5h5ToFa/yNoTRny9KxqkoVmS+mYSinu2Lw4DjbRyj8CV8iFw?= =?utf-8?q?9mELjXS6Wi/EUvPaFbdSfJTLG+xEpRUwLnY+XO/+TlfI9V/EpWmtYjoG2kwp+C/jZ?= =?utf-8?q?q1Ek+OXDRQAGTlerl/voeWZ9ZTCNTP+zSdNbpGR9PN/eqpRiZUTnm7Lsk9TI5W0jS?= =?utf-8?q?cusI+XUgPiiVAST6t7RzA+Kh2ApHDAbzEHwwx+qrWUSPGSducLHk6BPTx3mr3c7rd?= =?utf-8?q?vqNa2oyx+5yJ6ly1qhhWQbzVHNCJzOe4vxXUTkx+wLiHXZrgvqXCxhoA+QzTgI6ae?= =?utf-8?q?oFXy5TXWIbm4knsFWyqQ5ySm6LlVZf1ZQT9QqcM6OHGz2i6KHpty97byCgFkX0/Wr?= =?utf-8?q?kPcbfhZ6lX8QYWkWWECyDEVePjrCaBKEB7dHTEXZAgZMQm1DNdxOpHpoYqUyEO4LX?= =?utf-8?q?VxfKiQtMn8/ky5aisLhAVzoueehBLLS/vP8cu6D3TMxiYmX2vv7NwvCHgBsf+ye7b?= =?utf-8?q?3cEvP8JbyUxUNsa8RYwLOd2dTScSUHg1GcrlWkQLIvKvI7LRnAbd5Wn5I7v5UBcVB?= =?utf-8?q?1P4LHMDm4zbV4uh55tL3yX6lZ4iuYryboNrhvEPjw004uNtYGxETrk42oKmKSaoEk?= =?utf-8?q?1HKpFUX3j87aBYdXzqtsSkHqncCqhuxaIyoTAR509zcXsAtws2omCHGWXzEnGbj8Z?= =?utf-8?q?bKONQgmKB8IA9jNdtGTuXOlUcDSmRRj3uFRHldTERLBPZ9U1JxePbKe6fDInbORK8?= =?utf-8?q?lvCQEBOIdaLrvmrVnzQu9MEkQWGTWijNJfjFG2M9wSfhChLqZKJe/CiNrSCIzjlW1?= =?utf-8?q?c4OISifrL0Hir13cXIMfODWNcfmpEUK3I9jO/C0isKomTEOnG5OVeG0Vn4BiR6Eym?= =?utf-8?q?Z7/xnBiNiS9Gs76xbdMd5vmvHhqU1ExbjgFMDxomFduRJMefCXX/JgXVEuyNiOUIC?= =?utf-8?q?RehhfSNvK99sY2MMQc56qaRHM9edRFUtnvysFTE85pj2akRsER94lb5Rmgc/5Umk6?= =?utf-8?q?fH+8Gxoqm2mViiJuPtuwRosM9ClDgtiqrHbKF47cr2WlFmHdxBudw5S6n6p/hk2Od?= =?utf-8?q?EgGNfEy/cDiSOJaNl/DG8Sgp5CFZ9d1+VAMLm/ecE9xUKZKD4GTSLqVM1w0cNNi2l?= =?utf-8?q?NPhLhXvxachBljHb/evWd6bS7L9RpvV+2TojU/ByGbjM0e6KiXupWxFCEMlYNvkqQ?= =?utf-8?q?MrhOd70c9ZEU?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb697dc5-5354-4f7a-2f55-08dc70153e24 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 10:46:11.9637 (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: K2XcfP8vB3FAxzrvuupwKd5RtyKtukRCtH+Q3AI+9Ankyb441cH2EYp3Us7cYU0Sr+B0uPCqcHRR5MmhOf/PQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7612 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_034630_111697_3A9CCE74 X-CRM114-Status: GOOD ( 13.90 ) 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 | 641 +++++++++++++++++++++ 2 files changed, 642 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..f41e5dd22c7e --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts @@ -0,0 +1,641 @@ +// 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>; + gpios = <&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>; + gpios = <&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-gpios = <&cp0_gpio2 2 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&cp0_gpio2 0 GPIO_ACTIVE_LOW>; + tx-disable-gpios = <&cp0_gpio2 1 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&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-gpios = <&cp1_gpio2 2 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&cp1_gpio2 18 GPIO_ACTIVE_LOW>; + tx-disable-gpios = <&cp1_gpio2 1 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&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"; +};