xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ns2mini.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	/* This machine is embedded in the first LaCie CloudBox product. */
9724ba675SRob Herring	model = "LaCie Network Space Mini v2";
10724ba675SRob Herring	compatible = "lacie,netspace_mini_v2", "marvell,kirkwood-88f6192", "marvell,kirkwood";
11724ba675SRob Herring
12724ba675SRob Herring	memory {
13724ba675SRob Herring		device_type = "memory";
14724ba675SRob Herring		reg = <0x00000000 0x8000000>;
15724ba675SRob Herring	};
16724ba675SRob Herring
17724ba675SRob Herring	ocp@f1000000 {
18724ba675SRob Herring		sata@80000 {
19724ba675SRob Herring			pinctrl-0 = <&pmx_ns2_sata0>;
20724ba675SRob Herring			pinctrl-names = "default";
21724ba675SRob Herring			status = "okay";
22724ba675SRob Herring			nr-ports = <1>;
23724ba675SRob Herring		};
24724ba675SRob Herring	};
25724ba675SRob Herring
26724ba675SRob Herring	gpio_fan {
27724ba675SRob Herring		compatible = "gpio-fan";
28724ba675SRob Herring		gpios = <&gpio0 22 GPIO_ACTIVE_LOW
29724ba675SRob Herring			 &gpio0  7 GPIO_ACTIVE_LOW
30724ba675SRob Herring			 &gpio1  1 GPIO_ACTIVE_LOW
31724ba675SRob Herring			 &gpio0 23 GPIO_ACTIVE_LOW>;
32724ba675SRob Herring		gpio-fan,speed-map =
33*62f34e3eSDavid Heidelberg			<   0  0>,
34*62f34e3eSDavid Heidelberg			<3000 15>,
35*62f34e3eSDavid Heidelberg			<3180 14>,
36*62f34e3eSDavid Heidelberg			<4140 13>,
37*62f34e3eSDavid Heidelberg			<4570 12>,
38*62f34e3eSDavid Heidelberg			<6760 11>,
39*62f34e3eSDavid Heidelberg			<7140 10>,
40*62f34e3eSDavid Heidelberg			<7980  9>,
41*62f34e3eSDavid Heidelberg			<9200  8>;
42724ba675SRob Herring		alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
43724ba675SRob Herring	};
44724ba675SRob Herring
45724ba675SRob Herring	ns2-leds {
46724ba675SRob Herring		compatible = "lacie,ns2-leds";
47724ba675SRob Herring
48724ba675SRob Herring		blue-sata {
49724ba675SRob Herring			label = "ns2:blue:sata";
50724ba675SRob Herring			slow-gpio = <&gpio0 29 0>;
51724ba675SRob Herring			cmd-gpio = <&gpio0 30 0>;
52724ba675SRob Herring			modes-map = <NS_V2_LED_OFF  1 0
53724ba675SRob Herring				     NS_V2_LED_ON   0 1
54724ba675SRob Herring				     NS_V2_LED_ON   1 1
55724ba675SRob Herring				     NS_V2_LED_SATA 0 0>;
56724ba675SRob Herring		};
57724ba675SRob Herring	};
58724ba675SRob Herring};
59724ba675SRob Herring
60724ba675SRob Herring&ethphy0 { reg = <0>; };
61