blob: 985948ce67b3271a65c9b4a413a99e7d255b12e7 [file] [log] [blame]
Thomas Petazzoni19b85c02012-10-23 08:17:20 +02001/*
2 * Device Tree file for OpenBlocks AX3-4 board
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12
13/dts-v1/;
Thomas Petazzoni29e74f82014-02-11 18:07:12 +010014#include <dt-bindings/gpio/gpio.h>
Thomas Petazzoni5c0169d2014-02-11 18:07:13 +010015#include <dt-bindings/input/input.h>
Ezequiel Garcia38149882013-07-26 10:17:56 -030016#include "armada-xp-mv78260.dtsi"
Thomas Petazzoni19b85c02012-10-23 08:17:20 +020017
18/ {
19 model = "PlatHome OpenBlocks AX3-4 board";
20 compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
21
22 chosen {
23 bootargs = "console=ttyS0,115200 earlyprintk";
24 };
25
26 memory {
27 device_type = "memory";
Gregory CLEMENT74898362013-04-12 16:29:10 +020028 reg = <0 0x00000000 0 0xC0000000>; /* 3 GB */
Thomas Petazzoni19b85c02012-10-23 08:17:20 +020029 };
30
31 soc {
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030032 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030033 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
34 MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x8000000>;
35
36 devbus-bootcs {
37 status = "okay";
38
39 /* Device Bus parameters are required */
40
41 /* Read parameters */
42 devbus,bus-width = <8>;
43 devbus,turn-off-ps = <60000>;
44 devbus,badr-skew-ps = <0>;
45 devbus,acc-first-ps = <124000>;
46 devbus,acc-next-ps = <248000>;
47 devbus,rd-setup-ps = <0>;
48 devbus,rd-hold-ps = <0>;
49
50 /* Write parameters */
51 devbus,sync-enable = <0>;
52 devbus,wr-high-ps = <60000>;
53 devbus,wr-low-ps = <60000>;
54 devbus,ale-wr-ps = <60000>;
55
56 /* NOR 128 MiB */
57 nor@0 {
58 compatible = "cfi-flash";
59 reg = <0 0x8000000>;
60 bank-width = <2>;
61 };
62 };
Ezequiel Garcia00ed4a02013-05-13 12:22:53 -030063
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030064 pcie-controller {
65 status = "okay";
66 /* Internal mini-PCIe connector */
67 pcie@1,0 {
68 /* Port 0, Lane 0 */
69 status = "okay";
70 };
71 };
72
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020073 internal-regs {
74 serial@12000 {
75 clock-frequency = <250000000>;
Thomas Petazzoni95999cf2013-04-09 23:06:35 +020076 status = "okay";
77 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020078 serial@12100 {
79 clock-frequency = <250000000>;
80 status = "okay";
81 };
82 pinctrl {
83 led_pins: led-pins-0 {
84 marvell,pins = "mpp49", "mpp51", "mpp53";
85 marvell,function = "gpio";
86 };
87 };
88 leds {
89 compatible = "gpio-leds";
90 pinctrl-names = "default";
91 pinctrl-0 = <&led_pins>;
92
93 red_led {
94 label = "red_led";
Thomas Petazzoni29e74f82014-02-11 18:07:12 +010095 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020096 default-state = "off";
97 };
98
99 yellow_led {
100 label = "yellow_led";
Thomas Petazzoni29e74f82014-02-11 18:07:12 +0100101 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200102 default-state = "off";
103 };
104
105 green_led {
106 label = "green_led";
Thomas Petazzoni29e74f82014-02-11 18:07:12 +0100107 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
Jason Cooperdcdf14c2013-10-14 17:37:55 +0000108 default-state = "keep";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200109 };
110 };
111
112 gpio_keys {
113 compatible = "gpio-keys";
114 #address-cells = <1>;
115 #size-cells = <0>;
116
117 button@1 {
118 label = "Init Button";
Thomas Petazzoni5c0169d2014-02-11 18:07:13 +0100119 linux,code = <KEY_POWER>;
Thomas Petazzoni29e74f82014-02-11 18:07:12 +0100120 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200121 };
122 };
123
124 mdio {
125 phy0: ethernet-phy@0 {
126 reg = <0>;
127 };
128
129 phy1: ethernet-phy@1 {
130 reg = <1>;
131 };
132
133 phy2: ethernet-phy@2 {
134 reg = <2>;
135 };
136
137 phy3: ethernet-phy@3 {
138 reg = <3>;
139 };
140 };
141
142 ethernet@70000 {
143 status = "okay";
144 phy = <&phy0>;
145 phy-mode = "sgmii";
146 };
147 ethernet@74000 {
148 status = "okay";
149 phy = <&phy1>;
150 phy-mode = "sgmii";
151 };
152 ethernet@30000 {
153 status = "okay";
154 phy = <&phy2>;
155 phy-mode = "sgmii";
156 };
157 ethernet@34000 {
158 status = "okay";
159 phy = <&phy3>;
160 phy-mode = "sgmii";
161 };
162 i2c@11000 {
163 status = "okay";
164 clock-frequency = <400000>;
165 };
166 i2c@11100 {
167 status = "okay";
168 clock-frequency = <400000>;
169
170 s35390a: s35390a@30 {
171 compatible = "s35390a";
172 reg = <0x30>;
173 };
174 };
175 sata@a0000 {
176 nr-ports = <2>;
177 status = "okay";
178 };
Thomas Petazzoni80348912013-05-16 18:07:24 +0200179
180 /* Front side USB 0 */
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200181 usb@50000 {
182 status = "okay";
183 };
Thomas Petazzoni80348912013-05-16 18:07:24 +0200184
185 /* Front side USB 1 */
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200186 usb@51000 {
187 status = "okay";
188 };
Thomas Petazzoni95999cf2013-04-09 23:06:35 +0200189 };
Thomas Petazzoni19b85c02012-10-23 08:17:20 +0200190 };
191};