Merge branch 'upstream/android-3.10' into linaro-android-3.10-lsk
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / armada-370-mirabox.dts
1 /*
2  * Device Tree file for Globalscale Mirabox
3  *
4  * Gregory CLEMENT <gregory.clement@free-electrons.com>
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10
11 /dts-v1/;
12 /include/ "armada-370.dtsi"
13
14 / {
15         model = "Globalscale Mirabox";
16         compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
17
18         chosen {
19                 bootargs = "console=ttyS0,115200 earlyprintk";
20         };
21
22         memory {
23                 device_type = "memory";
24                 reg = <0x00000000 0x20000000>; /* 512 MB */
25         };
26
27         soc {
28                 internal-regs {
29                         serial@12000 {
30                                 clock-frequency = <200000000>;
31                                 status = "okay";
32                         };
33                         timer@20300 {
34                                 clock-frequency = <600000000>;
35                                 status = "okay";
36                         };
37
38                         pinctrl {
39                                 pwr_led_pin: pwr-led-pin {
40                                         marvell,pins = "mpp63";
41                                         marvell,function = "gpo";
42                                 };
43
44                                 stat_led_pins: stat-led-pins {
45                                         marvell,pins = "mpp64", "mpp65";
46                                         marvell,function = "gpio";
47                                 };
48                         };
49
50                         gpio_leds {
51                                 compatible = "gpio-leds";
52                                 pinctrl-names = "default";
53                                 pinctrl-0 = <&pwr_led_pin &stat_led_pins>;
54
55                                 green_pwr_led {
56                                         label = "mirabox:green:pwr";
57                                         gpios = <&gpio1 31 1>;
58                                         linux,default-trigger = "heartbeat";
59                                 };
60
61                                 blue_stat_led {
62                                         label = "mirabox:blue:stat";
63                                         gpios = <&gpio2 0 1>;
64                                         linux,default-trigger = "cpu0";
65                                 };
66
67                                 green_stat_led {
68                                         label = "mirabox:green:stat";
69                                         gpios = <&gpio2 1 1>;
70                                         default-state = "off";
71                                 };
72                         };
73
74                         mdio {
75                                 phy0: ethernet-phy@0 {
76                                         reg = <0>;
77                                 };
78
79                                 phy1: ethernet-phy@1 {
80                                         reg = <1>;
81                                 };
82                         };
83                         ethernet@70000 {
84                                 status = "okay";
85                                 phy = <&phy0>;
86                                 phy-mode = "rgmii-id";
87                         };
88                         ethernet@74000 {
89                                 status = "okay";
90                                 phy = <&phy1>;
91                                 phy-mode = "rgmii-id";
92                         };
93
94                         mvsdio@d4000 {
95                                 pinctrl-0 = <&sdio_pins3>;
96                                 pinctrl-names = "default";
97                                 status = "okay";
98                                 /*
99                                  * No CD or WP GPIOs: SDIO interface used for
100                                  * Wifi/Bluetooth chip
101                                  */
102                         };
103
104                         usb@50000 {
105                                 status = "okay";
106                         };
107
108                         usb@51000 {
109                                 status = "okay";
110                         };
111
112                         i2c@11000 {
113                                 status = "okay";
114                                 clock-frequency = <100000>;
115                                 pca9505: pca9505@25 {
116                                         compatible = "nxp,pca9505";
117                                         gpio-controller;
118                                         #gpio-cells = <2>;
119                                         reg = <0x25>;
120                                 };
121                         };
122
123                         pcie-controller {
124                                 status = "okay";
125
126                                 /* Internal mini-PCIe connector */
127                                 pcie@1,0 {
128                                         /* Port 0, Lane 0 */
129                                         status = "okay";
130                                 };
131
132                                 /* Connected on the PCB to a USB 3.0 XHCI controller */
133                                 pcie@2,0 {
134                                         /* Port 1, Lane 0 */
135                                         status = "okay";
136                                 };
137                         };
138                 };
139         };
140 };