All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: mvebu: Add DLINK-DNS327L support
@ 2015-04-11 20:29 ` Andrew Andrianov
  0 siblings, 0 replies; 39+ messages in thread
From: Andrew Andrianov @ 2015-04-11 20:29 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King, Linus Walleij, Wolfram Sang, devicetree
  Cc: Andrew Andrianov, linux-arm-kernel, linux-kernel, linux-gpio

This patchset adds support for armada370-based NAS by DLINK.

DNS-327L is a 2-bay NAS with the following specs:     
     - 512MiB RAM
     - 128MiB NAND Flash
     - 1 GbE interface (Marvell PHY)
     - 1 rear USB 3.0 port (via PCIe USB 3.0 controller)
     - 2 internal SATA ports handled by the Armada 370: 
       	 uses 2 gpios for power control
     - two front 2-color leds (amber + white) for both discs, 
        controlled by the SoC
     - One white LED handled by SoC (USB)
     - 3 buttons. Power handled by weltrend, USB and 
       RESET (on the bottom) are wired via GPIOs 
     - Unidentified i2c device at address 0x13 (via i2cdetect)
     - UART0 providing serial console
     - Weltrend MCU serving for RTC, temperature, fan control, 
       and power button handling interfaced via UART1 (dns320l-daemon)
     
Hardware notes follow: 
Everything's supported, save for mysterious i2c device at 
address 0x13 that I couldn't even find on the PCB.

Stock firmware performs some messing with PHY registers (that 
have no public documentation) using a userspace script. With 
upstream kernel it is possible to match the stock behavior using 
the following in u-boot prompt:

mw.l 0xd00184e0 0xa8a; 
phyWrite 0 16 2; 
phyWrite 0 19 77; 
phyWrite 0 18 5747; 

When power button is pressed to turn the NAS off, weltrend signals 
the SoC by driving mpp63 line low. Apparently right now pinctrl assumes
that this line can only work as 'gpo' that screws up gpio-buttons driver.
Since without gpio-buttons, mpp63 works as input properly via sysfs 
interface, I've added a patch for pinctrl-armada-370.c that fixes the 
issue.

The only remaining issue are hard-freezes every 4-16 hours when
CONFIG_ARM_MVEBU_V7_CPUIDLE=y
As of 3.18 this issue was still present, I'm testing if things changed 
in 4.0-rc7 right now (Still live for 3 hours at the time of writing)

Andrew Andrianov (2):
  pinctrl: mvebu: Fix mapping of pin 63 (gpo -> gpio)
  ARM: mvebu: dts: Add dts file for DLink DNS-327L

 arch/arm/boot/dts/Makefile                     |    1 +
 arch/arm/boot/dts/armada-370-dlink-dns327l.dts |  309 ++++++++++++++++++++++++
 drivers/pinctrl/mvebu/pinctrl-armada-370.c     |    2 +-
 3 files changed, 311 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/armada-370-dlink-dns327l.dts

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2015-05-29 10:06 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-11 20:29 [PATCH 0/2] ARM: mvebu: Add DLINK-DNS327L support Andrew Andrianov
2015-04-11 20:29 ` Andrew Andrianov
2015-04-11 20:29 ` [PATCH 1/2] pinctrl: mvebu: Fix mapping of pin 63 (gpo -> gpio) Andrew Andrianov
2015-04-11 20:29   ` Andrew Andrianov
2015-04-27 13:24   ` Linus Walleij
2015-04-27 13:24     ` Linus Walleij
2015-04-27 13:24     ` Linus Walleij
2015-05-29  9:10   ` Thomas Petazzoni
2015-05-29  9:10     ` Thomas Petazzoni
2015-05-29  9:55     ` Andrew
2015-05-29  9:55       ` Andrew
2015-05-29  9:55       ` Andrew
2015-05-29 10:06       ` Thomas Petazzoni
2015-05-29 10:06         ` Thomas Petazzoni
2015-04-11 20:29 ` [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L Andrew Andrianov
2015-04-11 20:29   ` Andrew Andrianov
2015-04-11 21:40   ` Andrew Lunn
2015-04-11 21:40     ` Andrew Lunn
     [not found]     ` <20150411214005.GJ5244-g2DYL2Zd6BY@public.gmane.org>
2015-04-11 21:45       ` Andrew Lunn
2015-04-11 21:45         ` Andrew Lunn
2015-04-11 21:45         ` Andrew Lunn
2015-04-12 11:25         ` [PATCH v2 0/2] ARM: mvebu: Add support for DLINK DNS-327L Andrew Andrianov
2015-04-12 11:25           ` Andrew Andrianov
2015-04-12 11:25           ` Andrew Andrianov
2015-04-12 11:25           ` [PATCH v2 1/2] pinctrl: mvebu: Fix mapping of pin 63 (gpo -> gpio) Andrew Andrianov
2015-04-12 11:25             ` Andrew Andrianov
2015-04-12 11:25           ` [PATCH v2 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L Andrew Andrianov
2015-04-12 11:25             ` Andrew Andrianov
2015-04-12 11:25             ` Andrew Andrianov
2015-04-12 11:38             ` Sebastian Hesselbarth
2015-04-12 11:38               ` Sebastian Hesselbarth
2015-04-11 22:33     ` [PATCH " Andrew
2015-04-11 22:33       ` Andrew
2015-04-12 11:20   ` Sebastian Hesselbarth
2015-04-12 11:20     ` Sebastian Hesselbarth
2015-04-11 21:28 ` [PATCH 0/2] ARM: mvebu: Add DLINK-DNS327L support Andrew Lunn
2015-04-11 21:28   ` Andrew Lunn
2015-04-13 14:39   ` Gregory CLEMENT
2015-04-13 14:39     ` Gregory CLEMENT

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.