]> git.ipfire.org Git - people/arne_f/kernel.git/blob - arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
sun7i: dts: add bananapro.
[people/arne_f/kernel.git] / arch / arm / boot / dts / kirkwood-mv88f6281gtw-ge.dts
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
17 #include "kirkwood.dtsi"
18 #include "kirkwood-6281.dtsi"
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
33 mbus {
34 pcie-controller {
35 status = "okay";
36
37 pcie@1,0 {
38 status = "okay";
39 };
40 };
41 };
42
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>;
69 compatible = "mx25l12805d";
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 };
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";
95 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
96 };
97
98 red-status {
99 label = "gtw:red:Status";
100 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
101 };
102
103 green-usb {
104 label = "gtw:green:USB";
105 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
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";
118 linux,code = <KEY_RESTART>;
119 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
120 };
121 button@2 {
122 label = "WPS Button";
123 linux,code = <KEY_WPS_BUTTON>;
124 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
125 };
126 };
127 };