From patchwork Tue Apr 11 18:42:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 672439 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1504BC77B7A for ; Tue, 11 Apr 2023 18:45:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbjDKSpL (ORCPT ); Tue, 11 Apr 2023 14:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjDKSpI (ORCPT ); Tue, 11 Apr 2023 14:45:08 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05hn2249.outbound.protection.outlook.com [52.100.175.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76FF012A; Tue, 11 Apr 2023 11:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iie0Bl1raO6MNQbx9dABBRV7HF/h/2HGK/e4/Sj3ooA=; b=OUkWJY6YvSQuxjNqJJ+aMDe42dTF9ePpWNhN4GRAA5Dx4Ev9apRzi4PBZHIYG2ZXq6K+PSOg9bO4cbS3Mlh8neP8iU/VmQjyzMLwM+UpXnj3myG1nJGi9BgwH3mjz7TUJPnuR8JbGXpr7m4S/H/p2O5pRjWPj4sCu2R2J7j0LKW0dAr5/5lYsRR/VrP6Axk3NTrNlRWL9ikolbHgcHuSY5yOINIw6kc2Ix/vqhB37a1YF0MFTOQRUgYisGSD9XIS3kiGMgp/DiiKW21XDGNVtqJuP0iOwA4xmbiBlor1iEcaodr5l0JFj5Etpt6/h0zfQ3IKCwo5E1AEYqPaUwKEBA== Received: from AS9PR05CA0140.eurprd05.prod.outlook.com (2603:10a6:20b:497::14) by AS2PR03MB10109.eurprd03.prod.outlook.com (2603:10a6:20b:57b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Tue, 11 Apr 2023 18:45:03 +0000 Received: from AM6EUR05FT009.eop-eur05.prod.protection.outlook.com (2603:10a6:20b:497:cafe::43) by AS9PR05CA0140.outlook.office365.com (2603:10a6:20b:497::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.29 via Frontend Transport; Tue, 11 Apr 2023 18:45:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.160.56.81) smtp.mailfrom=seco.com; dkim=pass (signature was verified) header.d=seco.com;dmarc=pass action=none header.from=seco.com; Received-SPF: Pass (protection.outlook.com: domain of seco.com designates 20.160.56.81 as permitted sender) receiver=protection.outlook.com; client-ip=20.160.56.81; helo=inpost-eu.tmcas.trendmicro.com; pr=C Received: from inpost-eu.tmcas.trendmicro.com (20.160.56.81) by AM6EUR05FT009.mail.protection.outlook.com (10.233.241.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Tue, 11 Apr 2023 18:45:02 +0000 Received: from outmta (unknown [192.168.82.132]) by inpost-eu.tmcas.trendmicro.com (Trend Micro CAS) with ESMTP id 2A1C320080270; Tue, 11 Apr 2023 18:45:02 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (unknown [104.47.51.239]) by repre.tmcas.trendmicro.com (Trend Micro CAS) with ESMTPS id 5EE6820080076; Tue, 11 Apr 2023 18:46:01 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T6eM2gneCgP3W31/DaQcEFrC2FuE7St3+7rSpIB/e5qwjXlZ4/NFSdDmJ+z0i/dwVcjAEk4Pva4MEuSfh2QlXwwrqA481Eyp4Ltto1V8MRH3IOxI6q+wSdjq2r/Z7rYcT3pMdbi0J2qOjeE4/9Id6domNdG3H2URsjgbyP9OOESRGnsnlR6XLnV9GpoyxPPXnD5k+nLrG4FkTWsyuVSK4fVybgqVs/bmbpEtIGpD5dcQcFR7xtCIuBU+O6SQMR8rBBBM0MW9uZesEgJWu+8HP+pfQieFbqawgXpEniox4NqLfNZZEiHJ+pCPSwCmebPHkAQVKw2IZBOH07v9iZAQ7Q== 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=Iie0Bl1raO6MNQbx9dABBRV7HF/h/2HGK/e4/Sj3ooA=; b=Bqp2bmkxgiYDOqjxiqi/l78AGmu5fKHM+4Nr0MtdqhV9WSlsLfp3QiSvdKF1FvDaCPbvkH3OIJ2EBa16bKAcaUJ9M8MZmdnz1YWG8LEKWqfP+nWqKBIZ+UE7CaexgNFmXFmE631PcH99AUW1hPmMIlufkmSHfSmYHTdwl08saYjEmpmaAmS0ZCOJEaw90RcKRj8SrRQsaiK6wSNT1KndgsE3YUgC3wEClMq4YDE43V0KqoVSxhO5Yy/evIInIFtpDiKAukUY6N1XEmWUn6mZ1SwEBiWh65QSpgJBRxpjQwdRlJmCo7ax+lwSPYGoj0kUgXwX1oPy2mmCkg1xxYdiMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iie0Bl1raO6MNQbx9dABBRV7HF/h/2HGK/e4/Sj3ooA=; b=OUkWJY6YvSQuxjNqJJ+aMDe42dTF9ePpWNhN4GRAA5Dx4Ev9apRzi4PBZHIYG2ZXq6K+PSOg9bO4cbS3Mlh8neP8iU/VmQjyzMLwM+UpXnj3myG1nJGi9BgwH3mjz7TUJPnuR8JbGXpr7m4S/H/p2O5pRjWPj4sCu2R2J7j0LKW0dAr5/5lYsRR/VrP6Axk3NTrNlRWL9ikolbHgcHuSY5yOINIw6kc2Ix/vqhB37a1YF0MFTOQRUgYisGSD9XIS3kiGMgp/DiiKW21XDGNVtqJuP0iOwA4xmbiBlor1iEcaodr5l0JFj5Etpt6/h0zfQ3IKCwo5E1AEYqPaUwKEBA== Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by DB4PR03MB9433.eurprd03.prod.outlook.com (2603:10a6:10:3fa::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Tue, 11 Apr 2023 18:44:42 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2226:eb03:a8c:a7e5%2]) with mapi id 15.20.6277.035; Tue, 11 Apr 2023 18:44:42 +0000 From: Sean Anderson To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org Cc: Camelia Alexandra Groza , Bagas Sanjaya , Ioana Ciornei , linux-arm-kernel@lists.infradead.org, Madalin Bucur , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , linuxppc-dev@lists.ozlabs.org, Sean Anderson , Rob Herring , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v13 02/15] dt-bindings: phy: Add Lynx 10G phy binding Date: Tue, 11 Apr 2023 14:42:59 -0400 Message-Id: <20230411184313.3679145-3-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230411184313.3679145-1-sean.anderson@seco.com> References: <20230411184313.3679145-1-sean.anderson@seco.com> X-ClientProxiedBy: BL1PR13CA0350.namprd13.prod.outlook.com (2603:10b6:208:2c6::25) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB4PR03MB9433:EE_|AM6EUR05FT009:EE_|AS2PR03MB10109:EE_ X-MS-Office365-Filtering-Correlation-Id: 433dec24-6573-4da0-4968-08db3abcdc56 X-TrendMicro-CAS-OUT-LOOP-IDENTIFIER: 656f966764b7fb185830381c646b41a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Fud6holjypvv9JKv2q5jKJ1EyhMF60WzHBOOJnwtQwcpPm3OUY0/ovAjwswZ84Brzn/bWgKU3rrmihZZ/6zo2xR/EJEmrEE/zI7pF7JWdtUvuYIOCGv//lUnv4z3jpyX+a6Rr+97+x0I8DNz27Ud9hU8gDXHw8tXPfwFST42q2Q9XVa3vN4qLfWIDDbFRcGnqBYufNh6y7rigtHR0rm29pxVZCUp3b9cHAXREbLpsoPm/mTPZC07O8A7VDe0nqvahJAM65zmhTsAkusL55X/ZgrfI6eCZXMJHrhzuNgPgb8wc2+kzI4TgzIqCraegplLX+UbGb3Fi3i1yE6Sak5E9HAtocIZLXkMFHTmVWV/U+qmF+wz2Sc+EOFvIfz1VDjGFyhMYP2fnEmMnsbinZqSYrKst1axwZNvMYK9jI0k51Pglet4i/jtP7wknRY1kHMyvpi80m6OYXmNP0PQZsvw5EI65gmWQ2wxrfr/G6QeHCOmhMDR5z1O/1r2+M+En85Nn/I9suOwl7Wf8uYdz9p+0SQ04cqt2dPHtiQIn92lNbqJ4zX1fCa53rpV9gw3JCEN8+ukMY6D/URyPJr0DrjmCmR8X+4Iq3FO32faOfM5KzY= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR03MB8847.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(366004)(39850400004)(396003)(136003)(376002)(346002)(451199021)(316002)(110136005)(38350700002)(38100700002)(54906003)(66556008)(66476007)(8676002)(66946007)(4326008)(86362001)(478600001)(186003)(2616005)(26005)(41300700001)(36756003)(6506007)(1076003)(6512007)(2906002)(83380400001)(44832011)(8936002)(6666004)(52116002)(5660300002)(7416002)(966005)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR03MB9433 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM6EUR05FT009.eop-eur05.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e521bfb0-f3ca-4f20-adb4-08db3abcd02d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yeOoXIQLou3Hq+EMn/QFMJmQTdJVU/V6oMcHlPQ8UQ95oYyYahdJ6ftGgr4UviV/n5TSaNH6oQNONbBKHoO3Wwbmx7p0TL6MTZbhxPg0UuV9LeXyZ58smIIp0AIB0h2TA9qCU+oSRWxSxRRp3Ydg1qII/Gj8pGQkiJrLfPY9qYH09X6yGL0vxyOEqayNOJsz+rdXp21hpXniN6t4ocWwnKOdOHkPlqwQavQyY4LmmirGD4VQN1BVoO3/ryzGaT3ghpn7cvYH7KlMDFBqAiFldQo59YSY2YF3r0IqqFEjlJrPx+EcGeLGv4eoTGotkqL0oJGESmb6pFnAuP5n8WYVMmyeSthoZrv5bHdYJAhj46jsTuQmr1z2kAi84DNCqS5vAmzp5zFLAc9feHGPLMIpD1RMqPTA6vvt/TiltqpubHrARhQ7dzwoS9+IGW5U3MHIPMoB8g/LqgHBk/PseV00Pr7UrpHICEPMdNmlR0XRd+S9fTcinU2XNEaouZ4c7ABL7zQH3V6QQslZsG2wLP/6TjmZyyHsfpI0NuI3LIxxVCwmhZSimAfdNZTfVymClKKqgzs72l7DbvZWk79xbzB8Vwq04r6ZA/b0b3LrlIZNEyobCYRrMxF0AVFsTgPvqZ+GHqatr08YTss9ipezlm2KSZvZW3UlDN4I95WFHGCTksLCy0/0jdXoDHIUHsSvEgNjRAfizPTHuVgmNO+1g2Z3lHrKY1VRKgmESb41K24wlQzlbthBlWiMsl+Txi5U0h5E X-Forefront-Antispam-Report: CIP:20.160.56.81; CTRY:NL; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:inpost-eu.tmcas.trendmicro.com; PTR:inpost-eu.tmcas.trendmicro.com; CAT:NONE; SFS:(13230028)(136003)(396003)(346002)(376002)(39850400004)(451199021)(5400799015)(46966006)(40470700004)(36840700001)(478600001)(1076003)(6506007)(36860700001)(54906003)(336012)(316002)(110136005)(26005)(6512007)(186003)(7416002)(44832011)(966005)(2906002)(70586007)(70206006)(4326008)(8936002)(6666004)(8676002)(82310400005)(41300700001)(5660300002)(6486002)(7636003)(7596003)(356005)(82740400003)(47076005)(40480700001)(83380400001)(86362001)(40460700003)(36756003)(2616005)(34070700002)(12100799027); DIR:OUT; SFP:1501; X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2023 18:45:02.7493 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 433dec24-6573-4da0-4968-08db3abcdc56 X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bebe97c3-6438-442e-ade3-ff17aa50e733; Ip=[20.160.56.81]; Helo=[inpost-eu.tmcas.trendmicro.com] X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT009.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB10109 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a binding for the SerDes module found on QorIQ processors. Each phy is a subnode of the top-level device, possibly supporting multiple lanes and protocols. This "thick" #phy-cells is used due to allow for better organization of parameters. Note that the particular parameters necessary to select a protocol-controller/lane combination vary across different SoCs, and even within different SerDes on the same SoC. The driver is designed to be able to completely reconfigure lanes at runtime. Generally, the phy consumer can select the appropriate protocol using set_mode. There are two PLLs, each of which can be used as the master clock for each lane. Each PLL has its own reference. For the moment they are required, because it simplifies the driver implementation. Absent reference clocks can be modeled by a fixed-clock with a rate of 0. Signed-off-by: Sean Anderson Reviewed-by: Rob Herring --- (no changes since v9) Changes in v9: - Add fsl,unused-lanes-reserved to allow for a gradual transition between firmware and Linux control of the SerDes - Change phy-type back to fsl,type, as I was getting the error '#phy-cells' is a dependency of 'phy-type' Changes in v7: - Use double quotes everywhere in yaml Changes in v6: - fsl,type -> phy-type Changes in v4: - Use subnodes to describe lane configuration, instead of describing PCCRs. This is the same style used by phy-cadence-sierra et al. Changes in v3: - Manually expand yaml references - Add mode configuration to device tree Changes in v2: - Rename to fsl,lynx-10g.yaml - Refer to the device in the documentation, rather than the binding - Move compatible first - Document phy cells in the description - Allow a value of 1 for phy-cells. This allows for compatibility with the similar (but according to Ioana Ciornei different enough) lynx-28g binding. - Remove minItems - Use list for clock-names - Fix example binding having too many cells in regs - Add #clock-cells. This will allow using assigned-clocks* to configure the PLLs. - Document the structure of the compatible strings .../devicetree/bindings/phy/fsl,lynx-10g.yaml | 248 ++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml diff --git a/Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml b/Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml new file mode 100644 index 000000000000..7c364f7de85c --- /dev/null +++ b/Documentation/devicetree/bindings/phy/fsl,lynx-10g.yaml @@ -0,0 +1,248 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/fsl,lynx-10g.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Lynx 10G SerDes + +maintainers: + - Sean Anderson + +description: | + These Lynx "SerDes" devices are found in NXP's QorIQ line of processors. The + SerDes provides up to eight lanes. Each lane may be configured individually, + or may be combined with adjacent lanes for a multi-lane protocol. The SerDes + supports a variety of protocols, including up to 10G Ethernet, PCIe, SATA, and + others. The specific protocols supported for each lane depend on the + particular SoC. + +properties: + compatible: + items: + - enum: + - fsl,ls1046a-serdes + - fsl,ls1088a-serdes + - const: fsl,lynx-10g + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + "#clock-cells": + const: 1 + description: | + The cell contains an ID as described in dt-bindings/clock/fsl,lynx-10g.h. + Note that when assigning a rate to a PLL, the PLL's rate is divided by + 1000 to avoid overflow. A rate of 5000000 corresponds to 5GHz. + + clocks: + maxItems: 2 + description: | + Clock for each PLL reference clock input. + + clock-names: + minItems: 2 + maxItems: 2 + items: + enum: + - ref0 + - ref1 + + fsl,unused-lanes-reserved: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Unused lanes are reserved for firmware use, and should not be disabled. + Normally, groups containing unused lanes may be reconfigured or disabled + to save power. However, when this property is present, unused lanes will + not be touched until they are used by another driver. This allows + migrating from firmware control of lanes to driver control. + + Lanes not present in any group will never be modified, regardless of the + presence of this property. + + reg: + maxItems: 1 + +patternProperties: + "^phy@": + type: object + + description: | + A contiguous group of lanes which will be configured together. Each group + corresponds to one phy device. Lanes not described by any group will be + left as-is. + + properties: + "#phy-cells": + const: 0 + + reg: + minItems: 1 + maxItems: 8 + description: + The lanes in the group. These must be listed in order. The first lane + will have the FIRST_LANE bit set in GCR0. The order of lanes also + determines the reset order (TRSTDIR). + + patternProperties: + "^(q?sgmii|xfi)": + type: object + + description: | + A protocol controller which may control the group of lanes. Each + controller is selected through the PCCRs. In addition to protocols + desired for use by the OS, protocols which may have been configured + by the bootloader must also be described. This ensures that only one + protocol controller is attached to a group of lanes at once. + + properties: + fsl,pccr: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The index of the PCCR which configures this protocol controller. + This is the same as the register name suffix. For example, PCCR8 + would use a value of 8 for an offset of 0x220 (0x200 + 4 * 8). + + fsl,index: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The index of the protocol controller. This corresponds to the + suffix in the documentation. For example, PEXa would be 0, PEXb + 1, etc. Generally, higher fields occupy lower bits. + + fsl,cfg: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + description: | + The configuration value to program into the protocol controller + field. + + fsl,type: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 8 # PHY_TYPE_SGMII + - 9 # PHY_TYPE_QSGMII + - 13 # PHY_TYPE_2500BASEX + - 14 # PHY_TYPE_10GBASER + description: | + The category of protocols supported by this controller. See + "dt-bindings/phy/phy.h" for the relevant definitions. Individual + protocols are selected by the phy consumer. The availability of + 1000BASE-KX and 10GBASE-KR depends on the SoC. + + - PHY_TYPE_SGMII: 1000BASE-X, SGMII, and 1000BASE-KX + - PHY_TYPE_2500BASEX: 2500BASE-X, 1000BASE-X, SGMII, and + 1000BASE-KX + - PHY_TYPE_QSGMII: QSGMII + - PHY_TYPE_10GBASER: 10GBASE-R and 10GBASE-KR + + required: + - fsl,pccr + - fsl,index + - fsl,cfg + - fsl,type + + additionalProperties: false + + required: + - "#phy-cells" + - reg + + additionalProperties: false + +required: + - "#address-cells" + - "#clock-cells" + - "#size-cells" + - compatible + - clocks + - clock-names + - reg + +additionalProperties: false + +examples: + - | + #include + + serdes1: serdes@1ea0000 { + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + compatible = "fsl,ls1046a-serdes", "fsl,lynx-10g"; + reg = <0x1ea0000 0x2000>; + clocks = <&clk_100mhz>, <&clk_156mhz>; + clock-names = "ref0", "ref1"; + + serdes1_0: phy@0 { + #phy-cells = <0>; + reg = <0>; + + /* SGMII.6 */ + sgmii-0 { + fsl,pccr = <0x8>; + fsl,index = <0>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + }; + + serdes1_1: phy@1 { + #phy-cells = <0>; + reg = <1>; + + /* SGMII.5 */ + sgmii-1 { + fsl,pccr = <0x8>; + fsl,index = <1>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + }; + + serdes1_2: phy@2 { + #phy-cells = <0>; + reg = <2>; + + /* SGMII.10 */ + sgmii-2 { + fsl,pccr = <0x8>; + fsl,index = <2>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + + /* XFI.10 */ + xfi-0 { + fsl,pccr = <0xb>; + fsl,index = <0>; + fsl,cfg = <0x2>; + fsl,type = ; + }; + }; + + serdes1_3: phy@3 { + #phy-cells = <0>; + reg = <3>; + + /* SGMII.9 */ + sgmii-3 { + fsl,pccr = <0x8>; + fsl,index = <3>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + + /* XFI.9 */ + xfi-1 { + fsl,pccr = <0xb>; + fsl,index = <1>; + fsl,cfg = <0x1>; + fsl,type = ; + }; + }; + }; +...