[LEDE-DEV] [PATCH 2/3] ramips-mt7621: add GPIO-config for Ubiquiti-EdgeRouterX(-SFP)

Sven Roederer devel-sven at geroedel.de
Sun May 7 14:24:27 PDT 2017


On Sonntag, 7. Mai 2017 12:25:39 CEST you wrote:
> Just an opinion: being able to disable/enable PoE for each port is really
> useful when you want to remotely reboot a device plugged into your PoE
> switch/router.  Most PoE-capable devices expose this option with the stock
> firmware.
> 
> Does your approach with the gpio-export node allow to change the state of
> the GPIO at runtime? (i.e. probably from userspace)

Baptiste,

right, that's the point I'm also looking for. To have da clean way of 
controlling the state of the PoE-voltage (24V passive PoE) for the ports. 
As it's passive PoE there might be a big risk that having the power enabled 
all the time might cause some problems.

When defining in dts I don't see them in uci or even in /sys/class/gpio. So via 
"board.d/03_gpio_switches" seems the best way to bring them to userspace for 
user-interaction.

Sven



More information about the Lede-dev mailing list