Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1192133rdb; Fri, 1 Dec 2023 09:12:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IH69mSgRoDLn9OEok4PebvnBsu8f2qsnv1kbYCn8cXW1jbohEbAxaIGt9979NqxwvVK9QXI X-Received: by 2002:a05:6a00:17a1:b0:6cd:d6eb:2f19 with SMTP id s33-20020a056a0017a100b006cdd6eb2f19mr10470468pfg.9.1701450732957; Fri, 01 Dec 2023 09:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701450732; cv=none; d=google.com; s=arc-20160816; b=nYWRyQWS28yBkvfROPLj0DRwwduhQCKdy8d61tyScpFGnMe6lLoAEcYZz7Shk9FbaF hgxl0IsM2HAaKj2S2fuWpLHOdo7Uv45tjsfB2DATMe+wHDs2+HuHU0oEjDjBiXYlMcl6 smwQ0xF6nnb4fnSVvj/biLloxh3czpfY7DzfBOiqfTU9qfW8iAlIIkHNseMiJHUq3JaV 125RTsgLbD4P82QARQ1T5IfLmDnNBOjoB0MN0dYF7+GET9U9Efsn2V4KGKFUOdlyZdDr Hzhsxtq2bvGiZ9gxzcLo5l6elpBUa7HMRe9PJBmu5bmb7l3JBC2stIywQ+IcijbearoZ 5OMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=cf3RboC7v/50jqCoPEsittoiIyTcKQhGJ+tHg/wFrhY=; fh=/uDJtwnpikhDHchW+BU5DaWKtgJ2QqyhTe++6ujbTY0=; b=c2f4qXJXodrIak8O83A8jD8KjJOuaOkQ9XRtD+PU0LmnmKLLzoubV/dpwbd8YjaSxH mRkY+Sh0+pGvnfcOlO3WfQFoazTIHRPHifU2D5x5+IwlPCPVI96nHT0JUtD/lNjhb6dv h+tV2PyPviDM0o6c22DONvScmWzVAcB/zoKnj7CEMZ0cKcZ0ip/0DN+1OP+tJqeTlSYd RGOG5L4O101DhXy5V9pGrYieci5cVoec0Smx/2Dca8v+Aya/Y6CFV5xoiNkWomrnni9I C3Wql333OMkd7Z7guy6MZrt4M7cEyIdnTFdB1LAVMACZwgHcdowu4rq/AEsHBAWrUDiA nziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n4Vi5Tt5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bj28-20020a056a02019c00b005c604ef1835si3855937pgb.617.2023.12.01.09.11.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 09:12:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n4Vi5Tt5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4032181133BA; Fri, 1 Dec 2023 09:11:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378763AbjLARLd (ORCPT + 99 others); Fri, 1 Dec 2023 12:11:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbjLARLb (ORCPT ); Fri, 1 Dec 2023 12:11:31 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89764C1; Fri, 1 Dec 2023 09:11:37 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id C96FF24000A; Fri, 1 Dec 2023 17:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701450696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cf3RboC7v/50jqCoPEsittoiIyTcKQhGJ+tHg/wFrhY=; b=n4Vi5Tt5sKveHLBat483FVqcza4IsZpHTrtcSEZINAubs6cAcbVayEPxmGIEB9QfRADqr5 XcE2LrhHThb28R7H2xyCe2x94jrAfoPpPH70qnTGakXJEMebTLLkWXpyTlmKHGjX7FZrF5 xJK/NILhT7XoHMBC2uxzfw1ysxRKKznhYnNPWCzhNjDAoshb/yOD+ZgRmDVowaBX3k9p4d +0/FeHYPDjxn9Gll/OpGpOE5GJHFSQCaTTUvw5twG43ZmcGxDV2qkVMrEXLrUOiCDPIz5W RrQeIFfa2dkkalFhClmW5imt1E2ZT5OJkKN2YVXPvYUg2CNOB7CvI2nQGT/RxQ== From: Kory Maincent Subject: [PATCH net-next v2 0/8] net: Add support for Power over Ethernet (PoE) Date: Fri, 01 Dec 2023 18:10:22 +0100 Message-Id: <20231201-feature_poe-v2-0-56d8cac607fa@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAH4TamUC/1WNywrCMBBFf6XM2kgeg1pX/Q8p0taJHdCkJDFUS v/dkJ3Lw+Geu0GkwBTh2mwQKHNk7wroQwPTPLgnCX4UBi21UVKjsDSkT6D74kko02Ir6WxQGii LJZDltdZu4CgJR2uCvpiZY/LhW2+yqr4WlTr9FbMSUoyEF4k4Wo1tN3qfXuyOk39Dv+/7D4mr0 SuyAAAA To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 01 Dec 2023 09:11:50 -0800 (PST) This patch series aims at adding support for PoE (Power over Ethernet), based on the already existing support for PoDL (Power over Data Line) implementation. In addition, it adds support for one specific PoE controller, the Microchip PD692x0. The PD692x0 driver is based on the patch merged in an immutable branch from Jakub repo. It is Tagged at: git://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux.git firmware_loader-add-upload-error The patch is already merged in net-next. In detail: - Patch 1 to 6 prepare net to support PoE devices. - Patch 7 and 8 add PD692x0 PoE PSE controller driver and its binding. Changes in v2: - Extract "firmware_loader: Expand Firmware upload error codes patches" to send it alone and get it merge in an immutable branch. - Add "c33" prefix for PoE variables and enums. - Enhance few comments. - Add PSE Documentation. - Make several changes in pd692x0 driver, mainly for readibility. - Link to v1: https://lore.kernel.org/r/20231116-feature_poe-v1-0-be48044bf249@bootlin.com Signed-off-by: Kory Maincent --- Kory Maincent (8): net: pse-pd: Rectify and adapt the naming of admin_cotrol member of struct pse_control_config ethtool: Expand Ethernet Power Equipment with c33 (PoE) alongside PoDL net: pse-pd: Introduce PSE types enumeration net: ethtool: pse-pd: Expand pse commands with the PSE PoE interface netlink: specs: Modify pse attribute prefix netlink: specs: Expand the pse netlink command with PoE interface dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller net: pse-pd: Add PD692x0 PSE controller driver .../bindings/net/pse-pd/microchip,pd692x0.yaml | 77 ++ Documentation/netlink/specs/ethtool.yaml | 33 +- Documentation/networking/ethtool-netlink.rst | 20 + Documentation/networking/pse-pd/introduction.rst | 73 ++ MAINTAINERS | 7 + drivers/net/pse-pd/Kconfig | 11 + drivers/net/pse-pd/Makefile | 1 + drivers/net/pse-pd/pd692x0.c | 1025 ++++++++++++++++++++ drivers/net/pse-pd/pse_core.c | 9 + drivers/net/pse-pd/pse_regulator.c | 9 +- include/linux/pse-pd/pse.h | 35 +- include/uapi/linux/ethtool.h | 43 + include/uapi/linux/ethtool_netlink.h | 3 + net/ethtool/pse-pd.c | 64 +- tools/net/ynl/generated/ethtool-user.c | 54 +- tools/net/ynl/generated/ethtool-user.h | 81 +- 16 files changed, 1481 insertions(+), 64 deletions(-) --- base-commit: 98137c429a4854583210707a82114b4f5c171c5e change-id: 20231024-feature_poe-139490e73403 Best regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com