]> asedeno.scripts.mit.edu Git - linux.git/blob - arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
Merge tag 'samsung-dt-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux...
[linux.git] / arch / arm / boot / dts / kirkwood-mv88f6281gtw-ge.dts
1 /*
2  * Marvell 88F6281 GTW GE Board
3  *
4  * Lennert Buytenhek <buytenh@marvell.com>
5  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6  *
7  * This file is licensed under the terms of the GNU General Public
8  * License version 2.  This program is licensed "as is" without any
9  * warranty of any kind, whether express or implied.
10  *
11  * This file contains the definitions that are common between the 6281
12  * and 6282 variants of the Marvell Kirkwood Development Board.
13  */
14
15 /dts-v1/;
16
17 #include "kirkwood.dtsi"
18 #include "kirkwood-6281.dtsi"
19
20 / {
21         model = "Marvell 88F6281 GTW GE Board";
22         compatible = "marvell,mv88f6281gtw-ge", "marvell,kirkwood-88f6281", "marvell,kirkwood";
23
24         memory {
25                 device_type = "memory";
26                 reg = <0x00000000 0x20000000>; /* 512 MB */
27         };
28
29         chosen {
30                 bootargs = "console=ttyS0,115200n8 earlyprintk";
31                 stdout-path = &uart0;
32         };
33
34         ocp@f1000000 {
35                 pin-controller@10000 {
36                         pmx_usb_led: pmx-usb-led {
37                                 marvell,pins = "mpp12";
38                                 marvell,function = "gpo";
39                         };
40
41                         pmx_leds: pmx-leds {
42                                 marvell,pins = "mpp20", "mpp21";
43                                 marvell,function = "gpio";
44                         };
45
46                         pmx_keys: pmx-keys {
47                                 marvell,pins = "mpp46", "mpp47";
48                                 marvell,function = "gpio";
49                         };
50                 };
51
52                 spi@10600 {
53                         status = "okay";
54
55                         flash@0 {
56                                 #address-cells = <1>;
57                                 #size-cells = <1>;
58                                 compatible = "mxicy,mx25l12805d";
59                                 reg = <0>;
60                                 spi-max-frequency = <50000000>;
61                                 mode = <0>;
62                         };
63                 };
64
65                 serial@12000 {
66                         status = "okay";
67                 };
68
69                 ehci@50000 {
70                         status = "okay";
71                 };
72
73                 pcie-controller {
74                         status = "okay";
75
76                         pcie@1,0 {
77                                 status = "okay";
78                         };
79                 };
80         };
81
82         gpio-leds {
83                 compatible = "gpio-leds";
84                 pinctrl-0 = <&pmx_leds &pmx_usb_led>;
85                 pinctrl-names = "default";
86
87                 green-status {
88                         label = "gtw:green:Status";
89                         gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
90                 };
91
92                 red-status {
93                         label = "gtw:red:Status";
94                         gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
95                 };
96
97                 green-usb {
98                         label = "gtw:green:USB";
99                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
100                 };
101         };
102
103         gpio_keys {
104                 compatible = "gpio-keys";
105                 #address-cells = <1>;
106                 #size-cells = <0>;
107                 pinctrl-0 = <&pmx_keys>;
108                 pinctrl-names = "default";
109
110                 button@1 {
111                         label = "SWR Button";
112                         linux,code = <KEY_RESTART>;
113                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
114                 };
115                 button@2 {
116                         label = "WPS Button";
117                         linux,code = <KEY_WPS_BUTTON>;
118                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
119                 };
120         };
121
122         dsa@0 {
123                 compatible = "marvell,dsa";
124                 #address-cells = <2>;
125                 #size-cells = <0>;
126
127                 dsa,ethernet = <&eth0>;
128                 dsa,mii-bus = <&ethphy0>;
129
130                 switch@0 {
131                         #address-cells = <1>;
132                         #size-cells = <0>;
133                         reg = <0 0>;    /* MDIO address 0, switch 0 in tree */
134
135                         port@0 {
136                                 reg = <0>;
137                                 label = "lan1";
138                         };
139
140                         port@1 {
141                                 reg = <1>;
142                                 label = "lan2";
143                         };
144
145                         port@2 {
146                                 reg = <2>;
147                                 label = "lan3";
148                         };
149
150                         port@3 {
151                                 reg = <3>;
152                                 label = "lan4";
153                         };
154
155                         port@4 {
156                                 reg = <4>;
157                                 label = "wan";
158                         };
159
160                         port@5 {
161                                 reg = <5>;
162                                 label = "cpu";
163                         };
164                 };
165         };
166 };
167
168 &mdio {
169         status = "okay";
170
171         ethphy0: ethernet-phy@ff {
172                 reg = <0xff>;   /* No phy attached */
173                 speed = <1000>;
174                 duplex = <1>;
175         };
176 };
177
178 &eth0 {
179         status = "okay";
180         ethernet0-port@0 {
181                 phy-handle = <&ethphy0>;
182         };
183 };