x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / arm / boot / dts / armada-388-clearfog.dts
blob2745b741631339b5afb865b9dedc5a0629714052
1 /*
2  * Device Tree file for SolidRun Clearfog Pro revision A1 rev 2.0 (88F6828)
3  *
4  *  Copyright (C) 2015 Russell King
5  *
6  * This board is in development; the contents of this file work with
7  * the A1 rev 2.0 of the board, which does not represent final
8  * production board.  Things will change, don't expect this file to
9  * remain compatible info the future.
10  *
11  * This file is dual-licensed: you can use it either under the terms
12  * of the GPL or the X11 license, at your option. Note that this dual
13  * licensing only applies to this file, and not this project as a
14  * whole.
15  *
16  *  a) This file is free software; you can redistribute it and/or
17  *     modify it under the terms of the GNU General Public License
18  *     version 2 as published by the Free Software Foundation.
19  *
20  *     This file is distributed in the hope that it will be useful,
21  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
22  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  *     GNU General Public License for more details.
24  *
25  * Or, alternatively,
26  *
27  *  b) Permission is hereby granted, free of charge, to any person
28  *     obtaining a copy of this software and associated documentation
29  *     files (the "Software"), to deal in the Software without
30  *     restriction, including without limitation the rights to use,
31  *     copy, modify, merge, publish, distribute, sublicense, and/or
32  *     sell copies of the Software, and to permit persons to whom the
33  *     Software is furnished to do so, subject to the following
34  *     conditions:
35  *
36  *     The above copyright notice and this permission notice shall be
37  *     included in all copies or substantial portions of the Software.
38  *
39  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46  *     OTHER DEALINGS IN THE SOFTWARE.
47  */
49 /dts-v1/;
50 #include "armada-388-clearfog.dtsi"
52 / {
53         model = "SolidRun Clearfog A1";
54         compatible = "solidrun,clearfog-a1", "marvell,armada388",
55                 "marvell,armada385", "marvell,armada380";
57         soc {
58                 internal-regs {
59                         usb3@f0000 {
60                                 /* CON2, nearest CPU, USB2 only. */
61                                 status = "okay";
62                         };
63                 };
65                 pcie-controller {
66                         pcie@3,0 {
67                                 /* Port 2, Lane 0. CON2, nearest CPU. */
68                                 reset-gpios = <&expander0 2 GPIO_ACTIVE_LOW>;
69                                 status = "okay";
70                         };
71                 };
72         };
74         dsa@0 {
75                 status = "disabled";
77                 compatible = "marvell,dsa";
78                 dsa,ethernet = <&eth1>;
79                 dsa,mii-bus = <&mdio>;
80                 pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>;
81                 pinctrl-names = "default";
82                 #address-cells = <2>;
83                 #size-cells = <0>;
85                 switch@0 {
86                         #address-cells = <1>;
87                         #size-cells = <0>;
88                         reg = <4 0>;
90                         port@0 {
91                                 reg = <0>;
92                                 label = "lan5";
93                         };
95                         port@1 {
96                                 reg = <1>;
97                                 label = "lan4";
98                         };
100                         port@2 {
101                                 reg = <2>;
102                                 label = "lan3";
103                         };
105                         port@3 {
106                                 reg = <3>;
107                                 label = "lan2";
108                         };
110                         port@4 {
111                                 reg = <4>;
112                                 label = "lan1";
113                         };
115                         port@5 {
116                                 reg = <5>;
117                                 label = "cpu";
118                         };
120                         port@6 {
121                                 /* 88E1512 external phy */
122                                 reg = <6>;
123                                 label = "lan6";
124                                 fixed-link {
125                                         speed = <1000>;
126                                         full-duplex;
127                                 };
128                         };
129                 };
130         };
132         gpio-keys {
133                 compatible = "gpio-keys";
134                 pinctrl-0 = <&rear_button_pins>;
135                 pinctrl-names = "default";
137                 button_0 {
138                         /* The rear SW3 button */
139                         label = "Rear Button";
140                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
141                         linux,can-disable;
142                         linux,code = <BTN_0>;
143                 };
144         };
147 &eth1 {
148         /* ethernet@30000 */
149         fixed-link {
150                 speed = <1000>;
151                 full-duplex;
152         };
155 &expander0 {
156         /*
157          * PCA9655 GPIO expander:
158          *  0-CON3 CLKREQ#
159          *  1-CON3 PERST#
160          *  2-CON2 PERST#
161          *  3-CON3 W_DISABLE
162          *  4-CON2 CLKREQ#
163          *  5-USB3 overcurrent
164          *  6-USB3 power
165          *  7-CON2 W_DISABLE
166          *  8-JP4 P1
167          *  9-JP4 P4
168          * 10-JP4 P5
169          * 11-m.2 DEVSLP
170          * 12-SFP_LOS
171          * 13-SFP_TX_FAULT
172          * 14-SFP_TX_DISABLE
173          * 15-SFP_MOD_DEF0
174          */
175         pcie2_0_clkreq {
176                 gpio-hog;
177                 gpios = <4 GPIO_ACTIVE_LOW>;
178                 input;
179                 line-name = "pcie2.0-clkreq";
180         };
181         pcie2_0_w_disable {
182                 gpio-hog;
183                 gpios = <7 GPIO_ACTIVE_LOW>;
184                 output-low;
185                 line-name = "pcie2.0-w-disable";
186         };
189 &pinctrl {
190         clearfog_dsa0_clk_pins: clearfog-dsa0-clk-pins {
191                 marvell,pins = "mpp46";
192                 marvell,function = "ref";
193         };
194         clearfog_dsa0_pins: clearfog-dsa0-pins {
195                 marvell,pins = "mpp23", "mpp41";
196                 marvell,function = "gpio";
197         };
198         clearfog_spi1_cs_pins: spi1-cs-pins {
199                 marvell,pins = "mpp55";
200                 marvell,function = "spi1";
201         };
202         rear_button_pins: rear-button-pins {
203                 marvell,pins = "mpp34";
204                 marvell,function = "gpio";
205         };
208 &mdio {
209         status = "okay";
211         switch@4 {
212                 compatible = "marvell,mv88e6085";
213                 #address-cells = <1>;
214                 #size-cells = <0>;
215                 reg = <4>;
216                 pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>;
217                 pinctrl-names = "default";
219                 ports {
220                         #address-cells = <1>;
221                         #size-cells = <0>;
223                         port@0 {
224                                 reg = <0>;
225                                 label = "lan5";
226                         };
228                         port@1 {
229                                 reg = <1>;
230                                 label = "lan4";
231                         };
233                         port@2 {
234                                 reg = <2>;
235                                 label = "lan3";
236                         };
238                         port@3 {
239                                 reg = <3>;
240                                 label = "lan2";
241                         };
243                         port@4 {
244                                 reg = <4>;
245                                 label = "lan1";
246                         };
248                         port@5 {
249                                 reg = <5>;
250                                 label = "cpu";
251                                 ethernet = <&eth1>;
252                                 fixed-link {
253                                         speed = <1000>;
254                                         full-duplex;
255                                 };
256                         };
258                         port@6 {
259                                 /* 88E1512 external phy */
260                                 reg = <6>;
261                                 label = "lan6";
262                                 fixed-link {
263                                         speed = <1000>;
264                                         full-duplex;
265                                 };
266                         };
267                 };
268         };
271 &spi1 {
272         /*
273          * Add SPI CS pins for clearfog:
274          * CS0: W25Q32 (not populated on uSOM)
275          * CS1:
276          * CS2: mikrobus
277          */
278         pinctrl-0 = <&spi1_pins &clearfog_spi1_cs_pins &mikro_spi_pins>;