2 * Device Tree file for Lenovo Iomega ix4-300d
4 * Copyright (C) 2014, Benoit Masson <yahoo@perenite.com>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/gpio/gpio.h>
49 #include "armada-xp-mv78230.dtsi"
52 model = "Lenovo Iomega ix4-300d";
53 compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230",
54 "marvell,armadaxp", "marvell,armada-370-xp";
57 bootargs = "console=ttyS0,115200 earlyprintk";
62 device_type = "memory";
63 reg = <0 0x00000000 0 0x20000000>; /* 512MB */
67 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
68 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
73 /* Quad port sata: Marvell 88SX7042 */
79 /* USB 3.0 xHCI controller: NEC D720200F1 */
92 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
96 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
102 pinctrl-0 = <&ge0_rgmii_pins>;
103 pinctrl-names = "default";
106 phy-mode = "rgmii-id";
110 pinctrl-0 = <&ge1_rgmii_pins>;
111 pinctrl-names = "default";
114 phy-mode = "rgmii-id";
126 clock-frequency = <400000>;
130 compatible = "adi,adt7473";
135 compatible = "atmel,24c64";
140 compatible = "nxp,pcf8563";
149 marvell,nand-keep-config;
150 marvell,nand-enable-arbiter;
155 reg = <0x0000000 0xe0000>;
160 label = "u-boot-env";
161 reg = <0xe0000 0x20000>;
166 label = "u-boot-env2";
167 reg = <0x100000 0x20000>;
173 reg = <0x120000 0x400000>;
178 reg = <0x520000 0x400000>;
183 reg = <0xE00000 0x3F200000>;
188 reg = <0x0 0x40000000>;
195 compatible = "gpio-keys";
196 pinctrl-0 = <&power_button_pin &reset_button_pin
197 &select_button_pin &scroll_button_pin>;
198 pinctrl-names = "default";
201 label = "Power Button";
202 linux,code = <KEY_POWER>;
203 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
207 label = "Reset Button";
208 linux,code = <KEY_RESTART>;
209 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
213 label = "Select Button";
214 linux,code = <BTN_SELECT>;
215 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
219 label = "Scroll Button";
220 linux,code = <KEY_SCROLLDOWN>;
221 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
226 compatible = "spi-gpio";
228 gpio-sck = <&gpio0 25 GPIO_ACTIVE_LOW>;
229 gpio-mosi = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/
230 cs-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
231 num-chipselects = <1>;
232 #address-cells = <1>;
235 gpio_spi: gpio_spi@0 {
236 compatible = "fairchild,74hc595";
240 registers-number = <1>;
241 spi-max-frequency = <100000>;
246 compatible = "gpio-leds";
247 pinctrl-0 = <&hdd_led_pin>;
248 pinctrl-names = "default";
251 label = "ix4-300d:hdd:blue";
252 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
253 default-state = "off";
257 label = "ix4-300d:power:white";
258 gpios = <&gpio_spi 1 GPIO_ACTIVE_LOW>;
259 /* init blinking while booting */
260 linux,default-trigger = "timer";
261 default-state = "on";
265 label = "ix4-300d:sysfail:red";
266 gpios = <&gpio_spi 2 GPIO_ACTIVE_HIGH>;
267 default-state = "off";
271 label = "ix4-300d:sys:blue";
272 gpios = <&gpio_spi 3 GPIO_ACTIVE_HIGH>;
273 default-state = "off";
277 label = "ix4-300d:hddfail:red";
278 gpios = <&gpio_spi 4 GPIO_ACTIVE_HIGH>;
279 default-state = "off";
285 * Warning: you need both eth1 & 0 PHY initialized (i.e having
286 * them up does the tweak) for poweroff to shutdown otherwise it
290 compatible = "gpio-poweroff";
291 pinctrl-0 = <&poweroff_pin>;
292 pinctrl-names = "default";
293 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
298 poweroff_pin: poweroff-pin {
299 marvell,pins = "mpp24";
300 marvell,function = "gpio";
303 power_button_pin: power-button-pin {
304 marvell,pins = "mpp44";
305 marvell,function = "gpio";
308 reset_button_pin: reset-button-pin {
309 marvell,pins = "mpp45";
310 marvell,function = "gpio";
312 select_button_pin: select-button-pin {
313 marvell,pins = "mpp41";
314 marvell,function = "gpio";
317 scroll_button_pin: scroll-button-pin {
318 marvell,pins = "mpp42";
319 marvell,function = "gpio";
322 hdd_led_pin: hdd-led-pin {
323 marvell,pins = "mpp26";
324 marvell,function = "gpio";