From patchwork Tue Dec 26 18:11:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 183333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1023579dyb; Tue, 26 Dec 2023 10:14:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmGYyVaYO1K57G1LhVOHw7jYSIOtyNAqe4a4GyNb18XMT8LEfEpPxJ7oA+eRkyvjsK0LAb X-Received: by 2002:a2e:a279:0:b0:2cc:5572:1849 with SMTP id k25-20020a2ea279000000b002cc55721849mr1286993ljm.87.1703614461978; Tue, 26 Dec 2023 10:14:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703614461; cv=pass; d=google.com; s=arc-20160816; b=kyykaR02Q0OB5a8hVScczVkpLAA7oNwtwa0af0er1TWiA4Zw8pZM3+xpbfrMGm15+2 uPi7iSUrcaQ0Ec3x9tU6+8t8DjK0SipasQB4kAzj5FQ39HBNM/fju5/Jnkw9nUIUQEdC i+Gb2vODvBtCYcGVcVtEF0I8IlObKsqRcH/eTxk+CZExWaejPPOUQZ1x5hE22kBnfZCB MAbqggJt02+w+DirYVkScysSreHPbdDKs1YRXGmJk0U/yxmZiB/Zr8imNsOM0otB9wfQ 4JfaMKHBQzcHGLjRgae9Qbr0vSfY9qUN+8qu6h/r2pfgHysbcl9g/b5xWYmycHzePJmj fLJQ== 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:in-reply-to:references:message-id:content-transfer-encoding :subject:date:from:dkim-signature; bh=P40i+6AVm8IdTbDuAqwbFqY4jH9ZruaP6Q9zKpBfGZ4=; fh=LZ3+8MPuo3SMsa6OKaa4nXkr9HAal1HR+rgsxxjlDOA=; b=WdhjpBPWQxF2OEHTwj7rExTI/poa5wfxYGyMunB97rEF7sMZff80v2EptoJNBh+h1m M+EUYr8PLzETFY/5DJ6DJtYH68uNKn+y0zG3NXnRBRZz+ljoEtkLeObMM1COUUKAbCig jtnqGFDITEkrCoO9x2VBCMf4+KZuujtKW3D671vsHzuw7MsROLoZ7iS3H5uK8n7m/jUl 0+C27g/gP2N6b2nsYZiq0ENtAzeMBFgi/Oz4b7ZpVHvQIYzke+gT2I+w8p4kzNK7wDdR 2siL962WMRXAK2OC/t7E0eaP/GNKFn2x1UtPXzsN1/CY3NcK18vEGa3dZqo2dn4lD/QG 3FGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=haH4f9pw; 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-11614-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11614-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s21-20020a056402521500b00554f791ce11si1466679edd.484.2023.12.26.10.14.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 10:14:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11614-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=haH4f9pw; 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-11614-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11614-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6107C1F22C7A for ; Tue, 26 Dec 2023 18:14:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B99655764; Tue, 26 Dec 2023 18:12:07 +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="haH4f9pw" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2084.outbound.protection.outlook.com [40.107.20.84]) (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 5428554789; Tue, 26 Dec 2023 18:12:03 +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=S1f0pSbCfqkSCRSCNW1u+SGLLda/Ljw6KsmDsA7fSkTLc++FlvzLWV7vBSi5CiHFgAKCDvTQ3j2A2szKWbPYCnlY8af/boYW7jsy4Y6jFca4CaEiasWYSW738O1sfxljnl531NBS6Z7ljFY7IjJbazhlHYIevnCSvjonR3LCfyajHmvj6XpwamsVwpo9PhEpXAqGCWJ133fD7vumu51TaZkdVQZzCF9vSiShXX3p9llUH7pdhJ7xPzEWLkPD0MtHhdff/5n52TiG1YOzk3tg4v9/dMxX/T74FB09102CX65CeCmOA4jCfhvrWCftDgoV5gAH7fGayKsCY1uo6FJMBQ== 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=P40i+6AVm8IdTbDuAqwbFqY4jH9ZruaP6Q9zKpBfGZ4=; b=ZQNpoNyl3OeKkYg0AbdEWBD/YbXlRocB4dXnY/uzBRTCy3vfhRkFndBNmIrP4TqJPjDufC13mB8kiR1ni4R0StLUf0uTCnkOkHhIl8wuFovrEHO5PTNLCHkI8CgvRb2hYQsrfre+S8iId99qS1VH1KMDOEUKXQEGfsMdac0EZMCZFHewSqzmMY8NLxie3U049gY/1vZvRWWMkSEyfUukgaeXjIxGLJSTOjuxx39PzEE3q4f3YaIEVbscrjtmhthaIycJwy684J1T6fQP7NlLx8AU69OUSrMzoyKaan1u/GFaqc19W6B9dYr5OXvoBp1IIdfq7s9ELzfwQcBBcQvQhA== 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=P40i+6AVm8IdTbDuAqwbFqY4jH9ZruaP6Q9zKpBfGZ4=; b=haH4f9pwoawMpz64fqKuL4hyVtaAFo/gu4pIpO+/VfzLxKawd/PwujjOrCW8LYHQ/y/BIOHd0u0EZ5dRNK6yeDS2I4XD6Zv5ZjNo+E8690bE15kci5HAKp486a19e/ephL9nxfwPTHhDH634NTzbRv3t+YFvebVPbxt4DAo+Eic= 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:54 +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:54 +0000 From: Josua Mayer Date: Tue, 26 Dec 2023 19:11:38 +0100 Subject: [PATCH v3 7/8] arm: dts: marvell: clearfog-gtr-l8: add support for second sfp connector Message-Id: <20231226-support-clearfog-gtr-l8-sfp-v3-7-fd1ac2d6bf2e@solid-run.com> References: <20231226-support-clearfog-gtr-l8-sfp-v3-0-fd1ac2d6bf2e@solid-run.com> In-Reply-To: <20231226-support-clearfog-gtr-l8-sfp-v3-0-fd1ac2d6bf2e@solid-run.com> 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: 6098bdfb-6c62-477e-8fad-08dc063e241a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TnrqY9GbIBYirlaMOqRxcgaHauHcPGW+Jqc1uD0CdLaXdEoPwR1c9pcd1j3llMgKH6IO1L0K2YlgsUfGfSk4JuxlSnr1Ghh9sjbfXV14mDdKF9FAtqMp2+VLNe+b29NEz8QMa6F1r2X+w6gq6fyKOCSkaajpLaBe77pdEOs7TWl2YxCXmXd8IpU906eXVbWQDjvutEk4nId0bjPry4GvAICVjQ8jsYvV2PK+4pHUc7SmWElFWIT2Og24B1Y23Qw1dKHZo7rE9ch5o9LqSjxAsvkwOXfMMn975Ia2oYDBcoUrGkdNcqJjiFVtMsOOYja4723OxVp/GPlTU5Z/qMUOEX4KGnV+iD9sx+TINfvWiXNipYfiUEJMhn+KdKWx3rteaQU7qkfNhCTGfj++1QEzF9kNriW8vau73yo8Z1Xrp8EATevn5QH+F1G7CXC/sbDL2OH4tYCaKLlTn5Ph0KkkabicfoZ3vBhhX7utF6bEmmi3fxMrQG52v/VNqbeBKbxzx6HXSA90GO8+cb/NZzWiMfBctUb+aTtoHQ90QCS5VoyIE8Li8uPEjCrlrWiEadYK1mdtONFm1nwsgMqNpGtf4P7q0dOwbkJMkQVJSJ1bxWDQbo+T7RoMb5sl4htKuYBb 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)(6486002)(5660300002)(2906002)(36756003)(41300700001)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1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8?q?+bZm2Wa97XwGC7qyHdB4b5AdnqrgT+yQbkDSg7Y7HwIOPw8djWj4J8RvQq51GoDx+?= =?utf-8?q?gdWXkIobdyw1sNkq+c1wcK7XHhAXJwJL0vJmJ1QufVGHe3CNQ+4tEpd4u3tiXvtZt?= =?utf-8?q?HhMDSQ8u4unHHRKUdn0E9dv0Fjdb2bhxXEAikcCa6/RWiHR8qTrrW9F5MJFEIW5Pq?= =?utf-8?q?dCqtNY+QwSsUlxe+x8PZY/HYNUxWBwVbWKEt5S/9urYc7qaNLH0ZWzMi9J8voqWhd?= =?utf-8?q?7OOE93U1JG+D70dmQhK7R1Z7t3k72lxb6DvKcs3YxtP4L2nYtO45Dps8TrHofm1Mh?= =?utf-8?q?5JiszOKZ++NckmM3CIDsAohxgOunXznUtlk0sTcdgVCqzdC1rKJiha5TkvU4dNi4p?= =?utf-8?q?SIvWoqndYrCOId1iO08HzJ002maPdg2MIT7Cn4c/5L4gDXaEh5jA56+kgsjf5X8eQ?= =?utf-8?q?4w5rTzZgpC0wVQ9CR4OEU6fqMYjYeZnmIY1+5nehlmXhXH0/qE7gOHzzvvTu1rNvJ?= =?utf-8?q?yFre1Kt/qg9bnq1ej8LkbMMm0+1EwSV8nTtDAFHW8mtPtu73R6n+/++qkeiWANuR/?= =?utf-8?q?uDB79uGkF45z3ovtLBsv+GYg5legfoR9BIVlDb/tkHYknp/XiABNwWTNGPaCuinNm?= =?utf-8?q?WMi/FdX9TO4jHWQwmu9PewAYYch1lr7CG4DUMYpWGNqHBNaF+4ryeB9UX4WUybPct?= =?utf-8?q?uW2Hd1BqMAz7?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6098bdfb-6c62-477e-8fad-08dc063e241a 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:54.4659 (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: G9jcW4pJf8T15xmSNNOv4c9K3aJ1Bp6CqWXZ7SVbQGi0Pqx6qCctcaLtDiQCElDMxUKw/UIcfBoPyTsw4LxbBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9868 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786369237657978377 X-GMAIL-MSGID: 1786369237657978377 Clearfog GTR L8 has an extra SFP connector on the managed switch port 9. Add descriptions for both entities along with pinctrl. Signed-off-by: Josua Mayer --- .../boot/dts/marvell/armada-385-clearfog-gtr-l8.dts | 20 +++++++++++++++++++- .../boot/dts/marvell/armada-385-clearfog-gtr.dtsi | 8 +++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr-l8.dts b/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr-l8.dts index cd5b070f1218..2df388f222ec 100644 --- a/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr-l8.dts +++ b/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr-l8.dts @@ -6,6 +6,16 @@ / { model = "SolidRun Clearfog GTR L8"; compatible = "solidrun,clearfog-gtr-l8", "marvell,armada385", "marvell,armada380"; + + /* CON25 */ + sfp1: sfp-1 { + compatible = "sff,sfp"; + pinctrl-0 = <&cf_gtr_sfp1_pins>; + pinctrl-names = "default"; + i2c-bus = <&i2c0>; + mod-def0-gpio = <&gpio0 24 GPIO_ACTIVE_LOW>; + tx-disable-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; + }; }; &mdio { @@ -68,11 +78,19 @@ port@8 { phy-handle = <&switch0phy7>; }; + port@9 { + reg = <9>; + label = "lan-sfp"; + phy-mode = "sgmii"; + sfp = <&sfp1>; + managed = "in-band-status"; + }; + port@10 { reg = <10>; phy-mode = "2500base-x"; - ethernet = <ð1>; + fixed-link { speed = <2500>; full-duplex; diff --git a/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi b/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi index 39ac97edb463..f3a3cb6ac311 100644 --- a/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi +++ b/arch/arm/boot/dts/marvell/armada-385-clearfog-gtr.dtsi @@ -201,6 +201,12 @@ cf_gtr_sfp0_pins: sfp0-pins { marvell,function = "gpio"; }; + cf_gtr_sfp1_pins: sfp1-pins { + /* sfp modabs, txdisable */ + marvell,pins = "mpp24", "mpp54"; + marvell,function = "gpio"; + }; + cf_gtr_spi1_cs_pins: spi1-cs-pins { marvell,pins = "mpp59"; marvell,function = "spi1"; @@ -276,7 +282,7 @@ pcie@3,0 { }; /* CON5 */ - sfp0: sfp { + sfp0: sfp-0 { compatible = "sff,sfp"; pinctrl-0 = <&cf_gtr_sfp0_pins>; pinctrl-names = "default";