Commit | Line | Data |
---|---|---|
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"; | |
31 | }; | |
32 | ||
788296b2 SH |
33 | mbus { |
34 | pcie-controller { | |
35 | status = "okay"; | |
36 | ||
37 | pcie@1,0 { | |
38 | status = "okay"; | |
39 | }; | |
40 | }; | |
41 | }; | |
42 | ||
37ae08c9 TP |
43 | ocp@f1000000 { |
44 | pinctrl@10000 { | |
45 | pmx_usb_led: pmx-usb-led { | |
46 | marvell,pins = "mpp12"; | |
47 | marvell,function = "gpo"; | |
48 | }; | |
49 | ||
50 | pmx_leds: pmx-leds { | |
51 | marvell,pins = "mpp20", "mpp21"; | |
52 | marvell,function = "gpio"; | |
53 | }; | |
54 | ||
55 | pmx_keys: pmx-keys { | |
56 | marvell,pins = "mpp46", "mpp47"; | |
57 | marvell,function = "gpio"; | |
58 | }; | |
59 | }; | |
60 | ||
61 | spi@10600 { | |
62 | pinctrl-0 = <&pmx_spi>; | |
63 | pinctrl-names = "default"; | |
64 | status = "okay"; | |
65 | ||
66 | flash@0 { | |
67 | #address-cells = <1>; | |
68 | #size-cells = <1>; | |
dcdf9cfc | 69 | compatible = "mxicy,mx25l12805d"; |
37ae08c9 TP |
70 | reg = <0>; |
71 | spi-max-frequency = <50000000>; | |
72 | mode = <0>; | |
73 | }; | |
74 | }; | |
75 | ||
76 | serial@12000 { | |
77 | pinctrl-0 = <&pmx_uart0>; | |
78 | pinctrl-names = "default"; | |
79 | clock-frequency = <200000000>; | |
80 | status = "ok"; | |
81 | }; | |
82 | ||
83 | ehci@50000 { | |
84 | status = "okay"; | |
85 | }; | |
37ae08c9 TP |
86 | }; |
87 | ||
88 | gpio-leds { | |
89 | compatible = "gpio-leds"; | |
90 | pinctrl-0 = <&pmx_leds &pmx_usb_led>; | |
91 | pinctrl-names = "default"; | |
92 | ||
93 | green-status { | |
94 | label = "gtw:green:Status"; | |
3a31f2d7 | 95 | gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; |
37ae08c9 TP |
96 | }; |
97 | ||
98 | red-status { | |
99 | label = "gtw:red:Status"; | |
3a31f2d7 | 100 | gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
37ae08c9 TP |
101 | }; |
102 | ||
103 | green-usb { | |
104 | label = "gtw:green:USB"; | |
3a31f2d7 | 105 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
37ae08c9 TP |
106 | }; |
107 | }; | |
108 | ||
109 | gpio_keys { | |
110 | compatible = "gpio-keys"; | |
111 | #address-cells = <1>; | |
112 | #size-cells = <0>; | |
113 | pinctrl-0 = <&pmx_keys>; | |
114 | pinctrl-names = "default"; | |
115 | ||
116 | button@1 { | |
117 | label = "SWR Button"; | |
23301190 | 118 | linux,code = <KEY_RESTART>; |
3a31f2d7 | 119 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
37ae08c9 TP |
120 | }; |
121 | button@2 { | |
122 | label = "WPS Button"; | |
23301190 | 123 | linux,code = <KEY_WPS_BUTTON>; |
3a31f2d7 | 124 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
37ae08c9 TP |
125 | }; |
126 | }; | |
e7c8f380 AL |
127 | |
128 | dsa@0 { | |
129 | compatible = "marvell,dsa"; | |
130 | #address-cells = <2>; | |
131 | #size-cells = <0>; | |
132 | ||
133 | dsa,ethernet = <ð0>; | |
134 | dsa,mii-bus = <ðphy0>; | |
135 | ||
136 | switch@0 { | |
137 | #address-cells = <1>; | |
138 | #size-cells = <0>; | |
139 | reg = <0 0>; /* MDIO address 0, switch 0 in tree */ | |
140 | ||
141 | port@0 { | |
142 | reg = <0>; | |
143 | label = "lan1"; | |
144 | }; | |
145 | ||
146 | port@1 { | |
147 | reg = <1>; | |
148 | label = "lan2"; | |
149 | }; | |
150 | ||
151 | port@2 { | |
152 | reg = <2>; | |
153 | label = "lan3"; | |
154 | }; | |
155 | ||
156 | port@3 { | |
157 | reg = <3>; | |
158 | label = "lan4"; | |
159 | }; | |
160 | ||
161 | port@4 { | |
162 | reg = <4>; | |
163 | label = "wan"; | |
164 | }; | |
165 | ||
166 | port@5 { | |
167 | reg = <5>; | |
168 | label = "cpu"; | |
169 | }; | |
170 | }; | |
171 | }; | |
172 | }; | |
173 | ||
174 | &mdio { | |
175 | status = "okay"; | |
176 | ||
177 | ethphy0: ethernet-phy@ff { | |
178 | reg = <0xff>; /* No phy attached */ | |
179 | speed = <1000>; | |
180 | duplex = <1>; | |
181 | }; | |
182 | }; | |
183 | ||
184 | ð0 { | |
185 | status = "okay"; | |
186 | ethernet0-port@0 { | |
187 | phy-handle = <ðphy0>; | |
188 | }; | |
37ae08c9 | 189 | }; |