From patchwork Thu Feb 15 16:02:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13558749 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 59C86131E23; Thu, 15 Feb 2024 16:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013008; cv=none; b=ogHYw92eLraGdjrOvzzQlI9CZ7ET9fRgQsuMa/7aCAw8x8GXDZ12xhdZSqrNfzsoQvfjY7rPlT5xhaSHhv/m0b5e2dD50ktKZSEuR9RB/ybDrFbB7YyaHDuklQpIZY/5RqCGI+V7fAY5OVXy07DhhWPi5fABPo2Tx3zaBPdvWnA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013008; c=relaxed/simple; bh=2TJdMPFdOgFLb/nW2s4jY9+qUvs7xtAMEcpF7eDKsZM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=WNMSpt3FERMYs+1nf27S5lpaHBTuAoy8ig9gMATsbn1UR137HUuJXijM3r/eBW62Zqdq6ycfQ/G+OBBQb/t0/DH0j8r7VRGwqn0JZPSiEO7nd2Jr3ONNL69eMnKZQF9rvIA1Zh3bFuwbrh749DqOSM4wk6tJ2GxE103sHeXzLG0= 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=dzeFiStR; arc=none smtp.client-ip=217.70.183.200 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="dzeFiStR" Received: by mail.gandi.net (Postfix) with ESMTPSA id A296C20002; Thu, 15 Feb 2024 16:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708013001; 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=R6uiPqbPN7XJ+nzOLa+wt5jzQyWXqcWr0TSp4g4OjDk=; b=dzeFiStRybXlU0hqd4iuXwFON4FHo5WjGzD/noNDf6qkpYtw21VzJw/NHPGwqDmwB/U2gu AEQhc+PCjGq1+fJd62zz8+lK84yBsYXOv0gUQeX1Z6cfyKhw+3UKfl/3AGlZbVQCOi3+Gl dO11RhudSsoLwfdLCuQXEl+TNs9GJvjE3/f902rX5CKGGflEk3hHLJRy6+kgbDKeSUqxo2 yfYpJCXaPyOHSJSbnt88K/9LOT0441LeuhbnndU1hcfdpmBAtaQbYMZlp1JshqNPQDShEo 4nJawlooBR9syoPmxHuU+Bhi9SPqLtchpZBGCkGtQey3mwJj1MU2RITNiiGPGw== From: Kory Maincent Subject: [PATCH net-next v4 00/17] net: Add support for Power over Ethernet (PoE) Date: Thu, 15 Feb 2024 17:02:41 +0100 Message-Id: <20240215-feature_poe-v4-0-35bb4c23266c@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKI1zmUC/2XNTQrCMBCG4atI1kYmkzFtXXkPEenPVAOalDQWR Xp3Y0CkuPwYnndeYuRgeRS71UsEnuxovUuD1ivRXmp3Zmm7tAUCagVIsuc63gOfBs9S6Yoq4EI TaJHEELi3j1w7CMdROn5EcUyXix2jD8/8ZlL5notKmUVxUhJkw1QCUdMjVfvG+3i1btP6Wy5N+ NMIaqkx6a3pyrZuDRR9/a/1VxMglEutP1qrDk1BZCpe6nme3+ew4yguAQAA 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 , Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org 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. This patch series is sponsored by Dent Project . In detail: - Patch 1 to 13 prepare net to support PoE devices. - Patch 14 and 15 add PD692x0 PoE PSE controller driver and its binding. - Patch 16 and 17 add TI TPS23881 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 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 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 Signed-off-by: Kory Maincent --- Kory Maincent (17): MAINTAINERS: net: Add Oleksij to pse-pd maintainers of: property: Add fw_devlink support for pse parent 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 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 | 157 +++ .../bindings/net/pse-pd/pse-controller.yaml | 84 +- .../bindings/net/pse-pd/ti,tps23881.yaml | 111 ++ 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 | 275 +++++ MAINTAINERS | 8 + drivers/net/mdio/fwnode_mdio.c | 29 +- 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 | 491 +++++++- drivers/net/pse-pd/pse_regulator.c | 49 +- drivers/net/pse-pd/tps23881.c | 818 +++++++++++++ drivers/of/property.c | 2 + include/linux/pse-pd/pse.h | 89 +- include/uapi/linux/ethtool.h | 43 + include/uapi/linux/ethtool_netlink.h | 3 + include/uapi/linux/pse.h | 23 + net/ethtool/pse-pd.c | 60 +- 23 files changed, 3504 insertions(+), 120 deletions(-) --- base-commit: 069f62e4e393fc9ffa2f0da501155fbdce7e2605 change-id: 20231024-feature_poe-139490e73403 Best regards,