2 * Device Tree file for Lenovo Iomega ix4-300d
4 * Copyright (C) 2014, Benoit Masson <yahoo@perenite.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-xp-mv78230.dtsi"
19 model = "Lenovo Iomega ix4-300d";
20 compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230",
21 "marvell,armadaxp", "marvell,armada-370-xp";
24 bootargs = "console=ttyS0,115200 earlyprintk";
29 device_type = "memory";
30 reg = <0 0x00000000 0 0x20000000>; /* 512MB */
34 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
35 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
40 /* Quad port sata: Marvell 88SX7042 */
46 /* USB 3.0 xHCI controller: NEC D720200F1 */
59 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
63 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
69 pinctrl-0 = <&ge0_rgmii_pins>;
70 pinctrl-names = "default";
73 phy-mode = "rgmii-id";
77 pinctrl-0 = <&ge1_rgmii_pins>;
78 pinctrl-names = "default";
81 phy-mode = "rgmii-id";
93 clock-frequency = <400000>;
97 compatible = "adi,adt7473";
102 compatible = "atmel,24c64";
107 compatible = "nxp,pcf8563";
116 marvell,nand-keep-config;
117 marvell,nand-enable-arbiter;
122 reg = <0x0000000 0xe0000>;
127 label = "u-boot-env";
128 reg = <0xe0000 0x20000>;
133 label = "u-boot-env2";
134 reg = <0x100000 0x20000>;
140 reg = <0x120000 0x400000>;
145 reg = <0x520000 0x400000>;
150 reg = <0xE00000 0x3F200000>;
155 reg = <0x0 0x40000000>;
162 compatible = "gpio-keys";
163 pinctrl-0 = <&power_button_pin &reset_button_pin
164 &select_button_pin &scroll_button_pin>;
165 pinctrl-names = "default";
168 label = "Power Button";
169 linux,code = <KEY_POWER>;
170 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
174 label = "Reset Button";
175 linux,code = <KEY_RESTART>;
176 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
180 label = "Select Button";
181 linux,code = <BTN_SELECT>;
182 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
186 label = "Scroll Button";
187 linux,code = <KEY_SCROLLDOWN>;
188 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
193 compatible = "spi-gpio";
195 gpio-sck = <&gpio0 25 GPIO_ACTIVE_LOW>;
196 gpio-mosi = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/
197 cs-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
198 num-chipselects = <1>;
199 #address-cells = <1>;
202 gpio_spi: gpio_spi@0 {
203 compatible = "fairchild,74hc595";
207 registers-number = <1>;
208 spi-max-frequency = <100000>;
213 compatible = "gpio-leds";
214 pinctrl-0 = <&hdd_led_pin>;
215 pinctrl-names = "default";
218 label = "ix4-300d:hdd:blue";
219 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
220 default-state = "off";
224 label = "ix4-300d:power:white";
225 gpios = <&gpio_spi 1 GPIO_ACTIVE_LOW>;
226 /* init blinking while booting */
227 linux,default-trigger = "timer";
228 default-state = "on";
232 label = "ix4-300d:sysfail:red";
233 gpios = <&gpio_spi 2 GPIO_ACTIVE_HIGH>;
234 default-state = "off";
238 label = "ix4-300d:sys:blue";
239 gpios = <&gpio_spi 3 GPIO_ACTIVE_HIGH>;
240 default-state = "off";
244 label = "ix4-300d:hddfail:red";
245 gpios = <&gpio_spi 4 GPIO_ACTIVE_HIGH>;
246 default-state = "off";
252 * Warning: you need both eth1 & 0 PHY initialized (i.e having
253 * them up does the tweak) for poweroff to shutdown otherwise it
257 compatible = "gpio-poweroff";
258 pinctrl-0 = <&poweroff_pin>;
259 pinctrl-names = "default";
260 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
265 poweroff_pin: poweroff-pin {
266 marvell,pins = "mpp24";
267 marvell,function = "gpio";
270 power_button_pin: power-button-pin {
271 marvell,pins = "mpp44";
272 marvell,function = "gpio";
275 reset_button_pin: reset-button-pin {
276 marvell,pins = "mpp45";
277 marvell,function = "gpio";
279 select_button_pin: select-button-pin {
280 marvell,pins = "mpp41";
281 marvell,function = "gpio";
284 scroll_button_pin: scroll-button-pin {
285 marvell,pins = "mpp42";
286 marvell,function = "gpio";
289 hdd_led_pin: hdd-led-pin {
290 marvell,pins = "mpp26";
291 marvell,function = "gpio";