kirkwood-netxbig.dtsi revision 284090
1/*
2 * Device Tree common file for LaCie 2Big and 5Big Network v2
3 *
4 * Copyright (C) 2014
5 *
6 * Andrew Lunn <andrew@lunn.ch>
7 *
8 * Based on netxbig_v2-setup.c,
9 * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
10 *
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2.  This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
14*/
15
16#include "kirkwood.dtsi"
17#include "kirkwood-6281.dtsi"
18
19/ {
20	chosen {
21		bootargs = "console=ttyS0,115200n8";
22		stdout-path = &uart0;
23	};
24
25	ocp@f1000000 {
26		serial@12000 {
27			status = "okay";
28		};
29
30		spi@10600 {
31			status = "okay";
32
33			flash@0 {
34				#address-cells = <1>;
35				#size-cells = <1>;
36				compatible = "mxicy,mx25l4005a";
37				reg = <0>;
38				spi-max-frequency = <20000000>;
39				mode = <0>;
40
41				partition@0 {
42					reg = <0x0 0x80000>;
43					label = "u-boot";
44				};
45			};
46		};
47
48		sata@80000 {
49			status = "okay";
50			nr-ports = <2>;
51		};
52
53	};
54
55	gpio-keys {
56		compatible = "gpio-keys";
57		#address-cells = <1>;
58		#size-cells = <0>;
59
60		/*
61		 * button@1 and button@2 represent a three position rocker
62		 * switch. Thus the conventional KEY_POWER does not fit
63		 */
64		button@1 {
65			label = "Back power switch (on|auto)";
66			linux,code = <KEY_ESC>;
67			linux,input-type = <5>;
68			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69		};
70		button@2 {
71			label = "Back power switch (auto|off)";
72			linux,code = <KEY_1>;
73			linux,input-type = <5>;
74			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
75		};
76		button@3 {
77			label = "Function button";
78			linux,code = <KEY_OPTION>;
79			gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
80		};
81
82	};
83
84	gpio-poweroff {
85		compatible = "gpio-poweroff";
86		gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
87	};
88
89	regulators: regulators {
90		status = "okay";
91		compatible = "simple-bus";
92		#address-cells = <1>;
93		#size-cells = <0>;
94		pinctrl-names = "default";
95
96		regulator@1 {
97			compatible = "regulator-fixed";
98			reg = <1>;
99			regulator-name = "hdd0power";
100			regulator-min-microvolt = <5000000>;
101			regulator-max-microvolt = <5000000>;
102			enable-active-high;
103			regulator-always-on;
104			regulator-boot-on;
105			gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
106		};
107	};
108};
109
110&mdio {
111	status = "okay";
112
113	ethphy0: ethernet-phy@0 {
114		reg = <8>;
115	};
116
117	ethphy1: ethernet-phy@1 {
118		reg = <0>;
119	};
120};
121
122&eth0 {
123	status = "okay";
124	ethernet0-port@0 {
125		phy-handle = <&ethphy0>;
126	};
127};
128
129&pinctrl {
130	pinctrl-names = "default";
131
132	pmx_button_function: pmx-button-function {
133		marvell,pins = "mpp34";
134		marvell,function = "gpio";
135	};
136	pmx_button_power_off: pmx-button-power-off {
137		marvell,pins = "mpp15";
138		marvell,function = "gpio";
139	};
140	pmx_button_power_on: pmx-button-power-on {
141		marvell,pins = "mpp13";
142		marvell,function = "gpio";
143	};
144};
145
146&i2c0 {
147	status = "okay";
148
149	eeprom@50 {
150		compatible = "atmel,24c04";
151		pagesize = <16>;
152		reg = <0x50>;
153	};
154};
155