Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3295264rdb; Thu, 16 Nov 2023 06:02:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5PofmHxBVYKGm5mgVyIeryONMSDXdypvSx1ypoaJjHcWWG3+dYow8vv/qIgXfJ5DDJMUF X-Received: by 2002:a17:90b:4f84:b0:27d:661f:59ac with SMTP id qe4-20020a17090b4f8400b0027d661f59acmr14278346pjb.38.1700143327813; Thu, 16 Nov 2023 06:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700143327; cv=none; d=google.com; s=arc-20160816; b=FGr7JdWXSZxPRj8c2+q0WR101kF0PsbbYg8lUv4u9wckmcgfchz8U1IRvzXqAdF/5F ql0qaJHOSIDNCp3kYf1w/SxeL7yapyG9RmhGRReLf9su+z5zZnY71ovp6SCilikQiFAp VYdZMInzJN33uk8Sx7n45VWlzTe1+oXh9oxJkw1/lhKqaJJ4YcIiCjh6rbsmdMkBKd89 OoXNtoK46529vXdAyrdRT50AadvIrm3ilj8smbySINSnIcEizRlK8O4r4sK6bLsgxxbf 3UAzQZkA3XwewSrKs5SU1RzYimkHPee1sbr+sbI3aXQDTcPkpawL/h7zQeI0w5v5VfiF ysng== 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=8P6FjfFpdrn/J0iPOo/tPROLgmPLagA4WGaPrF9h4CM=; fh=Pq7utEzs3KbaBDGtrjfUXzjEIBPT1l1o0fhVtCU5Oyc=; b=BhvdiGYEQXuCnLy29E0kJZFblaLR4gXYLPcE1v88pW0TobuMhp0wmoymj2vs4cZT/H VSJ3+yLgjbYhIUgJqDRJM87d4YplyN5eQmbhDJ4xw1W0jLOSNmRXmq5XabAp0ApoQXDg L5nx5QYsiSaKLjw/4/AepPcOAeqYjscqtlEWh0ImbUuKGRoiSVty1ednEl3ZpmyaTzuu ME8S5RFZIxLNKqQtpoT8ZleiiA2NrdrfvAa+FmAWGhFtQcyBmX3X7psqsk+L1ey2/nHM XvO8FWy5pY0JZ+zfcdjIIiJ48z9XB5f/IKQH59kmFh0XV2LXT2yB1RCgU6KlAkFd/xyh Hh5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="C1tm/7LN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d12-20020a655acc000000b005bd11902100si11943202pgt.840.2023.11.16.06.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:02:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="C1tm/7LN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 91DDA8213F16; Thu, 16 Nov 2023 06:02:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345292AbjKPOCD (ORCPT + 99 others); Thu, 16 Nov 2023 09:02:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345286AbjKPOCB (ORCPT ); Thu, 16 Nov 2023 09:02:01 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBDC111F; Thu, 16 Nov 2023 06:01:56 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E37DD2000B; Thu, 16 Nov 2023 14:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700143315; 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=8P6FjfFpdrn/J0iPOo/tPROLgmPLagA4WGaPrF9h4CM=; b=C1tm/7LN72uCg3Ac230rwIqUW4UQb9rhtwN8CbfmUgsas86tBFkdv6CkRia/TZ9g1k5oFU 6j63na4cfgUwXLxSW6ZwzgFOjYYU/lSVED3Pkxb2lwPF+m/FojMEDtBlKkiPLHSIpFWFDi T7ePixahMl9nQvEBYpc5oW/10yKuSh/O0XWhkL33WqKL5vWOP5g6WOpm3z+eNGa+NWp+LF BLZvSgeIs+ZCnxw3In8lWddRxbea7gjYrApifgOXFAmpDc1FLiQZaYMOPFieWC4W7O4FEi 3yxKIl12nYMQ8tkg9ERSgEvvKNF5IfjydZdVzwtVwvGveJ97CMZyjRgjX/Gyhg== From: Kory Maincent Subject: [PATCH net-next 0/9] net: Add support for Power over Ethernet (PoE) Date: Thu, 16 Nov 2023 15:01:32 +0100 Message-Id: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIALwgVmUC/x3MSwqAIBRG4a3EHSf4gqitRITUb92JhVoE4d6Th t/gnJcSIiPR0LwUcXPiI1SotqFld2GD4LWatNRGSW2Fh8tXxHweEMr0tpfojJWGanFGeH7+20g BWQQ8maZSPvqLrwhnAAAA 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 Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:02:06 -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. In detail: - Patch 1 to 6 prepare net to support PoE devices. - Patch 7 adds a new error code to firmware upload API. - Patch 8 and 9 add PD692x0 PoE PSE controller driver and its binding. Signed-off-by: Kory Maincent --- Kory Maincent (9): net: pse-pd: Rectify and adapt the naming of admin_cotrol member of struct pse_control_config ethtool: Expand Ethernet Power Equipment with 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 firmware_loader: Expand Firmware upload error codes 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_i2c.yaml | 70 ++ Documentation/netlink/specs/ethtool.yaml | 33 +- Documentation/networking/ethtool-netlink.rst | 20 + MAINTAINERS | 7 + drivers/base/firmware_loader/sysfs_upload.c | 1 + drivers/net/pse-pd/Kconfig | 11 + drivers/net/pse-pd/Makefile | 1 + drivers/net/pse-pd/pd692x0.c | 1049 ++++++++++++++++++++ drivers/net/pse-pd/pse_core.c | 9 + drivers/net/pse-pd/pse_regulator.c | 9 +- include/linux/firmware.h | 2 + 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 +- 15 files changed, 1332 insertions(+), 25 deletions(-) --- base-commit: 23dd60286589d9d49c8135dee937fd54efa5643c change-id: 20231024-feature_poe-139490e73403 Best regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com