From patchwork Sun Jun 2 15:49: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: 13682941 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2135.outbound.protection.outlook.com [40.107.7.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 908C94AED1; Sun, 2 Jun 2024 15:49:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.135 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717343387; cv=fail; b=i1RhL3bX81LFN9Q7wuqEYDlceN9hA94N6VfpYTV3V3likTLPRgs34JSWLmDNFDqjUAMn5QTb6yVoDDDmm+wnWDF50BPXp6IEjQViFBrZL3DH14JWVp4YXvN08siWGp6f3SmkjLb8lKdvV0Jnu5O+0a8kY9Ax5vOqlHl325yxjiU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717343387; c=relaxed/simple; bh=yF2WjJebhM9u1UTN6ytXuZaSSDxmt0MCPbK9WhIwzq8=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=BSRStJttpRUxzfQlGBcYcA+U1fMI60UOBJ54Tcu2FKZsmvJFkiQz1/fyGTb8YYJ9tc0D0Xw8Wdo0pHJ7pbXZK5eV74cjngZz8Wie3nMbe1h/4YcsyqAew8v+A/Af1UxK7wtVO8b3NaDm6ahjwrD3Nx9OvK1zuMUYNgPhJ7vDPsk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=solid-run.com; spf=pass smtp.mailfrom=solid-run.com; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b=qMwEde2p; arc=fail smtp.client-ip=40.107.7.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="qMwEde2p" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AYpLUg8UvMIjbF1DkXmz5UP1mR+/iiF99W/XLoMVFjwPD4HYK33KBLWRq5zwQuU6kFkpHjdmDwJv2af6gsAU7782t9H1eWAt/B9EZFsp/ISWfD8IO11MEMeBNDuR7msDwa2xJLH9xxDPaHt0oaTCpeRFDDrDcA2O80dqxV4xOoOzMHCpKe15pDPBWst3N1LeelN9c32z2SggekQYhTNjg48T9jPCbnYwC/n4kzhzyW+BlGjwANGj8Nwf4bgQGeMUF2eNYn+fuftObCI9ITq9XBQ6G5QegHRwcimIyT2T69dICoQkdtr73AF4ns974FzHIV2lD8A37qUMJKFhmaWAEg== 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=0cnKwuQg7UXBwV6gGpPTkPILMWVN2zd9PNolhRt2/9U=; b=b1sn17AyjiX7AqCf9QOQUGe89JXYX16tCVt5kYh1sjf5b2YgpGXFt2PlK5VLdkH3Ne6pJvRSpF+iJFqQCTY/adItJ7bauqzidoeBiVR+NP0WsFx+w7hM/ZHRELi04W6/P/rhNwKKFMxR9ArhGxGNMKd9q8LYbVTsumJ0476tv6vHxO6aEDen8MBXl934k0GZvfBd8yks9Gk3vn8y2vMh05d77+psfh171wg2UXUw85TfJJht4cEThA93Zf/PGBa+Z5f6RV8iWQhALhs9qhKf+KECHEwyfMgne84rMKpRAI+2yu/whvhc8JMnhN+wARIkfE4HjlLwfJ5G4YF2lHJ2zQ== 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=0cnKwuQg7UXBwV6gGpPTkPILMWVN2zd9PNolhRt2/9U=; b=qMwEde2pd4qoBEe+zZK0u4i3vg9cO79VCQPu5Mjqlw4hVlKbPKitYomWn0Tfkm2lqqGQSac7cxelcpJE/LcmZQwty7Rwj5EUrsULvAOKbZM9TBvTAW/J/gvgHywOeQYyXp+4a1DeMEi9OutV8cEYAQeRWWHsnjR3GhTWtFxBfx8= 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 AS8PR04MB7512.eurprd04.prod.outlook.com (2603:10a6:20b:29e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.27; Sun, 2 Jun 2024 15:49: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.7633.021; Sun, 2 Jun 2024 15:49:39 +0000 From: Josua Mayer Subject: [PATCH v6 0/7] arm64: dts: add description for solidrun cn9130 som and clearfog boards Date: Sun, 02 Jun 2024 17:49:35 +0200 Message-Id: <20240602-cn9130-som-v6-0-89393e86d4c7@solid-run.com> X-B4-Tracking: v=1; b=H4sIAI+UXGYC/23OwWrEIBDG8VdZPNcyM2qMPfU9lh5cnXSFbizaD S1L3r1mKWxCg6dv4PfHm6hcElfxcriJwlOqKY9tdE8HEc5+fGeZYtuCgDQo7GUYHSqQNV9kr3v uOx9O4INo4LPwkL7vseNb2+dUv3L5ubcnXK5/GcJ1ZkIJ0iIiWa/BeX6t+SNFWa7jc8gXsaQme vD2NpwaV34gIhdspLjH1YrjlquFG/CdjVoz+D2uH9wAbbhuHDwxDRgsxH6PmzV3G24ad0Y7xSc TrPv3+XmefwHm/K2YpAEAAA== To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Jonathan Cameron , Lars-Peter Clausen , Daniel Baluta , Vinod Koul , Kishon Vijay Abraham I , Konstantin Porotchkin , Richard Cochran Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, Josua Mayer , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR5P281CA0045.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f3::12) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|AS8PR04MB7512:EE_ X-MS-Office365-Filtering-Correlation-Id: 7399fbe5-61c1-4ce1-3e3f-08dc831b9c81 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|1800799015|7416005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?dYTAXNk01HamK4Ow62Ok3csuMleoNrc?= =?utf-8?q?Ltidn37G/j40anrnGPkMX0TzoZEAt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pr9LLNjhNl2IeCwB1RPnNHm/pY5e5eyi+?= =?utf-8?q?z66BqopXseFJg1J9pzIhSObp7X6xA+lIjk+K/DxsHwV/SOfWdtp9wCeh8uHy2NyJ/?= =?utf-8?q?MLpxRQxRALVWWZ6dbFg08PpjYQvEm5m0OpLLQ7FAwwbGP84Gg6kVWaThBoH0599xR?= =?utf-8?q?rVg7zKaOfBhn6x7sqBWXVpI7nU8dQiJsHPg2RXXZOcoc0H1fn985f4WQ2sBuPZ54V?= =?utf-8?q?ogZsCkH5gidRGXYHaQVQsznWM/h0hOETKClm3DDgvhlwkwZ2BbGo5huhbNMZT5TcL?= =?utf-8?q?McDFEpJH6DLX5YDAAh38sSLMEdEW6o3CQDsWPWLpjhtWSur4sUC0XbNDU=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)(1800799015)(7416005)(366007)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CqqIacZzJl4GL0ZU7Dux7NPtsO01?= =?utf-8?q?Uc3OejikDyeB125CVAFl7wQEeabx14gDxiS/XN6vwHEBj4cqI/nZkinkUWjcjU+tn?= =?utf-8?q?Y5Blekhp59oTW9JaEsFLymK9unrdz1/fKhWxULsuftuksw2EpI5ILlbiNXtM1ecRX?= =?utf-8?q?wNxrIqXBHb0+6NLT+aOarM32z7zFgdQayOe4FriAH6b9EaPv2EohTaIjSEelRDZDf?= =?utf-8?q?x7IPXtOyHlv3/L0BgcVAJMerKmtlxKa3/WP7y6dYjzWhOeYxmV4/uE+iv7DnopG2w?= =?utf-8?q?eIPUslmkp1r7ZVnDrgPz3dY9SVWnZQoKD1ifDfn7XS8apwwSHTQ9oFpMdtlv8IChz?= =?utf-8?q?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yrx81tW9PFtnPOTyTMiPvHvo6SIfiKfyZrG/tSzoou77HYS12xYvNI6ZkXcL0kZl?= =?utf-8?q?ySo1GAEa4JOWkiIOrebRHDCrnPW78XCOjDsKLD+Wqe6CfAX+09MeVz+ubgkXKg5IL?= =?utf-8?q?Ymj6EQmlXk5jUnanBdb2nIDM+0s/26ewaDFV8/LZ9svSKU+XEZFbymPZiNrqy5yzQ?= =?utf-8?q?lCaXLWyXfn+SDcDHlpzWB8svK/9FyOZ0A2NL/maBeZHtfkBqS939RnBh5GrWQ63wU?= =?utf-8?q?IoND/DeYcxwyNTzZ0runsfMPUbRu6jhKwryMH+lKANGDw5sbygIpXxPLwUjj8/kTq?= =?utf-8?q?YHUm6wjSJBLw?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7399fbe5-61c1-4ce1-3e3f-08dc831b9c81 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2024 15:49:39.3649 (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: q61hN6/n0AQDNiR98WBwBDSdP79LvTYi4+bIzb/wWPXOqn4CK3xtE+TosS1wvnRje7iJDEc3hfDZATCptWzSuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7512 SolidRun CN9130 SoM is a mostly pin-comptible replacement for Armada 388 SoM used in Clearfog and Clearfog Pro boards. 1. Add new binding for compatible strings closely matching the original. 2. Add device-tree includes for SoM and carrier shared design. 3. Add device-tree for both Clearfog Base and Pro. While dtbs_check is happy with LED descriptions behind dsa switch, functionally they require supporting code by Andrew Lunn: https://lore.kernel.org/r/20240401-v6-8-0-net-next-mv88e6xxx-leds-v4-v3-0-221b3fa55f78@lunn.ch 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 --- Changes in v6: - add device-tree for cn9132 clearfog and CEX-7 module - add dt compatible for tla2021 adc --> I don't plan to submit a driver patch because I can't test it --> might share untested patch - add dt property for swapping d+-/d- on cp110 utmi phy --> I plan to submit a driver patch, already prototyped - removed duplicate node reference / status=okay for cp0_utmi from cn9131-cf-solidwan.dts - rebased on 6.10-rc1 - Link to v5: https://lore.kernel.org/r/20240509-cn9130-som-v5-0-95493eb5c79d@solid-run.com Changes in v5: - replaced *-gpio properties with preferred *-gpios (Reported-by: robh@kernel.org) - removed fixed-regulator regulator-oc-protection-microamp properties This property is intended to set a configurable over-current limit to a particular value. The physical component however is not configurable, remove the property. - kept all review tags since the changes were minor, hope that is okay with everybody. - Link to v4: https://lore.kernel.org/r/20240502-cn9130-som-v4-0-0a2e2f1c70d8@solid-run.com Changes in v4: - Picked up reviewed-by tags by Andrew Lunn. - fixed a typo and changed 3-line comment into single-line comment for clearfog-base/-pro dts, but kept review tags since change was minor. - Updated SFP led labels to use "sfp?:colour" without "color" property, to avoid duplicate labels while reflecting they are each dual-colour. - Link to v3: https://lore.kernel.org/r/20240414-cn9130-som-v3-0-350a67d44e0a@solid-run.com Changes in v3: - picked up acked-by for dt-bindings - skipped acked-by for dts because additional changes were made: - moved legacy netdev aliases to carrier dts - fix status property style errors - add pinctrl for secondary spi chip-select on mikrobus header (& som) - specify spi bus frequency limits for som - Added CN9131 SolidWAN board - Link to v2: https://lore.kernel.org/r/20240404-cn9130-som-v2-0-3af2229c7d2d@solid-run.com Changes in v2: - rewrote dt bindings dropping unnecessary compatibles (Reported-By: Krzysztof Kozlowski ) - added bindings for two additional boards (cn9131/9132) support planned for the coming weeks, mostly serves illustrational purposes, to understand cn913x variants - cf-pro: add description for LEDs behind DSA switch - cf-base: add description for LEDs behind PHYs (Reported-By: Andrew Lunn ) - Link to v1: https://lore.kernel.org/r/20240321-cn9130-som-v1-0-711127a409ae@solid-run.com --- Josua Mayer (7): dt-bindings: arm64: marvell: add solidrun cn9130 som based boards dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board dt-bindings: iio: adc: ti,ads1015: add compatible for tla2021 dt-bindings: phy: armada-cp110-utmi: add optional swap-dx-lanes property arm64: dts: add description for solidrun cn9130 som and clearfog boards arm64: dts: add description for solidrun cn9131 solidwan board arm64: dts: add description for solidrun cn9132 cex7 module and clearfog board .../bindings/arm/marvell/armada-7k-8k.yaml | 18 + .../devicetree/bindings/iio/adc/ti,ads1015.yaml | 1 + .../phy/marvell,armada-cp110-utmi-phy.yaml | 6 + arch/arm64/boot/dts/marvell/Makefile | 4 + 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 +++++ arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts | 637 ++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9132-clearfog.dts | 673 +++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9132-sr-cex7.dtsi | 712 +++++++++++++++++++++ 11 files changed, 2961 insertions(+) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240318-cn9130-som-848e86acb0ac Sincerely,