]>
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"; | |
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 { | |
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"; | |
37ae08c9 TP |
70 | status = "ok"; |
71 | }; | |
72 | ||
73 | ehci@50000 { | |
74 | status = "okay"; | |
75 | }; | |
76 | ||
77 | pcie-controller { | |
78 | status = "okay"; | |
79 | ||
80 | pcie@1,0 { | |
81 | status = "okay"; | |
82 | }; | |
83 | }; | |
84 | }; | |
85 | ||
86 | gpio-leds { | |
87 | compatible = "gpio-leds"; | |
88 | pinctrl-0 = <&pmx_leds &pmx_usb_led>; | |
89 | pinctrl-names = "default"; | |
90 | ||
91 | green-status { | |
92 | label = "gtw:green:Status"; | |
3a31f2d7 | 93 | gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; |
37ae08c9 TP |
94 | }; |
95 | ||
96 | red-status { | |
97 | label = "gtw:red:Status"; | |
3a31f2d7 | 98 | gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
37ae08c9 TP |
99 | }; |
100 | ||
101 | green-usb { | |
102 | label = "gtw:green:USB"; | |
3a31f2d7 | 103 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
37ae08c9 TP |
104 | }; |
105 | }; | |
106 | ||
107 | gpio_keys { | |
108 | compatible = "gpio-keys"; | |
109 | #address-cells = <1>; | |
110 | #size-cells = <0>; | |
111 | pinctrl-0 = <&pmx_keys>; | |
112 | pinctrl-names = "default"; | |
113 | ||
114 | button@1 { | |
115 | label = "SWR Button"; | |
23301190 | 116 | linux,code = <KEY_RESTART>; |
3a31f2d7 | 117 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
37ae08c9 TP |
118 | }; |
119 | button@2 { | |
120 | label = "WPS Button"; | |
23301190 | 121 | linux,code = <KEY_WPS_BUTTON>; |
3a31f2d7 | 122 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
37ae08c9 TP |
123 | }; |
124 | }; | |
e7c8f380 AL |
125 | |
126 | dsa@0 { | |
127 | compatible = "marvell,dsa"; | |
128 | #address-cells = <2>; | |
129 | #size-cells = <0>; | |
130 | ||
131 | dsa,ethernet = <ð0>; | |
132 | dsa,mii-bus = <ðphy0>; | |
133 | ||
134 | switch@0 { | |
135 | #address-cells = <1>; | |
136 | #size-cells = <0>; | |
137 | reg = <0 0>; /* MDIO address 0, switch 0 in tree */ | |
138 | ||
139 | port@0 { | |
140 | reg = <0>; | |
141 | label = "lan1"; | |
142 | }; | |
143 | ||
144 | port@1 { | |
145 | reg = <1>; | |
146 | label = "lan2"; | |
147 | }; | |
148 | ||
149 | port@2 { | |
150 | reg = <2>; | |
151 | label = "lan3"; | |
152 | }; | |
153 | ||
154 | port@3 { | |
155 | reg = <3>; | |
156 | label = "lan4"; | |
157 | }; | |
158 | ||
159 | port@4 { | |
160 | reg = <4>; | |
161 | label = "wan"; | |
162 | }; | |
163 | ||
164 | port@5 { | |
165 | reg = <5>; | |
166 | label = "cpu"; | |
167 | }; | |
168 | }; | |
169 | }; | |
170 | }; | |
171 | ||
172 | &mdio { | |
173 | status = "okay"; | |
174 | ||
175 | ethphy0: ethernet-phy@ff { | |
176 | reg = <0xff>; /* No phy attached */ | |
177 | speed = <1000>; | |
178 | duplex = <1>; | |
179 | }; | |
180 | }; | |
181 | ||
182 | ð0 { | |
183 | status = "okay"; | |
184 | ethernet0-port@0 { | |
185 | phy-handle = <ðphy0>; | |
186 | }; | |
37ae08c9 | 187 | }; |