From patchwork Fri Mar 11 12:54:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 12777983 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 E4155C433FE for ; Fri, 11 Mar 2022 13:11:05 +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=7qefM8h94LqvXXXzKLx2s8E2PPm43vKD+T91EcEsh4c=; b=GjS76pXdtmQYdU Jn57SL3Rc4RGBrk89k0c01dg3y9whjVOpdZMyLYSY8jxMA/71YqjMkwcb5fTmJseBf8IrTHN7wUeU +2IS+fJ7bmi/wXOmkSSIO/x9nHvdMUEb6sxKuyeUcE4j0negmbYczN+WM7HZyGWUS+NNTAhNpRhsj WPD8hM6H1xv2wWCpqiNbDqTnprxXCdCvi9gNfqVLKNlWC9x5MbYcYCCrwV2+zDxUZBUiowSIW9J5B haPS5MOFN8mje/XFF/GlmSu9bC85ZTY7PkWO2GXilTQxcTtlkrqW9Q9TUXoFikHtmSl9vaw1Q6QOZ IKyjiBAiCdlxV6Z2JENA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSf2v-00GSfc-CE; Fri, 11 Mar 2022 13:11:05 +0000 Received: from mail-db8eur05on20602.outbound.protection.outlook.com ([2a01:111:f400:7e1a::602] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSf2t-00GSdX-8d for linux-phy@lists.infradead.org; Fri, 11 Mar 2022 13:11:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z+A0VMAhoNYwVVEmAcdQ+ph4RdkRP293ek/cT/MBFWL078iReMrVbT5tpMd6EV0NVKrgq4r8wKfPdxcIVSdFWVG2A53J740tcp0LmGwaMYDbuqqq9MwIHei9n+TgyXuk0VGW9PB8diQQOj1tqqI38Gf10cmw77Elp4jicA0EgZ/abDGx3iFUm/E7Z3owVZYyztK/XCAJwVO4Ajl0sdtMBcM5p9Z/9iHKoUli1i2Op3MN2NgK/551j0EyOGF3+BSxmtCkujs67mDhL105K1w29ldn4OuO8daf0lr6zo1oe5nwe1xlSCNS3nJhg8DnNrDdLsh17tren1bv2OH+6vq12A== 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=qfAVRkA3mpuAQOrYS5LYSDWfGAJAUdwu5PkMFLVWbYo=; b=lHr9eY6UvB+GxeO/JqE9GbEgmxwOpPOiWcacHYFw5zMTMgjAZY5l9luIujE3dfL099XzOld+XtWI2uPpP0nZy7Fkw6kHE7+KIzPbFrYVnZfIdvKkwT/S+Q041gqd5JAT1p+s5Ko8ffasnFSJM/VYVzKegVzqrtCtEtFjmZ2Zo1dK+bxkhzQve2nofNN688GqfRQS7TjTaDQNqSm5iVnyvJ0NzvIzi+Nq4/+Z9NEA6thMthUbtk8S7DrHwxzB/gDfkHJXzfW+ynyOyEAkh9QrkUC+MkCMT01M/s4mUtsjxj6Ppi3sWvvn8TFAV7ZfUiVf58N1NpGk5L9tduGGP9qRsw== 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=qfAVRkA3mpuAQOrYS5LYSDWfGAJAUdwu5PkMFLVWbYo=; b=ZSWCn0rYOxaHY1/o2t0fxcN8m727DZegIZdb9RfHzDUWWKFzi3OY8JGHGzUqJDNOTAFjrYaGSIihEqyb6Ca7q3OxhPPch4x3ahpBhreJlBU60tD3NviiRlm0y9hVHmLaRqxT4+KDg/y5TlytRw4WABU08VmVwokJz9ldp5NhgVQ= 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 PAXPR04MB8880.eurprd04.prod.outlook.com (2603:10a6:102:20f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.24; Fri, 11 Mar 2022 12:55:08 +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; Fri, 11 Mar 2022 12:55:08 +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 v4 8/8] arch: arm64: dts: lx2160a: describe the SerDes block #1 Date: Fri, 11 Mar 2022 14:54:37 +0200 Message-Id: <20220311125437.3854483-9-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220311125437.3854483-1-ioana.ciornei@nxp.com> References: <20220311125437.3854483-1-ioana.ciornei@nxp.com> X-ClientProxiedBy: AM5PR0402CA0014.eurprd04.prod.outlook.com (2603:10a6:203:90::24) 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: 146a4156-c426-48f0-5053-08da035e5f3e X-MS-TrafficTypeDiagnostic: PAXPR04MB8880: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: dUfq3rMWD+7dnhvghil4/ryuny6CVOYF0eCckeL32fyoRSCsWAD8UZTz+Ri3eh9OzcmlBFe3+DZFCC2PT7U+cjJHU7TdkM9AR5gPRrNCP7v3af/SZdqpeQYRtFvmUxwnPC06FHugYQ42fcZ5lqKXTE+ILmaA+hpiyjvY6BRB6BTGrLK+768lbukj5jNtdrTJ6sBBsj16Mj3BXxByCgDXuoIoafXPJ44egk95LS8YDZNXanhyASgBsdXM/PRowppIEypr38Tvv50Umdd79ayEMZIvdfR5mQt4gWePc207pczdL+Mf+pAj7bfM1PnDHl+7bBnht1jEd/C5KRlyW1D1zrX8/T5/nfoNTuJGdus2FsbqMLoV70+JUIrVDI98bB/rs10BlnATfiBU3EZrYOemNvUKKQMtEpFwgHTkYLZHw5tD3z5VW1e99wed7TRx95JI+N/YxcpjAIqejvQ0F9iFRP7mg0WWLlac5UvltCCtxxgIaHWiGXkh992DNC7jUp8lHZ7AxIq+qvSw6FgDEbAf/NRfWd2hakdWsoA9KdKw1NcM3brbEmbCi4OWPUuEJnQZjyZoKGfkKZ6osG3OCkKHQ55iN0z7KZGjbx9Z7aOyu8AHJSC8534LP5+QfbAonbwbHh89qjj2PYci5Bvxbtis9rn+R/2ZN9BSAkdQr5ZitjvsfLVqPJxxGmQrjBfLtuuBD35h41wipEZ0N0SbUEfjO9AdCP1gz9o7h4CD8MzLwQ4= 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)(44832011)(66946007)(2906002)(66476007)(4326008)(8676002)(66556008)(86362001)(6486002)(8936002)(7416002)(38100700002)(5660300002)(26005)(186003)(1076003)(2616005)(83380400001)(38350700002)(6506007)(6666004)(498600001)(6512007)(36756003)(52116002)(17413003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mkWwqyXU7HJIxXwQrdGN14xZ2f8a1AmIo9CnJRlpxKbOrTfVnOQbwdYGRU7GuNam6lTKxCtLXR3Fz6yUXUbiBIMkhbCohkOTYCVwKgPEs4gcCYOu3ALWvfdpNvz2BqPnm64weB+xiw9+atXGOV0o/Yre7wsc0wTHrVFJwMirmypSEkbQOu1BP79XBO4TtnEY41OGdwqMS0B7osVRZuW3kXIunusSUY4FMx9V0nrZ4ox1ZmvwmqmDHOcBS1dDB4jgQQyznhwlgA+lVp+38CawqojLnllkv5K9CaA8XBb5y7It480chys0bQUT3+iNChHkhtPHI63eRHQRYSNLAwxboEIVRCpZuSmCOXAxtfB8Q6ENnCB1QyAPdFgZoOvq3VsnzEAW8Zu36G2KxToXSsng5j+3a44DPrPv4KCAYqAORYKyQtZKzQJmUzTEScN1h9aciTerqN0jVmwBQIBM5AQt1csdM/Qxwux5ShYo9IbOSDQFzo+gVGauqHF+/ggEdPUprnxTRCvmxPWqX+F03I+MZxQpGEbjdkbrUaAXvkbRuk5gS7WI+VpolMWM7digN2ROqlqG4p7xdWATsmpO28S/6x6oVG8BTLeuOM3HsWtIvfesLMt9mWJo2xGvkRrMo+TnHNEdifUyzGTE/T4MUR6PadaaXcT8aBkPX0IIj71QJkDUyyISjdikMl3ulsVRHCEGKwEbvlnxczi/uRep+O96Py3eIbUB0NxBdn79PvOyL4aoh11SpZsxrB3PTu8jqR8xuHzyl7mxi9eTDStmXCLgM2ivfO4okvdOw4hREGH95+IIMFdCa+mCiFaol5GK+WazEUb3u4LGhtoJNmkRCLUdtHqY192j2bP+zf9Tf39QQ0y3V4hFkWn202Za5jLb0yYmabP/+eAlTKqFkSxPIraUEig/2c5mwxsuLnp0bnAVN/dm8wEwh1ahNWVlrIpA0J9D31N58CJx89TTlX+50L3WJLYZCKOgHX2qG5U76CgHGvtnDEqwQNg078V2PhUelwGeJqfpmRE2cCBsbiD6QMlT7agEe0znrLHYrks8ak9iKbq96DPSvVklaUIBTv5wKsyruqfzZklCqrfJ6elU/RquVl+P1VN/b3XFxnqbfkIxWqgkd2K5I1XhtkyrOfI9V0/aWYe6o4Ca7GDGXaeYR8qo9lgKGdMCAheZYz3TPe8yhp6FIX7QZN59tJvREKUDLKa/lFFJGL+u4jwheu93c8IQ0QHA+9IrG4IOeNEgbFfVgZB1GTtnT26l7F8DzQtky8sAky/vAPrd/K2pQT71DOKSnmRzrGS5Ac/mXKl29i9jPuDaSRsn75d/ozDJ3rfnJz6uIAbsarD79hmnjbGZLskOmZvNQyKowWIhpimI4sFdH1X12MySH7cmTMi94XBxv6FuxDMk1QZszjXTarm5bXTa/BCT7PrbdDceDbHHoVjbLwE0JgvLeYgG83iLGcYohuAMtVEitC/F9O7SSW5KbmQrTA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 146a4156-c426-48f0-5053-08da035e5f3e X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8555.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2022 12:55:08.7480 (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: 255FesW93Rjoh1jwQTDh+l8rIAjM9Fk0/mrkdeZeCND8Frgp9QT1i+yQEdO+nWzgsM0yy40YD/xidP2kZCCHpQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8880 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220311_051103_324371_32619BBB X-CRM114-Status: UNSURE ( 7.61 ) 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 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>;