06.05.2017 14:31, Sven Roederer:
On Freitag, 5. Mai 2017 14:32:12 CEST Mathias Kresin wrote:
Is it necessary to control the GPIOs from userspace/via config files?
If not, add a gpio_export node to the dts and set the output value
this way [0].

> Or is there something better?

Yes there is. Please add a gpio-export node to the dts (see target/linux/ramips/dts/A5-V11.dts). It does basically the same but allows to set the polarity and uses the gpio-export,name for the actual export. And it doesn't add userspace stuff to the image which is included for all images.


To have it in userspace is the best (only?) option to enable / disable or
power-cycle the attached PoE-equipment.

The question is more or less whether it is necessary to disable PoE for the ports. The gpio-export node for example, is used in most cases for enabling something like usb power.

I have no strong opinion on this and I'll leave it up to you to add what you are the opinion is the best.

Mathias

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to