From patchwork Sun Apr 14 12:58:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13628956 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 129F3C4345F for ; Sun, 14 Apr 2024 12:59:27 +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=uQW7BIZOwa5zHX8kXA10vF9wRj/5kIzgHVudHyB+hek=; b=U6QWDQi5rJl42Hp3ZOh/xsLZw7 tEWZ6kqeBOCJn6Zr4JMpRXwjBpltzichpfTHZIjXu/sZ03omucnrVIQ3fzvrn9KoixuQyx5HbRogT Kt/EGNLY7KxHkD07loChtJnfJGlvjFouMvbqGsyPZGsd/rPDoNXdGjmQhR8rPo2JoAolSRI6erEne qQcoI6v4XaPyQONQCsPrX5fgedYNRuqnf/1qkIdu2cgK0+4dkIhk0QzkbAAOwZQdJnv/9yKFTJkvQ K90Tph0W8bSoZoKO7ghMAM83UGjiVl1OcKhc1mlTPDHyWeuALK/Y6sIqgKxrwn2fGtvlEM7w1TL5J VY4WZyUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzRy-00000005TEr-2N4x; Sun, 14 Apr 2024 12:59:14 +0000 Received: from mail-db5eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2608::701] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzRb-00000005T4x-1xvS for linux-arm-kernel@lists.infradead.org; Sun, 14 Apr 2024 12:59:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=at5QXBIA6zANpBN9ynXu2wX9hNwQQ2VuiIjyDzU/fydd2dKRNVjeqlMV1nCFFzPDR2nPD3a3TOLFn8p4KPApVqULQzWVbcOmlHXYSi/LioQ2kcZp66w30YI4TvMX1zAVx4/M8ZjiYH+cHweRqNaD//Z2MvVBV5+iFTXxnrmOw+QK0QpVoS9DoBT4J3ZEg9tJr3OZBEKDmA8z0Y4vRTk7Yqku1IWd4AgzoAh/vEB5vtqAxzssa6/zDEVUcGGdrVgXImRPH29jOUQjWSO+byFG7KUALGRVgZuRFs2Fk4fwzViUYybWDpBu9FORg8ME4bh7vNl2QewMjntZQTKnH5GM4w== 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=GrkxxZZOdyMzSpH804xRaW3AZZ/+05WG4GJPck8JM8E=; b=lvc49djI2GlICOHkjGsE3guTJ2oF2OR/RjJ0p0HrBA5i4PcA381chwuZp5Vusxbg71x/HisoT1MevYFDwFdMflgCqPyx9iMotyj6lpQ+VCBqnd/xlFd1/3elI10qka5UItt3k/sNepIlJ76RBbhui4Aa4p9ocwHppfrsLGc/UbgaEOg2XFMt2fR/lUAuUVq5OuxHpRRnZIw/GSApebaS8FiJfNgU+IZbxhnVY3Pw6CP5QVNDI0zvNXO6H9/sB1j3Wi1nkcR8F9cFBPRXTeZRHPqoFwvRo3soSaouyTsG9JwfqOebpOR8HWAQ3Xn117GZCzAqiWLJZwqxlgDX16cgmA== 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=GrkxxZZOdyMzSpH804xRaW3AZZ/+05WG4GJPck8JM8E=; b=Q33rmCb0PPeceWfQqNLA7sl9/m4/CyPDOAKERY7KGt1zXw7+i3d/TebNyYVKHO7nE+xt/fNrQSXSk50JIb7Jay71Pw7PaiPzQD4QTVYaHaWosMNy/QN1pP+tMkr6YBOdVjL4q1ghIEYgxT1iSK3HEqieLBi1G+P8V4d3+fzYMjE= 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 DU2PR04MB8645.eurprd04.prod.outlook.com (2603:10a6:10:2dc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Sun, 14 Apr 2024 12:58:37 +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.7452.046; Sun, 14 Apr 2024 12:58:37 +0000 From: Josua Mayer Date: Sun, 14 Apr 2024 14:58:32 +0200 Subject: [PATCH v3 1/4] dt-bindings: arm64: marvell: add solidrun cn9130 som based boards Message-Id: <20240414-cn9130-som-v3-1-350a67d44e0a@solid-run.com> References: <20240414-cn9130-som-v3-0-350a67d44e0a@solid-run.com> In-Reply-To: <20240414-cn9130-som-v3-0-350a67d44e0a@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: FR5P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f2::18) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DU2PR04MB8645:EE_ X-MS-Office365-Filtering-Correlation-Id: dfc9e2d3-2f18-434e-0a08-08dc5c8299dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BuD9GtQUm4UZ5eweSDSwwTtUwon6F2QFqxgKU67rzrJIoOu5v+9g2DjO4PniZqeOTmRk3MTnVgBOzPXWTV2S9UgyxtndiwoSmf5WWXVnGwaNmFmPvNQsyjL0gogPSPva0lUxAKTNz/8PYmGc1HtRpox5LyS0FoEPqry5elQ0BUoZ1gkj5NJQ/9LfT6nzd+pFEC0ulXf3hDYTHt/pAGDJkxOWnrrXhQVC7NJLxX3SlMeO9KRM7Bk40vyf8bAlAaSAcycxoWgiKptE5mLTa+NoUYletvoqf9U1L99mkj0ItNhmiK+UUP5JLMQauJt9Il7qAbPGQXv9k4n0HCY7bF7V7/zN1yC2cqL34O79mfEGmMEBB+jOUiLMvhMZFgxV1R/CJEABn2WFn0wjzphRKZOFnUS3jTjAHZRmYNoq1zjpt0W+4S0BSFVjkJhk8SZ/QnkAp/bQaty19cdYRno6QACZtbHvOlFbeL51PBcdl4MdttElB9AnMzlWOSc6+j0b8f545lioX2z+IlqI8HQ+LWFgaxPztnt8BTwBd4gatHY0+ypd2kjf8ljqN9Pf1F7qYshtDdrJ/32HglLdv4zX5RSPwY4Wo5hYR+Y/yyBivo5smZ45CWqt0m8x/UtAlEf8Qcf2ZqYJ9K4+S0JOZUdyr0hoBVsCdfYtoP8DrikEnnoo7PxGrs+2/Emjl6QY2yq3lJM//xoUNAHp/9+m+7RzyuheFw== 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)(1800799015)(52116005)(7416005)(376005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rxVq2xntfcA4JoL6E0l2mm1R+TXh?= =?utf-8?q?YRN4c+thccIbPHKDw6HMg/YSu9vAClITWy9U/4fu/mniTaIikVbwil8gcHz4RxEQl?= =?utf-8?q?87XiDr9i4FazzSAmVsagI94okMzOTcfjHQoFUVkr3yxXopzXNnDGsVjjbtbYLF4AQ?= =?utf-8?q?fz9pf7QzvNOxr2rU50AgKpyDuyTa8xM96aKrhTFOnivcEcauVw/G3LboAgGTcnVVK?= =?utf-8?q?vzgwDy4Mt3+kjluP0cCcwmMzF9m+MIcb585n/uLSe/xOzM3BJweUFHlOuEbjbROZV?= =?utf-8?q?aHpRxkqEcZxlTvCz++XjBiZ3kIyQF+Ss/iV6REURnH1Q+0dC11z9IwYjkAQvZwyRO?= =?utf-8?q?uRZh6i4RYqEBQtLl1Mt9D1SsOuTJbDUAqqHBzXCVwkyUDM95Pihl53UJxIcr6v0Hh?= =?utf-8?q?G7/NFOc/Eh0xil4TRIbttfg/CrSpedqAhw3GhekiMhSUVKV9DhGdW0GE9GKEWR1yJ?= =?utf-8?q?VaohyxUom20YRf6jSmG0w1V1T7f3KzX8BJwTxMJDqmZn/A8FxQMdy4BcJoOE/08Wh?= =?utf-8?q?GM3zE4JcKGyr9RAT+wCLuzZASpfjY+0cI7C8R/sjwvm0/9PIaQ0V39V60uZj/AsjE?= =?utf-8?q?ftYQhHoh+NXwJUpmsQu/flK+hEUfXCJUL6z53skYTtm5mA1XoHXap57erQXGC+46W?= =?utf-8?q?rYk99jUnMqtHu6rW9KAqXX+YxxGLD/qcvLiObfuqWw7OVRwgmG6WS0GAqW+qqHBcC?= =?utf-8?q?bhBj44TH9Zd7LsYdH/jFL+/W1rvIzGoBrj6ueFf2nhpzARXaAUM/sR+4n0L36YZ/N?= =?utf-8?q?10FZjzsJSWkCc4YGuwpzhsRJ9pQEqXaO5D5bo2hAKHJeebrfkJdXtxUg5t/+WXGxz?= =?utf-8?q?+VrvIhTcGeSA+8EOXu7OMhsolgxC0nOJgX+58/ZAyZLGYBaYC+Oc83bZ5scOyaypZ?= =?utf-8?q?3W6gtQeE06koESjB3nRAQQ08NzfEHB/xlNq0ZyhvhT+hQ07VdB2LRx7CCyub81EFN?= =?utf-8?q?NShIifq1s4aLP9lcnIwLD209K5XhwvLK6AhBs3veEkrv1AtQpxUtqfh1ky0YAigfs?= =?utf-8?q?4kjJeDC1kRTpx8dEcvvLzsIAgbM4oHM/6g99Gn1o1/hTi4qaNeT2xLtVUR+UFQAxB?= =?utf-8?q?pJeHOfMWJe7Eg9fNYpWO9LNt/qkjPRC4QHKG8flki4QLQ6VhedEnefLprzVL9D13v?= =?utf-8?q?hHkV05ctchrnPakIneC+QjnzqlXXMxUhQAO9kHfdeJHdACbun+lv7nc6zjnSeV0v0?= =?utf-8?q?9eAFDSIx7Tv6wW7x/JuQ6CNJBKKCtYEpomTiQXTKT/OLOBuRLlGkpQQh6InFtyxJp?= =?utf-8?q?I3Xtr4VztsdNdBpzVeHOqFm4vyzpTDw4AeIr0sPvcH1HZ7u7aM6GAqSnbIE4i0Yv3?= =?utf-8?q?vzA/a0UsKD9QqZRInwiPFA+8LUq0F6vhTytKf5D/JfkFFnzoS+KlfmfnBHxzmI92o?= =?utf-8?q?b74R/7XgCawsuCdgEl/7+Xq/fvvjdWer913fvX7t4z2c3IRWsWQz8Lv+GxrF6NaEk?= =?utf-8?q?r3Yj+z1OhFQzBSl6qDnoqk/1hnAtNJMCq31DXiBygdV9BmYoT7FYoruS2Xx0a3joW?= =?utf-8?q?DmRPRn0Z2Vdu?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfc9e2d3-2f18-434e-0a08-08dc5c8299dd X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2024 12:58:37.7622 (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: Kk4RpoWyI6Vqud8U7wfpAN7KxVci7OTn9eBt88uU4DfzbcBrhwVPoqYub0KS+P8Rce6l8Y1B573IiAwHoMNahQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240414_055852_521451_9C984233 X-CRM114-Status: GOOD ( 11.51 ) 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 Sun Apr 14 12:58:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13628957 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 C2104C001CC for ; Sun, 14 Apr 2024 12:59:51 +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=UUrVWCdZugz4QiuW4BGau5dK3PEucG2vzWxt8aeeeSc=; b=XuG39t1dIpdHDl/hWWWXsVSmU8 XMPHoLqvgyWqc9GG/354UY/15MQ59xFT+WryGv+aRZ18mRzT+4rAxGxO3RwVl9drNP1AJ1HGJtZ3T G4AEX56R+v33N6NdX7H9mNwuDPSEJLMg1vDgsZmhkEY3rTR9Spc9+PlITB0NhuVjYiMmwky4/MMZ1 BJH6QWyUHKYMezNuaOZEsHH7GNyB2iHrt716LN27OqIXb3K0spRXn6bAyl86UY6yWg4FYuH8NpVWg mOLvaN+CC0s+sIVDPV6DhBTyezRSqgHJg2Rbe02290FK2udihyiG5EJlfbEudpslUYujQ8cYayNqd /x56qSqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzSB-00000005TKr-101S; Sun, 14 Apr 2024 12:59:27 +0000 Received: from mail-db5eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2608::701] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzRw-00000005T4x-3zi9 for linux-arm-kernel@lists.infradead.org; Sun, 14 Apr 2024 12:59:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UyZf/XVk9A3dNBzjclKT3b0RoiGI8F1ZoDGHaQZ61m/0FdzVZ6yzt/bGPVBnSkx2oucOwOI+/v8Xw+ASkHmO2oB5XSXFFiQMbwJVPST/tjO2jB2D0saU1XMEQRov+QfVVPwcTofiut0x+z3NzgHQq/L5hg2GJ5FMCzL9NHtV+nQogcwLCV/nBPPDLTTJddO6/KJ2e7x7Im0aocOWVaUevEIuKGnCk8XaaQdlIEdAdu2hNu1kEAyhLIYtQtvcoskVeDR6Yqq5H/jK4ve57AYbFMpSk3fD5lkhdJCkle3FblEPVgkdaHdmvwgoV4yTk1AFFG/o7rgqzyAzkWSGkly8uw== 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=1/o6Db+4qari/2w8dwB2BV7Lr+ariF41jilDFIiuuTo=; b=ktj0zBRli+bHh7fDQxkMLzLbMydVPM56gXi2DboVArjq851wXOojAV8flXx564155gDgqnjrGt4xhCsOC0DJXmyLVTihr9ylWAU29Cs0Ntf30Dno6HW5q4mu7MWgSRj/k4PZE6VvuZWUAV9UJG+DZBg4WM3Y5tRnj47C2j+SI37n4oHtDaWIW2BMUS7fTKX69FhRsAFuLDV3Vh6p72ajbivSnUieV3OtAJyc/r+e/XR6C2ejBcmM271X5UfMeeGtH/qLIbDtStqxMA3Rm0c6roODG71v+wz6jx9KQEoAJKmqRd9GYiYhaE/BDrTzDtszMCUo5j60URybhaC+AE1YBQ== 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=1/o6Db+4qari/2w8dwB2BV7Lr+ariF41jilDFIiuuTo=; b=mVFNBqPS1h0OyLsRbG5sAFf6d43MSOo4odo3yd76UbAIKBwKf4+5M4Bs6pRva9xOcQfOM77wObPxRr/+I9zILFAPIGpYcvUnoc2eWBK2ZScVoOhTI+Tj+NIRbCDtP8rLvyPtd2RpLrIaTulbRSFIL5LQGxQRqtAMzEWCaO36cHs= 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 DU2PR04MB8645.eurprd04.prod.outlook.com (2603:10a6:10:2dc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Sun, 14 Apr 2024 12:58:38 +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.7452.046; Sun, 14 Apr 2024 12:58:38 +0000 From: Josua Mayer Date: Sun, 14 Apr 2024 14:58:33 +0200 Subject: [PATCH v3 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board Message-Id: <20240414-cn9130-som-v3-2-350a67d44e0a@solid-run.com> References: <20240414-cn9130-som-v3-0-350a67d44e0a@solid-run.com> In-Reply-To: <20240414-cn9130-som-v3-0-350a67d44e0a@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: FR5P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f2::18) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DU2PR04MB8645:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d9ec758-c70b-435a-59e6-08dc5c829a23 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tj+Gzbfo9wqNBAb3qBQDdchn83NVsFCGBo/vPUYofaFCe8F4RoTCW82JT2TDIwf3T4ujMmKixrP+Zwy+gh0iVN/RrkI7nIsLBnOmZyU+L6OHu7hSwTBSLQtDfS6j3fdg1jFkDjpwMk3V9ZT1Bci0th3RuI/HgMbPLYoynI+QZ1BekJ2F/QvCEb7L+DpmlRE8detHl6Hf85kWAn+TU8eruxNToS8gJC6bAcXec7al9fJN6vQ5OXITP3hjnufus0Tj7NC+GJRqLU2pB91kDY174AhIt8zWDCVUt2ktyYXg3r2OgOzPbsI2MPbHhxqmKf8a6TGzPmhpbZKtkSObwzuNco59waFXoI+HVrfMi7OE7BJ4oAPtTj3G9bqL/exody1wJ+8P84R4/iwktETFilTpI8jkqv4yj29V971aoHWOc1orakjJgzUkr7sjaEGh4+AVmplw8eJNgnqOJIpPcAATcG5zcTlgN4wyGe1gElFj86Lh7WTfYTRHOCtJs6PVstYKXdtzmqGQpOBM9KSaNH0XjPReX/S7SO3CXbdTU4AOvMcgcbnX/CPhIY0F0xJwn6K70449LV9wzpm4xQNPwDCLwnDgHhUKMIldY9jVVpjdHYQfW1GPHIIeKLLwrsQ4zDw8lLFlv73vPRrQx5g2Qbe1waG67l3UG0teO9z/jwZiVu/dyVp8fwT1UUYw4dqoY/jF0zUPzOoDVrDYcLwzLzxLDggVrc2+O+Jbe9vRZZUaPWA= 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)(1800799015)(52116005)(7416005)(376005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?3aIgyiPEmxWiFsX5Nnka6zMr8QFf?= =?utf-8?q?HBkPWOOSXkxdrQxOWuVQg6IJbLD1mlnKGQNoyMXoof8/7+All1eOkPmQpaa0PjbCB?= =?utf-8?q?sEf1J3WPW9x+Ozfusp3XEb+7ZDdcTB3Ta3E45MLiUIXWG155VctWcz0+Se/a2FPH9?= =?utf-8?q?QROJoqsN5ApeJ4vtsvlVh1XRsEubzccIypfxslsoJAote7VaoCEEG5ZAlPbBDQV32?= =?utf-8?q?14okhd6maGZWEKaM9S7aXqJ86uKzXmjd8B4FUI/bP7vswDMwIDR/a0zjE8bMaVFHP?= =?utf-8?q?svuFUIstJuED5iDxH1tw3QCqgEPlMVUOmbtQ2pS0gMf73NOU6gLnAWcmLM/4Hi222?= =?utf-8?q?wOjQ4m5XxK2iFp0emzbdMzfTvouxhJvGyXcdew/bKkCjuu4m7yGbyoyfivZoBEZBN?= =?utf-8?q?FYp8Jau71ypqV8WZIEaC50znXCOLx747asc7aFYGoxjD3tb/mLW74nJBA9sZm0XRM?= =?utf-8?q?q2PgWZZchUZnG69U3gqGgYNR6UtNXB9rBiNiX1tsq7hatIujPbqnjyT0EAYmKhEvx?= =?utf-8?q?GU3YDOVp+OwuubgUn2878R2Wvk4sB80j1UR3+EiqJCveKHx4R6lL39QMh+iSvxsvl?= =?utf-8?q?flckEz7530fmC2zUJktLNagkQQz4fItBNDg8Kynh9HVeGeVAJXs89gkBg9JoptT1F?= =?utf-8?q?QV3Nj1nj/OUvuM3Arl2gP2gaauEnZC7ohj8pK3ueACVRVVKXfSoarc9MTcMztzdij?= =?utf-8?q?LXeH0ltXMW4LbTD+fvsCcVu95D5DctEo5oOCBZtyE6eAAiFtjEDM2ps5VUDHmL23p?= =?utf-8?q?IGTd+p6DyjsHbfv4tC+bbhRKu17fl6SG2B32EusmpuD+p60UNR2x9nRoXTm6Br0KG?= =?utf-8?q?sid3jIgQdwe7KCmbaLo4MR6N6Mi6G0Mlk6Lti7fOeTMLopqh2H44x9ZLUPtouM6xG?= =?utf-8?q?XYcqIDn7GgsUUwlq/d2Cdcpl/knK6Dh8H3L060aOwwmGcHH3WA8sUmYpJxSq/43l5?= =?utf-8?q?tfI1Hic2xZGXgFrB6IkLw3oU16GXU8dv7jTpcTv6zQC0JuxV8JFlfQcb39sL54flT?= =?utf-8?q?RohLzNs/XLy1IoQVt5YhUnMcWN//XxtcK0R7fcqVuD4MR03HP+uoiz1LVAj7BKfRv?= =?utf-8?q?sw8c3cHSNcKu8fqnCZW3uyBEB/1X1Edlx1YeifR4TZZCj73i49QTXihDZ0gRcwLmN?= =?utf-8?q?wPPu0NIkrNX4V0k78Zx5XoAW7f9m0OLpx6HkN5spJpdGYAbZmRXDRzKVtmaykowxu?= =?utf-8?q?0nVSHzIBejq3uGze8ziLoriESaKX7j7SogclajcU4Rebm65lwXsFgGl14EKRVrKHz?= =?utf-8?q?jv9UTOFDY8tiwm6USx9A3j7yRjHIOGQ34bDlJVCkIRh1/hI7UcdqGQQpJisUbooLX?= =?utf-8?q?boVRZ4GzB82JcejsrTI3LmwbL97Wa/A1121SOaa+jQhAiao6zwBLe7w4w7KtF13oc?= =?utf-8?q?lhHb58KaOQmpqSCYz056fzRI8ugLMbGIJsiI3uqZ8bVDrjCG54qSTOqB8WcCwmrhW?= =?utf-8?q?3mOFRdYb6FnLm6nfb/lxeoY0zjUrv3OGU/6/gj/etbuYEBWfEtKX+4+axxwKMwjMX?= =?utf-8?q?+EGmThfWuNSa?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d9ec758-c70b-435a-59e6-08dc5c829a23 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2024 12:58:38.1911 (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: uGDQzirOXQThi7b/etiqIRWHFTVJeF3TczyJrYgoJXDZZEn9HlEoEwvDL/8Is9ZwHktz+FqCeYwlEoOWzL/pTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240414_055913_341070_7448B573 X-CRM114-Status: UNSURE ( 7.88 ) 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 Sun Apr 14 12:58:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13628958 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 48F73C04FFF for ; Sun, 14 Apr 2024 12:59: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=XRSZjtrputL+mi/9DzfM3OTu4KdZRxZU+vNHRDfgmjs=; b=pIQplkike44xtU3apekMIP6wAO VWg6f3/WjPL9m1Et0PS7O/hTvAfl+kgFIx+75plij7GDzLEe/8nEUNCWP9ff2RoWyo1RPNglwak3E rnBLMBQ9qtNxQRZoB0yl8dKPdZ4nh3rILFAsJommzeLyy9UMoljXCkw6C2LJSeLldw1x04+U+obsq cpfZfxcIu8AMedcb/AJz1MfbgDdzLc0M7Ldn6JUSrJnwaZLxyYIY0O6fqfOEI0Isy2g5lWYDGKO9T bj5dvRJ4CyuyA8XHGaoFM1n3NdWy4o0cjXuTQNH5jy4zz96uFqmBnRPNHgBf8kyAH5al2d75fl5a8 8MplKisw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzSE-00000005TN2-2reP; Sun, 14 Apr 2024 12:59:30 +0000 Received: from mail-db5eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2608::701] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzRz-00000005T4x-3MEi for linux-arm-kernel@lists.infradead.org; Sun, 14 Apr 2024 12:59:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CBq0hN8NT5GRUNbzM9vzSm5Fj8t0EL+OJwDQCzpNlU8nLBmQ5U60wmcEpv28qvLzyWz10jQv0p5MDAgqhVgLh73FUbbAtNkfQEvbq6Tl13RlD/MQTLtqZTWOc9aZzE+oQAneRpSqc/J/zQ4dccDMV0WaVWoBPHEFIs4LoyiLIQDWT857T4XsNqR2tSkkvR597kg0Lf8YQyL7yrwqsS0gx6U+SqWhWlPHLFz8dW6uCja8wZzy1HeWSYR3X9fwpqmHJYfN9gr7ifbItPthcNaFac5VmMC+Jna7Wjirp5MZJUVy8uQwC8RhwRHJf6w8V4F7nm5IRHR3qwvhPzGNW1Nq+g== 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=zYnwha/wR7a43PtgftJlzapTa+gisjXv971QOVHdftk=; b=SswDdZmALLLbEjBnhTxZTwcsT2HS8BS2KBwYVgblcJrTq9PNPYm6GQiG3rAz0n7WOaj+9Qk3jpFfHAFrZk6S+CrhQYJCCQES4tYqTKdQ2ZiDEyvtK7JFH6Iu/Dhh45eMjqwc9j7cRwpg3Y9sgCmtsBJ8wG/jgyu6pCuiMTe+QhHkQWlvuG2828nHuF64uSUInPLK0eAvcb7OukqaG5+27DRLVdCHRjkB/qR+bAWuwBgqNRfQK0pmzJOSDFwueFrRPwQzhMvgIz8AwrgTpUa9RpFUiEBGBWQa/Hbiw3Dh7AdeE4n8fL1XIHxr4oIPW2Y5NUCkKjxt0opjlN8FiScGRQ== 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=zYnwha/wR7a43PtgftJlzapTa+gisjXv971QOVHdftk=; b=lWw+JDqAsqKRtwhkuvK+J9q1eAMBYbW/vHRZtGUSgiQV3mMWFVLOTYias1GiqhmLO7qH+EI/tHesptX9UGCYbU2Bkr9ImZli7xza3fznTP20PFWfBT9ENqo+WbrtLqYE07UK4upoitABoLiLt39KP2zoZ+UT9s1vadKhhGtewIc= 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 DU2PR04MB8645.eurprd04.prod.outlook.com (2603:10a6:10:2dc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Sun, 14 Apr 2024 12:58:38 +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.7452.046; Sun, 14 Apr 2024 12:58:38 +0000 From: Josua Mayer Date: Sun, 14 Apr 2024 14:58:34 +0200 Subject: [PATCH v3 3/4] arm64: dts: add description for solidrun cn9130 som and clearfog boards Message-Id: <20240414-cn9130-som-v3-3-350a67d44e0a@solid-run.com> References: <20240414-cn9130-som-v3-0-350a67d44e0a@solid-run.com> In-Reply-To: <20240414-cn9130-som-v3-0-350a67d44e0a@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: FR5P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f2::18) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DU2PR04MB8645:EE_ X-MS-Office365-Filtering-Correlation-Id: d321d291-c27d-4412-223b-08dc5c829a60 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HASM1idNOxkOB7QwFYrI7GzYYCuAt4wGzV0YjyH9j7fQvf3S3GHqgydbuTNYPu5+oX1CIWSpZmKJ7hJ/YxDsTHDwooyzrVQWkmXMviw6jjmeHko+mqSHHxIuPjBn7M4kruzdYl8wESyb1OSfZuYLUCqazNRMm86O+4DVyai5yALXChJSN9Wepdc93Z/38NjUUdrdfl4rEPceQIrCzBhVo3pCZfeyUt0npLmuVz4gC+Xp/fVCIjHlc/EKsyuMXNzUxT7f0q4xd9PJqR4Kyn4DDdDjNmmznvK404ZQRyEaxt3hY4qKBi+NInnf6s4fXja/clNp6tlgBypLM9XUdvePUwMkTk64TF2kCxCOSqejSm0gHJtCsygAN/0a+J9xoKcwJheDunJtqszEazspmbRc2W//MpbyvTflNVNnyRqC9ez1NKfNdd2UoYvtCyhSn7eKkmuXHPKGoerI3xGL9bbBtSFNiR10NLTh2wQtGXTPj8RVZ9O6mPTzwQD4Sk1MBH3lKHjOa1BTl1sazj02hQ8Zz+5pdGc4gR8Nk2zSQB8pYJw+kyCNL0GsNGNfF33XHusrHqgnCQMZhRyxAr1ZuHALCN4QfLgAg0S6MEPqakK2txBA0HeyreYrACog5ZVVONeX0YSbNj1BoDYVrsY51Abb/H71+VGgAY8/bj70M/SLCpXybY2NF2aFW0QZm4tHiK9eH1kDgylAyqYMNuj1YJ6NOA== 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)(1800799015)(52116005)(7416005)(376005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?yUJXvDWlLyYdr7gaud+iiHunBfiO?= =?utf-8?q?NyfnCyG/8zIzuoQ7m1gzsjRcPNOMN6PV2P78LerZVuva1TRfA2SSnSfHypYBQPdZz?= =?utf-8?q?xfH+xmvq534eFoPsJkDhdllRaiTX/75yKLZn+BCPpInNwkA7TdAWU8PbnYC+ORU2t?= =?utf-8?q?5pS2x55rsMV/1a0z7/OJtvedzivfZRxrVNPnyG5z31cwCAibxMGhEeNN4c2GerTO0?= =?utf-8?q?2mkv+KJ3aevmy3slvbcis+JXCFtZ4uTsGnUGWWMDKvLwQxwyTWLR3Zu+wfolDmCh1?= =?utf-8?q?4rGo5mnCDaADMFki08vr2fo3bAT0a8l3HKgPGmu8YFah8KYwCuOTRSHaHOBZ9qBHt?= =?utf-8?q?mJoCQppRDt59FdoahfIPG+sxKwSBAnEvSRWEOXvsGhvA1nYJ+UvHk1r7jAA9/wxEX?= =?utf-8?q?O4FXFhUrkhwbHL1d2k20MBANx8RNs5woX7CZI6WwYwQ5BbpHoeebief4itmvFowPO?= =?utf-8?q?EvW4oAxbhIC39/rYJ6V0j/KipQOkRp+aBVddtHNtz8/5vlalhWBnEscTXsJGGGuSw?= =?utf-8?q?ResmDvm3u8GbEW66ZPWKh/1LdCqiP97SVgy952ROT1WnIVlPvVV1S3Y+de+dh2Mkw?= =?utf-8?q?BDMQCgYDIsUffrU5bIBx3MIpkL8gMFg8l2s1C1gfiJfqs99hsH/SUctG0q6UmRtvD?= =?utf-8?q?m2JSEyXmBsQOajQXPgszpsmXl1zPHcXXuMsA1I4/tlNv1+cLlwS30e1PXx42BR/RD?= =?utf-8?q?5kd1Uwy/z7qk/Zuz+cxdFIa+DZVfGnMku6FPuxqVBxPSfCxJzboDVag9eGb5AFLWX?= =?utf-8?q?nQ5WBmm6kgNfj/zoEm2zQwFbxqr08qZ6OJz8IfNntSdUsbk5suUe2IQHu8gg2YNHL?= =?utf-8?q?EdIToPdxg9YTj7ugnObsNUz7287rlher31+ykJb6yQOcLZdbyShQigu39xQWAx2jk?= =?utf-8?q?JSZamxCb6ipAq6tM9Ci5Ymhe66mFaA4MJHeTbV6fh3jcQ4RFO8Y2gHTebADQXp6l6?= =?utf-8?q?4g6UGHhCMLfWiGnZj2YVHwgMaNyhJiUbgszuKIYiIb6KLpjcuyAvgnRmyKWQdcV+7?= =?utf-8?q?x8dQkErsIBBcq8bKHNHeN3jQjGkpSRvXmOmPja/XrhWlT0tNmmfLuFd7yojkEImqO?= =?utf-8?q?b7X+EgKJcgGObaok+Dl5c5RLHUE6Z3auzUg8WspsuzKbiTYkLUJEYC04rrfty19Y1?= =?utf-8?q?vCexF84HfIj7dofmUreH9w16+JlGhVHStrZHYLbcc4MDafVDjFpOlC6KGIGbE65dW?= =?utf-8?q?y06gBIVWbaH/ZUhppcUe3b+PpWBgvBzScnLGu2jQDeeX2wMr/DmxDV7MVjFp5iLHR?= =?utf-8?q?Ku8imwAjlQF3PiurDDvHAcU6dZoxRcT0x1j2ibjnTTMEH/9F/zTkxW8GxFC8V5H0L?= =?utf-8?q?62IZj5jJtYs1RYsZYBl4nFgMi94wtkN3x7iv5kBUlUKHxt2L7Vpn8Yi/ztfRk9+Di?= =?utf-8?q?+DNMM0RDJzy1mR4xW36UGXAx/oJ7GSwMQZ9FKeDFEvsc4xGlGhVwLTs3njwp2Etma?= =?utf-8?q?I5ZH57+fQbwzaPvlppAB8q5Ct/MiFimpf94h4IGifxaLrGLWO+FZufGb930tapRlt?= =?utf-8?q?m8iCN5NRY/Q1?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: d321d291-c27d-4412-223b-08dc5c829a60 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2024 12:58:38.6234 (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: Dz9KFJMqwoxQ2ruzflj+OEcpgc8U4EXyGr9CltiCRtwXY5FIhJsBl4Bpj0zAISibY4vyCl//1DX3nNSZ2H2EDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240414_055916_141749_BDA38946 X-CRM114-Status: GOOD ( 14.67 ) 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 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 | 377 +++++++++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf.dtsi | 197 +++++++++++++ arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 160 +++++++++++ 5 files changed, 914 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..15c74d584dbd --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts @@ -0,0 +1,377 @@ +// 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..dcbbdbb9b25a --- /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 - 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 Sun Apr 14 12:58:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13628959 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 D2CB1C4345F for ; Sun, 14 Apr 2024 13:00:11 +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=/k0A+TCZBKnnCO+RzuTsG9oa5ijgHGuqGRAMHHLNuEE=; b=dT0IGOFcMvgdEp1f+pY5+YZ9to x+MVOnOFiRQZ+O7VfeI62MlYAkgWJs3MIgDwg05FqQCvh+0R1yBMhfMDekcVb48bjp1E94g8BVMtI LZOwO7RZjIFIV/6lmP+nQtpnAmK1RuhdIEnzcx4bKzFc78KczUSDOMhOQBty4hCoZOYhJTUz6Ap1g 78e0x7EmnV4qrVo+RXPITfQabYeIeKD1w0qGyefenYJpzslzrHV4Oo5ccrMaDOzqIaB6YKNmzmxW6 x1yCc/QkugIGUBfV7M0Ku1zfjJ5Hpa5XZ7wk2RgIrT6hRhl7Dbjmiw2TpRazMCE36hbrp4s2UGdWc JXFnLSVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzSZ-00000005TTC-3BfI; Sun, 14 Apr 2024 12:59:51 +0000 Received: from mail-db5eur02on20701.outbound.protection.outlook.com ([2a01:111:f403:2608::701] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvzS5-00000005T4x-1WD6 for linux-arm-kernel@lists.infradead.org; Sun, 14 Apr 2024 12:59:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NOaFMNMHNqxALnP7aRGDQmKbROeSa/lBmLlhpgANig5vUAWJ+BqTzyI/+uQThEkDY6pBO+TWQjEuRkGIROofLDvwHZ8hYNanG7dh/DWe6sb/UxD7ZGWPB9ERMbFCYR0WySUZHqfl88etk6gQmoUJaMc7EVQLN2hvEhIjrTG6sz9h/WvqKAiBSZVCK9YXZVEhQZhvv6vGQFO/AP9X73RKFtUIggGIo6TaErReJiXtEQn92Zm2LhPuJ2LQLtm5ZWGIZoGl3/h4R9p3m5GCFNQYdMebgTl/jujMK52c9QgGJv54DZ70O0Q+mvdNnf7g90BYKCjPYpO5sXKMFHJ2bnTmQQ== 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=kiVIvpFPy/3xeNoorbnFw3apwKw/mJ+WH9lzR/t45PM=; b=RuNQVUkUTOv8v2Qjvhe+7ZjxXRVWKQq4ykz4h3E7YtYst8K3HfjDiVrwdCe76hu0k+UipLjo1tKAq6fmhFWhhDqXno2s4RFfAVgMH7IAm/8iIbEDL/vCDoxl3qwm/8pwuonCE4fLFz6fOyd4t0hSR8O2GP8PLEnd0CReabXpemPTConthi6URQDsb2iUC3SGzF19voyiuLoQ2KgTHzlLVtfS1zAlqWIm4OJxITgtnQgFF2EepnWOs+VFNTXCUpRzKdKGu2js561npMlVBSjyTpda1RGC39P4J86mkQDiY6hps4hwIYtlo1Jef3XlxYIuobZn3rNpXcfQqjDGMtCWMg== 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=kiVIvpFPy/3xeNoorbnFw3apwKw/mJ+WH9lzR/t45PM=; b=KnoLZPR0OQIydfSSu+cmmYFk/2VUFbZMez3/mW4rUrQH4TGGBptWxGXoeNFNuTCGcmfywJ/OPMT0Jx0hwaVsqFgl2PBV4cujSEmnIa8ibWMJN0GaquiaXByY6bMobIJ5btRRGnfSr7TYdwowJOD2pnvWnv32U9i+Dq9odA1INhI= 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 DU2PR04MB8645.eurprd04.prod.outlook.com (2603:10a6:10:2dc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Sun, 14 Apr 2024 12:58:39 +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.7452.046; Sun, 14 Apr 2024 12:58:39 +0000 From: Josua Mayer Date: Sun, 14 Apr 2024 14:58:35 +0200 Subject: [PATCH v3 4/4] arm64: dts: add description for solidrun cn9131 solidwan board Message-Id: <20240414-cn9130-som-v3-4-350a67d44e0a@solid-run.com> References: <20240414-cn9130-som-v3-0-350a67d44e0a@solid-run.com> In-Reply-To: <20240414-cn9130-som-v3-0-350a67d44e0a@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: FR5P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f2::18) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DU2PR04MB8645:EE_ X-MS-Office365-Filtering-Correlation-Id: 118fa570-3330-4b86-3481-08dc5c829aa8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LflJbiVjE6ePK0q5SoNpVNJgRUvfgIQLxoUs+gWRt3sJhouFG5TRx+5vLPR7PzD4c46iSEBjLDtZTYzt+YkmnyBEZAlneNVyl3qh3hBCbhU7I23QBfj0YVD+JEJZGmsBt85qVU7A60YEy7HRyqB4XCM+13t8XT1Ga2XbIN47eP28vOW4OFCtNZXVB9dOVJM0iTQFLejnWWnP/TFp48h3cN8DYXRDwVvmrnsCQ1uAJG3zlRbUyK1+KefpbspfvSQaNjXMaTgmAFITg544/wgmuCY2gHMpWeEJ/aDthqJ++KRhDBTZg0qSaE0qAh4FAnJbW7vmFLAF9TsBph9mUhfP/x12Q0R7e7T70kTiwieCCVN9NHuEJ3qks8QO3vQf3oYUQ0m2iQi2sonimuen5B15n3qCd8UfIeQMEIaoPlJoLhdEGRnuGPWcOq3XaurmtffSwRfK9MkankwhmZx5W9BDB0BLSiD1J53rK8jRZ57PfDWHkexiPz9d9E4z/g6eeHZI1uBK/Z6yIgOVnL2BqWFGv0rVpKgXBySsPmlgLsibC9j2RygjEJIQ5EJ1v/cYFz62QdjzhoHvTaSeT2yCZWUhecE4JbPjp17UZd17vi7ObiR+TKF1ZiVmhLeTTK/lwGFr2zAhLGGdatPhekFAiqH9XuAv/47hsrFDk4pCEb5X2DF4l2x4iBu6ppshUwbThiFVhkncSjpfWqgnNdblpMk40xD9DXEufZkiJWqf71PYNko= 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)(1800799015)(52116005)(7416005)(376005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?44JYoIrqIJ9KSSK5L90EZxWLyulK?= =?utf-8?q?/hjooeDOtpUnhOMbaOMdYPw5XyQSvJQmSiaQanPBo2M6y8kqokBRXSfkFphXmVTHR?= =?utf-8?q?2Squ4VB+rcJhcC1WOG+MAEExmLvr2zQwZ+wuWK4kRoykrG5h9eCMLVY37QZqldRpU?= =?utf-8?q?UXDthYof/kdUQP6VH6tcHHB4KLYVYdFKX4Z2OtPmEqN4+FKQRR+I2B/+ptOdqzyby?= =?utf-8?q?7FfXc0HzxMs4s/derqt1oEKnumhCQhmEWJNrH7tMnKCFUyQvnlzHB9ahaZbLw9rTH?= =?utf-8?q?WZe6ISzMwdJ0RKcAdnCzk2NpBvYxSAEoae8HoyU4FI2xb4kA4TgZj3YNjY6h0R4zC?= =?utf-8?q?RVmOYCNn2cWdI5qf6biDx+q9d6+MR77Y0T0hL/PmfOtiuWihkKihQ68l0dDSYBnPy?= =?utf-8?q?42RBrCZ3/UlWCm7I2UdjIydsmgNEnNsUx05gQpD/kSAqBjG8wFpNCZEWnTWB0kZxG?= =?utf-8?q?LbGWJrE08OCBzymwcp3EHVoe/SDY4b7/IIbxncBZTq3mprR4zG6UxtcmtPw9HHojW?= =?utf-8?q?bL/pIKSZP4E3YE/TfA7umV6nfDQoisMZq9qQY1ePllifY/5IiknU4zhJ4hAFDWnh1?= =?utf-8?q?fmDQVMndT0WgdNcedOyeHyu1EbPAX3PZuVfGWPZnlxr0Ls1dO3ZmNCxxk1Qy6+Ng6?= =?utf-8?q?syZdQnLg9C/1ThkZKqOgq9SeDPwNRjVNkuRa5ECYOVrYwvyuZqeiYZejiL4dY0qwW?= =?utf-8?q?FRWPwhluzG4tdaFWq8vMhFO0xtSEMQkHfEe66pyHsse2ivpf2GgKG9arHkQa8t6Yc?= =?utf-8?q?lsiDpCS6fBJf7EWySN8DuPWZvCLDTfiL0wR5krSDai8Onn0hOFfb5gagL+FfsVW+p?= =?utf-8?q?Sd9d0rm2I+Y3kVoRzADkX0id1mARluMM4yv3AATAjYCG0ThJNt582+qiH+jDqO4dE?= =?utf-8?q?0j/TwYgFbSQwIzZbj+J1vsGs2bHO1Xnv0DCkKG9kmCoVJb1gWpBE1j/a0wuukvSgx?= =?utf-8?q?ZMmkFIomUyFqkQCvJm5G765tjnss/U3ZgTK9B/kGFyLofmCjwwV2sSQWCcyY6+qhH?= =?utf-8?q?qUHr0g9Q8MFoIMOHng4f4ReD6iLx1dgByW1ULYG2WL7DIND4+8TVimttV2I/SfqAO?= =?utf-8?q?rJwVJTUtYlGimG+KOD+ZeZ8qIHKGogc2FiG/d9TlTgylEtuR0tPjOddsl786pA2Cf?= =?utf-8?q?2l/3Y2gSSRxpFOoIAMu1ZWKYdavV5vbD1dt5vBEowCEeJO6W3BkBbs0Hsoe+SKCS4?= =?utf-8?q?7E/e5o9GW96EYQvPQDpAZWE78Yh0OfXHAgSxeFgySSgx/2eYwro+V1c2oh8lxN7N/?= =?utf-8?q?wAdJdICwj2NFdDFOo/yrERInKZf4pt1V+lrpEed6jCgULylsgant7VTYMdTIjZ6S+?= =?utf-8?q?qvHy8zDBtLJfMuOLSiWZKaVd6VOUEc/WcnDD9le0yyDJee3L99H7HXOBr52C+Zj5W?= =?utf-8?q?XYnTkFUrtM/w/PSYKWdcgk5Whwyc4+PSs4wy/OBC1iHWKRCUieXlF7+mIGGDQgra3?= =?utf-8?q?pVCOCBj9+yvb5c4Th0EOCzkxWNT3Oms51MbxAZNn8qvlvs952JlcGLoHKnnoifZaA?= =?utf-8?q?tgSQB0+SUSJm?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 118fa570-3330-4b86-3481-08dc5c829aa8 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2024 12:58:39.0716 (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: 8jnI7G9VqvceaQLRwsBonv/lHanf69vFquWdah0yf28W2TP3JFWN0i9I7lnJ3+B8ZUkkB72DetKD6tfflQQUDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240414_055921_580874_C13995FC X-CRM114-Status: GOOD ( 12.57 ) 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 | 653 +++++++++++++++++++++ 2 files changed, 654 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..ba7dd55abfb4 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts @@ -0,0 +1,653 @@ +// 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"; + gpios = <&cp0_gpio1 7 GPIO_ACTIVE_HIGH>; + color = ; + }; + + /* for sfp-1 (J42) */ + led-sfp1-link { + label = "sfp1"; + gpios = <&cp0_gpio1 4 GPIO_ACTIVE_HIGH>; + color = ; + }; + + /* (J28) */ + led-sfp0-activity { + label = "sfp0"; + gpios = <&cp1_gpio2 22 GPIO_ACTIVE_HIGH>; + color = ; + }; + + /* (J28) */ + led-sfp0-link { + label = "sfp0"; + gpios = <&cp1_gpio2 23 GPIO_ACTIVE_HIGH>; + color = ; + }; + }; + + /* 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>; + phy-names = "comphy"; + 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"; +};