ba43197d08730ae81314c5e4e38e8669f46c899a
[pandora-kernel.git] / arch / arm / boot / dts / orion5x-lacie-ethernet-disk-mini-v2.dts
1 /*
2  * Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3  *
4  * This file is licensed under the terms of the GNU General Public
5  * License version 2. This program is licensed "as is" without any
6  * warranty of any kind, whether express or implied.
7  */
8
9 /dts-v1/;
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include "orion5x-mv88f5182.dtsi"
14
15 / {
16         model = "LaCie Ethernet Disk mini V2";
17         compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x";
18
19         memory {
20                 reg = <0x00000000 0x4000000>; /* 64 MB */
21         };
22
23         chosen {
24                 bootargs = "console=ttyS0,115200n8 earlyprintk";
25                 linux,stdout-path = &uart0;
26         };
27
28         soc {
29                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
30                          <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>;
31         };
32
33         gpio-keys {
34                 compatible = "gpio-keys";
35                 #address-cells = <1>;
36                 #size-cells = <0>;
37                 button@1 {
38                         label = "Power-on Switch";
39                         linux,code = <KEY_POWER>;
40                         gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
41                 };
42         };
43
44         gpio-leds {
45                 compatible = "gpio-leds";
46
47                 led@1 {
48                         label = "power:blue";
49                         gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
50                 };
51         };
52 };
53
54 &eth {
55         status = "okay";
56
57         ethernet-port@0 {
58                 phy-handle = <&ethphy>;
59         };
60 };
61
62 &mdio {
63         status = "okay";
64
65         ethphy: ethernet-phy {
66                 reg = <8>;
67         };
68 };
69
70 &sata {
71         status = "okay";
72         nr-ports = <2>;
73 };
74
75 &uart0 {
76         status = "okay";
77 };