blob: dc86429756d79787a780946668e2a80cd50fa893 [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";
31 };
32
33 ocp@f1000000 {
34 pinctrl@10000 {
35 pmx_usb_led: pmx-usb-led {
36 marvell,pins = "mpp12";
37 marvell,function = "gpo";
38 };
39
40 pmx_leds: pmx-leds {
41 marvell,pins = "mpp20", "mpp21";
42 marvell,function = "gpio";
43 };
44
45 pmx_keys: pmx-keys {
46 marvell,pins = "mpp46", "mpp47";
47 marvell,function = "gpio";
48 };
49 };
50
51 spi@10600 {
52 pinctrl-0 = <&pmx_spi>;
53 pinctrl-names = "default";
54 status = "okay";
55
56 flash@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "mx25l12805d";
60 reg = <0>;
61 spi-max-frequency = <50000000>;
62 mode = <0>;
63 };
64 };
65
66 serial@12000 {
67 pinctrl-0 = <&pmx_uart0>;
68 pinctrl-names = "default";
69 clock-frequency = <200000000>;
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";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010093 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +020094 };
95
96 red-status {
97 label = "gtw:red:Status";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010098 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +020099 };
100
101 green-usb {
102 label = "gtw:green:USB";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100103 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200104 };
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";
Andrew Lunn23301192013-12-04 16:51:38 +0100116 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100117 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200118 };
119 button@2 {
120 label = "WPS Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100121 linux,code = <KEY_WPS_BUTTON>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100122 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
Thomas Petazzoni37ae08c2013-08-01 17:07:32 +0200123 };
124 };
125};