1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
3 * Device Tree file for ipTIME NAS1dual
5 * Copyright (C) 2020 Sungbo Eo <mans0n@gorani.run>
7 * Based on armada-385-linksys.dtsi
8 * Copyright (C) 2015 Imre Kaloz <kaloz@openwrt.org>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include "armada-385.dtsi"
18 model = "ipTIME NAS1dual";
19 compatible = "iptime,nas1dual", "marvell,armada385", "marvell,armada380";
22 led-boot = &led_ready;
23 led-failsafe = &led_ready;
24 led-running = &led_ready;
25 led-upgrade = &led_ready;
26 label-mac-device = ð0;
30 bootargs = "console=ttyS0,115200n8";
31 stdout-path = "serial0:115200n8";
35 device_type = "memory";
36 reg = <0x00000000 0x80000000>; /* 2GB */
40 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
41 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
42 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
43 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
44 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
48 compatible = "gpio-keys";
49 pinctrl-names = "default";
50 pinctrl-0 = <&gpio_keys_pins>;
53 label = "Power Button";
54 linux,input-type = <EV_SW>;
55 linux,code = <KEY_POWER>;
56 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
60 label = "Reset Button";
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
66 label = "USB Copy Button";
67 linux,code = <KEY_COPY>;
68 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
73 compatible = "gpio-leds";
74 pinctrl-names = "default";
75 pinctrl-0 = <&gpio_leds_pins>;
79 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
84 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
85 linux,default-trigger = "disk-activity";
90 gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
91 trigger-sources = <&usb3_0_port1 &usb3_0_port2>;
92 linux,default-trigger = "usbport";
97 compatible = "gpio-fan";
98 pinctrl-names = "default";
99 pinctrl-0 = <&gpio_fan_pins>;
100 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>,
101 <&gpio1 18 GPIO_ACTIVE_HIGH>;
102 /* We don't know the exact rpm, just use dummy values here. */
103 gpio-fan,speed-map = <0 0>, <1 1>, <2 2>;
104 #cooling-cells = <2>;
108 compatible = "gpio-poweroff";
109 gpios = <&pca9536 1 GPIO_ACTIVE_LOW>;
113 compatible = "simple-bus";
114 #address-cells = <1>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&sata_power_pins>;
119 reg_sata_power: regulator@1 {
120 compatible = "regulator-fixed";
122 regulator-name = "sata-power";
123 regulator-min-microvolt = <12000000>;
124 regulator-max-microvolt = <12000000>;
125 gpio = <&gpio1 20 GPIO_ACTIVE_LOW>;
133 #address-cells = <1>;
138 target-supply = <®_sata_power>;
139 #thermal-sensor-cells = <0>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&ge0_rgmii_pins>;
155 phy-handle = <ðphy1>;
156 phy-connection-type = "rgmii-id";
157 buffer-manager = <&bm>;
160 nvmem-cells = <&macaddr_uboot_fffa8>;
161 nvmem-cell-names = "mac-address";
165 pinctrl-names = "default";
166 pinctrl-0 = <&ge1_rgmii_pins>;
168 phy-handle = <ðphy0>;
169 phy-connection-type = "rgmii-id";
170 buffer-manager = <&bm>;
173 nvmem-cells = <&macaddr_uboot_fffa8>;
174 nvmem-cell-names = "mac-address";
178 pinctrl-names = "default";
179 pinctrl-0 = <&i2c0_pins>;
183 compatible = "nxp,pca9536";
187 gpio-line-names = "power-led", "power-board";
192 pinctrl-names = "default";
193 pinctrl-0 = <&mdio_pins>;
195 /* LED1: On - Link, Blink - Activity, Off - No Link */
197 ethphy0: ethernet-phy@0 {
199 marvell,reg-init = <3 16 0 0x1017>;
202 ethphy1: ethernet-phy@1 {
204 marvell,reg-init = <3 16 0 0x1017>;
209 gpio_keys_pins: gpio-keys-pins {
210 marvell,pins = "mpp24", "mpp26", "mpp48";
211 marvell,function = "gpio";
214 gpio_leds_pins: gpio-leds-pins {
215 marvell,pins = "mpp18", "mpp20", "mpp51";
216 marvell,function = "gpio";
219 gpio_fan_pins: gpio-fan-pins {
220 marvell,pins = "mpp25", "mpp50";
221 marvell,function = "gpio";
224 sata_power_pins: sata-power-pins {
225 marvell,pins = "mpp52";
226 marvell,function = "gpio";
229 uart1_pins_alt: uart-pins-1-alt {
230 marvell,pins = "mpp45", "mpp46";
231 marvell,function = "ua1";
236 pinctrl-names = "default";
237 pinctrl-0 = <&spi1_pins>;
241 compatible = "jedec,spi-nor";
243 spi-max-frequency = <40000000>;
246 compatible = "fixed-partitions";
247 #address-cells = <1>;
251 reg = <0x00000000 0x00100000>;
255 compatible = "nvmem-cells";
256 #address-cells = <1>;
259 macaddr_uboot_fffa8: macaddr@fffa8 {
265 reg = <0x00100000 0x03ec0000>;
268 compatible = "fixed-partitions";
269 #address-cells = <1>;
273 reg = <0x00000000 0x00600000>;
278 reg = <0x00600000 0x038c0000>;
284 reg = <0x03fc0000 0x00040000>;
293 pinctrl-names = "default";
294 pinctrl-0 = <&uart0_pins>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&uart1_pins_alt>;
306 #address-cells = <1>;
309 usb3_0_port1: port@1 {
311 #trigger-source-cells = <0>;
314 usb3_0_port2: port@2 {
316 #trigger-source-cells = <0>;