Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / armada-xp-axpwifiap.dts
1 /*
2  * Device Tree file for Marvell RD-AXPWiFiAP.
3  *
4  * Note: this board is shipped with a new generation boot loader that
5  * remaps internal registers at 0xf1000000. Therefore, if earlyprintk
6  * is used, the CONFIG_DEBUG_MVEBU_UART_ALTERNATE option should be
7  * used.
8  *
9  * Copyright (C) 2013 Marvell
10  *
11  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12  *
13  * This file is licensed under the terms of the GNU General Public
14  * License version 2.  This program is licensed "as is" without any
15  * warranty of any kind, whether express or implied.
16  */
17
18 /dts-v1/;
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include "armada-xp-mv78230.dtsi"
22
23 / {
24         model = "Marvell RD-AXPWiFiAP";
25         compatible = "marvell,rd-axpwifiap", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
26
27         chosen {
28                 bootargs = "console=ttyS0,115200 earlyprintk";
29         };
30
31         memory {
32                 device_type = "memory";
33                 reg = <0x00000000 0x00000000 0x00000000 0x40000000>; /* 1GB */
34         };
35
36         soc {
37                 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
38                           MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
39
40                 pcie-controller {
41                         status = "okay";
42
43                         /* First mini-PCIe port */
44                         pcie@1,0 {
45                                 /* Port 0, Lane 0 */
46                                 status = "okay";
47                         };
48
49                         /* Second mini-PCIe port */
50                         pcie@2,0 {
51                                 /* Port 0, Lane 1 */
52                                 status = "okay";
53                         };
54
55                         /* Renesas uPD720202 USB 3.0 controller */
56                         pcie@3,0 {
57                                 /* Port 0, Lane 3 */
58                                 status = "okay";
59                         };
60                 };
61
62                 internal-regs {
63                         pinctrl {
64                                 pinctrl-0 = <&pmx_phy_int>;
65                                 pinctrl-names = "default";
66
67                                 pmx_ge0: pmx-ge0 {
68                                         marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
69                                                        "mpp4", "mpp5", "mpp6", "mpp7",
70                                                        "mpp8", "mpp9", "mpp10", "mpp11";
71                                         marvell,function = "ge0";
72                                 };
73
74                                 pmx_ge1: pmx-ge1 {
75                                         marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15",
76                                                        "mpp16", "mpp17", "mpp18", "mpp19",
77                                                        "mpp20", "mpp21", "mpp22", "mpp23";
78                                         marvell,function = "ge1";
79                                 };
80
81                                 pmx_keys: pmx-keys {
82                                         marvell,pins = "mpp33";
83                                         marvell,function = "gpio";
84                                 };
85
86                                 pmx_spi: pmx-spi {
87                                         marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
88                                         marvell,function = "spi";
89                                 };
90
91                                 pmx_phy_int: pmx-phy-int {
92                                         marvell,pins = "mpp32";
93                                         marvell,function = "gpio";
94                                 };
95                         };
96
97                         serial@12000 {
98                                 clock-frequency = <250000000>;
99                                 status = "okay";
100                         };
101
102                         serial@12100 {
103                                 clock-frequency = <250000000>;
104                                 status = "okay";
105                         };
106
107                         sata@a0000 {
108                                 nr-ports = <1>;
109                                 status = "okay";
110                         };
111
112                         mdio {
113                                 phy0: ethernet-phy@0 {
114                                         reg = <0>;
115                                 };
116
117                                 phy1: ethernet-phy@1 {
118                                         reg = <1>;
119                                 };
120                         };
121
122                         ethernet@70000 {
123                                 pinctrl-0 = <&pmx_ge0>;
124                                 pinctrl-names = "default";
125                                 status = "okay";
126                                 phy = <&phy0>;
127                                 phy-mode = "rgmii-id";
128                         };
129                         ethernet@74000 {
130                                 pinctrl-0 = <&pmx_ge1>;
131                                 pinctrl-names = "default";
132                                 status = "okay";
133                                 phy = <&phy1>;
134                                 phy-mode = "rgmii-id";
135                         };
136
137                         spi0: spi@10600 {
138                                 status = "okay";
139                                 pinctrl-0 = <&pmx_spi>;
140                                 pinctrl-names = "default";
141
142                                 spi-flash@0 {
143                                         #address-cells = <1>;
144                                         #size-cells = <1>;
145                                         compatible = "n25q128a13";
146                                         reg = <0>; /* Chip select 0 */
147                                         spi-max-frequency = <108000000>;
148                                 };
149                         };
150                 };
151         };
152
153         gpio_keys {
154                 compatible = "gpio-keys";
155                 #address-cells = <1>;
156                 #size-cells = <0>;
157                 pinctrl-0 = <&pmx_keys>;
158                 pinctrl-names = "default";
159
160                 button@1 {
161                         label = "Factory Reset Button";
162                         linux,code = <KEY_SETUP>;
163                         gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
164                 };
165         };
166 };