blob: fd75720547e39d4d25a215b32c56a1ff244b7bc2 [file] [log] [blame]
Andrew Lunn7e0a6b82014-05-26 21:29:49 +02001/*
2 * Device Tree common file for LaCie 2Big and 5Big Network v2
3 *
4 * Copyright (C) 2014
5 *
6 * Andrew Lunn <andrew@lunn.ch>
7 *
8 * Based on netxbig_v2-setup.c,
9 * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
10 *
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2. This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
14*/
15
16#include "kirkwood.dtsi"
17#include "kirkwood-6281.dtsi"
18
19/ {
20 chosen {
21 bootargs = "console=ttyS0,115200n8";
22 stdout-path = &uart0;
23 };
24
25 ocp@f1000000 {
26 serial@12000 {
27 status = "okay";
28 };
29
30 spi@10600 {
31 status = "okay";
32
33 flash@0 {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 compatible = "mxicy,mx25l4005a";
37 reg = <0>;
38 spi-max-frequency = <20000000>;
39 mode = <0>;
40
41 partition@0 {
42 reg = <0x0 0x80000>;
43 label = "u-boot";
44 };
45 };
46 };
47
48 sata@80000 {
49 status = "okay";
50 nr-ports = <2>;
51 };
52
53 };
54
55 gpio-keys {
56 compatible = "gpio-keys";
57 #address-cells = <1>;
58 #size-cells = <0>;
59
60 /*
61 * button@1 and button@2 represent a three position rocker
62 * switch. Thus the conventional KEY_POWER does not fit
63 */
64 button@1 {
65 label = "Back power switch (on|auto)";
66 linux,code = <KEY_ESC>;
67 linux,input-type = <5>;
68 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69 };
70 button@2 {
71 label = "Back power switch (auto|off)";
72 linux,code = <KEY_1>;
73 linux,input-type = <5>;
74 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
75 };
76 button@3 {
77 label = "Function button";
78 linux,code = <KEY_OPTION>;
79 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
80 };
81
82 };
83
84 gpio-poweroff {
85 compatible = "gpio-poweroff";
86 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
87 };
88
89 regulators: regulators {
90 status = "okay";
91 compatible = "simple-bus";
92 #address-cells = <1>;
93 #size-cells = <0>;
94 pinctrl-names = "default";
95
96 regulator@1 {
97 compatible = "regulator-fixed";
98 reg = <1>;
99 regulator-name = "hdd0power";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
102 enable-active-high;
103 regulator-always-on;
104 regulator-boot-on;
105 gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
106 };
107
108 regulator@2 {
109 compatible = "regulator-fixed";
110 reg = <2>;
111 regulator-name = "hdd1power";
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
114 enable-active-high;
115 regulator-always-on;
116 regulator-boot-on;
117 gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
118 };
119
120 clocks {
121 g762_clk: g762-oscillator {
122 compatible = "fixed-clock";
123 #clock-cells = <0>;
124 clock-frequency = <32768>;
125 };
126 };
127 };
128};
129
130&mdio {
131 status = "okay";
132
133 ethphy0: ethernet-phy@0 {
134 reg = <8>;
135 };
136
137 ethphy1: ethernet-phy@1 {
138 reg = <0>;
139 };
140};
141
142&eth0 {
143 status = "okay";
144 ethernet0-port@0 {
145 phy-handle = <&ethphy0>;
146 };
147};
148
149&pinctrl {
150 pinctrl-names = "default";
151
152 pmx_button_function: pmx-button-function {
153 marvell,pins = "mpp34";
154 marvell,function = "gpio";
155 };
156 pmx_button_power_off: pmx-button-power-off {
157 marvell,pins = "mpp15";
158 marvell,function = "gpio";
159 };
160 pmx_button_power_on: pmx-button-power-on {
161 marvell,pins = "mpp13";
162 marvell,function = "gpio";
163 };
164};
165
166&i2c0 {
167 status = "okay";
168
169 eeprom@50 {
170 compatible = "atmel,24c04";
171 pagesize = <16>;
172 reg = <0x50>;
173 };
174
175 g762@3e {
176 compatible = "gmt,g762";
177 reg = <0x3e>;
178 clocks = <&g762_clk>;
179 };
180};