Skip to contentSkip to conversation

mach-kirkwood: Add support for D-Link DNS-325

PATCH Superseded Jamie Lentin 1 participant 2 messages Oct 14, 2011 – Oct 20, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mach-kirkwood: Add support for D-Link DNS-325

This patch adds support for the D-Link DNS-325 NAS. A kirkwood-based successor to the DNS-323.

---
The code is largely based on either other kirkwood devices or the DNS-323, so there shouldn't be anything too weird. A few points though:-

* There are still unexplored sections of the hardware, a reset button and D-link have an option to for "power-off recovery". Will continue to search the D-Link code for them, but the NAS is pretty functional without for now.

* I'm not entirely convinced by permanently stealing the SATA power GPIOs, however it seems safer than them possibly getting switched off accidentally.

* There's a high chance that the DNS-320 (a cheaper device released at the same time, with ~identical specs) could be supported by the same setup file. This is just speculation though, I've not got one of these.

* It'd be nice to expose the SATA activity LEDs as LEDs, and allow the mapping to happen in software, but there doesn't seem to be a LED trigger for that yet (unless I've missed something).

Cheers,

arch/arm/mach-kirkwood/Kconfig +6 -0
index 7fc603b..9759cae 100644
@@ -130,6 +130,12 @@ config MACH_T5325
   	  Say 'Y' here if you want your kernel to support the
   	  HP t5325 Thin Client.
 
+config MACH_DNS325
+	bool "D-Link DNS-325"
+	help
+	  Say 'Y' here if you want your kernel to support the
+	  D-Link DNS-325 NAS.
+
   endmenu
 
   endif
arch/arm/mach-kirkwood/Makefile +1 -0
index 5dcaa81..9b5d4ac 100644
@@ -18,5 +18,6 @@ obj-$(CONFIG_MACH_D2NET_V2)		+= d2net_v2-setup.o lacie_v2-common.o
   obj-$(CONFIG_MACH_NET2BIG_V2)		+= netxbig_v2-setup.o lacie_v2-common.o
   obj-$(CONFIG_MACH_NET5BIG_V2)		+= netxbig_v2-setup.o lacie_v2-common.o
   obj-$(CONFIG_MACH_T5325)		+= t5325-setup.o
+obj-$(CONFIG_MACH_DNS325)		+= dns325-setup.o
 
   obj-$(CONFIG_CPU_IDLE)			+= cpuidle.o
arch/arm/mach-kirkwood/dns325-setup.c new file +315 -0

315 lines not on this page · raw message

#1 lore raw

PATCH v2 1/1 mach-kirkwood: Add support for D-Link DNS-325

This patch adds support for the D-Link DNS-325 NAS. A kirkwood-based successor to the DNS-323.

---
This patch supersedes my previous effort, adding in support for the reset button and power recovery (ensuring the NAS turns on again when power returns to the device).

* There's a high chance that the DNS-320 (a cheaper device released at the same time, with ~identical specs) could be supported by the same setup file. This is just speculation though, and haven't named it as such.

* It'd be nice to expose the SATA activity LEDs as LEDs, and allow the mapping to happen in software, but there doesn't seem to be a LED trigger for that yet (unless I've missed something).

Cheers,

  arch/arm/mach-kirkwood/Kconfig        |    6 +
  arch/arm/mach-kirkwood/Makefile       |    1 +
  arch/arm/mach-kirkwood/dns325-setup.c |  360 +++++++++++++++++++++++++++++++++
  3 files changed, 367 insertions(+), 0 deletions(-)

create mode 100644 arch/arm/mach-kirkwood/dns325-setup.c

arch/arm/mach-kirkwood/Kconfig +6 -0
index 7fc603b..9759cae 100644
@@ -130,6 +130,12 @@ config MACH_T5325
  	  Say 'Y' here if you want your kernel to support the
  	  HP t5325 Thin Client.
 
+config MACH_DNS325
+	bool "D-Link DNS-325"
+	help
+	  Say 'Y' here if you want your kernel to support the
+	  D-Link DNS-325 NAS.
+
  endmenu
 
  endif
arch/arm/mach-kirkwood/Makefile +1 -0
index 5dcaa81..9b5d4ac 100644
@@ -18,5 +18,6 @@ obj-$(CONFIG_MACH_D2NET_V2)		+= d2net_v2-setup.o lacie_v2-common.o
  obj-$(CONFIG_MACH_NET2BIG_V2)		+= netxbig_v2-setup.o lacie_v2-common.o
  obj-$(CONFIG_MACH_NET5BIG_V2)		+= netxbig_v2-setup.o lacie_v2-common.o
  obj-$(CONFIG_MACH_T5325)		+= t5325-setup.o
+obj-$(CONFIG_MACH_DNS325)		+= dns325-setup.o
 
  obj-$(CONFIG_CPU_IDLE)			+= cpuidle.o
arch/arm/mach-kirkwood/dns325-setup.c new file +360 -0

360 lines not on this page · raw message

Signature · 1 line
1.7.5.4