From patchwork Thu Mar 10 14:52:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 12776512 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 02ECAC433F5 for ; Thu, 10 Mar 2022 14:52:41 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jD6iE5Xu7+b8suroUoF8wEvK1ooZSZ/9WuAAh+FmJqw=; b=aGLjh2XDRuR9MO jm8ocKtV2MEEOmbZmY5WEarbDpr916VEwPePy1pOy/yZDA3OQne3OUqCA7/KwP75qhlT928y/LxI0 g5VVLcer8AlO7hTh9Lh3K1qwyvECQ4hPmh/exEc94NKoYKeMj6kVmd4dvj5LSLPvRy2xGOLFtfkM2 HobdvlieTXavh0Y8ySAmphyEs6CW8h3gNXAZE/mNEGFF9rohcByoBeQ+8qn9U8eEI/l+6YCFqFmIV T3OT6JxcY7TCwnzV0kP5+3K0L1TOJBrGpFpvGiW9885oYLUl0lKu59boYZ9WerS81JCGDVnB+QlKv IXPYRikS/LeBJDLb3UvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSK9h-00DDwd-CX; Thu, 10 Mar 2022 14:52:41 +0000 Received: from mail-db8eur05on20629.outbound.protection.outlook.com ([2a01:111:f400:7e1a::629] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSK9e-00DDoR-2h for linux-phy@lists.infradead.org; Thu, 10 Mar 2022 14:52:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g9ohQmyvdGKpxP2VpTTIw2uyVVS5i3jund3gMAaz4I207GtVp4D4SXGnQhcPVs29aQ2pV8X83m1IozL0+Y3u/Vm8Kr8gkTITZBsYnoV6dr/JHY+AoUJzjhN41mgr0GNKB9YsGpEIPTyFI1Xgl5ik4dkrvu3fQarHgfOb4jDlS0/2JyhL63HiodbR6XEC5dMosctCZkjo6sGL0/Nmf0qd5Zj8H7oZ0eHQxgsGvgFHPUlRbrBmH6fVgExHmqz56eFj4gp3tCvfe+/hN97D9yycmVM4is3PHbgWv2RaFzGg+/CecOLV5353LJzNgnUHgdnQiRJDgAuYwhRfXLMRHL2DVA== 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=BGY7Ol/aUUeOiUHJoTneOAN8f3TZuA5CSk8d6GWhUV4=; b=MweQpvX9StZGgu0/KJF0VEwPLIsdECivi3vP5OeDSIfvOGIPPkXUkrf5QRYOzTPTucX+Z84t7n8U5by+603Gg4EOoGxPerp1SfUAMnlxHlXxsXJ7/Ys2qKJTyuTiQ/1PfsqLjM7/2keEPItjZjX+EeFztmSPW/ahD7Qt46vqmIeN8pGikey1zb6GgHIi5thWAh1yZydvbuKxwT1bPtCiB+ZbKYq0SYlAtc6fZR/+AT/3dbMVqT/rT1mximTRFLUrmjGHDDuoHpWoYtscZ5aGCGxaiCZi6z4bjWhw38hBMKJrC3lnTJTk/mOuNVLEFmkGnruauEcI9AzuEckgks0YMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BGY7Ol/aUUeOiUHJoTneOAN8f3TZuA5CSk8d6GWhUV4=; b=MwWd2runvpQPKFZljH9Xu6kGXZznoAjnjBgK6jxJ6LsaeuqIZYflIo7gHn7JAIs7PqSinTpbvvU7jBvECkNP536TPpFo/uC+CxpUVrW/BcA+j5Dd52lsay06wXA87XLMFVxRSLVBYp/qCoIq2G1jKP8r1joWBPnyfRKrR0og6m0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8555.eurprd04.prod.outlook.com (2603:10a6:20b:436::16) by AM8PR04MB7281.eurprd04.prod.outlook.com (2603:10a6:20b:1d4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.29; Thu, 10 Mar 2022 14:52:31 +0000 Received: from AM9PR04MB8555.eurprd04.prod.outlook.com ([fe80::c58c:4cac:5bf9:5579]) by AM9PR04MB8555.eurprd04.prod.outlook.com ([fe80::c58c:4cac:5bf9:5579%7]) with mapi id 15.20.5038.027; Thu, 10 Mar 2022 14:52:31 +0000 From: Ioana Ciornei To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, leoyang.li@nxp.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux@armlinux.org.uk, shawnguo@kernel.org, hongxing.zhu@nxp.com, Ioana Ciornei Subject: [PATCH net-next v3 8/8] arch: arm64: dts: lx2160a: describe the SerDes block #1 Date: Thu, 10 Mar 2022 16:52:00 +0200 Message-Id: <20220310145200.3645763-9-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220310145200.3645763-1-ioana.ciornei@nxp.com> References: <20220310145200.3645763-1-ioana.ciornei@nxp.com> X-ClientProxiedBy: AS9PR06CA0288.eurprd06.prod.outlook.com (2603:10a6:20b:45a::19) To AM9PR04MB8555.eurprd04.prod.outlook.com (2603:10a6:20b:436::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 688160e5-7743-4bef-e6e2-08da02a59ac1 X-MS-TrafficTypeDiagnostic: AM8PR04MB7281:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: srjT4un0okAh00YC1rhCfNpLt8UMVVeKrITnHpsPID8gg/4mAPztdrH/COsj845OfSSCwpvjA6xC8sN51JRqkZq3FB1HXLa8zxDQ23WFu3UPYgNP1w3F22NNAVDQNBU3r0pw5qH0FRFoUSplNKVb6DbCtm1rYiQHYSc7zm5dvLNhgG4btPSMtmNXj+JFYnghzo/jTyJRS9xzb8b6NijdjAfcjElu5jIy4nwSJ0YYFQRQRMOOVj905wZjktK5msDxlKT7Kcnh3Dk5e0fh5Yh6Sjl2mNb9zmEa6ykYp1CihBJVHjHQw9YWRGTPX14KAJaCAkLMMb+uOS1CosOkFJgJnxqYFRUDOC0k2XSaXHiN5T3E3PnhTiG/cCiumn3GlgRBEXuMt/cAVPNg8VAUL4ceP9o8brHkq07rA7VS1rRlO/1sLpLGe6Gfj9aJeVOizuZVLx523lSLYr+PUwIIe80evDYMoMASylGoklBHG3O7V+zXMLpPzA+cqrtdcZ43i8XPXfvtp3rAPD/dBoo4D0RjdWVBGsLbwNCWSMqdLxiTNYpxL/rbCUL9epFOFrKkoT/9WLjBFCnliJnPHH9BUnyXO6QE2ROlojl7EoVHjnADLlpMI+fOknlgQBgIU6WsKpyhNqRzvFeocIPNz4T3YcjaAP8erJwoSkI845yo4l3nEHsO31Y8A4GQWBDw/eLIEsFhOJIgw6ZM++WQfTSgKjQD8zgCuOipnmi2CDqg/xTdCeY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR04MB8555.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(1076003)(316002)(66556008)(6486002)(52116002)(66476007)(8676002)(5660300002)(6506007)(66946007)(4326008)(2616005)(2906002)(8936002)(86362001)(186003)(44832011)(38350700002)(38100700002)(6666004)(508600001)(36756003)(26005)(83380400001)(7416002)(6512007)(17413003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kYJXuWjrPZhNmCrjawlcET29w/LFFgfjZkeDvD74ZSSADcO7Skzd8ApHVPcxAuI7uR8NiikIFydzB/r0rb7MKrfoulfeDslhPSMjQnhWfVny7nQFmm0CWbuWYf6EHULjfdUuFQgGCbX5KpEbLDXwW9b7lKJHSmDplDyOkD2j+RtDXz0kDzz8jP7aVlOmMhbp081Zl3xscFlRcmtDtGMWdMKqWUT62bd/jPYrwyN2Kxfy2ITkBEW7NgFzMvQvfyr6LeOsrWQ6JsAgVR9XGhnOO8SgQ1YF2YiJrycipOuThwuCDy1WFVtl6xQNCxGqM/nm6rnJrwhwqn2t3bIEqoa+63CSYb8ZZk5pZhVpE8d5wUH6uF/zP4VwJRnNEqWxQilIkdCo5zcSHYOrI0Xmg25zd20xVcU5fWBXON89E316rmf6SAOt+XKMFVpcts2A/BuH/jH3R1bNG8wuvkTtIP6yo9fRXsQbTyuEsW91L2pOrlrUxMRXSAwNjlVK+Xu+/YC67R5/+qg48akWbrZ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b3IL0nWcznPoIDVqX/h5N90AbA28wMJBy0VkwZInId2PDf3JsmB81bA7s= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 688160e5-7743-4bef-e6e2-08da02a59ac1 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8555.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 14:52:31.6854 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9LfTyn0dP/wc8c0xBQHoANTBGKXRcYEb2EOM5KkqgGXXRp7yY5YJ/ZCE0thM2GqxKxZLV7paYuJKjDtw/XPsTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7281 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220310_065238_153857_E94B62C1 X-CRM114-Status: UNSURE ( 7.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Describe the SerDes block #1 using the generic phys infrastructure. This way, the ethernet nodes can each reference their serdes lanes individually using the 'phys' dts property. Signed-off-by: Ioana Ciornei --- Changes in v2: - none Changes in v3: - none .../freescale/fsl-lx2160a-clearfog-itx.dtsi | 4 ++ .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 41 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi index 17f8e733972a..14a6334adff2 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi @@ -63,21 +63,25 @@ sfp3: sfp-3 { &dpmac7 { sfp = <&sfp0>; managed = "in-band-status"; + phys = <&serdes1_lane_d>; }; &dpmac8 { sfp = <&sfp1>; managed = "in-band-status"; + phys = <&serdes1_lane_c>; }; &dpmac9 { sfp = <&sfp2>; managed = "in-band-status"; + phys = <&serdes1_lane_b>; }; &dpmac10 { sfp = <&sfp3>; managed = "in-band-status"; + phys = <&serdes1_lane_a>; }; &emdio2 { diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index 7032505f5ef3..afdbc0dbd47b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -612,6 +612,47 @@ soc { ranges; dma-ranges = <0x0 0x0 0x0 0x0 0x10000 0x00000000>; + serdes_1: serdes_phy@1ea0000 { + compatible = "fsl,lynx-28g"; + reg = <0x0 0x1ea0000 0x0 0x1e30>; + #address-cells = <1>; + #size-cells = <0>; + #phy-cells = <1>; + + serdes1_lane_a: phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + serdes1_lane_b: phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + serdes1_lane_c: phy@2 { + reg = <2>; + #phy-cells = <0>; + }; + serdes1_lane_d: phy@3 { + reg = <3>; + #phy-cells = <0>; + }; + serdes1_lane_e: phy@4 { + reg = <4>; + #phy-cells = <0>; + }; + serdes1_lane_f: phy@5 { + reg = <5>; + #phy-cells = <0>; + }; + serdes1_lane_g: phy@6 { + reg = <6>; + #phy-cells = <0>; + }; + serdes1_lane_h: phy@7 { + reg = <7>; + #phy-cells = <0>; + }; + }; + crypto: crypto@8000000 { compatible = "fsl,sec-v5.0", "fsl,sec-v4.0"; fsl,sec-era = <10>;