From patchwork Mon Sep 26 19:03:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1682821 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=u8j4N65o; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MbscH5qCfz1yqb for ; Tue, 27 Sep 2022 05:03:59 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbiIZTD6 (ORCPT ); Mon, 26 Sep 2022 15:03:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbiIZTDl (ORCPT ); Mon, 26 Sep 2022 15:03:41 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2042.outbound.protection.outlook.com [40.107.21.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304458E478; Mon, 26 Sep 2022 12:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ts8vKHLPxBHwDVID0SojiznEuvbjyYNLn44FJnhiipPsghdhvcFgvwjsrQbymP/0sYEjk85akpX7BwVjyZ64zZzNDVsRPD0zaSNw2MxnGdF4zVn3uLuAaS1A87HIoJO6sVWOP8AV4sldoxn5HGA9oHw/fH1S8iloxrP0FDJscBy1OF0Et1crB/nbGuCbYDnK5ymda3ov3lGMpPjd7Fk5r8HhmSXGsSWI1zio9Jthq6F2mqrTtE4oNSkSYh+hEcsBZP5S86j6OEuaNv05M5fmrOuS/zWVNaA3VAf+42/lU8jU0H/fyQfjnaqN8g6Xvv3FxBcc5fLY49/jrVKZ+LdqIA== 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=X4M7eczcS+e9um+t3nZNA/QXokzeVzTi2NBrV+ZwouM=; b=J8qFRGR0Tr6FDYfLF+Tuv07NglUJmYcGkjHDWWnCA/0fs15ndYeB731gAEh3Ve/xjNWhkb3QkajH1hs0eQTuz8JpAL0ei8nFQtBEEEHkBhSwufkhhgVw3OGD8x8STy06gWsZowebErFCHIN4SgHs3RPbR8XT4NeZuEvMGLWxrIkXmAXHSxgGk/PcVGVvymD1XGouCro5tY2l3p+37FsouKt0Oh0zZ9rT+W+R8S8lantqm+y1hYh63H15JAtZwcLcMJQXvpN/cHddY53PzJ0rkXmc6i5dme89m6/1/O/QdmTmLWKD4aj1vn0aKMZjxHQdVEcwQqxwsxYn3ihwmMDHeg== 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=X4M7eczcS+e9um+t3nZNA/QXokzeVzTi2NBrV+ZwouM=; b=u8j4N65ozrq7OyrZ25yTh38p5MGYys16xeMgLqKkoeCH9dlOYfY8281sE+MApHQ/Isl6s0sTP3d2kQktLibhf+DXvnzG5fL4sv7D513GfqhUwWNtpJ9bKeYJHPZIZn8e+K+fhTlxt504Ti+nTtcHv3t5dJ2kzLzROahfo2C9C32VcmZkEJB2PBySIArNUMB2he1GYbQWgX5AuEU9ydvXB72tUZLVSgXVzR1h/sG8Uca6c6SwfoZXpX7vht1Bclr9z8Wc18tFrIkEpUEXmCV/wdhScOLLJgHABS8AmZkViTStlt9fMEn4LDOE0QwTeiX7f6SgshgsV1MyE3OJd/zOrA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by PAWPR03MB9246.eurprd03.prod.outlook.com (2603:10a6:102:342::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 19:03:34 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d%6]) with mapi id 15.20.5654.014; Mon, 26 Sep 2022 19:03:34 +0000 From: Sean Anderson To: "David S . Miller" , Jakub Kicinski , Madalin Bucur , Camelia Alexandra Groza , netdev@vger.kernel.org Cc: Eric Dumazet , Paolo Abeni , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , "linuxppc-dev @ lists . ozlabs . org" , Sean Anderson , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH net-next v5 1/9] dt-bindings: net: Expand pcs-handle to an array Date: Mon, 26 Sep 2022 15:03:13 -0400 Message-Id: <20220926190322.2889342-2-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220926190322.2889342-1-sean.anderson@seco.com> References: <20220926190322.2889342-1-sean.anderson@seco.com> X-ClientProxiedBy: BL0PR1501CA0019.namprd15.prod.outlook.com (2603:10b6:207:17::32) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR03MB4972:EE_|PAWPR03MB9246:EE_ X-MS-Office365-Filtering-Correlation-Id: bad2c1a7-b22a-43c3-ccdd-08da9ff1cf3e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ttHLCdrlNmA0hrnOC/JTk+VgE+yq7nwc5MStaBLo37J7Mw2qvFAeMUBiZ3s5tQjfi5V+cqXBvGWo8Skk0S4LAHABnYnDoiIhEFtu/LvlcCUVt42K+xer8rF55MMsrcZmAOOPWCErLqVTFDc34XsfrScY0eA0557+VR0dSjsademhAO4aOLbBgIjz7XdKljbni9EmUZD58RASMntXxgUHDhb0qG1NXA46z5dRqJJ/kSoUr0j6Ef/r5e5I/tMScWVpfv1G5CXcdJ91UYbhkMfGDZ34aXZDEUfTyA9MgDkY5CK9n38JXG68ESLRK0Pk5M3i2BiIKMX5LdaLjMgHFl5Hf0az0kkWp+XSfAPSM4HtGwVa0UgPn8YlKxtGg8csifcumWGzLbsm/mo597/TTkKvVzT+6FPctjoE0zjf3Fc04OK4p0wezBg0QfVTCV6fbMf/9VwXGfw16ryfr5p3xc26i3dKPz2SltneXF04dCVyk2j0e7x2ICek73ITOy9IxBpxFsTQMryH7JQwuBiIbr6jBQkeWVxsMsPzE9zK5nsExfPwWp7VOZdh6ExvZ99Dlb2xE+0kMFfdnW2GlZxXoZf3tpgVwqOczl1Giritgi4YF9cNhI/uVdqDhuKiND7gU9+cJvGz9CnJBk1ZyNB6U4Cwb8nwbm9XMyl2PH9wHAIndT7l5FsQFcqILVqDnMR5WsTDMjFkjGHZZ0kE4tftdZlyoYsrmPBNQiYclB0qb1Uv6MkeGgwKKX+dxyevQD70Oatqbh3tcliDZIi1HBHkJPIbaaGjQS1HXGyjNm4T7dYZZKA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(396003)(136003)(376002)(39850400004)(346002)(451199015)(36756003)(86362001)(66946007)(66476007)(66556008)(6486002)(966005)(110136005)(54906003)(4326008)(316002)(478600001)(38350700002)(38100700002)(41300700001)(6666004)(8676002)(5660300002)(7416002)(44832011)(6512007)(26005)(2616005)(2906002)(1076003)(186003)(83380400001)(8936002)(6506007)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mmCJa41i/+n40OBX5h9opRzBKojbs3sJZd8+/1xK/Ci0WZzVk0v2i+dmcPOOdjdqRB2mT0zPtjwp9M7N/2P/SvoQGdBIxQvScmAaBgB9iZnyn2MsjPHRVr/KLlmbCt6OF88bnLif0+WpUmFOFdNNCu5/F6vLRNO4CBMy+iUHj3Zm/60TvVv0F51ccHNMQlVIY/9lAnPr6eam2qvbfAl1Ow8ceB48V68nH/zsszuPk8MBzY9PFgbSjSRvTem4XUI/hpCTsZnR4SwrAyQ4AxnRsbc7EHMdbE02GoGL2yE8ZQKtdYDsWFtoBwXRXLuHfpImXXlRn4XQ9ALg++tSneuC42y7lUFBsje3ZQEsQDhVsoTGdY8lgrHKGBQbbmP7gI5oThvbjiwesUI6QSCX2uZrc4zDgJLasVP0EGJuYzUwG9LYsmRLovsDadPTq7n8ikrGFM9JF/gsNHIV2OuLJGaTQerNwRL90RfR3i/Xg4odagKLnWJsYAxklA43ylQ724EbtQfzsCMM2H6t055sfUF1l+tXtb2l08Cp4oFnTBUm9x9tA8+ouUhcTRuUQZDFQrGEa2xPb3hnsfVIaq5YopBZeb4vsC/TvhPvScORD6N4909prQV5Qzc+++kmO+qncVkrOG/Q1J/pHcjO8/PElTAI7w9cxJO9J9xM9agsVaBOPJhkiGcvZ+Y1mexfs/E+yzHQx+QB2GanKQdi/KvrNVVlTg1Y/l4klmXiAS5e0RZ7uUBM66IzDdP03HhJJ3PwkZUphq4dOfo6m/wRUI7znk96VsMeiEm+8T1lZsrfmRczQGaXkT3xtyTFVhViEPFV7LOv2ghRhh0LKULaKNsb7M4sD+m7sRssxnZxxSEpjT1nDGK+jOcgXBf3sBpe13Btf53iEwrPwdQ+YAiKGXm5PjQV2FYYFJWGo5IofTM4/RXiunwckUsujxoDFvJkBALCfHGMK0oghhr4FXdlFyy8vBZYlNxY2uO1Txzd4biJ1QYaNV/ps+WJw1IiMML5BuwOrZzjr8+EwiVkhY79y+aRHxzliK3kSkDffKn4BaPBjVkOz2rRzcXyvGYlLfe7RGzH1INA5SQ4Mp+6pnboQ42Kz71c2AV+x0IKfgD5x/cVOcKaB2MaJ1kap0F+/2pmeSDrYZWcW07tEdPP5W4t8Mf8c5Q/iN89jDJxtH8PmHK0dbo4qD8RlP/1cqOZJMn3Hy0v9jLjiyK/QCwy80ZztzM3lppqNLMaNLIkzj5ZUDZBLcFNne5FWwNoevzLzS6MuU3EvJ5AEjKTiH8cXRxlvotaziKQfph2LdhX1D9UjGeKloaIJsJek+79zJhVkQ+NhSKE82GX9bIOlx7NNsKreog02hQHCaj/NiO1WtnAsONgum3KJ6Jojp5AtIFkfgOhLzFMMSM9Dt6AqeD505ummpjUwy34G3iC+4lCC7U18uv0dHFK/f3ryHk9p2T13SrQ6sYzjMJTTDJq+GV9fTTzPvN+sn3wHTvWC8SwoesEj+jud9CbhaJSjlI+7NWNvFyE4caCAU782KbWZSS3r19VbbZ2g43BEq5czZVIQ1t5P5fGjRNsxLL9pyEu7JOCwkq5dzGsukVN6155mj7jCpCz3dJCIQ/Fag== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: bad2c1a7-b22a-43c3-ccdd-08da9ff1cf3e X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 19:03:34.0218 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GNsBowhKug77TZGZu22oCWiUnfWteXc3raGzhaE72b5Sqrynz4cch3oJBYQhHvcA2HL4N21PbxPYlFBLbx4l8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB9246 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This allows multiple phandles to be specified for pcs-handle, such as when multiple PCSs are present for a single MAC. To differentiate between them, also add a pcs-handle-names property. Signed-off-by: Sean Anderson --- This was previously submitted as [1]. I expect to update this series more, so I have moved it here. Changes from that version include: - Add maxItems to existing bindings - Add a dependency from pcs-names to pcs-handle. [1] https://lore.kernel.org/netdev/20220711160519.741990-3-sean.anderson@seco.com/ (no changes since v4) Changes in v4: - Use pcs-handle-names instead of pcs-names, as discussed Changes in v3: - New .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 1 + .../devicetree/bindings/net/ethernet-controller.yaml | 10 +++++++++- .../devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml index 7ca9c19a157c..a53552ee1d0e 100644 --- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml @@ -74,6 +74,7 @@ properties: properties: pcs-handle: + maxItems: 1 description: phandle pointing to a PCS sub-node compatible with renesas,rzn1-miic.yaml# diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 4b3c590fcebf..5bb2ec2963cf 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -108,11 +108,16 @@ properties: $ref: "#/properties/phy-connection-type" pcs-handle: - $ref: /schemas/types.yaml#/definitions/phandle + $ref: /schemas/types.yaml#/definitions/phandle-array description: Specifies a reference to a node representing a PCS PHY device on a MDIO bus to link with an external PHY (phy-handle) if exists. + pcs-handle-names: + $ref: /schemas/types.yaml#/definitions/string-array + description: + The name of each PCS in pcs-handle. + phy-handle: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -216,6 +221,9 @@ properties: required: - speed +dependencies: + pcs-handle-names: [pcs-handle] + allOf: - if: properties: diff --git a/Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml b/Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml index 7f620a71a972..600240281e8c 100644 --- a/Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml +++ b/Documentation/devicetree/bindings/net/fsl,qoriq-mc-dpmac.yaml @@ -31,7 +31,7 @@ properties: phy-mode: true pcs-handle: - $ref: /schemas/types.yaml#/definitions/phandle + maxItems: 1 description: A reference to a node representing a PCS PHY device found on the internal MDIO bus. From patchwork Mon Sep 26 19:03:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1682824 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=XITKnWUR; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MbscM3jB3z1yq7 for ; Tue, 27 Sep 2022 05:04:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbiIZTEA (ORCPT ); Mon, 26 Sep 2022 15:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbiIZTDl (ORCPT ); Mon, 26 Sep 2022 15:03:41 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2042.outbound.protection.outlook.com [40.107.21.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FA6B901A8; Mon, 26 Sep 2022 12:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WEHLUNl/5/6pz/zRf12dQ6OcLEowFy3WcjEiLkJMAy5PY/Q51bUpcUJohibu3B6agrxniMoG6Hz1HQg94suFkF0Qnr/yBsTMoT1y1IqavVB6ixFKMKyqRgWHr46qiUesXNpU1ol14zPK2J/ng5/jK0/fwPK4LPDtYIFqdRLM/Iigd3gxi0d37WRPWftusXOQG7xSruSw/pXHTvAz4/yIAfOD2yKw2STcistZIGRGmEYnBs2yVcqdbJbCnrhYitwvoUU3UbWEp2duOHsU2i6MF/Zdk/vFE2q3QfoVt1g+58RqGOA539bjLmwglVfqLEwxcep7URAWdz7oHNkfP5M5Gw== 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=EC1HcOO+5Q0+Ynms79IRZ/THE/qErU77+UZf5Lw4X3k=; b=hs65oOnNYDF2MYEjDO3r0dUD1n2+gujJkfMesCRURdHyocXTGohv6iYavDKBOIPdfLWinGpVTxJIIYu8g0lkjcmwDWPwA4sAmE9YYRBbl5ZHk+Gc49Qe9pHpQq21woBCzLmtOJDxlUeizAlBuXwDRyxvy6BB1ViPEHn9OPtf33AjT2GByaiPhKlA9BXoh83YmWmQFCgLJVBKW3nKpMrzDc/xLj4ESQWInPsx2eekD6vt1N+XxRl2FvbbqMpztNHxOU8pIvUnIZY4NXoVbw2wivzSSY2AlDb18mIuLCQLM+teXjTECzVWgLmCFEscyg4Cr56eY/ihqDChozBUng+Bng== 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=EC1HcOO+5Q0+Ynms79IRZ/THE/qErU77+UZf5Lw4X3k=; b=XITKnWURe3faWh62TIC9z5HIyVYiyCAql9oG5JvjxyEO/DH+VOlNYCauwHNAwa4bYgxB4q1mSchkKAxdYPGFlhIuBqpL89WCMHCfeFgcQzK0QzkQCn/OdyMmpvf2SF8LXu5fKdXYQz9aG1HbGq3xrl9y0GXCve+T1l/jfEMsMxP2H7KHrwR2uUv3ZlGbRW4OzBR7lizapRFid9rYUnLZeUrXQ0GwXJm6FPYTcWPRyfQuWuVbMu3xkN+L1lAZuFz7OAxmrt6bxV+fulHI1HqpSuefEdRhEC6y3EfVk86LZGM9uYZKTLmYRoxeQlEp7NGS5zjIDfkvlUn3Ok8DuyXpSQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by PAWPR03MB9246.eurprd03.prod.outlook.com (2603:10a6:102:342::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 19:03:35 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d%6]) with mapi id 15.20.5654.014; Mon, 26 Sep 2022 19:03:35 +0000 From: Sean Anderson To: "David S . Miller" , Jakub Kicinski , Madalin Bucur , Camelia Alexandra Groza , netdev@vger.kernel.org Cc: Eric Dumazet , Paolo Abeni , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , "linuxppc-dev @ lists . ozlabs . org" , Sean Anderson , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH net-next v5 2/9] dt-bindings: net: Add Lynx PCS binding Date: Mon, 26 Sep 2022 15:03:14 -0400 Message-Id: <20220926190322.2889342-3-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220926190322.2889342-1-sean.anderson@seco.com> References: <20220926190322.2889342-1-sean.anderson@seco.com> X-ClientProxiedBy: BL0PR1501CA0019.namprd15.prod.outlook.com (2603:10b6:207:17::32) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR03MB4972:EE_|PAWPR03MB9246:EE_ X-MS-Office365-Filtering-Correlation-Id: 88bf9dde-7e35-4bfd-5ae1-08da9ff1d034 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iyOWB9g4uhKlewq9J45v4u4ed6n0LUjl/GGP/LFkC7f/hz66YdlslxGsmd00DVPzwnpRW0CG6cnUp2FImabZHPEiJaQsR6JFAoZhgTeqfXFjF4HPJ9T1fZ16bMAjO1xjj/KWoqL3faAsOJzgym+pcP1UG1aU6LXgVnbnDxtZZuSsdFSl3OPQYqd6hpWzyNAIdwpo3BSoQLLHLwgc0H1hBBHfh3O178l76jJGEHbHdLfEpCpPq4XTobt19o99eZBHPxR7n+FHfYc3lIwmia2kYMm6hChM9rp6a4qBnw5Up+jE+ISqxZGWQ1KZdyDO+wryrMLh4YAZNCgqscTlrJBDW0pUSnW/eFdyNVaULVwmjoiQeiDcDhihmFoN0A0GBXB+SptJWiraerlWGjcn/991s2Ge8NgzIktF6dverZjlpkaFoFBFE0nLa4MigfgVt93ahxIgR8Yq7IUTXR1RrAo2DVwBF0FTdMw1uNNeCiYJJaoioeS8fNhFLIAaVcHUa7s1Z6fShA32AeP/6lbx3VD6dcbSY9CbfEJS8BqyO85XrsmYRgcA23OEpt1mM3p4vAqWn+/uDoCaCQBHK9c4bry3JQ/kEyX4Bw5Ockf/IXbh8jQ+Gf7VvBHQZ1Hy6xIvs5xUepRQ9o3QbL8aTpFbklKUa93SR4cltqQwze1eFf1taStqBD0k+lA8xq9CqFYjPngr/ITWFCNhtpxcf14tEpg7TnLBBu8qWSgV1HQ7SWbBjEBkYZLFGaMv/D9d5+MgcWdMuFhpHjgt5ois9eoeVn2AvDDVB3lPYwfG8bBkB+2bc1U= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(396003)(136003)(376002)(39850400004)(346002)(451199015)(36756003)(86362001)(66946007)(66476007)(66556008)(6486002)(966005)(110136005)(54906003)(4326008)(316002)(478600001)(38350700002)(38100700002)(41300700001)(6666004)(8676002)(5660300002)(7416002)(44832011)(6512007)(26005)(2616005)(2906002)(1076003)(186003)(83380400001)(8936002)(6506007)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 88ztv/xSE9lLKhoRiLvcZ3cdkHsQ9cK0pLKRFZ9JXSgbgDfHIMTUS6FNGXWrq1PVzeyCN4Umpyb9TvbBjJ5hipAfU4AXH8pvwALntNjuYPXvtIUaFs38ZMEfpQ2vEBrzmrrDHGkYHFHMeTsAPxpNg3c7M2eCeoMLAXBe4ifkI3GlCYgZ72nRvSqHOU5YW4ipibFOf0hTtYVrwWhN3SvX48HG+k4Na+VjO0NKde/vJHStS5axa/6FvNMi3O4jRapWbQSWCNVJGo8QTKqh9nYL/+XfnujjRkV4Nl6a9uIy9Ex3LbO0895jHMXz0pujB5tryUydZMC4+uAxcMz/ZtAHCkX+fs6UH9ifNC/i5s9UgS6IFgXaeuvwwhik8sPBH3093tjtQxrFiD1IVxoqE6TlnnaH4XgBxzCvNCqYLCGTkVlBv4+iUQ7SatLqlVf6tDlGwmYSo4I5M1H+s6EDg4hclhyYbiO54X2IIh0UFBrRN7Grx5OeOAJZRWnJi6Ze8AGGfwehWVx4FKx5MOmmcf9KqF0HMJXpdIWR8MIetcAxhr1y9lm9w7GaFFMVhE3zJ1/6NdYplnETPyreZ1bx80XWZKeAFlSm995GNmMq78K+BJf+YfkAvUP+UhQO0xelx38qxlDOk8zQDkt1WFtY4vc3LVE81yP5EeIWlZUbVLqyEHWgDV391fBGlyET8gh2AZmTXgTi6aoYHLJSZIoNZ5wcCTBoIwOrMdqOaiNEEfCOcqp5XWN9BqvSwNYnzE2CMtfsAn7TQTfT5fakRi0e7HcC8xVJ8eMg3jh6LTTWj+2xKYDFi41QghPkZyTffBoMC79aRJ5IfqyXvAKJNSTbumL3DpQzrbaSnhEhWQjsGDmK5a8iZFO1aPaBJRK9dPrkvaXRDqFEvdMQ1HoRcpnJdKXHeqaHhe/sDyNsbivknzkT1RQ60Dkyk9IcxElSR8DazdP6KjZmksLYTCC6TeTjLkFOWgqi6UJjYv3x0DdyLeVgJIyEk0kEL90ugyUt4WwYAxp37nCxV/ss33VNb6YhzAO2tDBoEmFgXHSYxbSzy+C1ZBbP5ttg7G7Any6YKprZuUDRGUbvTw+A9dFxguBlJrXuZiByBBshgyhjA9l7drchda/4rAD91EqQ5sIssprDA+1AQnF781qpQayP7zrgE5zMzlKPdoHik53X04+AaTOOMpbXWCapFfMh0alhb1rN3p38cNng2HAOR18RnSqUHRWcCWBQ/h1z/K6VTW7Wx79MOBm+ALIhcMSXxYA7EnfJprNUI8obavheyd04SxIfoGmTXRjsw+Im8WyTp74iZ17BORKh8feXTg6IBIaRoIl5u0xTmedwauZ+nmex5NW6QSmcoFeD0oLvFnp+5g/ALT4Dto8yoVQg+S7+cgOK2xx5chlC97M71msuDz0JzpeGpWh9jBTVo2KCnepy5qft0fgtARpQlmCrM0TIgBJSMh2E/xoaeqY4644PaEkDloWF63CVQkS6UvFNiuuNm5qH6FSnHGijMYHSyw0fgU0mSVkCb/er2GF9LIiDM54hmtE9NM0g8pK2bNRjJPBGG3XO3IepHlz1Z73g0EoEy/DqZy4pGiIlhtiOsi3FkTmFiyZnxSH3zg== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88bf9dde-7e35-4bfd-5ae1-08da9ff1d034 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 19:03:35.7560 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 39VKVqa7IPEHsZ+5CTQgWLw4oP8LZUp/2hSldO7HDQBT2eCcYCYvgpLI4QpsASqlRNj/MDqtIjgh/iAXJ7Fx5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB9246 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This binding is fairly bare-bones for now, since the Lynx driver doesn't parse any properties (or match based on the compatible). We just need it in order to prevent the PCS nodes from having phy devices attached to them. This is not really a problem, but it is a bit inefficient. This binding is really for three separate PCSs (SGMII, QSGMII, and XFI). However, the driver treats all of them the same. This works because the SGMII and XFI devices typically use the same address, and the SerDes driver (or RCW) muxes between them. The QSGMII PCSs have the same register layout as the SGMII PCSs. To do things properly, we'd probably do something like ethernet-pcs@0 { #pcs-cells = <1>; compatible = "fsl,lynx-pcs"; reg = <0>, <1>, <2>, <3>; }; but that would add complexity, and we can describe the hardware just fine using separate PCSs for now. Signed-off-by: Sean Anderson Reviewed-by: Rob Herring --- Changes in v5: - New .../bindings/net/pcs/fsl,lynx-pcs.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/pcs/fsl,lynx-pcs.yaml diff --git a/Documentation/devicetree/bindings/net/pcs/fsl,lynx-pcs.yaml b/Documentation/devicetree/bindings/net/pcs/fsl,lynx-pcs.yaml new file mode 100644 index 000000000000..fbedf696c555 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pcs/fsl,lynx-pcs.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pcs/fsl,lynx-pcs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Lynx PCS + +maintainers: + - Ioana Ciornei + +description: | + NXP Lynx 10G and 28G SerDes have Ethernet PCS devices which can be used as + protocol controllers. They are accessible over the Ethernet interface's MDIO + bus. + +properties: + compatible: + const: fsl,lynx-pcs + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + + qsgmii_pcs1: ethernet-pcs@1 { + compatible = "fsl,lynx-pcs"; + reg = <1>; + }; + }; From patchwork Mon Sep 26 19:03:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1682825 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=cysxedJD; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MbscM6rV8z1yqM for ; Tue, 27 Sep 2022 05:04:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbiIZTEC (ORCPT ); Mon, 26 Sep 2022 15:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbiIZTDm (ORCPT ); Mon, 26 Sep 2022 15:03:42 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2042.outbound.protection.outlook.com [40.107.21.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7DEF915C2; Mon, 26 Sep 2022 12:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H1gGP2T4TDhyU7ECNO2UZoxxIUNy46/VmyTzepFwFFmEZdItGZe4/zvkA+5OB9+LOkiuBk6O9B9CL3dOkMbBPZ0wIE15VTNR+nrCSp5D2ZDOZU4coxOHOTyEvs5kstpQhKvKaJ1Sp5tnk9OwMqFJ0OKMLMxMC6RblnLUQUQI/g3l5nO/yYDDaWJi7OSJsUlgNuBih9pl9GhbYMgq8NjhYbmlyIwG8wrcof1zkdEQloK+rmvuTTFc4U5yYwt6yc4rP5+WNaMNFF6/cDtUsiLx7gwU1WTBUgpePKbxOql6W80p1Q1h/3xXg0Kg6YMLs32mjaMNHExmjA5DQjwom1El7Q== 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=tjABrl/nqtklpdfa6OE0UzmntYkgGRDZDSkLSpYm2PA=; b=M2VeJnwnP8ntjPohVS4S3E2IvRb1RgN2Shb3P6zB6BSvJKRNyCziDIGSUUcOjfca5f9lGnRAFRlwINmWL6Tl4+7pIusy4utK9THFRBS9eA1rkG16WnAPGwwUjx/kSmvUQNO0OszrfGixNfhK1LcHjXPMUwJLQbz6sS1hoTEHmWm4t12D9cktzInaSLd/VS/1N43p5y5hPvrS3OPgoGo8n63mYkZtZwnYxjg33m19hVe2OrGb+oipZKeMZmKTqiF1xAPc2j4Gv7MmXWR26B8Hgd/Q2ktDviudKDuRS25I3ogRq/LvsWC8q8qeltN07/dT1dEFF4brIfMbrdYyPvJzmQ== 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=tjABrl/nqtklpdfa6OE0UzmntYkgGRDZDSkLSpYm2PA=; b=cysxedJDmU2D/NyJ3ak9xuPpkbUqAEzcGBhmuIYF2gl6Qwtv5sY5u9hO0E/DdwQfD3DnhCi+TaSBhwaR4xy4AzFNanbkd7846bUl3WQ7uXnpsULKCrLKkcN4Q2fGxKvmHgJ7oo3pd+8FOuhK9HjYiQjmtMuX94zi6fvMMXuhCAsFse4vAVO8wqr/0sIigG6bQBWcYpjSZi07jKBml3BdjajcXJplHna82g4wK0ieFdZxoqjt8/nA7PXyCVvDD9stlrKn9cEEaTebp8WRB6bbqGkFTPXx9CbgP0lOuXU+R4VdzLbEQbP4EWuiyKmiLLDhK8IhxungpgGpoYvNMk/EbA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by PAWPR03MB9246.eurprd03.prod.outlook.com (2603:10a6:102:342::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 19:03:37 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::204a:de22:b651:f86d%6]) with mapi id 15.20.5654.014; Mon, 26 Sep 2022 19:03:37 +0000 From: Sean Anderson To: "David S . Miller" , Jakub Kicinski , Madalin Bucur , Camelia Alexandra Groza , netdev@vger.kernel.org Cc: Eric Dumazet , Paolo Abeni , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , "linuxppc-dev @ lists . ozlabs . org" , Sean Anderson , Rob Herring , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH net-next v5 3/9] dt-bindings: net: fman: Add additional interface properties Date: Mon, 26 Sep 2022 15:03:15 -0400 Message-Id: <20220926190322.2889342-4-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220926190322.2889342-1-sean.anderson@seco.com> References: <20220926190322.2889342-1-sean.anderson@seco.com> X-ClientProxiedBy: BL0PR1501CA0019.namprd15.prod.outlook.com (2603:10b6:207:17::32) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR03MB4972:EE_|PAWPR03MB9246:EE_ X-MS-Office365-Filtering-Correlation-Id: e25bbad9-9d47-4ca5-e6ef-08da9ff1d148 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ISUvsdvg3toldEf6Wacdu4TqbyB7iv6SrrqJhpdSlwHT4pUFoaoCMNoelpaz35erck4BCVepi/akJaIMK++nGs1WMryny3aXiqJwg3GGt+K7Hskh1n73Rjtfw+DL4YnYZ7EChak66cuKh7YR3Ysp+LIQqSq5tFXeMDKy/Le4PmWIpPSBxFosW8nQJCHE5PQnxC0rsHRfSSTnlU+CfK4E7yjGU4qB866dMkfsCNtr1gIFLWkVUeOTEoVYauGOCApFe3JEukpwLrj+VN4k8pIdqM+KWz5PJAvubA781mplBCUyG5aApnl2kAIV6RqvH7ddF7nW4js2neJFmrb2Iov3bRtx0cLP8qM01EnwyfJWSSgGgt5QXqDiK/pbQqEv29yPCKYhc/ZtAkP9QlOdyFiFff0BemChDEFkubv+TmWuKIcPzJAnRUdFpfVHYW1CIrENgT4IE9DgMUcEEDJ4pKRAC0QcvHjFmIhjSkhTOfx8rS5GzDW44/+Tl9qdjGwhUYNpVE6dA3URrncXy8jshg2BLX9ACPLCFARUiAGtMebl1eSYqEUJZBQ+nPipWVHleu1gt3HvpnwfBDmDG2DUpVAYSwkssrFsZl3Ij3OjTOPdzjQA8BxP1+wdPjEJUUlqKtlgB0OTWPScn3c1fwv++UBltwooCqL9kwJUOe4weICIBxZoWGJ4Ozh1QlW7g6g/3ShxFEEw9v7TDNPBPhlmysAiQQWz5JO18jU1RJ9MayDHUUa2LFwlB+GR8Qhl8e9omiMEuJhegCdgdPOJ5RWl2KIE/A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(396003)(136003)(376002)(39850400004)(346002)(451199015)(36756003)(86362001)(66946007)(66476007)(66556008)(6486002)(110136005)(54906003)(4326008)(316002)(478600001)(38350700002)(38100700002)(41300700001)(6666004)(8676002)(5660300002)(7416002)(44832011)(6512007)(26005)(2616005)(2906002)(1076003)(186003)(83380400001)(8936002)(6506007)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: erO9tN1G9lehaKifhNxmXUnCOOBT8CXdciUuQHJPnKOz+2B1pa4zaZWJjHXb2Q13wHLny/jbwu4Qk8OO508tl7J3ef9PM12nzupjv7M6yAtDbQQHUIdAY/9eSHwOGr2Kh8nJ44/SKmp1cAG9M00qQx3UzhUBgQ5NgqI/7oeJRvKjYKzjCBolsjmv3NPey3d6aZWoOxFsyWVDredzI46qgh3COhop10sp0qmZBJWkH4QMsU+AmJR6+y+CjnKhEOlb8Oo57djQTdUx6wde7EFonwIOczpiw68mWAaXCMKBed6S0fW6xvG7pfycw2P7SglrfG6q4dxnqSSl4PJ4dS+G663Tmwp0n+eJo5cFDhtF1062JFXDRW38x0D2Jb89MVMfngJtNdtd8DdncJUXFLTLFU+Up9/FUxfmAU8/BI+jLqWUHn30ZZldn7PcLeSEJzwk435NICY0EpqajDTUom1AJEpewv8nA4+SCEc6akbX9a4ACWzPYnuMCTqyomaTbbz+VisMe18VOK0PO5ghysr1PVEuBbBLbp+u4UBPwMjqmwaXfNqqKh2apnt+3symIBVqLpQxAh0beFIV8J1vomzwlqz1xyIaiwfOs4wDb8CdLg827sy+2d+59kV8w9eNi2/lBNvB9CEJ/UQwRGF4btxLAW97v1mcxQPFGUOYiSYuBfHWuskrh+Ydsp3eTsrNH3IIJ8CqisY+qQaVM7EJGYBmTb+0WuTwMncWtwpg6LPKie+Z7Qdf0AYF93O4o5Ecihsyymzqwthc+m7nrLBPRvhR6gIKNijyxFwklo+AFXT0Dy156G9T3cQaLP8vWjYHB6g2XQMS7L2O14QjLHmwlpru7DylfTZEkh4RPwGQ5M5XgjSKraGBTlnyfhWpsL8zqcKzsUULT4KNrXS5K9mlNXsnBkpDiZLvq2ZEeSjiQlDx7772/GNJsodUVrF7cYoWQb98VywjQh3H6IpbErlyKVMrPFrq912sBzq+wguVUPB4FXgYryuZJueDWWQmeaZ82kK8u/X+JAVlhQhvNOL0crsBTh8z0mAMTiKuvZ2RryEVDOXmRZUKqQ1qPwuPd28uPUkIuyuwH5dd7MF7lUoCJvCUdLYRcT7gJRNN3/0BYQWJpB2CjEpbNfbMenUbYKRnqocMhbCj1UvAEWB6CwrGAz2yNCZyjPnz9wMN9KoCtlOGbjUPssBwKh3TS7FoVWo4ejKUZHLwzSn05PVgX49ScjTl3cpYIqjfKBr0EFomeNstcmgIqoR1l4wB5JH7ncIRyKSuburM4588y4PZDX/5xPvrevr60AkvgvDl5j1LGnI6E6U2GKCxOgDCc5fhqlQBJUILnEfiX+CPM6n98kmVchVjGOH/2g5houa0alX45YubQH3lYl3bKtY7ErksjxPUHipBo76uCvOp1R/C8Ynto8I0JaR0AfI0dHe0Cnhid0uYjPu33HhcGn8/coIkpd3lVfccTVr75s/02+Cwknvt4Ko9+I9Ew6h7ILjN42VOW28VwPOIYx9SjUR0ubfQI4A0u7vamwfDMmEcRnn33QGd3x1jw8V41dZ8qD1fuuAdT9dHDSwJzO4G3ubSjYWd4bhzNVoq+e7a++a+bsciyFJaL86vOg== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: e25bbad9-9d47-4ca5-e6ef-08da9ff1d148 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 19:03:37.5059 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Nn1s6En8qzhRk64oNnXoSLaj/yARp7bIpOri86mL/u4r0Q4nH7siIHPMCV18LjTqIb0IiLajAcZBk2DOxkhu+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB9246 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org At the moment, mEMACs are configured almost completely based on the phy-connection-type. That is, if the phy interface is RGMII, it assumed that RGMII is supported. For some interfaces, it is assumed that the RCW/bootloader has set up the SerDes properly. This is generally OK, but restricts runtime reconfiguration. The actual link state is never reported. To address these shortcomings, the driver will need additional information. First, it needs to know how to access the PCS/PMAs (in order to configure them and get the link status). The SGMII PCS/PMA is the only currently-described PCS/PMA. Add the XFI and QSGMII PCS/PMAs as well. The XFI (and 10GBASE-KR) PCS/PMA is a c45 "phy" which sits on the same MDIO bus as SGMII PCS/PMA. By default they will have conflicting addresses, but they are also not enabled at the same time by default. Therefore, we can let the XFI PCS/PMA be the default when phy-connection-type is xgmii. This will allow for backwards-compatibility. QSGMII, however, cannot work with the current binding. This is because the QSGMII PCS/PMAs are only present on one MAC's MDIO bus. At the moment this is worked around by having every MAC write to the PCS/PMA addresses (without checking if they are present). This only works if each MAC has the same configuration, and only if we don't need to know the status. Because the QSGMII PCS/PMA will typically be located on a different MDIO bus than the MAC's SGMII PCS/PMA, there is no fallback for the QSGMII PCS/PMA. Signed-off-by: Sean Anderson Reviewed-by: Rob Herring --- (no changes since v3) Changes in v3: - Add vendor prefix 'fsl,' to rgmii and mii properties. - Set maxItems for pcs-names - Remove phy-* properties from example because dt-schema complains and I can't be bothered to figure out how to make it work. - Add pcs-handle as a preferred version of pcsphy-handle - Deprecate pcsphy-handle - Remove mii/rmii properties Changes in v2: - Better document how we select which PCS to use in the default case .../bindings/net/fsl,fman-dtsec.yaml | 53 ++++++++++++++----- .../devicetree/bindings/net/fsl-fman.txt | 5 +- 2 files changed, 43 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/net/fsl,fman-dtsec.yaml b/Documentation/devicetree/bindings/net/fsl,fman-dtsec.yaml index 3a35ac1c260d..c80c880a9dab 100644 --- a/Documentation/devicetree/bindings/net/fsl,fman-dtsec.yaml +++ b/Documentation/devicetree/bindings/net/fsl,fman-dtsec.yaml @@ -85,9 +85,39 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: A reference to the IEEE1588 timer + phys: + description: A reference to the SerDes lane(s) + maxItems: 1 + + phy-names: + items: + - const: serdes + pcsphy-handle: - $ref: /schemas/types.yaml#/definitions/phandle - description: A reference to the PCS (typically found on the SerDes) + $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 3 + deprecated: true + description: See pcs-handle. + + pcs-handle: + minItems: 1 + maxItems: 3 + description: | + A reference to the various PCSs (typically found on the SerDes). If + pcs-handle-names is absent, and phy-connection-type is "xgmii", then the first + reference will be assumed to be for "xfi". Otherwise, if pcs-handle-names is + absent, then the first reference will be assumed to be for "sgmii". + + pcs-handle-names: + minItems: 1 + maxItems: 3 + items: + enum: + - sgmii + - qsgmii + - xfi + description: The type of each PCS in pcsphy-handle. tbi-handle: $ref: /schemas/types.yaml#/definitions/phandle @@ -100,6 +130,10 @@ required: - fsl,fman-ports - ptp-timer +dependencies: + pcs-handle-names: + - pcs-handle + allOf: - $ref: ethernet-controller.yaml# - if: @@ -110,14 +144,6 @@ allOf: then: required: - tbi-handle - - if: - properties: - compatible: - contains: - const: fsl,fman-memac - then: - required: - - pcsphy-handle unevaluatedProperties: false @@ -138,8 +164,9 @@ examples: reg = <0xe8000 0x1000>; fsl,fman-ports = <&fman0_rx_0x0c &fman0_tx_0x2c>; ptp-timer = <&ptp_timer0>; - pcsphy-handle = <&pcsphy4>; - phy-handle = <&sgmii_phy1>; - phy-connection-type = "sgmii"; + pcs-handle = <&pcsphy4>, <&qsgmiib_pcs1>; + pcs-handle-names = "sgmii", "qsgmii"; + phys = <&serdes1 1>; + phy-names = "serdes"; }; ... diff --git a/Documentation/devicetree/bindings/net/fsl-fman.txt b/Documentation/devicetree/bindings/net/fsl-fman.txt index b9055335db3b..bda4b41af074 100644 --- a/Documentation/devicetree/bindings/net/fsl-fman.txt +++ b/Documentation/devicetree/bindings/net/fsl-fman.txt @@ -320,8 +320,9 @@ For internal PHY device on internal mdio bus, a PHY node should be created. See the definition of the PHY node in booting-without-of.txt for an example of how to define a PHY (Internal PHY has no interrupt line). - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY. -- For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY, - PCS PHY addr must be '0'. +- For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY. + The PCS PHY address should correspond to the value of the appropriate + MDEV_PORT. EXAMPLE