Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp670141lqb; Wed, 17 Apr 2024 07:41:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJ4rT8VWViP7LTVd3wtDceiVP6Qf+wGbnKSFatlck1IhX4TEXCV3yQbZsfqQKk8YGfjR/GzrQLI2f15TJv1Hc8OCihBFTOzXcwCS2X0Q== X-Google-Smtp-Source: AGHT+IFoZMrKJas8tp29tn1vV5X0pOnap2wH9RncMETXsqFleCMYKh2KVKqEzi9J/AquNai89+PG X-Received: by 2002:a05:6512:31cc:b0:518:c610:754f with SMTP id j12-20020a05651231cc00b00518c610754fmr10626797lfe.19.1713364871717; Wed, 17 Apr 2024 07:41:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713364871; cv=pass; d=google.com; s=arc-20160816; b=nm3OmDpvYAECWYVQioGP73lKoVyJu+NqcnOlH2b98wl4ABia8xOuPYHbZtfX5Yev/m vrJhvgyoe72Dku/OC2w9ImdhhGhAU3AWwokpZ132qoNBPD8QbDcqWoRKaRVlbxXTR1il nKAtcLWZuwaNbs7Xce646S//S6Cw88h4i58uCW3/+9srkN4Bsg0ocxyHBlPYIva8Q4YZ LaPDVHOPwTOvcD/z9rh1xm455/xmEntqRvY7/akytuPoICZyanFUXrDqJBZozQyspPl5 9AxXb7ir5dr++3+KlyAz5CTxr4Jfk84WZFVqdgIC6zJRcvJrn1eDUC2KgjJLzSvKNpO4 WoSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=X+YKNUMaqyQFYcQmtzuWIvO6540fSDFP2uwDUeOGZe4=; fh=57ylmEJf4L+ab5JW9VDoPKBjQbUSU1WR6XAwF32mgs8=; b=usOj5E9hSfaP0dO4mPQoMJYHWaLZpSJ6y0HKrv4g51pAz/U1CxUCukVjXZeEnSV+S7 EI2ChRWLT5l8bPV9h9fo5DYnFHI66R8Zay4yp1JQBRraJqUyoy0i4InDULr5zgqx3mmM 1AV6YJ832Jg+0eIet644KLEFms/WhuOO6rF+xm9GzFsPH0C//kofIpcYSuKlFDIf9Sie 2v6zTbCqPZ8ZHb5GhWG1txgNcX/00DRHkVtuICmaFS8j6EUO9FXwUXVeudRJ3pyyl+Cz mocEqkkrbAF+tq18LzAT9LDmDK3SMg6Mp9HXD9D2ayazHSboCtT9MK1r2QLF1hjXeGDb e3Tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KcENXQdd; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-148688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m19-20020a509313000000b0056e04418a90si6572239eda.57.2024.04.17.07.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:41:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KcENXQdd; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-148688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6BB661F21001 for ; Wed, 17 Apr 2024 14:41:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B19EE1420D1; Wed, 17 Apr 2024 14:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="KcENXQdd" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4EEC22334; Wed, 17 Apr 2024 14:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713364847; cv=none; b=Wrg0pPvTxLkLDWmMIvO0JKld/9JZ3LLpRBfcc+NnK2i8NDkfU8F3A1AbtAX6ur1QLL9krkmAyXGI2J3du/WFBBynkvpy1BHlppK9oxkuZyep5BP1plXtVXNcmKKzS2ck+elnr+6Iz7U6eZNiz0uzFJLGOLy1dlc5KR+A993XMDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713364847; c=relaxed/simple; bh=l6RblOlXl3Z4QxQayRZcnk20p3UpL2HUX+J+Gz0pkp8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=nME87NdWriqYtolyyO8M3tngpSzA4aRDcbSj+wOwIFMEsTTq3ONOx7CXpdejxaKZAxjFIvLucXrvYFRuq3JoDFzbpToKauhtzZnNedeypS25FyHzxKHRuiHGN0eDwE6l24bIVbnyGbJ0aG6hhMPay8PBncolXmNo7Zo0GgI765I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=KcENXQdd; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id BF6CD1BF21B; Wed, 17 Apr 2024 14:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713364842; 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=X+YKNUMaqyQFYcQmtzuWIvO6540fSDFP2uwDUeOGZe4=; b=KcENXQddMF7F7+SheJ7VFPdhq5zMyY0f9Em52VPM93SknprROw3+0ZqnUpHq1PhnEWXSDv ffZoRswxx6AEHGsalLmDh3GLS+Ix1XZESl/XX4/sPxu4XQ1BXyqU9Us1V6V8KLck8BzP/j /1gOwO6XuUX4ZJGQRCYsku/YPasB0hM/mvPvAeSb1XtpGr5AY5QuSj1sSkCiB/L5oHs3YU lBEacM6EkJT5SqHzYhkkJQM5HEdlR7184wGj+zflhPUNf8mk398gUNKQsOu5WDHXiWq6iJ DQI1P9HWhLKi9l5PHbHZr8vmNpTXdPdlm5kiQlNju+DzTfH/xaEXMEaV1tm4dQ== From: Kory Maincent Subject: [PATCH net-next v9 00/14] net: Add support for Power over Ethernet (PoE) Date: Wed, 17 Apr 2024 16:39:48 +0200 Message-Id: <20240417-feature_poe-v9-0-242293fd1900@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIADTfH2YC/23S20rEMBCA4VdZcm1lZjJNU698DxHJYeoGtF3aW laWvruxIN1QL4fh+0NIbmqSMcmknk43NcqSpjT0eWgfTiqcXf8uVYp5VgSkEYirTtz8NcrbZZA KdcstSKMZtMriMkqXrlvtRfUyV71cZ/WaN+c0zcP4vR2z4LbfioimKC5YQeWFLTD7jrh99sMwf 6T+MQyfW2mhXRNgqSnr2kQbXDDQdO6o9Z9mILCl1r9aYyTTMJtWjprvNNal5qx17T0H0mRMOOr 6TlNT6jprsh04x5bYxKM2u879UpusAwKiN+Iw+KNuds3QlrrJGlG0lS5ylH/ube80ln9gsVlLf iwUayC6utTruv4ADra3qmQCAAA= 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 , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , kernel@pengutronix.de, Maxime Chevallier , Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: Kory Maincent (Dent Project) 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 two specific PoE controller, the Microchip PD692x0 and the TI TPS23881. 3 patches has already been merged thanks to Jakub. In detail: - Patch 1 to 10 prepare net to support PoE devices. - Patch 11 and 12 add PD692x0 PoE PSE controller driver and its binding. - Patch 13 and 14 add TI TPS23881 PSE controller driver and its binding. Changes in v9: - Fix few kdoc return description missing. - Fix a reference leak. - Link to v8: https://lore.kernel.org/r/20240414-feature_poe-v8-0-e4bf1e860da5@bootlin.com Changes in v8: - Fix a build error due to an artifact from an ancient version of the series. - Link to v7: https://lore.kernel.org/r/20240409-feature_poe-v7-0-11e38efd4dee@bootlin.com Changes in v7: - Fix code, doc and kdoc nit. - Fix few pd692x0 dt binding issues. - Rename *flash_fw* functions to *flash_sram_fw* in tps23881 driver. - Link to v6: https://lore.kernel.org/r/20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com Changes in v6: - TPS23881 fix firmware management release missing. - Use pcdev device pointer as regulator consumer and provider. - Rename of_legacy to no_of_pse_pi. - Add kdoc, and separate functions for better readability. - Add vpwr-supply regulator parent. - Link to v5: https://lore.kernel.org/r/20240227-feature_poe-v5-0-28f0aa48246d@bootlin.com Changes in v5: - Fix bindings nit. - Add supported-polarity parameter to bindings. - Fix yamllint binding errors. - Remove the nested lock brought by the use of regulator framework. - Link to v4: https://lore.kernel.org/r/20240215-feature_poe-v4-0-35bb4c23266c@bootlin.com Changes in v4: - Replaced sponsored-by tag by a simple sentence. - Fix pse_pi node bindings. - Add pse pi documentation written by Oleksij. - Link to v3: https://lore.kernel.org/r/20240208-feature_poe-v3-0-531d2674469e@bootlin.com Changes in v3: - Add patches to add Oleksij and myself to PSE MAINTAINERS. - Add patches to add pse devlink. - Add TI TPS23881 PSE controller driver with its binding. - Replace pse_get_types helper by pse_has_podl and pse_has_c33 - Changed the PSE core bindings. - Add a setup_pi_matrix callback. - Register regulator for each PSE PI (Power Interface). - Changed the PD692x0 bindings. - Updated PD692x0 drivers to new bindings and PSE PI description. - Updated PD692x0 drivers according to the reviews and made fixes. - Link to v2: https://lore.kernel.org/r/20231201-feature_poe-v2-0-56d8cac607fa@bootlin.com 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 (14): 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 MAINTAINERS: Add myself to pse networking maintainer net: pse-pd: Add support for PSE PIs dt-bindings: net: pse-pd: Add another way of describing several PSE PIs net: pse-pd: Add support for setup_pi_matrix callback net: pse-pd: Use regulator framework within PSE framework dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller net: pse-pd: Add PD692x0 PSE controller driver dt-bindings: net: pse-pd: Add bindings for TPS23881 PSE controller net: pse-pd: Add TI TPS23881 PSE controller driver .../bindings/net/pse-pd/microchip,pd692x0.yaml | 169 +++ .../bindings/net/pse-pd/pse-controller.yaml | 101 +- .../bindings/net/pse-pd/ti,tps23881.yaml | 95 ++ Documentation/netlink/specs/ethtool.yaml | 33 +- Documentation/networking/ethtool-netlink.rst | 20 + Documentation/networking/index.rst | 1 + Documentation/networking/pse-pd/index.rst | 10 + Documentation/networking/pse-pd/introduction.rst | 73 ++ Documentation/networking/pse-pd/pse-pi.rst | 302 +++++ MAINTAINERS | 1 + drivers/net/pse-pd/Kconfig | 20 + drivers/net/pse-pd/Makefile | 2 + drivers/net/pse-pd/pd692x0.c | 1223 ++++++++++++++++++++ drivers/net/pse-pd/pse_core.c | 515 ++++++++- drivers/net/pse-pd/pse_regulator.c | 49 +- drivers/net/pse-pd/tps23881.c | 820 +++++++++++++ include/linux/pse-pd/pse.h | 79 +- include/uapi/linux/ethtool.h | 55 + include/uapi/linux/ethtool_netlink.h | 3 + net/ethtool/pse-pd.c | 60 +- 20 files changed, 3534 insertions(+), 97 deletions(-) --- base-commit: 4103ffb31295dee66eaa0deba04b36c5051a2db4 change-id: 20231024-feature_poe-139490e73403 Best regards, -- K?ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com