From patchwork Tue Dec 26 18:11:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 18538 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1022465dyb; Tue, 26 Dec 2023 10:12:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJiYTTaxSPhW05XUb/AeqqitjF1Prct70ssXtdeJZZzGMD1ZNQK83FY/9vmPH5rNTX1wbE X-Received: by 2002:a05:6358:7f07:b0:174:e946:ab36 with SMTP id p7-20020a0563587f0700b00174e946ab36mr4327736rwn.45.1703614356775; Tue, 26 Dec 2023 10:12:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703614356; cv=pass; d=google.com; s=arc-20160816; b=amOcGJz++YuwVVTYMcKKiHdV+hwQX6gUIVNpz2dqUx+cpa8zas4jS4QAIa43e/jvhS IRyy1v6plv3kC7/qvMng7fS53DO/u0FlW186SZKsZuKJ9m59jAwTFtnoqHSKIGH5tRS3 Njq6FS1BHosAs0kcMnyAdTUhC+p3WZKq3Mgeu8gR60k5CuXoOIaJOJ8SjfxPlvQBq0FC Pb0wVus3PIpF/4V9HWeiql1ulnXwR7JcG3UivorAilwJmyg6oIlf4c8Zjtsv8VIwDqUQ 6P2jtGgyYmQeY8THdJ7Yw0idrHtV1SqDYAUzzVJDHPTv2jvWXJhNBCAXaB/yGTM+2PHj nlMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence:cc :to:content-transfer-encoding:message-id:date:subject:from :dkim-signature; bh=L9HWUcxA0hxhKePaRoXbSXL90kbMTYu7WPz2V3s1mlE=; fh=LZ3+8MPuo3SMsa6OKaa4nXkr9HAal1HR+rgsxxjlDOA=; b=K2e4uUYKiXery3WrZIJGMQOxavlcPueU8/PZnTiNmM205zdiFltcoI2I5dP7aBmBMu qzkJl18j1UnxblKlBKe+VzKWsBnf8klF4vDSXmDuuOBP5jRE4KpTPogN3XnXZHBpG2d5 ttlwaHWFQh9mfeIvys2nt2HmnUHqgkkR+7Ym7fFvBSRj3vM24ub6rcupVI9ac9NE6QoM z01TCT7f6K6WfkbeBy6ky0c6QwMxr5LHulzn+ueHFtme4K/E0l7ruiwpH8WjLZ/KmFf7 WO5CU1y78WDkbaOPtqV2P6AB2CiwDbMuY9D/AxxreG9dUDlchuCnFTc4PeTzfuiHpmUQ b+UQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=SwK5rtGU; arc=pass (i=1 spf=pass spfdomain=solid-run.com dkim=pass dkdomain=solid-run.com dmarc=pass fromdomain=solid-run.com); spf=pass (google.com: domain of linux-kernel+bounces-11608-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11608-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z14-20020a05622a060e00b004277c32227esi12495176qta.302.2023.12.26.10.12.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 10:12:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11608-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=SwK5rtGU; arc=pass (i=1 spf=pass spfdomain=solid-run.com dkim=pass dkdomain=solid-run.com dmarc=pass fromdomain=solid-run.com); spf=pass (google.com: domain of linux-kernel+bounces-11608-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11608-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7F3FF1C215B1 for ; Tue, 26 Dec 2023 18:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01DEF53E22; Tue, 26 Dec 2023 18:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="SwK5rtGU" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2068.outbound.protection.outlook.com [40.107.20.68]) (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 C789C51C3E; Tue, 26 Dec 2023 18:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bwfGeetKj8S6U43wTjbnwohStHI0JlnTejwmvsli1U/QcXuZDX7UzjVTNhfRqnTyhOYPkxxsMNUbRHiw5CPKH3W874bARtg3WcZMQaF2dputz1FSgN7dLoliInxAH/1iuu0Yo2wpqsyuQbvTd7zvA1JDXPoBcO6KxwUQlOT60SwweVLwEbbp+DYAOWKToMSsx8DHaEDXGI+rn+NftISLzRs1R5uodFRATDIUdTpO7gUNhoFlKjwYlW3aZpoY3eBODGg7nvl6RIoeV887syAC5gAdn08hbLfJcRrAkFU4cULZUwRr5/Snsk+/hlrNmQmDIzHuxaIEZO7Lg+lw2XKIEg== 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=L9HWUcxA0hxhKePaRoXbSXL90kbMTYu7WPz2V3s1mlE=; b=CEDvzdneuIBgdFQFbowcJoWpgvOm6dvLkrTEQ7XpXHtaWUuLZ0LD9GdvVQqroN8HfwTIRgCjyUNp7rGwqb3fnCJlNmI3kQfxELA1NHcFesUQHaZwF3FTcID9RTekSNl1ROZEGwtLoqEaivjFYC1DsX6zP0U1ACwNmELen42AxUQ9Bdou5hAfusQzkGp0FFIHQPvpAxuwHbGID5IS7Hg9k29T/nJg2pgI+y9zHGt2rB+N0KwJeAUoFkaaHu4jSZy+N676gEcw80NxD7T8MmYp9tGFVM4HMFBUx01IDFwVOeJiWGkKWiVnGn85BA2dG6cu9rwD6kTinhatUDuXLzE3ug== 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=L9HWUcxA0hxhKePaRoXbSXL90kbMTYu7WPz2V3s1mlE=; b=SwK5rtGUveUqNb98H+/LqS59tOCm1W/tJl4UCZaSRst92Vnbr70HQUBwO4OJ3GF3gaKC6OQ6uyo0cTzSMsytiqHvuM83gilWD3bM3zU3J4o3VKPh6XWvUjUeyFZsld27UGPLoPExjuqBjze4wD3CrWan10+YnxgIGzctAc/R3uk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) by DB9PR04MB9868.eurprd04.prod.outlook.com (2603:10a6:10:4c3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.27; Tue, 26 Dec 2023 18:11:51 +0000 Received: from AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::4db1:aae8:c643:2e73]) by AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::4db1:aae8:c643:2e73%6]) with mapi id 15.20.7113.027; Tue, 26 Dec 2023 18:11:51 +0000 From: Josua Mayer Subject: [PATCH v3 0/8] dt-bindings: marvell: a38x: add solidrun armada 388 clearfog boards Date: Tue, 26 Dec 2023 19:11:31 +0100 Message-Id: <20231226-support-clearfog-gtr-l8-sfp-v3-0-fd1ac2d6bf2e@solid-run.com> X-B4-Tracking: v=1; b=H4sIAFMXi2UC/3WNwQqDMBAFf0Vy7kqyicb21P8oPQSNmmJNyKq0i P/eKBR66XEezLyVkY3OErtkK4t2ceT8mECeMlb3ZuwsuCYxQ45SIJZAcwg+TlAP1sTWd9BNEYY KqA3QVNpYLQqjK81SIUTbutdRv90T944mH9/H2SL29duVKPAseS5UiQoEPDzN5kp+cA3Eecxr/ 2R7YcFfSwkldcHzouR/pW3bPk4QrbLlAAAA To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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: FR0P281CA0038.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::21) To AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8963:EE_|DB9PR04MB9868:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ae4b52b-e45d-4537-2d80-08dc063e2234 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aZZgWtuVlEJ7mpLqlXjliIgfaMsXT3sU26A+/WhD11R8P1mYdQKVMwy/1hN6WZSFtg4fSwy2KJ4ceN2uok9KUzO9fsb3ssAcLnZ2QF1XU+vJWQrUC9eEpT/14OfleOw1O1I/Qak4/3Nz1Rk7/TKHCf9L9/qmGiAFaTROFypgagbhrU2bOQW3OcI1UBTVq9tDhh0avC4o8YcteM7H8EcApOLrA1IvSFy7lfs1IgdaNMEoGarXZRSs4OqLbdjSwCt4DFg/K8nXY64TlBX0QN2+Q4Ig2sTLRURyQG4PzmsdLxTR1oqsEYB+R/meQZMiBLAMdsESzb4UspVjZN5tDi6XN3C121MZvSzatlfpZuvnvYyqiCaVHztxXwmmyriNK9zXT/NoOy+sJT7oQ6rgaXu84GZWiz9ANtm1tZXfEOXW3D2ifrBmHGizpxEKFyuuDMfaFixvd/XF5eL4Wo29TctlkKHNK4UDUVnbjxyGMVD0rxsek7YQ80vY7HT4kO/WbqexrTOZ5BWHhCTqtTrNvhJK5FEh1WlCkgE543kjdPtyFEvE4lincso8ouafv3nSseIqU0tytbbz+7Qa/Fvy4HTdFtqwJ4mBUX8ev8D6LwyD0Co= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8963.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(376002)(346002)(39840400004)(396003)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(26005)(6512007)(2616005)(4326008)(8676002)(110136005)(66946007)(66476007)(66556008)(316002)(83380400001)(52116002)(6506007)(107886003)(6666004)(38100700002)(86362001)(8936002)(478600001)(966005)(6486002)(5660300002)(2906002)(36756003)(41300700001)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?czGP75f61bpyWIK5O0tER7wkvkZ0?= =?utf-8?q?7zcIjH04TCYe8mwOfveFgRKUsdqoOLyGdTZRfNwDnCReT6bTqDRqqNXu0VUsQOAS6?= =?utf-8?q?ps1Vw77tp6qLF5UAywgHuzaEcVJ0zqyMXZzvpEYKTC+fFDLQSADsQWJJIZN3hceKz?= =?utf-8?q?k4p20XWBEt8hGQvmFe7cNUzEWwcXhFic7Cypv5CFJAsSQMZPe/SrhZolnxMNfWJEW?= =?utf-8?q?9JnBCNQQcyxpufrjB/THZqWZngk9qhhzgIcW5rEs3fG3qYW+NEIiOiCCgq2DGIRM0?= =?utf-8?q?fTHjqtwMTuKJQLGVfjxFmyeYcU4Uwo5hG6mCdTQZ/M+LIwgitfbuxmaLG1ji9SuxQ?= =?utf-8?q?V0soVcM8BbQOu7vHWRw7cQsBE4gYC0v41HNdKiAvacuXL2vcOd4vm/wJzXGZbrhNt?= =?utf-8?q?k5xo0LjOni5vBxOt/ofHxtGO26dN1xDBqDtXeUa/lZ++NfcaswFp0SIT7RO2xh+ye?= =?utf-8?q?G59f2jxFK0OK3TO9pUmjL0xjgtvkUI1Dxr7+iD1uNyEe5UhpV1QDBAjvRN8XjpVtN?= =?utf-8?q?FcGs1MZQD7Ed5jNB0qtXfxXd6gabEGjqpOaG23qokyd0d9gb/kK8Nnhf62Sjtk8Un?= =?utf-8?q?Vgke8prm0PTYHxvoMyvz8ZILCU/k47Yaig1cLPCCQF+w4SwKfS7+VlEKSd0TEvLVN?= =?utf-8?q?Jd4izvbTJd8QAlgf6zz5yi8lk4b83HAi8/SjrpSWMRHgpYTCdmHSGyJEzh0mKUQpX?= =?utf-8?q?Jb06v3fjn8VMa2WW0kfF3EfReBASrFJMMxjKHgpt9M4R+fJr7adQ2YncPP4uuo/Zq?= =?utf-8?q?EOxidj4kBJs6fyYfrjS8LwLiELLliLtzgg/ylQ1Iqu3bMHusy7TU6rM0DyRzIGEro?= =?utf-8?q?YKsN9blkKNyrfV1qTx+dj77Gs8X8/aHP5UDgONmPFWl2fzVMuZNSicNEXtQGDla65?= =?utf-8?q?K4pFofmIeFvugITWe/A5Kok8yKnvjcFq3ZWS6/DQodmPS37Asi36u0f6CAG3gN4rr?= =?utf-8?q?BY8VOCZNLZWvfK712s7NnVtDa3JsW+yjx/uVhGTVxAYbhKZ9kpmOTa5721uidFiai?= =?utf-8?q?GQ118u8GiIpL7Cu9bg5qlHyC2BEan4kUuyl8m6HvR4ev1p3v2N7c+1U8jlNN+xWIV?= =?utf-8?q?F2PDEbRqt/fw+G/ebMoaA5aGVY19t34fXlp6EJbSe1I5WJV8GE0Mw0AaYjGOLLOPZ?= =?utf-8?q?lKSQI158svDDgStuEysx7oM5pNIdvLC7Yf6E0hjezHhLvHnzU6mWtjtzhD5G4JzPG?= =?utf-8?q?rU8GF+1gJCBGiIvu0t9kwl9rJsN5PI32kfQKK6LlK5P/nsUWjOcHSExl5lTiUI7/c?= =?utf-8?q?VJJWppQ8bi2rNeo4IcvrrPkkHHwPOJDvLX6uvLl8gBiupAaSneS5onFKHkjCykRds?= =?utf-8?q?UlFx7zMntFuu0WzRcUMWXhmMV96jOTZI1eVTwpPEzmOHYIAJftFF1SLfUsQXkUrMv?= =?utf-8?q?mqTy6EDQcTlgm/UQelp48KtyF/VpHs6qf5ciReUaUvOHnZuf3uEldDwTheFpp+5WF?= =?utf-8?q?89UpISKOpa9b7wMSNepz/tci9nneLzMduqRhiAmyTjCKD1L0AG2QEsp2tPLVW3NLu?= =?utf-8?q?kG4AG6u0VWLh?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ae4b52b-e45d-4537-2d80-08dc063e2234 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8963.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2023 18:11:51.2526 (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: MgRWjQ7zMDPnPg4bKYNoTySzBKxVaCowzA4AQa+cHDZK2NLMfX9vnnE6KDnri7UWk2+2vGx5i1iJ1tE/tJur1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9868 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786369127901562498 X-GMAIL-MSGID: 1786369127901562498 Dear Maintainers, The initially merged device-tree for Clearfog GTR devices contained various subtle mistakes and omissions: - missing board-specific compatible strings - missing pinctrl entries - missing second sfp connector - invalid sfp loss-of-signal gpio - mismatch of labels between dsa ports and enclosure Most notably this had caused functional issues with the sfp connectors. This patch-set first converts the armada-38x dt-bindings to yaml. New bindings are added specifically for the Clearfog GTR boards, and for the already in-tree clearfog base and pro boards' compatible strings. Secondly pinctrl nodes are added for all referenced gpios for independence from bootloader defaults. U-Boot is shared between armada-388 clearfog, and armada-385 clearfog gtr. Further remove an invalid io from the first sfp connector description, and add descriptions for the secondary sfp connector which is driven by dsa switch port number 9. Finally labels of dsa switch ports were updated to match the enclosure. That patch is not suitable for stable. Signed-off-by: Josua Mayer --- Changes in v3: - armada-38x.yaml: removed '|', no need to prerserve formatting (reported by Conor Dooley conor+dt@kernel.org) - update commit descriptions to clarify confusing board names and compatible strings (reported by Krzysztof Kozlowski ) - send to all relevant lists (reported by Krzysztof Kozlowski ) - remove duplicate binding for clearfog / clearfog - Link to v2 (patches 0-2): https://lore.kernel.org/r/20231224143750.5604-1-josua@solid-run.com - Link to v2 (patches 3-8): https://lore.kernel.org/r/20231224143850.5671-3-josua@solid-run.com Changes in v2: - removed changes changes to gpio numbers because they were wrong - added bindings documentation - Link to v1: https://lore.kernel.org/r/20231223212930.14624-1-josua@solid-run.com --- Josua Mayer (8): dt-bindings: marvell: a38x: convert the soc compatibles description to yaml dt-bindings: marvell: a38x: add solidrun armada 385 clearfog gtr boards dt-bindings: marvell: a38x: add solidrun armada 388 clearfog boards arm: dts: marvell: clearfog-gtr: add board-specific compatible strings arm: dts: marvell: clearfog-gtr: sort pinctrl nodes alphabetically arm: dts: marvell: clearfog-gtr: add missing pinctrl for all used gpios arm: dts: marvell: clearfog-gtr-l8: add support for second sfp connector arm: dts: marvell: clearfog-gtr-l8: align port numbers with enclosure .../devicetree/bindings/arm/marvell/armada-38x.txt | 27 ------- .../bindings/arm/marvell/armada-38x.yaml | 53 ++++++++++++++ .../dts/marvell/armada-385-clearfog-gtr-l8.dts | 38 +++++++--- .../dts/marvell/armada-385-clearfog-gtr-s4.dts | 2 + .../boot/dts/marvell/armada-385-clearfog-gtr.dtsi | 84 ++++++++++++++++------ 5 files changed, 147 insertions(+), 57 deletions(-) --- base-commit: 861deac3b092f37b2c5e6871732f3e11486f7082 change-id: 20231226-support-clearfog-gtr-l8-sfp-d87ae715a787 Sincerely,