From patchwork Thu Jan 4 17:48:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13511419 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 4BCF0C47074 for ; Thu, 4 Jan 2024 17:48:58 +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:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GyZg4jjn/OibY4hudoaI2wNZZ6o2JRbLI7/AWdErmDk=; b=B6ZLTuBnFgIi0O tTuKkU+muFecenT0yHXJulRDp9nW6nPh/3C0RN8iKYA5jkhII4RhLwnpmpLWf+6+1Ez89Y2fn3R5N w5qxxfgcgWD7sHL5jCdQUY98R7y9WSiY/cuSzpnTlkxHnrPGijJJY6odcG2RE+cQ6e3doBE4fXncT k5EGRThr0eLIUioOf2JSZYwtxK1mPbwWoGQBlh7WWsatE2TJrATlX4doCsqXn0+qhfdyz9bxdMP7y tDkfWc5C+KuCeBOaTj/ePEex3BAqzQharjTFMvh62YwGUfXMDmUDv6c8T9xzQ8z//KtGUZsC03A2O vCEaCH5IHK7Y3n+m46kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLRpP-00Esym-1x; Thu, 04 Jan 2024 17:48:23 +0000 Received: from mail-vi1eur05on20617.outbound.protection.outlook.com ([2a01:111:f400:7d00::617] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLRpL-00Eswc-1n for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 17:48:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YeiP+IIlMO2bex4KMvG2dESjxw4Bb+XBZZkUa3IDNdkXxu/YsJJe40ohhgOwWVXqhWwO+a6Ao9T6+3sUOU03YnsWdG88XmaB9vUyDYAB7LC0G2ub05VngRSxlxxpdCkmZcBHLfCnUfKUW9jBjnTzT0oMl6o94jWmW0j8Y5jdNpOxzILC6r5b57Wd32R6XvfI8soBsXp5akegNRFo8SE1k11LGI5dHxGhzxeKsgsaABay9hqg2MsZBLEAufatvVJecxcXMe8SCd19109TMUbGgttGboXngZ3iYLrd4G0dVAk3jvL/MQ98YPgD1X1Nkiy4RmXeK06gpAjlAQWhbw/qeQ== 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=7FFWPSXCAQqzXsmXJ25y5l4ATjDpKuKRamxrnFmFkj0=; b=YHnucfJd68aHdYv6u3gyY2feB8bYEomcsPi9RdcSldDIpzOZ4x4WNZeuwYDb8Xdb7ZE226HfPFuDq0fbkk0alKpVpBDJxTp1bp6P0QstECDoIn14Qy3Y9TOKjqkFIU2pno3Q6XNJ6pyHobnZ4rMYcQadJi2lGCPAYmgtjKyO5zhfcD8T8CcbaB9qxc1e0qi3d5JeJ03b7XxLU5Kv9q/Yvmu6BC6amthomAoXmwH9XWHNIpW1a4tHRpEeUgdqUexHHc28SElWn6k2rGq3nJZwIiGdgnTgIJ7EnuzjH07lsppACJR5PP5kMB4qshaakFjWgVi4oP9maafUPrF3t6RC7A== 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=7FFWPSXCAQqzXsmXJ25y5l4ATjDpKuKRamxrnFmFkj0=; b=aBx7+xzkG3ES7on/HMxKHrXzm86xtzyMpOTVhwi7QX/AltfVb25iO/6LvjkofTYIIBpL34VcVPBSTRLTGPEjFxx4YGg5vQ3krYK6Aous88iScNoVroCOLZnMcwIgMOaFwpaTT9TSoK2NiJbnX370KfWdOyGCxWby+vfGVzHSmOI= 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 DU0PR04MB9495.eurprd04.prod.outlook.com (2603:10a6:10:32f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Thu, 4 Jan 2024 17:48:06 +0000 Received: from AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::daf2:8c54:d469:793d]) by AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::daf2:8c54:d469:793d%6]) with mapi id 15.20.7159.013; Thu, 4 Jan 2024 17:48:06 +0000 From: Josua Mayer Subject: [PATCH v5 00/10] dt-bindings: marvell: a38x: add solidrun armada 388 clearfog boards Date: Thu, 04 Jan 2024 18:48:01 +0100 Message-Id: <20240104-support-clearfog-gtr-l8-sfp-v5-0-52be60fc54e3@solid-run.com> X-B4-Tracking: v=1; b=H4sIAFHvlmUC/33PTWrDMBAF4KsErTtGM5ItN6vcI2Sh6sdRcCwj2 SYl+O5VAgVTipdv4H2PebLsUnCZHQ9PltwScohDCfXHgZmrHjoHwZbMiJNAogbyPI4xTWB6p5O PHXRTgr6F7EewrdJOYa1Vq1gRxuR8eLz186Xka8hTTN/vsQVf119XENKn4BXKhiQg3GKe9SnHP lhI81CZeGcvYaFtS6IUquZV3fDdktiW9l9YBHDwFrUh23x5cv95cuMJvu/J4qFVnjsyCqn9663 r+gMDARTuhQEAAA== To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King 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: FR4P281CA0409.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:d0::9) To AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8963:EE_|DU0PR04MB9495:EE_ X-MS-Office365-Filtering-Correlation-Id: 82d8ee75-528d-4768-0e46-08dc0d4d4e8a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VzWcGN5OKBD3WVsloprzSn6AZMltJ22pJP2MZkEAKA/1QMehd6dh+CTq5RHIPD/uY3FNAzJ7E1MISvzgD5khZd2zD1p6CjlBb2BeKlSRMJ+InBR1lLE6JysW9Ex2xpQl163JzFeLUbbfOa7sHOstUpH3Zs7MOxfEwYO1pczsqfIf2c6RIdLXcVpDmHXYE8RpfGvSkBVNVmY1C4DOvF9hld+lD+vxUIe7y1iFIT8G8o18fhChCJ+A6WQmpt1mzU8G9s+wWt1CoA/sigx4B9hu1RRm64alsWAgnZbpHKV0uMknnwdM6w0GnrJhvSSSR67vviK9KpLRA/WltN5yIecsoIO2KX0468R3lz3q+MQVChJfkRzt5oBb68ZRTYwwxP9oAlninqBiXx9/jwKvyw9W3sC+3Qh1w7omntHjxnxL14WVUsupqaRyIoCD9xCXe7q8C8tZVk5KqP+rkVZJAgu6u34g3DPSppNAh7Q/y2vTFlDQF3J2Xohc5SOhewb7yBXvchitYSiFY5oqUgXYkGGWH2MD8HSqw5ADhIyqIew+P2n+8VDBMHJJ1jfXjG+gaWztzDkSOot/0u4SsDzy3oV+j0E5pryYJktywDS4Lk1h1cQ= 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)(376002)(136003)(39840400004)(366004)(346002)(396003)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(83380400001)(26005)(2616005)(6486002)(52116002)(6506007)(2906002)(8936002)(41300700001)(4326008)(66556008)(6512007)(7416002)(66946007)(6666004)(966005)(478600001)(5660300002)(8676002)(316002)(66476007)(86362001)(107886003)(38350700005)(36756003)(110136005)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8U/dAHG5G946Txo7pcvaKh25e3KS?= =?utf-8?q?yUhJhzKHrd9VKshJdQ0PmOF/Ch2PG0GKU34SKG8VV3J0pVOFfysiwIK19tm5vOPxD?= =?utf-8?q?Vdyb2O/BOrVx8TbjnXwH+kyTZyAxUVifxs05/uBv6SyvVBs4Z+/d7kgYBwvWrxVkE?= =?utf-8?q?WxR3hkWKpIbyvacqzba1GflZeqGvtSwH8Mo4cfm1z0VBCjAUn5iXzWmtE4ILVdIKm?= =?utf-8?q?lpfZXQiCG1XKio6zJo3jhSpPNpydoVeHTbJ9DL/+C7ltKYJfOy0yF+MQiAFsBg5jC?= =?utf-8?q?iOkzPIa6S0tiE2LNb8J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noE9Yavm5seICjIYv?= =?utf-8?q?fZi+1hQ1UWV/6ImmbbFzGbb+DX5ct30LPpIoXRDMNNQGBcY9vT2vhhf/ZOtyxcX4W?= =?utf-8?q?j5NN1CEumBOrxiBlLeCRKkNhOkgeXtuU+HJMZTbBEs2utJPUuHBQ0l9vL/Q+zTVcu?= =?utf-8?q?i+2mNGzAxO3rra4he9JUxUQkaVM0hjrNG1DBzQ15/gsrtmxxMkltH9B53WcD9WFJ7?= =?utf-8?q?foViELkhrtsC7ol7uMm01KgeJuT9iFSjXrJS9sHFLY5vaQhlW5DJkJy8NQ8aoH8FE?= =?utf-8?q?4fk2vpH923vMZ1IhiIXQg7EGQER1LN0thajQLtg1FE6ZonsQzQ1aFbdyM5u9anGpn?= =?utf-8?q?+KIOubzyfcDt?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82d8ee75-528d-4768-0e46-08dc0d4d4e8a X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8963.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 17:48:06.2396 (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: cRTXMjkF2x8LCdUKFIDDygsMF6AugpBDM9pcHFPBZWYIapRujy1WdZpv0IVa8rH+HiRoZOl287XCymPw1yYmBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9495 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240104_094819_646521_8D369678 X-CRM114-Status: GOOD ( 12.16 ) 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 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 existing armada-38x dt-bindings to yaml, replacing invalid soc-only compatibles with specific boards that already exist in tree and represent the three SoCs (380,385,388). Secondly for clearfog gtr 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 v5: - remove empty lines between description and items yaml entries (reported by Krzysztof Kozlowski ) - bindings text to yaml conversion is now single commit (reported by Krzysztof Kozlowski ) - added bindings for some existing a380, a385 and a388 boards - removed code from commit description (reported by Krzysztof Kozlowski ) - Link to v4: https://lore.kernel.org/r/20231230-support-clearfog-gtr-l8-sfp-v4-0-1d7f0e2c7128@solid-run.com Changes in v4: - dropped invalid soc-only armada-38x (txt) bindings (reported by Krzysztof Kozlowski ) - add bindings for armada 388 helios-4 - updated yaml whitespace indentation count (reported by Rob Hering's bot) - Link to v3: https://lore.kernel.org/r/20231226-support-clearfog-gtr-l8-sfp-v3-0-fd1ac2d6bf2e@solid-run.com 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 (10): dt-bindings: marvell: a38x: convert soc compatibles to yaml dt-bindings: marvell: a38x: add solidrun armada 388 clearfog boards dt-bindings: marvell: a38x: add kobol helios-4 board dt-bindings: marvell: a38x: add solidrun armada 385 clearfog gtr boards arm: dts: marvell: clearfog: add pro variant compatible in legacy dts 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 | 70 ++++++++++++++++++ .../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 ++++++++++++++++------ arch/arm/boot/dts/marvell/armada-388-clearfog.dts | 5 +- 6 files changed, 167 insertions(+), 59 deletions(-) --- base-commit: 861deac3b092f37b2c5e6871732f3e11486f7082 change-id: 20231226-support-clearfog-gtr-l8-sfp-d87ae715a787 Sincerely,