1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Device Tree file for Synology DS116 NAS
5 * Copyright (C) 2017 Willy Tarreau <w@1wt.eu>
9 #include "armada-385.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
13 model = "Synology DS116";
14 compatible = "marvell,a385-gp", "marvell,armada385", "marvell,armada380";
17 stdout-path = "serial0:115200n8";
21 device_type = "memory";
22 reg = <0x00000000 0x40000000>; /* 1 GB */
26 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
27 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
28 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
29 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
30 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&i2c0_pins>;
37 clock-frequency = <100000>;
40 compatible = "atmel,24c64";
46 pinctrl-names = "default";
47 pinctrl-0 = <&uart0_pins>;
52 /* A PIC16F1829 is connected to uart1 at 9600 bps,
53 * and takes single-character orders :
54 * "1" : power off // already handled by the poweroff node
57 * "4" : turn the power LED ON
58 * "5" : flash the power LED
59 * "6" : turn the power LED OFF
60 * "7" : turn the status LED OFF
61 * "8" : turn the status LED ON
62 * "9" : flash the status LED
63 * "A" : flash the motherboard LED (D8)
64 * "B" : turn the motherboard LED OFF
67 pinctrl-names = "default";
68 pinctrl-0 = <&uart1_pins>;
73 compatible = "synology,power-off";
74 reg = <0x12100 0x100>;
75 clocks = <&coreclk 0>;
79 pinctrl-names = "default";
82 buffer-manager = <&bm>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&mdio_pins>;
91 phy0: ethernet-phy@1 {
97 pinctrl-names = "default";
98 pinctrl-0 = <&sata0_pins>;
100 #address-cells = <1>;
105 target-supply = <®_5v_sata0>;
114 usb-phy = <&usb3_0_phy>;
119 usb-phy = <&usb3_1_phy>;
129 compatible = "gpio-fan";
130 gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>,
131 <&gpio1 17 GPIO_ACTIVE_HIGH>,
132 <&gpio1 16 GPIO_ACTIVE_HIGH>;
133 gpio-fan,speed-map = < 0 0
141 #cooling-cells = <2>;
145 compatible = "gpio-leds";
147 /* The green part is on gpio0.20 which is also used by
148 * sata0, and accesses to SATA disk 0 make it blink so it
149 * doesn't need to be declared here.
152 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
153 label = "ds116:orange:disk";
154 default-state = "off";
159 usb3_0_phy: usb3_0_phy {
160 compatible = "usb-nop-xceiv";
161 vcc-supply = <®_usb3_0_vbus>;
165 usb3_1_phy: usb3_1_phy {
166 compatible = "usb-nop-xceiv";
167 vcc-supply = <®_usb3_1_vbus>;
171 reg_usb3_0_vbus: usb3-vbus0 {
172 compatible = "regulator-fixed";
173 regulator-name = "usb3-vbus0";
174 pinctrl-names = "default";
175 pinctrl-0 = <&xhci0_vbus_pins>;
176 regulator-min-microvolt = <5000000>;
177 regulator-max-microvolt = <5000000>;
179 gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
182 reg_usb3_1_vbus: usb3-vbus1 {
183 compatible = "regulator-fixed";
184 regulator-name = "usb3-vbus1";
185 pinctrl-names = "default";
186 pinctrl-0 = <&xhci1_vbus_pins>;
187 regulator-min-microvolt = <5000000>;
188 regulator-max-microvolt = <5000000>;
190 gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
193 reg_sata0: pwr-sata0 {
194 compatible = "regulator-fixed";
195 regulator-name = "pwr_en_sata0";
196 regulator-min-microvolt = <12000000>;
197 regulator-max-microvolt = <12000000>;
200 gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
203 reg_5v_sata0: v5-sata0 {
204 compatible = "regulator-fixed";
205 regulator-name = "v5.0-sata0";
206 regulator-min-microvolt = <5000000>;
207 regulator-max-microvolt = <5000000>;
208 vin-supply = <®_sata0>;
211 reg_12v_sata0: v12-sata0 {
212 compatible = "regulator-fixed";
213 regulator-name = "v12.0-sata0";
214 regulator-min-microvolt = <12000000>;
215 regulator-max-microvolt = <12000000>;
216 vin-supply = <®_sata0>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&spi0_pins>;
226 #address-cells = <1>;
228 compatible = "macronix,mx25l6405d", "jedec,spi-nor";
229 reg = <0>; /* Chip select 0 */
230 spi-max-frequency = <50000000>;
233 /* Note: there is a redboot partition table despite u-boot
234 * being used. The names presented here are the same as those
235 * found in the FIS directory. There is also a small device
236 * tree in the last 64kB of the RedBoot partition which is not
237 * enumerated. The MAC address and the serial number are listed
238 * in the "vendor" partition.
242 reg = <0x00000000 0x000f0000>;
248 reg = <0x000f0000 0x002d0000>;
253 reg = <0x003c0000 0x00410000>;
258 reg = <0x007d0000 0x00010000>;
263 label = "RedBoot config";
264 reg = <0x007e0000 0x00010000>;
269 label = "FIS directory";
270 reg = <0x007f0000 0x00010000>;
277 /* use only one pin for UART1, as mpp20 is used by sata0 */
278 uart1_pins: uart-pins-1 {
279 marvell,pins = "mpp19";
280 marvell,function = "ua1";
283 xhci0_vbus_pins: xhci0_vbus_pins {
284 marvell,pins = "mpp58";
285 marvell,function = "gpio";
287 xhci1_vbus_pins: xhci1_vbus_pins {
288 marvell,pins = "mpp59";
289 marvell,function = "gpio";