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";
87 marvell,nand-keep-config;
88 marvell,nand-enable-arbiter;
92 compatible = "fixed-partitions";
98 reg = <0x00000000 0x000e0000>;
103 label = "u-boot-env";
104 reg = <0x000e0000 0x00020000>;
109 label = "u-boot-env2";
110 reg = <0x00100000 0x00020000>;
116 reg = <0x00120000 0x00400000>;
121 reg = <0x00520000 0x00400000>;
126 reg = <0x00e00000 0x3f200000>;
134 compatible = "gpio-keys";
135 pinctrl-0 = <&power_button_pin &reset_button_pin
136 &select_button_pin &scroll_button_pin>;
137 pinctrl-names = "default";
140 label = "Power Button";
141 linux,code = <KEY_POWER>;
142 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
146 label = "Reset Button";
147 linux,code = <KEY_RESTART>;
148 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
152 label = "Select Button";
153 linux,code = <BTN_SELECT>;
154 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
158 label = "Scroll Button";
159 linux,code = <KEY_SCROLLDOWN>;
160 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
165 compatible = "spi-gpio";
167 gpio-sck = <&gpio0 25 GPIO_ACTIVE_LOW>;
168 gpio-mosi = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/
169 cs-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
170 num-chipselects = <1>;
171 #address-cells = <1>;
174 gpio_spi: gpio_spi@0 {
175 compatible = "fairchild,74hc595";
179 registers-number = <1>;
180 spi-max-frequency = <100000>;
185 compatible = "gpio-leds";
186 pinctrl-0 = <&hdd_led_pin>;
187 pinctrl-names = "default";
190 label = "ix4-300d:hdd:blue";
191 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
192 default-state = "off";
196 label = "ix4-300d:power:white";
197 gpios = <&gpio_spi 1 GPIO_ACTIVE_LOW>;
198 /* init blinking while booting */
199 linux,default-trigger = "timer";
200 default-state = "on";
204 label = "ix4-300d:sysfail:red";
205 gpios = <&gpio_spi 2 GPIO_ACTIVE_HIGH>;
206 default-state = "off";
210 label = "ix4-300d:sys:blue";
211 gpios = <&gpio_spi 3 GPIO_ACTIVE_HIGH>;
212 default-state = "off";
216 label = "ix4-300d:hddfail:red";
217 gpios = <&gpio_spi 4 GPIO_ACTIVE_HIGH>;
218 default-state = "off";
224 * Warning: you need both eth1 & 0 PHY initialized (i.e having
225 * them up does the tweak) for poweroff to shutdown otherwise it
229 compatible = "gpio-poweroff";
230 pinctrl-0 = <&poweroff_pin>;
231 pinctrl-names = "default";
232 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
238 /* Quad port sata: Marvell 88SX7042 */
244 /* USB 3.0 xHCI controller: NEC D720200F1 */
252 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
256 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
262 poweroff_pin: poweroff-pin {
263 marvell,pins = "mpp24";
264 marvell,function = "gpio";
267 power_button_pin: power-button-pin {
268 marvell,pins = "mpp44";
269 marvell,function = "gpio";
272 reset_button_pin: reset-button-pin {
273 marvell,pins = "mpp45";
274 marvell,function = "gpio";
276 select_button_pin: select-button-pin {
277 marvell,pins = "mpp41";
278 marvell,function = "gpio";
281 scroll_button_pin: scroll-button-pin {
282 marvell,pins = "mpp42";
283 marvell,function = "gpio";
286 hdd_led_pin: hdd-led-pin {
287 marvell,pins = "mpp26";
288 marvell,function = "gpio";