Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10389 closed enhancement (wontfix)

nanostration m poe passthrough

Reported by: Stefano <maxtemplardt@…> Owned by: developers
Priority: normal Milestone: Backfire 10.03.1
Component: packages Version: Trunk
Keywords: Cc:

Description (last modified by juhosg)

i have tried it in r28934 and work

Index: target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c    (revision 19525)
+++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c    (working copy)
@@ -37,6 +37,7 @@
 #define UBNT_M_GPIO_LED_L3    11
 #define UBNT_M_GPIO_LED_L4    7
 #define UBNT_M_GPIO_BTN_RESET    12
+#define UBNT_M_GPIO_POE        8

 #define UBNT_BUTTONS_POLL_INTERVAL    20

@@ -97,6 +98,10 @@
         .name        = "ubnt:green:link4",
         .gpio        = UBNT_M_GPIO_LED_L4,
         .active_low    = 0,
+    }, {
+        .name        = "ubnt:poe",
+        .gpio        = UBNT_M_GPIO_POE,
+        .active_low    = 0,
     }
 };

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by juhosg

  • Description modified (diff)
  • Resolution set to wontfix
  • Status changed from new to closed

comment:2 Changed 6 years ago by juhosg

The POE passthrough mode can be switched from user-space without any kernel modification:

echo 8 > /sys/class/gpio/export 
echo out > /sys/class/gpio/gpio8/direction 
echo 1 > /sys/class/gpio/gpio8/value # PoE on secondary port = on 
echo 0 > /sys/class/gpio/gpio8/value # PoE on secondary port = off

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.