Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[deliverable/linux.git] / arch / arm / boot / dts / kirkwood-mv88f6281gtw-ge.dts
CommitLineData
37ae08c9
TP
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
ea489af0
JC
17#include "kirkwood.dtsi"
18#include "kirkwood-6281.dtsi"
37ae08c9
TP
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";
ab833614 31 stdout-path = &uart0;
37ae08c9
TP
32 };
33
34 ocp@f1000000 {
a9483969 35 pin-controller@10000 {
37ae08c9
TP
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 {
37ae08c9
TP
53 status = "okay";
54
55 flash@0 {
56 #address-cells = <1>;
57 #size-cells = <1>;
943d45aa 58 compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
37ae08c9
TP
59 reg = <0>;
60 spi-max-frequency = <50000000>;
61 mode = <0>;
62 };
63 };
64
65 serial@12000 {
9f2339a6 66 status = "okay";
37ae08c9
TP
67 };
68
69 ehci@50000 {
70 status = "okay";
71 };
37ae08c9
TP
72 };
73
74 gpio-leds {
75 compatible = "gpio-leds";
76 pinctrl-0 = <&pmx_leds &pmx_usb_led>;
77 pinctrl-names = "default";
78
79 green-status {
80 label = "gtw:green:Status";
3a31f2d7 81 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
37ae08c9
TP
82 };
83
84 red-status {
85 label = "gtw:red:Status";
3a31f2d7 86 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
37ae08c9
TP
87 };
88
89 green-usb {
90 label = "gtw:green:USB";
3a31f2d7 91 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
37ae08c9
TP
92 };
93 };
94
95 gpio_keys {
96 compatible = "gpio-keys";
97 #address-cells = <1>;
98 #size-cells = <0>;
99 pinctrl-0 = <&pmx_keys>;
100 pinctrl-names = "default";
101
395c755f 102 restart {
37ae08c9 103 label = "SWR Button";
23301190 104 linux,code = <KEY_RESTART>;
3a31f2d7 105 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
37ae08c9 106 };
395c755f 107 wps {
37ae08c9 108 label = "WPS Button";
23301190 109 linux,code = <KEY_WPS_BUTTON>;
3a31f2d7 110 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
37ae08c9
TP
111 };
112 };
e7c8f380 113
689168aa 114 dsa {
e7c8f380 115 compatible = "marvell,dsa";
4f5e01e9 116 #address-cells = <1>;
e7c8f380
AL
117 #size-cells = <0>;
118
4f5e01e9
AL
119 dsa,ethernet = <&eth0port>;
120 dsa,mii-bus = <&mdio>;
e7c8f380
AL
121
122 switch@0 {
123 #address-cells = <1>;
124 #size-cells = <0>;
125 reg = <0 0>; /* MDIO address 0, switch 0 in tree */
126
127 port@0 {
128 reg = <0>;
129 label = "lan1";
130 };
131
132 port@1 {
133 reg = <1>;
134 label = "lan2";
135 };
136
137 port@2 {
138 reg = <2>;
139 label = "lan3";
140 };
141
142 port@3 {
143 reg = <3>;
144 label = "lan4";
145 };
146
147 port@4 {
148 reg = <4>;
149 label = "wan";
150 };
151
152 port@5 {
153 reg = <5>;
154 label = "cpu";
155 };
156 };
157 };
158};
159
160&mdio {
161 status = "okay";
e7c8f380
AL
162};
163
164&eth0 {
165 status = "okay";
4f5e01e9 166
e7c8f380 167 ethernet0-port@0 {
4f5e01e9
AL
168 speed = <1000>;
169 duplex = <1>;
e7c8f380 170 };
37ae08c9 171};
eb13cf83
AL
172
173&pciec {
174 status = "okay";
175};
176
177&pcie0 {
178 status = "okay";
179};
This page took 0.158466 seconds and 5 git commands to generate.