ARM: dts: kirkwood: add stdout-path property to all boards
[deliverable/linux.git] / arch / arm / boot / dts / kirkwood-netgear_readynas_duo_v2.dts
1 /*
2 * Device Tree file for NETGEAR ReadyNAS Duo v2
3 *
4 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12 /dts-v1/;
13
14 #include "kirkwood.dtsi"
15 #include "kirkwood-6282.dtsi"
16
17 / {
18 model = "NETGEAR ReadyNAS Duo v2";
19 compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
20
21 memory { /* 256 MB */
22 device_type = "memory";
23 reg = <0x00000000 0x10000000>;
24 };
25
26 chosen {
27 bootargs = "console=ttyS0,115200n8 earlyprintk";
28 stdout-path = &uart0;
29 };
30
31 mbus {
32 pcie-controller {
33 status = "okay";
34
35 pcie@1,0 {
36 status = "okay";
37 };
38 };
39 };
40
41 ocp@f1000000 {
42 pinctrl: pinctrl@10000 {
43 pmx_button_power: pmx-button-power {
44 marvell,pins = "mpp47";
45 marvell,function = "gpio";
46 };
47
48 pmx_button_backup: pmx-button-backup {
49 marvell,pins = "mpp45";
50 marvell,function = "gpio";
51 };
52
53 pmx_button_reset: pmx-button-reset {
54 marvell,pins = "mpp13";
55 marvell,function = "gpio";
56 };
57
58 pmx_led_blue_power: pmx-led-blue-power {
59 marvell,pins = "mpp31";
60 marvell,function = "gpio";
61 };
62
63 pmx_led_blue_activity: pmx-led-blue-activity {
64 marvell,pins = "mpp38";
65 marvell,function = "gpio";
66 };
67
68 pmx_led_blue_disk1: pmx-led-blue-disk1 {
69 marvell,pins = "mpp23";
70 marvell,function = "gpio";
71 };
72
73 pmx_led_blue_disk2: pmx-led-blue-disk2 {
74 marvell,pins = "mpp22";
75 marvell,function = "gpio";
76 };
77
78 pmx_led_blue_backup: pmx-led-blue-backup {
79 marvell,pins = "mpp29";
80 marvell,function = "gpio";
81 };
82
83 pmx_poweroff: pmx-poweroff {
84 marvell,pins = "mpp30";
85 marvell,function = "gpio";
86 };
87 };
88
89 clocks {
90 g762_clk: g762-oscillator {
91 compatible = "fixed-clock";
92 #clock-cells = <0>;
93 clock-frequency = <8192>;
94 };
95 };
96
97 i2c@11000 {
98 status = "okay";
99
100 rs5c372a: rs5c372a@32 {
101 compatible = "ricoh,rs5c372a";
102 reg = <0x32>;
103 };
104
105 g762: g762@3e {
106 compatible = "gmt,g762";
107 reg = <0x3e>;
108 clocks = <&g762_clk>; /* input clock */
109 fan_gear_mode = <0>;
110 fan_startv = <1>;
111 pwm_polarity = <0>;
112 };
113 };
114
115 serial@12000 {
116 pinctrl-0 = <&pmx_uart0>;
117 pinctrl-names = "default";
118 status = "okay";
119 };
120
121 sata@80000 {
122 status = "okay";
123 nr-ports = <2>;
124 };
125 };
126
127 gpio-leds {
128 compatible = "gpio-leds";
129 pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
130 &pmx_led_blue_disk1 &pmx_led_blue_disk2
131 &pmx_led_blue_backup >;
132 pinctrl-names = "default";
133
134 power_led {
135 label = "status:blue:power_led";
136 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
137 default-state = "keep";
138 };
139
140 activity_led {
141 label = "status:blue:activity_led";
142 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
143 };
144
145 disk1_led {
146 label = "status:blue:disk1_led";
147 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
148 };
149
150 disk2_led {
151 label = "status:blue:disk2_led";
152 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
153 };
154
155 backup_led {
156 label = "status:blue:backup_led";
157 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
158 };
159 };
160
161 gpio-keys {
162 compatible = "gpio-keys";
163 pinctrl-0 = <&pmx_button_power &pmx_button_backup
164 &pmx_button_reset>;
165 pinctrl-names = "default";
166
167 power-button {
168 label = "Power Button";
169 linux,code = <KEY_POWER>;
170 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
171 };
172
173 reset-button {
174 label = "Reset Button";
175 linux,code = <KEY_RESTART>;
176 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
177 };
178
179 backup-button {
180 label = "Backup Button";
181 linux,code = <KEY_COPY>;
182 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
183 };
184 };
185
186 gpio-poweroff {
187 compatible = "gpio-poweroff";
188 pinctrl-0 = <&pmx_poweroff>;
189 pinctrl-names = "default";
190 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
191 };
192
193 regulators {
194 compatible = "simple-bus";
195 #address-cells = <1>;
196 #size-cells = <0>;
197
198 usb3_regulator: usb3-regulator {
199 compatible = "regulator-fixed";
200 reg = <1>;
201 regulator-name = "USB 3.0 Power";
202 regulator-min-microvolt = <5000000>;
203 regulator-max-microvolt = <5000000>;
204 enable-active-high;
205 regulator-always-on;
206 regulator-boot-on;
207 gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
208 };
209 };
210 };
211
212 &nand {
213 status = "okay";
214
215 partition@0 {
216 label = "u-boot";
217 reg = <0x0000000 0x180000>;
218 read-only;
219 };
220
221 partition@180000 {
222 label = "u-boot-env";
223 reg = <0x180000 0x20000>;
224 };
225
226 partition@200000 {
227 label = "uImage";
228 reg = <0x0200000 0x600000>;
229 };
230
231 partition@800000 {
232 label = "minirootfs";
233 reg = <0x0800000 0x1000000>;
234 };
235
236 partition@1800000 {
237 label = "jffs2";
238 reg = <0x1800000 0x6800000>;
239 };
240 };
241
242 &mdio {
243 status = "okay";
244
245 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
246 reg = <0>;
247 };
248 };
249
250 &eth0 {
251 status = "okay";
252 ethernet0-port@0 {
253 phy-handle = <&ethphy0>;
254 };
255 };
This page took 0.036326 seconds and 5 git commands to generate.