ARM: dts: kirkwood: add stdout-path property to all boards
[linux-2.6-block.git] / arch / arm / boot / dts / kirkwood-laplug.dts
1 /*
2  * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.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 "kirkwood.dtsi"
14 #include "kirkwood-6192.dtsi"
15
16 / {
17         model = "LaCie LaPlug";
18         compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood";
19
20         memory {
21                 device_type = "memory";
22                 reg = <0x00000000 0x8000000>; /* 128 MB */
23         };
24
25         chosen {
26                 bootargs = "console=ttyS0,115200n8 earlyprintk";
27                 stdout-path = &uart0;
28         };
29
30         mbus {
31                 pcie-controller {
32                         status = "okay";
33                         pcie@1,0 {
34                                 status = "okay";
35                         };
36                 };
37         };
38
39         ocp@f1000000 {
40                 serial@12000 {
41                         pinctrl-0 = <&pmx_uart0>;
42                         pinctrl-names = "default";
43                         status = "okay";
44                 };
45
46                 i2c@11000 {
47                         pinctrl-0 = <&pmx_twsi0>;
48                         pinctrl-names = "default";
49                         status = "okay";
50
51                         eeprom@50 {
52                                 compatible = "at,24c04";
53                                 pagesize = <16>;
54                                 reg = <0x50>;
55                         };
56                 };
57
58                 pinctrl: pinctrl@10000 {
59                         pmx_usb_power_enable: pmx-usb-power-enable {
60                                 marvell,pins = "mpp14";
61                                 marvell,function = "gpio";
62                         };
63                 };
64         };
65
66         gpio_keys {
67                 compatible = "gpio-keys";
68
69                 button@1{
70                         label = "Power push button";
71                         linux,code = <KEY_POWER>;
72                         gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
73                 };
74         };
75
76         gpio-leds {
77                 compatible = "gpio-leds";
78
79                 red-fail {
80                         label = "laplug_v2:red:power";
81                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
82                 };
83                 blue-power {
84                         label = "laplug_v2:blue:power";
85                         gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
86                         linux,default-trigger = "default-on";
87                 };
88         };
89
90         gpio_poweroff {
91                 compatible = "gpio-poweroff";
92                 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
93         };
94
95         regulators {
96                 compatible = "simple-bus";
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99                 pinctrl-0 = <&pmx_usb_power_enable>;
100                 pinctrl-names = "default";
101
102                 usb_power_back1: regulator@1 {
103                         compatible = "regulator-fixed";
104                         reg = <1>;
105                         regulator-name = "USB Power Back 1";
106                         regulator-min-microvolt = <5000000>;
107                         regulator-max-microvolt = <5000000>;
108                         enable-active-high;
109                         regulator-always-on;
110                         regulator-boot-on;
111                         gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
112                 };
113
114                 usb_power_back2: regulator@2 {
115                         compatible = "regulator-fixed";
116                         reg = <2>;
117                         regulator-name = "USB Power Back 2";
118                         regulator-min-microvolt = <5000000>;
119                         regulator-max-microvolt = <5000000>;
120                         enable-active-high;
121                         regulator-always-on;
122                         regulator-boot-on;
123                         gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
124                 };
125
126                 usb_power_front: regulator@3 {
127                         compatible = "regulator-fixed";
128                         reg = <3>;
129                         regulator-name = "USB Power Front";
130                         regulator-min-microvolt = <5000000>;
131                         regulator-max-microvolt = <5000000>;
132                         enable-active-high;
133                         regulator-always-on;
134                         regulator-boot-on;
135                         gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
136                 };
137         };
138 };
139
140 &nand {
141         /* Total size : 512MB */
142         status = "okay";
143         pinctrl-0 = <&pmx_nand>;
144
145         partition@0 {
146                 label = "u-boot";
147                 reg = <0x0 0x100000>; /* 1MB */
148                 read-only;
149         };
150
151         partition@100000 {
152                 label = "uImage";
153                 reg = <0x100000 0x1000000>; /* 16MB */
154         };
155
156         partition@1100000 {
157                 label = "rootfs";
158                 reg = <0x1100000 0x1EF00000>; /* 495MB */
159         };
160 };
161
162 &mdio {
163         status = "okay";
164
165         ethphy0: ethernet-phy@0 {
166                 device_type = "ethernet-phy";
167                 reg = <0>;
168         };
169 };
170
171 &eth0 {
172         status = "okay";
173         ethernet0-port@0 {
174                 phy-handle = <&ethphy0>;
175         };
176 };