diff options
author | Ben Peddell <klightspeed@killerwolves.net> | 2014-02-19 15:02:37 -0500 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-02-21 20:48:55 -0500 |
commit | 2d0a7addbd109bd4a586d2ae2914a0047a4719de (patch) | |
tree | 07afae1a628ee3eec98b1eeff65602b6cd8c8247 /arch/arm/boot/dts/kirkwood-ds210.dts | |
parent | 36670de13d711f58467e99acbde4dfc0db98543c (diff) |
ARM: Kirkwood: Add support for many Synology NAS devices
Add device tree fragments and files to support many of the kirkwood
based Synology NAS devices. This is a modification of
Andrew Lunn's <andrew@lunn.ch> translation of the board setup file
maintained by Ben Peddell <klightspeed@killerwolves.net>
The Ricoh RS5C372 RTC was used in all 2009 units and some 2010 units.
All other Synology Kirkwood-based DiskStations and RackStations use
the Seiko S35390A RTC.
Most of the 1-bay and 2-bay units use the GPIOs that are multiplexed
with the built-in SATA interface activity/presence pins on mpp 20-23,
while the 4-bay units use ge01 and a PCIe SATA controller, and put the
software controlled HDD leds on mpp 36-43.
Most of the 6281 units with HDD power controls use mpp 29 and 31, while
most of the 6282 units with HDD power controls use mpp 30, 34, 44 and 45
and provide a model ID on mpp 28, 29, 46 and 47. Pre-2012 units and
most 4-bay units didn't have a separate power control for HDD1. These
power controls are presumably to limit startup current from the 12V
brick power supply.
Instead of using separate dtsi files in a synology directory, this
patch uses a single dtsi file containing all of the modules for
these boards, with all of the modules not common to all boards
disabled. The board dts files then enable the appropriate modules for
their boards.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ben Peddell <klightspeed@killerwolves.net>
Tested-by: Ben Peddell <klightspeed@killerwolves.net> (ds211j)
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-ds210.dts')
-rw-r--r-- | arch/arm/boot/dts/kirkwood-ds210.dts | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood-ds210.dts b/arch/arm/boot/dts/kirkwood-ds210.dts new file mode 100644 index 000000000000..6052eaa37d4f --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-ds210.dts | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * Andrew Lunn <andrew@lunn.ch> | ||
3 | * Ben Peddell <klightspeed@killerwolves.net> | ||
4 | * | ||
5 | * This file is licensed under the terms of the GNU General Public | ||
6 | * License version 2. This program is licensed "as is" without any | ||
7 | * warranty of any kind, whether express or implied. | ||
8 | */ | ||
9 | |||
10 | /dts-v1/; | ||
11 | |||
12 | #include "kirkwood.dtsi" | ||
13 | #include "kirkwood-6281.dtsi" | ||
14 | #include "kirkwood-synology.dtsi" | ||
15 | |||
16 | / { | ||
17 | model = "Synology DS210 v10, v20, v30, DS211j"; | ||
18 | compatible = "synology,ds210jv10", "synology,ds210jv20", | ||
19 | "synology,ds210jv30", "synology,ds211j", | ||
20 | "marvell,kirkwood"; | ||
21 | |||
22 | memory { | ||
23 | device_type = "memory"; | ||
24 | reg = <0x00000000 0x8000000>; | ||
25 | }; | ||
26 | |||
27 | chosen { | ||
28 | bootargs = "console=ttyS0,115200n8"; | ||
29 | }; | ||
30 | |||
31 | gpio-fan-150-32-35 { | ||
32 | status = "okay"; | ||
33 | }; | ||
34 | |||
35 | gpio-leds-hdd-21-2 { | ||
36 | status = "okay"; | ||
37 | }; | ||
38 | |||
39 | regulators-hdd-31 { | ||
40 | status = "okay"; | ||
41 | }; | ||
42 | }; | ||
43 | |||
44 | &s35390a { | ||
45 | status = "okay"; | ||
46 | }; | ||