Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree file for d2 Network v2
4 *
5 * Copyright (C) 2014 Simon Guinot <simon.guinot@sequanux.org>
6 *
7*/
8
9/dts-v1/;
10
11#include <dt-bindings/leds/leds-ns2.h>
12#include "kirkwood-netxbig.dtsi"
13
14/ {
15 model = "LaCie d2 Network v2";
16 compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
17
18 memory {
19 device_type = "memory";
20 reg = <0x00000000 0x10000000>;
21 };
22
23 ns2-leds {
24 compatible = "lacie,ns2-leds";
25
26 blue-sata {
27 label = "d2net_v2:blue:sata";
28 slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
29 cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
30 modes-map = <NS_V2_LED_OFF 1 0
31 NS_V2_LED_ON 0 1
32 NS_V2_LED_ON 1 1
33 NS_V2_LED_SATA 0 0>;
34 };
35 };
36
37 gpio-leds {
38 compatible = "gpio-leds";
39
40 red-fail {
41 label = "d2net_v2:red:fail";
42 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
43 };
44 };
45};
1/*
2 * Device Tree file for d2 Network v2
3 *
4 * Copyright (C) 2014 Simon Guinot <simon.guinot@sequanux.org>
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9*/
10
11/dts-v1/;
12
13#include <dt-bindings/leds/leds-ns2.h>
14#include "kirkwood-netxbig.dtsi"
15
16/ {
17 model = "LaCie d2 Network v2";
18 compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
19
20 memory {
21 device_type = "memory";
22 reg = <0x00000000 0x10000000>;
23 };
24
25 ns2-leds {
26 compatible = "lacie,ns2-leds";
27
28 blue-sata {
29 label = "d2net_v2:blue:sata";
30 slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
31 cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
32 modes-map = <NS_V2_LED_OFF 1 0
33 NS_V2_LED_ON 0 1
34 NS_V2_LED_ON 1 1
35 NS_V2_LED_SATA 0 0>;
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 red-fail {
43 label = "d2net_v2:red:fail";
44 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
45 };
46 };
47};