From patchwork Thu Nov 16 14:01:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?K=C3=B6ry_Maincent?= X-Patchwork-Id: 16659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp3229121vqg; Thu, 16 Nov 2023 06:02:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9jM3BgyMBb9FsFJEq84bJo8J1XWhAFOT8uqvku4w4qXQ4hqpHH/jyjLcjeQaurep4GyZV X-Received: by 2002:a17:903:244a:b0:1cc:644a:211b with SMTP id l10-20020a170903244a00b001cc644a211bmr10225500pls.47.1700143375444; Thu, 16 Nov 2023 06:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700143375; cv=none; d=google.com; s=arc-20160816; b=g5Lf2SnqOW08W+yfVkfAJ5JKVfZetKkAUzytba7yxwXPdV/sYzj3XHLpyVvdiQZU6J tyMoiD7eJvOoHDGEoPK2yam9BP+wvM2cgoijkAsl1G3k11yhZuU0YZrhVE0Yex5Dygml JRfVGB+lLvjIP+z3Wgefeu4bE894JWqRpjJ9t8qErBEzu8UO7aV+QNS618pEMF7xhZP0 5DkMAjMrN0aHxdE0XFGOGl+DOPcwqlpA3OAejGnEx8NYrol2ZhR7MyEclSNK0fUTUd9N //q0CHrxMxGUNr8zc3AYP7YyandJkjVSACCHLLs5Z9uN5tdBmWqHD+Y3kKZHqkcY0zkv FrXQ== 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:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e14-20020a17090301ce00b001c9fe071f2bsi13071495plh.8.2023.11.16.06.02.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:02:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; 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:3 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 lipwig.vger.email (Postfix) with ESMTP id 97B56819CC18; Thu, 16 Nov 2023 06:02:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345293AbjKPOCD (ORCPT + 30 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 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=-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:02:24 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782729540443167189 X-GMAIL-MSGID: 1782729540443167189 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,