Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Marvell 88F6281 GTW GE Board
4 *
5 * Lennert Buytenhek <buytenh@marvell.com>
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 *
8 * This file contains the definitions that are common between the 6281
9 * and 6282 variants of the Marvell Kirkwood Development Board.
10 */
11
12/dts-v1/;
13
14#include "kirkwood.dtsi"
15#include "kirkwood-6281.dtsi"
16
17/ {
18 model = "Marvell 88F6281 GTW GE Board";
19 compatible = "marvell,mv88f6281gtw-ge", "marvell,kirkwood-88f6281", "marvell,kirkwood";
20
21 memory {
22 device_type = "memory";
23 reg = <0x00000000 0x20000000>; /* 512 MB */
24 };
25
26 chosen {
27 bootargs = "console=ttyS0,115200n8 earlyprintk";
28 stdout-path = &uart0;
29 };
30
31 ocp@f1000000 {
32 pin-controller@10000 {
33 pmx_usb_led: pmx-usb-led {
34 marvell,pins = "mpp12";
35 marvell,function = "gpo";
36 };
37
38 pmx_leds: pmx-leds {
39 marvell,pins = "mpp20", "mpp21";
40 marvell,function = "gpio";
41 };
42
43 pmx_keys: pmx-keys {
44 marvell,pins = "mpp46", "mpp47";
45 marvell,function = "gpio";
46 };
47 };
48
49 spi@10600 {
50 status = "okay";
51
52 flash@0 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <50000000>;
58 mode = <0>;
59 };
60 };
61
62 serial@12000 {
63 status = "okay";
64 };
65
66 ehci@50000 {
67 status = "okay";
68 };
69 };
70
71 gpio-leds {
72 compatible = "gpio-leds";
73 pinctrl-0 = <&pmx_leds &pmx_usb_led>;
74 pinctrl-names = "default";
75
76 green-status {
77 label = "gtw:green:Status";
78 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
79 };
80
81 red-status {
82 label = "gtw:red:Status";
83 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
84 };
85
86 green-usb {
87 label = "gtw:green:USB";
88 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
89 };
90 };
91
92 gpio_keys {
93 compatible = "gpio-keys";
94 #address-cells = <1>;
95 #size-cells = <0>;
96 pinctrl-0 = <&pmx_keys>;
97 pinctrl-names = "default";
98
99 restart {
100 label = "SWR Button";
101 linux,code = <KEY_RESTART>;
102 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
103 };
104 wps {
105 label = "WPS Button";
106 linux,code = <KEY_WPS_BUTTON>;
107 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
108 };
109 };
110};
111
112&mdio {
113 status = "okay";
114
115 switch@0 {
116 compatible = "marvell,mv88e6085";
117 #address-cells = <1>;
118 #size-cells = <0>;
119 reg = <0>;
120
121 ports {
122 #address-cells = <1>;
123 #size-cells = <0>;
124
125 port@0 {
126 reg = <0>;
127 label = "lan1";
128 };
129
130 port@1 {
131 reg = <1>;
132 label = "lan2";
133 };
134
135 port@2 {
136 reg = <2>;
137 label = "lan3";
138 };
139
140 port@3 {
141 reg = <3>;
142 label = "lan4";
143 };
144
145 port@4 {
146 reg = <4>;
147 label = "wan";
148 };
149
150 port@5 {
151 reg = <5>;
152 label = "cpu";
153 ethernet = <ð0port>;
154 fixed-link {
155 speed = <1000>;
156 full-duplex;
157 };
158 };
159 };
160 };
161};
162
163ð0 {
164 status = "okay";
165
166 ethernet0-port@0 {
167 speed = <1000>;
168 duplex = <1>;
169 };
170};
171
172&pciec {
173 status = "okay";
174};
175
176&pcie0 {
177 status = "okay";
178};
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 stdout-path = &uart0;
32 };
33
34 mbus {
35 pcie-controller {
36 status = "okay";
37
38 pcie@1,0 {
39 status = "okay";
40 };
41 };
42 };
43
44 ocp@f1000000 {
45 pin-controller@10000 {
46 pmx_usb_led: pmx-usb-led {
47 marvell,pins = "mpp12";
48 marvell,function = "gpo";
49 };
50
51 pmx_leds: pmx-leds {
52 marvell,pins = "mpp20", "mpp21";
53 marvell,function = "gpio";
54 };
55
56 pmx_keys: pmx-keys {
57 marvell,pins = "mpp46", "mpp47";
58 marvell,function = "gpio";
59 };
60 };
61
62 spi@10600 {
63 status = "okay";
64
65 flash@0 {
66 #address-cells = <1>;
67 #size-cells = <1>;
68 compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <50000000>;
71 mode = <0>;
72 };
73 };
74
75 serial@12000 {
76 status = "okay";
77 };
78
79 ehci@50000 {
80 status = "okay";
81 };
82 };
83
84 gpio-leds {
85 compatible = "gpio-leds";
86 pinctrl-0 = <&pmx_leds &pmx_usb_led>;
87 pinctrl-names = "default";
88
89 green-status {
90 label = "gtw:green:Status";
91 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
92 };
93
94 red-status {
95 label = "gtw:red:Status";
96 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
97 };
98
99 green-usb {
100 label = "gtw:green:USB";
101 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
102 };
103 };
104
105 gpio_keys {
106 compatible = "gpio-keys";
107 #address-cells = <1>;
108 #size-cells = <0>;
109 pinctrl-0 = <&pmx_keys>;
110 pinctrl-names = "default";
111
112 button@1 {
113 label = "SWR Button";
114 linux,code = <KEY_RESTART>;
115 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
116 };
117 button@2 {
118 label = "WPS Button";
119 linux,code = <KEY_WPS_BUTTON>;
120 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
121 };
122 };
123
124 dsa@0 {
125 compatible = "marvell,dsa";
126 #address-cells = <1>;
127 #size-cells = <0>;
128
129 dsa,ethernet = <ð0port>;
130 dsa,mii-bus = <&mdio>;
131
132 switch@0 {
133 #address-cells = <1>;
134 #size-cells = <0>;
135 reg = <0 0>; /* MDIO address 0, switch 0 in tree */
136
137 port@0 {
138 reg = <0>;
139 label = "lan1";
140 };
141
142 port@1 {
143 reg = <1>;
144 label = "lan2";
145 };
146
147 port@2 {
148 reg = <2>;
149 label = "lan3";
150 };
151
152 port@3 {
153 reg = <3>;
154 label = "lan4";
155 };
156
157 port@4 {
158 reg = <4>;
159 label = "wan";
160 };
161
162 port@5 {
163 reg = <5>;
164 label = "cpu";
165 };
166 };
167 };
168};
169
170&mdio {
171 status = "okay";
172};
173
174ð0 {
175 status = "okay";
176
177 ethernet0-port@0 {
178 speed = <1000>;
179 duplex = <1>;
180 };
181};