From patchwork Fri Mar 11 21:22:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 12778590 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 C2685C433EF for ; Fri, 11 Mar 2022 21:23:49 +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=XaXznd7/xEHKf2uXzVtQeurAngZTsatuoPDeG7Aeiio=; b=05ZJWDGt0YlsHt ZcRJf/f5VZctx/yVDATWxpX5sPhmi5iEzizU7iEZtu+GUr8pB25iCepBaW0o6z4xjqYolnWdloeT7 9urKYOuQz6dFKwLGbiywMO85QM0Phbv3ZqViSO8aPPZjeC1D1+vmZpEb4Lhphtb+U+a1OuMxYvT6v DU/K26j/Hs64Lk2lf/veMqElikcRTYsRoEuFaCIu0jePuTIKSnaUYAE7qTPkCNv/8U3TK7TqNRDh9 9OGU4ID3zqRPIlOWCMdcYXQAasfyRSKQdrhjZtS/cjCTXgkqCMBEjuaU9pgtLlVW7fCV8FBhYF7+6 rTiJlY2lOHd0vfhdwSGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSmjl-000Kmo-8e; Fri, 11 Mar 2022 21:23:49 +0000 Received: from mail-am6eur05on20618.outbound.protection.outlook.com ([2a01:111:f400:7e1b::618] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSmjh-000KiO-WE for linux-phy@lists.infradead.org; Fri, 11 Mar 2022 21:23:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VEVbLh/mEXG1fDbWdJMN8g0Rq3VFqvXGFYRZZ0oOIAV5LHulurPoxV2mZ3kKdY6Foqr3A7BPGaw76Vu3Gz8kIfOpJGu831lJ1iPakg58DgfdJ3Ukj+Igpz3tScIFBubS3JZjzafqpehL8BhQSes0psuXcy3RDRT3L4VXXFklnvytKJr4DAnWbpwhJwh/jDvP5PSrApsltZoRMA5bGB6OlnvL+yuRjvDtgs/MYcya96qhLOBrSXVclbYUoSOVAUdCh3+oKiJCNGkhDUVHOJ7bGjch9OkJLBUDQO/e4HJhk8O6PO9TqvZ5Chm7xFVKMlDTDWYN7hPn06oofJq5eezk2g== 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=AcNc2SO9xRUU7VlVpmBa+ApToBqgbbOMxmjlP29mpSw=; b=jlL8hCvly3cclWCtpCjq2yY1VZmPwl7wuBRre6O+cGmbJS6klo3NMvBkNi7n9jr9j/5lZzJ2fw372fiN1Uf0FZj1hJf4eU97lne6tM+yDV2gaLyq8xN4a5qlTCYf63rhRkbRyOGtGDUKcvdp0IWSy11eQGunSJa5U4jdKIsyFUfTN6Wl6WK9LMlUtYtXG3gmnvJmw0loLs2QUBOOcCHkN4d9+MU5APBk9UC56PEVIAuRfduaOE7gOnwhFEnS1UAZWUGZ1OmKEF45qMux0ptWUhFgP3VidGzPKVlyBKE6D5hjjZimlONDMbs+Q3z6DZQKhWEOZLU2//g3kQc/rUHy2Q== 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=AcNc2SO9xRUU7VlVpmBa+ApToBqgbbOMxmjlP29mpSw=; b=hcqO6cwYCs2PmSU2dCc6Z4vIk5YWPeKrmPe6sELRpkpC2bR6Xa9At2dUw/2Is1YU93/t0NDD/lk1NH81QwNSefr7rqGMnuPbOUyO+0yIB6AnVcnXVqWptSQi4myLIANQ/1M+u0hhH5kaF5lDWtMfYJRU+V8GhfHHKRfDN1P6xck= 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 DB7PR04MB4713.eurprd04.prod.outlook.com (2603:10a6:10:17::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.17; Fri, 11 Mar 2022 21:23:38 +0000 Received: from AM9PR04MB8555.eurprd04.prod.outlook.com ([fe80::c58c:4cac:5bf9:5579]) by AM9PR04MB8555.eurprd04.prod.outlook.com ([fe80::c58c:4cac:5bf9:5579%8]) with mapi id 15.20.5061.025; Fri, 11 Mar 2022 21:23:38 +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 v5 8/8] arch: arm64: dts: lx2160a: describe the SerDes block #1 Date: Fri, 11 Mar 2022 23:22:28 +0200 Message-Id: <20220311212228.3918494-9-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220311212228.3918494-1-ioana.ciornei@nxp.com> References: <20220311212228.3918494-1-ioana.ciornei@nxp.com> X-ClientProxiedBy: AM6P194CA0057.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:84::34) 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: 38836161-2786-4b13-8c27-08da03a568a3 X-MS-TrafficTypeDiagnostic: DB7PR04MB4713: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: qoCLbi6zOnJYwldnxt5r9V0i0Fm1TEuTkKHcnq1mGh2x8cQh/E0pwbCR/UQfvJFuVVhF5zUDWZaCrg2ReYw9KKnWIuear7twy1Ui4SjONCY2Ij7weBvMiMjPlw/rNcd4ACUKZrmdyL7Ji3HQM7gxURMh65bnvrilJoX7AlTCTgVsp9Gwg1ZNETG23nflk/sNUlCk2/hrHRrz4qOjhqoCBghgb/cFE/iZBbc/GgIaHfKTZR1EFhrPTprs+UeopLzaghoGt3SenND0+o9UFSJIe7nLgyBH5xX6qcEm5b8KlwheVfmBLRgmfUa6K4b7wPGkSuaHGjpZ2a2wUybkznIjs4S/IYmvBWyQ8d1DcysO8WPfmmlfp5V0I8YsiuP1aRLPidy0WKuOjXaqn9VHJyEYynInSwqmGr1tTnu1zH+HjJWtwtQwkgIsy4zSd1jWN2BkKSi4sZJ7VWWkeELGl8h0sDdQCqyzYXFNVjBhcYYbcZxiEXvWolAKvvd6FAwK0cFRKC7B1Wd3L/ZM7ui3O5JaUPvS8Mo8Uyx4b3AiIn6Q1lNqdgX5+rtiKqrVbXUE5rUCCcuLJDU9lZrpRiyrPSTtwaPM53nj6nDSrCAP9pJmm7CDO3T3wx0xyAssAHqmlN5tIbDiC+8Gq8Y6J530oWjg9vgPKR7UfNnuKm7jvo7evUU8hHc40DDA0P8F8WMgjNi6LcbyNhjS0Xa+mHf3KNHDiti8vsuvrnbV1vMT79ioBsI= 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)(66476007)(8936002)(7416002)(38350700002)(44832011)(8676002)(6666004)(66556008)(38100700002)(5660300002)(4326008)(66946007)(36756003)(6512007)(6506007)(52116002)(186003)(2906002)(2616005)(26005)(6486002)(86362001)(498600001)(83380400001)(1076003)(17413003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TS9C3sbkW5sfoVTV0M7tzjwSfZSbU0DAjcRJx4MoNNcF9bQHkVZ3GE8QxvfaegQi+3y6q1qrt0bU3LkiGBl/mIdwv+IRlo4LrZaCJH0GxhKHuUIw3oKLeH7yvySNC2cXT0XdtecdFQLhN/n71j/xtajF2/uC3ebA4IlNlbDfFcoE9XVDmOPdpCyXS5ohdAdvGMrs0yHwV2kNpEmmCSeq2+GUgwfWnyy/HqlDu/VWzCmnihmHy3AanLtRCQiA3QbKURzQ7LznZAN/bfdBnVcT+RiiEIQUG2LR+SlzxsTG3ntbEoZH5gqeagr/c44RCJkzDUyNkbpJxvDGsj0DAQ/HT0H0AOY7WR6lU5CilnUMLcX2BgN3HfJn463G7yCu37PEOGpZfxzG7fbbTqaareQmaLOQL6jgFQe0sET/v8V2YRiACE0Y08ICvKAA796w+8RnaV3+5nzHVwoqC1VKMbJT5DPelq1JOTKSwHBkIAx8O9Rp0E1GN9k9Jj/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grsvkBYhK+yBXk9CXqXvH8Shmi5fG9Q2NmvyVjojyf8g6jQ+W1J2ms7tCxYS08I= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38836161-2786-4b13-8c27-08da03a568a3 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8555.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2022 21:23:38.8257 (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: QcTsnTwMdkmCqWvVcHm1s+8eD1u2XHBfYeiMDhRTk6EtCR7mYIuP1zSILeYw8OSopbM8MVJRJpbTwUTq7OR4Pg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4713 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220311_132346_062094_13251D7E X-CRM114-Status: UNSURE ( 7.38 ) 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 Changes in v4: - 8/8: remove the DT nodes for each lane and the lane id in the phys phandle Changes in v5: - none arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi | 4 ++++ arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 6 ++++++ 2 files changed, 10 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..41702e7386e3 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 = <&serdes_1 3>; }; &dpmac8 { sfp = <&sfp1>; managed = "in-band-status"; + phys = <&serdes_1 2>; }; &dpmac9 { sfp = <&sfp2>; managed = "in-band-status"; + phys = <&serdes_1 1>; }; &dpmac10 { sfp = <&sfp3>; managed = "in-band-status"; + phys = <&serdes_1 0>; }; &emdio2 { diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index 7032505f5ef3..92a881302708 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -612,6 +612,12 @@ soc { ranges; dma-ranges = <0x0 0x0 0x0 0x0 0x10000 0x00000000>; + serdes_1: phy@1ea0000 { + compatible = "fsl,lynx-28g"; + reg = <0x0 0x1ea0000 0x0 0x1e30>; + #phy-cells = <1>; + }; + crypto: crypto@8000000 { compatible = "fsl,sec-v5.0", "fsl,sec-v4.0"; fsl,sec-era = <10>;