[Zrouter-src] ZRouter.org: push to ZRouter boards/D-Link/DSR-500/board.hints

zrouter-src at zrouter.org zrouter-src at zrouter.org
Wed Jan 25 13:04:50 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/4a7752e2026f
changeset: 331:4a7752e2026f
user:      ray at terran.dlink.ua
date:      Wed Jan 25 15:04:42 2012 +0200
description:
Enable GPIO LEDs

diffstat:

 boards/D-Link/DSR-500/board.hints |  46 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diffs (59 lines):

diff -r 406e377035c5 -r 4a7752e2026f boards/D-Link/DSR-500/board.hints
--- a/boards/D-Link/DSR-500/board.hints	Wed Jan 25 15:03:47 2012 +0200
+++ b/boards/D-Link/DSR-500/board.hints	Wed Jan 25 15:04:42 2012 +0200
@@ -19,9 +19,55 @@
 hint.switch.0.at="miibus1"
 hint.switch.0.phyno=30
 
+################## GPIO items ##################
+# Buttons
+# GPIO07 - Reset BTN	IN PU II INT
+hint.gpioreset.0.at="gpiobus0"
+hint.gpioreset.0.pins="0x0080"
+hint.gpioreset.0.name="reset"
+hint.gpioreset.0.flags="0x04a1"
 
+## GPIO8  - WPS BTN	IN PU II INT
+hint.gpiobutton.0.at="gpiobus0"
+hint.gpiobutton.0.pins="0x0100"
+hint.gpiobutton.0.name="wps"
+hint.gpiobutton.0.flags="0x04a1"
 
+hint.gpioled.0.at="gpiobus0"
+hint.gpioled.0.pins="0x0200"
+hint.gpioled.0.name="usb"	# Name of first unit w/o number,
+# to compatibility with devices which have only one
+hint.gpioled.0.flags="0x0040" # pulldown
 
+hint.gpioled.1.at="gpiobus0"
+hint.gpioled.1.pins="0x0400"
+hint.gpioled.1.name="usb2"
+hint.gpioled.1.flags="0x0040" # pulldown
+
+hint.gpioled.2.at="gpiobus0"
+hint.gpioled.2.pins="0x0800"
+hint.gpioled.2.name="wps"
+hint.gpioled.2.flags="0x0040" # pulldown
+
+hint.gpioled.3.at="gpiobus0"
+hint.gpioled.3.pins="0x4000"
+hint.gpioled.3.name="status"	# Default for status
+hint.gpioled.3.flags="0x0040" # pulldown
+
+hint.gpioled.4.at="gpiobus0"
+hint.gpioled.4.pins="0x8000"
+hint.gpioled.4.name="status_orange"
+hint.gpioled.4.flags="0x0040" # pulldown
+
+hint.gpioled.5.at="gpiobus0"
+hint.gpioled.5.pins="0x20000"
+hint.gpioled.5.name="minipci"
+hint.gpioled.5.flags="0x0040" # pulldown
+
+hint.gpioled.6.at="gpiobus0"
+hint.gpioled.6.pins="0x40000"
+hint.gpioled.6.name="minipci2"
+hint.gpioled.6.flags="0x0040" # pulldown
 
 #phys_mapped_flash:
 #640k(bootloader)ro,


More information about the Zrouter-src mailing list