Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2044203lqe; Tue, 9 Apr 2024 08:05:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdADeV1IBXWNiNTe62z3HtLMreRJ0/RIqsnwjKOY2EwpiMIt/AiW1dSivYAqUuCQmE6TmSO3cAgUo6v69DFhx4DUVqirAonUMmBNqp4Q== X-Google-Smtp-Source: AGHT+IHXuAA6QzYE2o+3SV6F63SrZYBgT6w7eO29t3Z5xvO6Id4vz1vJOdWSddrH0TyjK9VEP9Ax X-Received: by 2002:a05:6808:19a3:b0:3c3:d6cb:83e4 with SMTP id bj35-20020a05680819a300b003c3d6cb83e4mr14784022oib.44.1712675120333; Tue, 09 Apr 2024 08:05:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712675120; cv=pass; d=google.com; s=arc-20160816; b=EbtvYjArbNPLyGVAgnSkh/aVjpCFq9ClsO7ugyXwUQLXryIxeJmYX97iZFmGkv9UrD TlA02ckJmaXEaU1da3RXqZ/a7Kp5BReqeylY1rOB/P6cTF+ULtv+yTl9ynrUMsRWpLcb wMNgqCD0qHlNsWl2MEi24ymcy5bXTDy7c5tLx4WDkmIusUueVBVQMNj6E1h4bMD8H6yx Tw/zMxag2LgwnwcHmjQ2ddKg86wMGmJ2qJjFpJmrhqn/sGQCHlJlPLKd5ktjAZL7guS/ pOX5MLZoR5A1ur52sOe9ium2tcKChSlsB7KlK2HmMfeVGOxRgR9+j0zwXmiFfJgdFC+k BwTQ== 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=KG0II9hoGXxbrkbrTfP1GifRbUwAB8owv2HJvVCiy+M=; fh=57ylmEJf4L+ab5JW9VDoPKBjQbUSU1WR6XAwF32mgs8=; b=HXPypfFR8QhaUNCFDVOA1nI8QyIo6wABkXz+tjY41XksUaoQsTNmvOUDGQYtZq2xMg GEi3z+M4bsbtJ8/Jn+Lw0qYAI4kyrtxtXDBlidFSTckthXueMNRmB3QulKdGiFzBUFwU GlagKwSTsApZ6kpfkbyJdaci+YkGBdotIp3eA/gXeoXrc9LqEzKTt2/aPhjIYG2Cwp5z Cjy2Z9gu7ocet1pf2cCxqk87MWbcIMLGaP4+U2USvqM+qpXyPxg5BRRPrCmKZ137bHTO fUzGbV8SRfWiZ6Y/XVJQ0VF/Qco34y1wgkJw/0kkiSjbz0c/1UY3kxHeENX55IjBzgS9 +GIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SRyiDSWr; 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-137157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iq13-20020a056130628d00b007e412169b03si1496476uab.142.2024.04.09.08.05.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 08:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SRyiDSWr; 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-137157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137157-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A1B61C22E4D for ; Tue, 9 Apr 2024 15:05:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85E7113246F; Tue, 9 Apr 2024 15:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="SRyiDSWr" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 6A0A1130AC1; Tue, 9 Apr 2024 15:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675066; cv=none; b=bYyx+Mh91vTQzKyF5YdTTAnmwnezGUkk15SdGh7vaK+sw2O3Fl0Xi1Z7vyUATq8sxa/xCvxmXUhBw4jCWb3qQsGYsxyQm+1TSMo8OaL6Yk1C6zMJ96uKHmf+AaDCxe8TM1Ck4LjM+U0TawhwmswA8iLB6DDTA1Lywf4RKL7TH0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675066; c=relaxed/simple; bh=t1kYY/anDM0kTOT0TXMfDoDZdneqDGj/etfCxojQu6c=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=SXyEUqbfOaoldi/DI73sCmM2CskxfOAb4OeUAAT56811MF+0OPBoNwcN8ReOmmeH+2YsUfFdxzMANYsZNC8t7IDsH4rWJhn6Sw1NodUFvoHZkeFoxX+XjXqP8Tf1SrRfep3NkDfIWQS9wU0AhU+TaN63sfH1W9zujiszYyUmkiY= 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=SRyiDSWr; arc=none smtp.client-ip=217.70.183.198 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 BBB82C0006; Tue, 9 Apr 2024 15:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712675056; 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=KG0II9hoGXxbrkbrTfP1GifRbUwAB8owv2HJvVCiy+M=; b=SRyiDSWrCeb8oKxGLKjXkm1AtBIpb/MESWk2PB5/DqpBQmnjEUgRS8FwuXSReAYllBwSOG UZkq2L//l6wpMbLrL6cmWRDEmPTGb3Km6IBHthXvJ8KbE8Nyn3/b/yPLNSZhWIZTYQADb3 xWAgBmhqDuspywFkhUqmkwQ+MLkCrAp/goZ9zMhefG3tIDlmq6j5DO+iIVgl7hxEP82fH7 Wy2jVqnypaUQ/sfdGs3e7BExQuv4yeQBD4EwpteRbdG9KjwvGa7/YF6HH92mXv+zxH882L lwO55VQNuEu3e0poniHc3QEieLWXqy+Sr62zhrAEhRiPX6my61B1lkO46qyXtg== From: Kory Maincent Subject: [PATCH net-next v7 00/17] net: Add support for Power over Ethernet (PoE) Date: Tue, 09 Apr 2024 17:03:50 +0200 Message-Id: <20240409-feature_poe-v7-0-11e38efd4dee@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=H4sIANdYFWYC/2XN0WrDMAyF4Vcpvp6HJCtO0qu9xyjDdpTVsMUlS UNHybvPC4zW5PIgvl93NckYZVLHw12NssQppiGP+uWgwtkNn6Jjl7ciIINArHtx83WUj0sSjab lFqQ2DEZlcRmlj7et9q4GmfUgt1md8uUcpzmNP9ubBbf7VkS0RXFBDdoLN8Dse+L2zac0f8XhN aTvrbTQQxNgqSnrynZNcMFC3bu9Nv+agaAptfnTBjuyNbNtZa/5SWNVas7aVN5zIEPWhr2unjT Vpa6ypqYH57ghtt1e24fO/VLbrAMCorfiMPhSr+v6C6Wjv7LoAQAA 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. 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 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 (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 | 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 | 8 + 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 | 513 +++++++- drivers/net/pse-pd/pse_regulator.c | 49 +- drivers/net/pse-pd/tps23881.c | 820 +++++++++++++ drivers/of/property.c | 2 + include/linux/pse-pd/pse.h | 86 +- include/uapi/linux/ethtool.h | 55 + include/uapi/linux/ethtool_netlink.h | 3 + net/ethtool/pse-pd.c | 60 +- 21 files changed, 3543 insertions(+), 102 deletions(-) --- base-commit: 49ba5d653980157adbd9c6e5fd7d8f7dfe7e39b8 change-id: 20231024-feature_poe-139490e73403 Best regards, -- K?ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com