xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ns2max.dts (revision 06d07429858317ded2db7986113a9e0129cd599b)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/dts-v1/;
3724ba675SRob Herring
4724ba675SRob Herring#include <dt-bindings/leds/leds-ns2.h>
5724ba675SRob Herring#include "kirkwood-ns2-common.dtsi"
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	model = "LaCie Network Space Max v2";
9724ba675SRob Herring	compatible = "lacie,netspace_max_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10724ba675SRob Herring
11724ba675SRob Herring	memory {
12724ba675SRob Herring		device_type = "memory";
13724ba675SRob Herring		reg = <0x00000000 0x10000000>;
14724ba675SRob Herring	};
15724ba675SRob Herring
16724ba675SRob Herring	ocp@f1000000 {
17724ba675SRob Herring		sata@80000 {
18724ba675SRob Herring			pinctrl-0 = <&pmx_ns2_sata0 &pmx_ns2_sata1>;
19724ba675SRob Herring			pinctrl-names = "default";
20724ba675SRob Herring			status = "okay";
21724ba675SRob Herring			nr-ports = <2>;
22724ba675SRob Herring		};
23724ba675SRob Herring	};
24724ba675SRob Herring
25724ba675SRob Herring	gpio_fan {
26724ba675SRob Herring		compatible = "gpio-fan";
27724ba675SRob Herring		gpios = <&gpio0 22 GPIO_ACTIVE_LOW
28724ba675SRob Herring			 &gpio0  7 GPIO_ACTIVE_LOW
29724ba675SRob Herring			 &gpio1  1 GPIO_ACTIVE_LOW
30724ba675SRob Herring			 &gpio0 23 GPIO_ACTIVE_LOW>;
31724ba675SRob Herring		gpio-fan,speed-map =
32*62f34e3eSDavid Heidelberg			<   0  0>,
33*62f34e3eSDavid Heidelberg			<1500 15>,
34*62f34e3eSDavid Heidelberg			<1700 14>,
35*62f34e3eSDavid Heidelberg			<1800 13>,
36*62f34e3eSDavid Heidelberg			<2100 12>,
37*62f34e3eSDavid Heidelberg			<3100 11>,
38*62f34e3eSDavid Heidelberg			<3300 10>,
39*62f34e3eSDavid Heidelberg			<4300  9>,
40*62f34e3eSDavid Heidelberg			<5500  8>;
41724ba675SRob Herring		alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
42724ba675SRob Herring	};
43724ba675SRob Herring
44724ba675SRob Herring	ns2-leds {
45724ba675SRob Herring		compatible = "lacie,ns2-leds";
46724ba675SRob Herring
47724ba675SRob Herring		blue-sata {
48724ba675SRob Herring			label = "ns2:blue:sata";
49724ba675SRob Herring			slow-gpio = <&gpio0 29 0>;
50724ba675SRob Herring			cmd-gpio = <&gpio0 30 0>;
51724ba675SRob Herring			modes-map = <NS_V2_LED_OFF  1 0
52724ba675SRob Herring				     NS_V2_LED_ON   0 1
53724ba675SRob Herring				     NS_V2_LED_ON   1 1
54724ba675SRob Herring				     NS_V2_LED_SATA 0 0>;
55724ba675SRob Herring		};
56724ba675SRob Herring	};
57724ba675SRob Herring};
58724ba675SRob Herring
59724ba675SRob Herring&ethphy0 { reg = <8>; };
60