blob: a4202b6c16c214df494e7daee9323452355dc3a8 [file] [log] [blame]
Gregory CLEMENTe3e37bc2012-10-27 18:22:45 +02001/*
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/;
Ezequiel Garcia38149882013-07-26 10:17:56 -030012#include "armada-370.dtsi"
Gregory CLEMENTe3e37bc2012-10-27 18:22:45 +020013
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 {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030028 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000>;
29
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020030 internal-regs {
31 serial@12000 {
32 clock-frequency = <200000000>;
33 status = "okay";
Ryan Press51ab3fb2013-03-28 19:10:24 -070034 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020035 timer@20300 {
36 clock-frequency = <600000000>;
Thomas Petazzoni488d1a62013-04-09 23:06:37 +020037 status = "okay";
38 };
39
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020040 pinctrl {
41 pwr_led_pin: pwr-led-pin {
42 marvell,pins = "mpp63";
43 marvell,function = "gpo";
44 };
45
46 stat_led_pins: stat-led-pins {
47 marvell,pins = "mpp64", "mpp65";
48 marvell,function = "gpio";
49 };
50 };
51
52 gpio_leds {
53 compatible = "gpio-leds";
54 pinctrl-names = "default";
55 pinctrl-0 = <&pwr_led_pin &stat_led_pins>;
56
57 green_pwr_led {
58 label = "mirabox:green:pwr";
59 gpios = <&gpio1 31 1>;
60 linux,default-trigger = "heartbeat";
61 };
62
63 blue_stat_led {
64 label = "mirabox:blue:stat";
65 gpios = <&gpio2 0 1>;
66 linux,default-trigger = "cpu0";
67 };
68
69 green_stat_led {
70 label = "mirabox:green:stat";
71 gpios = <&gpio2 1 1>;
72 default-state = "off";
73 };
74 };
75
76 mdio {
77 phy0: ethernet-phy@0 {
78 reg = <0>;
79 };
80
81 phy1: ethernet-phy@1 {
82 reg = <1>;
83 };
84 };
85 ethernet@70000 {
Thomas Petazzoni488d1a62013-04-09 23:06:37 +020086 status = "okay";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020087 phy = <&phy0>;
88 phy-mode = "rgmii-id";
89 };
90 ethernet@74000 {
91 status = "okay";
92 phy = <&phy1>;
93 phy-mode = "rgmii-id";
94 };
95
96 mvsdio@d4000 {
97 pinctrl-0 = <&sdio_pins3>;
98 pinctrl-names = "default";
99 status = "okay";
100 /*
101 * No CD or WP GPIOs: SDIO interface used for
102 * Wifi/Bluetooth chip
103 */
Simon Baatzd87b5fb2013-05-13 23:18:58 +0200104 broken-cd;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200105 };
106
107 usb@50000 {
108 status = "okay";
109 };
110
111 usb@51000 {
112 status = "okay";
113 };
114
115 i2c@11000 {
116 status = "okay";
117 clock-frequency = <100000>;
118 pca9505: pca9505@25 {
119 compatible = "nxp,pca9505";
120 gpio-controller;
121 #gpio-cells = <2>;
122 reg = <0x25>;
123 };
124 };
125
126 pcie-controller {
127 status = "okay";
128
129 /* Internal mini-PCIe connector */
130 pcie@1,0 {
131 /* Port 0, Lane 0 */
132 status = "okay";
133 };
134
135 /* Connected on the PCB to a USB 3.0 XHCI controller */
136 pcie@2,0 {
137 /* Port 1, Lane 0 */
138 status = "okay";
139 };
Thomas Petazzoni488d1a62013-04-09 23:06:37 +0200140 };
141 };
Gregory CLEMENTe3e37bc2012-10-27 18:22:45 +0200142 };
143};