devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH net-next 0/2] Add support for the LTC4266 PSE Controller
@ 2025-06-03 23:04 Kyle Swenson
  2025-06-03 23:04 ` [RFC PATCH net-next 1/2] dt-bindings: net: pse-pd: Describe the LTC4266 PSE chipset Kyle Swenson
  2025-06-03 23:04 ` [RFC PATCH net-next 2/2] net: pse-pd: Add LTC4266 PSE controller driver Kyle Swenson
  0 siblings, 2 replies; 8+ messages in thread
From: Kyle Swenson @ 2025-06-03 23:04 UTC (permalink / raw)
  To: o.rempel@pengutronix.de, kory.maincent@bootlin.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org
  Cc: Kyle Swenson, netdev@vger.kernel.org, devicetree@vger.kernel.org

Hello,

This RFC series is intended as a starting point for adding support for the
LTC4266, an older PSE (IEEE 802.3at+) chipset from Linear Technology.

This chip has four individually controllable ports, each with its own
detection, classification and current-limiting abilities.  Currently, this
series integrates with the PSE controller core and supports enable/disable,
current and voltage reporting, classification results and will power up a valid
IEEE 802.3at or IEEE802.3af powered device.

It also (poorly) supports the power-limiting functionality in the PSE core.
The complexity here is that the LTC4266 only supports limiting the current, and
so deriving a "current limit" from this power limit while staying compliant
with the IEEE 802.3at/af specifications is tricky.  I'm curious if folks have a
better idea than the linear approximation I've used here.

It is RFC because I want to clarify some confusion I have around the
system-level flow for a port's power allocation.  It's very likely I've missed
something, but it appears as though the port needs to be delivering power in
order to set the power limit on the port.

Thanks for your time,
Kyle

Kyle Swenson (2):
  dt-bindings: net: pse-pd: Describe the LTC4266 PSE chipset
  net: pse-pd: Add LTC4266 PSE controller driver

 .../bindings/net/pse-pd/lltc,ltc4266.yaml     | 146 +++
 drivers/net/pse-pd/Kconfig                    |  10 +
 drivers/net/pse-pd/Makefile                   |   1 +
 drivers/net/pse-pd/ltc4266.c                  | 919 ++++++++++++++++++
 4 files changed, 1076 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/pse-pd/lltc,ltc4266.yaml
 create mode 100644 drivers/net/pse-pd/ltc4266.c

-- 
2.47.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-06-09 14:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-03 23:04 [RFC PATCH net-next 0/2] Add support for the LTC4266 PSE Controller Kyle Swenson
2025-06-03 23:04 ` [RFC PATCH net-next 1/2] dt-bindings: net: pse-pd: Describe the LTC4266 PSE chipset Kyle Swenson
2025-06-04  6:43   ` Krzysztof Kozlowski
2025-06-04  9:06   ` Kory Maincent
2025-06-04 14:53     ` Kyle Swenson
2025-06-03 23:04 ` [RFC PATCH net-next 2/2] net: pse-pd: Add LTC4266 PSE controller driver Kyle Swenson
2025-06-04  8:39   ` Oleksij Rempel
2025-06-09 14:23     ` Kyle Swenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).