Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO
@ 2026-06-07 16:55 Robert Marko
  2026-06-07 16:55 ` [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO Robert Marko
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Marko @ 2026-06-07 16:55 UTC (permalink / raw)
  To: o.rempel, kory.maincent, andrew+netdev, davem, edumazet, kuba,
	pabeni, robh, krzk+dt, conor+dt, netdev, devicetree, linux-kernel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

Microchip PSE controllers have a dedicated port disable input that like it
name suggest, will disable PoE on all ports.

So, lets document that GPIO.

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v2:
* Pick Acked-by from Rob

 .../devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml
index ca61cc37a790..ca4200afa793 100644
--- a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml
+++ b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml
@@ -22,6 +22,10 @@ properties:
   reg:
     maxItems: 1
 
+  disable-ports-gpios:
+    description: GPIO pin to disable PoE on all ports
+    maxItems: 1
+
   vdd-supply:
     description: Regulator that provides 3.3V VDD power supply.
 
-- 
2.54.0


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

* [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO
  2026-06-07 16:55 [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Robert Marko
@ 2026-06-07 16:55 ` Robert Marko
  2026-06-08 13:03   ` Kory Maincent
  2026-06-08 13:04 ` [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Kory Maincent
  2026-06-10  2:30 ` patchwork-bot+netdevbpf
  2 siblings, 1 reply; 5+ messages in thread
From: Robert Marko @ 2026-06-07 16:55 UTC (permalink / raw)
  To: o.rempel, kory.maincent, andrew+netdev, davem, edumazet, kuba,
	pabeni, robh, krzk+dt, conor+dt, netdev, devicetree, linux-kernel,
	daniel.machon
  Cc: luka.perkov, Robert Marko

Microchip PSE controllers have a dedicated disable ports input that like it
name says disables PoE on all ports.

So lets support parsing that GPIO and using the GPIO flags to set it low
by default and enable PoE on all ports during probe.

Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v3:
* Update commit message to reflect the logic level change, and make Sashiko
happy
* Pick up Acked-by from Oleksij

Changes in v2:
* Use GPIOD_OUT_LOW by default so that DTS reflects the real active state

 drivers/net/pse-pd/pd692x0.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/pse-pd/pd692x0.c b/drivers/net/pse-pd/pd692x0.c
index 49b1527829ad..cb377d5ba7af 100644
--- a/drivers/net/pse-pd/pd692x0.c
+++ b/drivers/net/pse-pd/pd692x0.c
@@ -7,6 +7,7 @@
 
 #include <linux/delay.h>
 #include <linux/firmware.h>
+#include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/of.h>
@@ -1757,6 +1758,7 @@ static int pd692x0_i2c_probe(struct i2c_client *client)
 	static const char * const regulators[] = { "vdd", "vdda" };
 	struct pd692x0_msg msg, buf = {0}, zero = {0};
 	struct device *dev = &client->dev;
+	struct gpio_desc *disable_ports;
 	struct pd692x0_msg_ver ver;
 	struct pd692x0_priv *priv;
 	struct fw_upload *fwl;
@@ -1780,6 +1782,11 @@ static int pd692x0_i2c_probe(struct i2c_client *client)
 	priv->client = client;
 	i2c_set_clientdata(client, priv);
 
+	disable_ports = devm_gpiod_get_optional(dev, "disable-ports", GPIOD_OUT_LOW);
+	if (IS_ERR(disable_ports))
+		return dev_err_probe(&client->dev, PTR_ERR(disable_ports),
+				     "Failed to get disable ports GPIO\n");
+
 	ret = i2c_master_recv(client, (u8 *)&buf, sizeof(buf));
 	if (ret != sizeof(buf)) {
 		dev_err(dev, "Failed to get device status\n");
-- 
2.54.0


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

* Re: [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO
  2026-06-07 16:55 ` [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO Robert Marko
@ 2026-06-08 13:03   ` Kory Maincent
  0 siblings, 0 replies; 5+ messages in thread
From: Kory Maincent @ 2026-06-08 13:03 UTC (permalink / raw)
  To: Robert Marko
  Cc: o.rempel, andrew+netdev, davem, edumazet, kuba, pabeni, robh,
	krzk+dt, conor+dt, netdev, devicetree, linux-kernel,
	daniel.machon, luka.perkov

On Sun,  7 Jun 2026 18:55:36 +0200
Robert Marko <robert.marko@sartura.hr> wrote:

> Microchip PSE controllers have a dedicated disable ports input that like it
> name says disables PoE on all ports.
> 
> So lets support parsing that GPIO and using the GPIO flags to set it low
> by default and enable PoE on all ports during probe.

Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

Thank you!
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

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

* Re: [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO
  2026-06-07 16:55 [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Robert Marko
  2026-06-07 16:55 ` [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO Robert Marko
@ 2026-06-08 13:04 ` Kory Maincent
  2026-06-10  2:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 5+ messages in thread
From: Kory Maincent @ 2026-06-08 13:04 UTC (permalink / raw)
  To: Robert Marko
  Cc: o.rempel, andrew+netdev, davem, edumazet, kuba, pabeni, robh,
	krzk+dt, conor+dt, netdev, devicetree, linux-kernel,
	daniel.machon, luka.perkov

On Sun,  7 Jun 2026 18:55:35 +0200
Robert Marko <robert.marko@sartura.hr> wrote:

> Microchip PSE controllers have a dedicated port disable input that like it
> name suggest, will disable PoE on all ports.
> 
> So, lets document that GPIO.

Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

Thank you!
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

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

* Re: [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO
  2026-06-07 16:55 [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Robert Marko
  2026-06-07 16:55 ` [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO Robert Marko
  2026-06-08 13:04 ` [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Kory Maincent
@ 2026-06-10  2:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-06-10  2:30 UTC (permalink / raw)
  To: Robert Marko
  Cc: o.rempel, kory.maincent, andrew+netdev, davem, edumazet, kuba,
	pabeni, robh, krzk+dt, conor+dt, netdev, devicetree, linux-kernel,
	daniel.machon, luka.perkov

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun,  7 Jun 2026 18:55:35 +0200 you wrote:
> Microchip PSE controllers have a dedicated port disable input that like it
> name suggest, will disable PoE on all ports.
> 
> So, lets document that GPIO.
> 
> Acked-by: Rob Herring (Arm) <robh@kernel.org>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> 
> [...]

Here is the summary with links:
  - [net-next,v3,1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO
    https://git.kernel.org/netdev/net-next/c/a1c4fa71bbbd
  - [net-next,v3,2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO
    https://git.kernel.org/netdev/net-next/c/90e63d535495

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2026-06-10  2:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-07 16:55 [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Robert Marko
2026-06-07 16:55 ` [PATCH net-next v3 2/2] net: pse-pd: pd692x0: support disabling disable ports GPIO Robert Marko
2026-06-08 13:03   ` Kory Maincent
2026-06-08 13:04 ` [PATCH net-next v3 1/2] dt-bindings: net: pse-pd: microchip,pd692x0: add port disable GPIO Kory Maincent
2026-06-10  2:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox