• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/include/ "kirkwood.dtsi"
2/include/ "kirkwood-6281.dtsi"
3
4/ {
5	model = "D-Link DNS NASes (kirkwood-based)";
6	compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
7
8	gpio_keys {
9		compatible = "gpio-keys";
10		#address-cells = <1>;
11		#size-cells = <0>;
12		button@1 {
13			label = "Power button";
14			linux,code = <116>;
15			gpios = <&gpio1 2 1>;
16		};
17		button@2 {
18			label = "USB unmount button";
19			linux,code = <161>;
20			gpios = <&gpio1 15 1>;
21		};
22		button@3 {
23			label = "Reset button";
24			linux,code = <0x198>;
25			gpios = <&gpio1 16 1>;
26		};
27	};
28
29	gpio_fan {
30		/* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
31		compatible = "gpio-fan";
32		gpios = <&gpio1 14 1
33			 &gpio1 13 1>;
34		gpio-fan,speed-map = <0    0
35				      3000 1
36				      6000 2>;
37	};
38
39	gpio_poweroff {
40		compatible = "gpio-poweroff";
41		gpios = <&gpio1 4 0>;
42	};
43
44	ocp@f1000000 {
45		pinctrl: pinctrl@10000 {
46
47			pinctrl-0 = < &pmx_nand &pmx_uart1
48				      &pmx_sata0 &pmx_sata1
49				      &pmx_led_power
50				      &pmx_led_red_right_hdd
51				      &pmx_led_red_left_hdd
52				      &pmx_led_red_usb_325
53				      &pmx_button_power
54				      &pmx_led_red_usb_320
55				      &pmx_power_off &pmx_power_back_on
56				      &pmx_power_sata0 &pmx_power_sata1
57				      &pmx_present_sata0 &pmx_present_sata1
58				      &pmx_led_white_usb &pmx_fan_tacho
59				      &pmx_fan_high_speed &pmx_fan_low_speed
60				      &pmx_button_unmount &pmx_button_reset
61				      &pmx_temp_alarm >;
62			pinctrl-names = "default";
63
64			pmx_sata0: pmx-sata0 {
65				marvell,pins = "mpp20";
66				marvell,function = "sata1";
67			};
68			pmx_sata1: pmx-sata1 {
69				marvell,pins = "mpp21";
70				marvell,function = "sata0";
71			};
72			pmx_led_power: pmx-led-power {
73				marvell,pins = "mpp26";
74				marvell,function = "gpio";
75			};
76			pmx_led_red_right_hdd: pmx-led-red-right-hdd {
77				marvell,pins = "mpp27";
78				marvell,function = "gpio";
79			};
80			pmx_led_red_left_hdd: pmx-led-red-left-hdd {
81				marvell,pins = "mpp28";
82				marvell,function = "gpio";
83			};
84			pmx_led_red_usb_325: pmx-led-red-usb-325 {
85				marvell,pins = "mpp29";
86				marvell,function = "gpio";
87			};
88			pmx_button_power: pmx-button-power {
89				marvell,pins = "mpp34";
90				marvell,function = "gpio";
91			};
92			pmx_led_red_usb_320: pmx-led-red-usb-320 {
93				marvell,pins = "mpp35";
94				marvell,function = "gpio";
95			};
96			pmx_power_off: pmx-power-off {
97				marvell,pins = "mpp36";
98				marvell,function = "gpio";
99			};
100			pmx_power_back_on: pmx-power-back-on {
101				marvell,pins = "mpp37";
102				marvell,function = "gpio";
103			};
104			pmx_power_sata0: pmx-power-sata0 {
105				marvell,pins = "mpp39";
106				marvell,function = "gpio";
107			};
108			pmx_power_sata1: pmx-power-sata1 {
109				marvell,pins = "mpp40";
110				marvell,function = "gpio";
111			};
112			pmx_present_sata0: pmx-present-sata0 {
113				marvell,pins = "mpp41";
114				marvell,function = "gpio";
115			};
116			pmx_present_sata1: pmx-present-sata1 {
117				marvell,pins = "mpp42";
118				marvell,function = "gpio";
119			};
120			pmx_led_white_usb: pmx-led-white-usb {
121				marvell,pins = "mpp43";
122				marvell,function = "gpio";
123			};
124			pmx_fan_tacho: pmx-fan-tacho {
125				marvell,pins = "mpp44";
126				marvell,function = "gpio";
127			};
128			pmx_fan_high_speed: pmx-fan-high-speed {
129				marvell,pins = "mpp45";
130				marvell,function = "gpio";
131			};
132			pmx_fan_low_speed: pmx-fan-low-speed {
133				marvell,pins = "mpp46";
134				marvell,function = "gpio";
135			};
136			pmx_button_unmount: pmx-button-unmount {
137				marvell,pins = "mpp47";
138				marvell,function = "gpio";
139			};
140			pmx_button_reset: pmx-button-reset {
141				marvell,pins = "mpp48";
142				marvell,function = "gpio";
143			};
144			pmx_temp_alarm: pmx-temp-alarm {
145				marvell,pins = "mpp49";
146				marvell,function = "gpio";
147			};
148		};
149		sata@80000 {
150			status = "okay";
151			nr-ports = <2>;
152		};
153
154		nand@3000000 {
155			status = "okay";
156			chip-delay = <35>;
157
158			partition@0 {
159				label = "u-boot";
160				reg = <0x0000000 0x100000>;
161				read-only;
162			};
163
164			partition@100000 {
165				label = "uImage";
166				reg = <0x0100000 0x500000>;
167			};
168
169			partition@600000 {
170				label = "ramdisk";
171				reg = <0x0600000 0x500000>;
172			};
173
174			partition@b00000 {
175				label = "image";
176				reg = <0x0b00000 0x6600000>;
177			};
178
179			partition@7100000 {
180				label = "mini firmware";
181				reg = <0x7100000 0xa00000>;
182			};
183
184			partition@7b00000 {
185				label = "config";
186				reg = <0x7b00000 0x500000>;
187			};
188		};
189	};
190
191	regulators {
192		compatible = "simple-bus";
193		#address-cells = <1>;
194		#size-cells = <0>;
195
196		sata0_power: regulator@1 {
197			compatible = "regulator-fixed";
198			reg = <1>;
199			regulator-name = "SATA0 Power";
200			regulator-min-microvolt = <5000000>;
201			regulator-max-microvolt = <5000000>;
202			enable-active-high;
203			regulator-always-on;
204			regulator-boot-on;
205			gpio = <&gpio1 7 0>;
206		};
207		sata1_power: regulator@2 {
208			compatible = "regulator-fixed";
209			reg = <2>;
210			regulator-name = "SATA1 Power";
211			regulator-min-microvolt = <5000000>;
212			regulator-max-microvolt = <5000000>;
213			enable-active-high;
214			regulator-always-on;
215			regulator-boot-on;
216			gpio = <&gpio1 8 0>;
217		};
218	};
219};
220