1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for Lenovo Iomega ix4-300d
5 * Copyright (C) 2014, Benoit Masson <yahoo@perenite.com>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include "armada-xp-mv78230.dtsi"
15 model = "Lenovo Iomega ix4-300d";
16 compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230",
17 "marvell,armadaxp", "marvell,armada-370-xp";
20 stdout-path = "serial0:115200n8";
24 device_type = "memory";
25 reg = <0 0x00000000 0 0x20000000>; /* 512MB */
29 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
30 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
31 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
32 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>;
40 pinctrl-0 = <&ge0_rgmii_pins>;
41 pinctrl-names = "default";
44 phy-mode = "rgmii-id";
48 pinctrl-0 = <&ge1_rgmii_pins>;
49 pinctrl-names = "default";
52 phy-mode = "rgmii-id";
64 clock-frequency = <400000>;
68 compatible = "adi,adt7473";
73 compatible = "atmel,24c64";
78 compatible = "nxp,pcf8563";
84 nand-controller@d0000 {
89 label = "pxa3xx_nand-0";
94 compatible = "fixed-partitions";
100 reg = <0x00000000 0x000e0000>;
105 label = "u-boot-env";
106 reg = <0x000e0000 0x00020000>;
111 label = "u-boot-env2";
112 reg = <0x00100000 0x00020000>;
118 reg = <0x00120000 0x00400000>;
123 reg = <0x00520000 0x00400000>;
128 reg = <0x00e00000 0x3f200000>;
137 compatible = "gpio-keys";
138 pinctrl-0 = <&power_button_pin &reset_button_pin
139 &select_button_pin &scroll_button_pin>;
140 pinctrl-names = "default";
143 label = "Power Button";
144 linux,code = <KEY_POWER>;
145 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
149 label = "Reset Button";
150 linux,code = <KEY_RESTART>;
151 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
155 label = "Select Button";
156 linux,code = <BTN_SELECT>;
157 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
161 label = "Scroll Button";
162 linux,code = <KEY_SCROLLDOWN>;
163 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
168 compatible = "spi-gpio";
170 gpio-sck = <&gpio0 25 GPIO_ACTIVE_LOW>;
171 gpio-mosi = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/
172 cs-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
173 num-chipselects = <1>;
174 #address-cells = <1>;
177 gpio_spi: gpio_spi@0 {
178 compatible = "fairchild,74hc595";
182 registers-number = <1>;
183 spi-max-frequency = <100000>;
188 compatible = "gpio-leds";
189 pinctrl-0 = <&hdd_led_pin>;
190 pinctrl-names = "default";
193 label = "ix4-300d:hdd:blue";
194 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
195 default-state = "off";
199 label = "ix4-300d:power:white";
200 gpios = <&gpio_spi 1 GPIO_ACTIVE_LOW>;
201 /* init blinking while booting */
202 linux,default-trigger = "timer";
203 default-state = "on";
207 label = "ix4-300d:sysfail:red";
208 gpios = <&gpio_spi 2 GPIO_ACTIVE_HIGH>;
209 default-state = "off";
213 label = "ix4-300d:sys:blue";
214 gpios = <&gpio_spi 3 GPIO_ACTIVE_HIGH>;
215 default-state = "off";
219 label = "ix4-300d:hddfail:red";
220 gpios = <&gpio_spi 4 GPIO_ACTIVE_HIGH>;
221 default-state = "off";
227 * Warning: you need both eth1 & 0 PHY initialized (i.e having
228 * them up does the tweak) for poweroff to shutdown otherwise it
232 compatible = "gpio-poweroff";
233 pinctrl-0 = <&poweroff_pin>;
234 pinctrl-names = "default";
235 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
241 /* Quad port sata: Marvell 88SX7042 */
247 /* USB 3.0 xHCI controller: NEC D720200F1 */
255 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
259 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
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";