blob: e1dcb2b83f24b036e10a416d6ddfd1326a2a7c53 [file] [log] [blame]
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +02001/*
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
Jason Cooperea489af2013-08-06 15:02:24 +000017#include "kirkwood.dtsi"
18#include "kirkwood-6281.dtsi"
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +020019
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";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020031 stdout-path = &uart0;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +020032 };
33
34 ocp@f1000000 {
35 pinctrl@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 pinctrl-0 = <&pmx_spi>;
54 pinctrl-names = "default";
55 status = "okay";
56
57 flash@0 {
58 #address-cells = <1>;
59 #size-cells = <1>;
60 compatible = "mx25l12805d";
61 reg = <0>;
62 spi-max-frequency = <50000000>;
63 mode = <0>;
64 };
65 };
66
67 serial@12000 {
68 pinctrl-0 = <&pmx_uart0>;
69 pinctrl-names = "default";
70 clock-frequency = <200000000>;
71 status = "ok";
72 };
73
74 ehci@50000 {
75 status = "okay";
76 };
77
78 pcie-controller {
79 status = "okay";
80
81 pcie@1,0 {
82 status = "okay";
83 };
84 };
85 };
86
87 gpio-leds {
88 compatible = "gpio-leds";
89 pinctrl-0 = <&pmx_leds &pmx_usb_led>;
90 pinctrl-names = "default";
91
92 green-status {
93 label = "gtw:green:Status";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010094 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +020095 };
96
97 red-status {
98 label = "gtw:red:Status";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010099 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200100 };
101
102 green-usb {
103 label = "gtw:green:USB";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100104 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200105 };
106 };
107
108 gpio_keys {
109 compatible = "gpio-keys";
110 #address-cells = <1>;
111 #size-cells = <0>;
112 pinctrl-0 = <&pmx_keys>;
113 pinctrl-names = "default";
114
115 button@1 {
116 label = "SWR Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100117 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100118 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200119 };
120 button@2 {
121 label = "WPS Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100122 linux,code = <KEY_WPS_BUTTON>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100123 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200124 };
125 };
Andrew Lunne7c8f382014-02-22 20:14:45 +0100126
127 dsa@0 {
128 compatible = "marvell,dsa";
129 #address-cells = <2>;
130 #size-cells = <0>;
131
132 dsa,ethernet = <&eth0>;
133 dsa,mii-bus = <&ethphy0>;
134
135 switch@0 {
136 #address-cells = <1>;
137 #size-cells = <0>;
138 reg = <0 0>; /* MDIO address 0, switch 0 in tree */
139
140 port@0 {
141 reg = <0>;
142 label = "lan1";
143 };
144
145 port@1 {
146 reg = <1>;
147 label = "lan2";
148 };
149
150 port@2 {
151 reg = <2>;
152 label = "lan3";
153 };
154
155 port@3 {
156 reg = <3>;
157 label = "lan4";
158 };
159
160 port@4 {
161 reg = <4>;
162 label = "wan";
163 };
164
165 port@5 {
166 reg = <5>;
167 label = "cpu";
168 };
169 };
170 };
171};
172
173&mdio {
174 status = "okay";
175
176 ethphy0: ethernet-phy@ff {
177 reg = <0xff>; /* No phy attached */
178 speed = <1000>;
179 duplex = <1>;
180 };
181};
182
183&eth0 {
184 status = "okay";
185 ethernet0-port@0 {
186 phy-handle = <&ethphy0>;
187 };
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200188};