d11054f538de87a2fc1049d21f2b7b433fb31a07
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-dnskw.dtsi
1 /include/ "kirkwood.dtsi"
2
3 / {
4         model = "D-Link DNS NASes (kirkwood-based)";
5         compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
6
7         gpio_keys {
8                 compatible = "gpio-keys";
9                 #address-cells = <1>;
10                 #size-cells = <0>;
11                 button@1 {
12                         label = "Power button";
13                         linux,code = <116>;
14                         gpios = <&gpio1 2 1>;
15                 };
16                 button@2 {
17                         label = "USB unmount button";
18                         linux,code = <161>;
19                         gpios = <&gpio1 15 1>;
20                 };
21                 button@3 {
22                         label = "Reset button";
23                         linux,code = <0x198>;
24                         gpios = <&gpio1 16 1>;
25                 };
26         };
27
28         gpio_fan {
29                 /* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
30                 compatible = "gpio-fan";
31                 gpios = <&gpio1 14 1
32                          &gpio1 13 1>;
33                 gpio-fan,speed-map = <0    0
34                                       3000 1
35                                       6000 2>;
36         };
37
38         gpio_poweroff {
39                 compatible = "gpio-poweroff";
40                 gpios = <&gpio1 4 0>;
41         };
42
43         ocp@f1000000 {
44                 sata@80000 {
45                         status = "okay";
46                         nr-ports = <2>;
47                 };
48
49                 nand@3000000 {
50                         status = "okay";
51                         chip-delay = <35>;
52
53                         partition@0 {
54                                 label = "u-boot";
55                                 reg = <0x0000000 0x100000>;
56                                 read-only;
57                         };
58
59                         partition@100000 {
60                                 label = "uImage";
61                                 reg = <0x0100000 0x500000>;
62                         };
63
64                         partition@600000 {
65                                 label = "ramdisk";
66                                 reg = <0x0600000 0x500000>;
67                         };
68
69                         partition@b00000 {
70                                 label = "image";
71                                 reg = <0x0b00000 0x6600000>;
72                         };
73
74                         partition@7100000 {
75                                 label = "mini firmware";
76                                 reg = <0x7100000 0xa00000>;
77                         };
78
79                         partition@7b00000 {
80                                 label = "config";
81                                 reg = <0x7b00000 0x500000>;
82                         };
83                 };
84         };
85
86         regulators {
87                 compatible = "simple-bus";
88                 #address-cells = <1>;
89                 #size-cells = <0>;
90
91                 sata0_power: regulator@1 {
92                         compatible = "regulator-fixed";
93                         reg = <1>;
94                         regulator-name = "SATA0 Power";
95                         regulator-min-microvolt = <5000000>;
96                         regulator-max-microvolt = <5000000>;
97                         enable-active-high;
98                         regulator-always-on;
99                         regulator-boot-on;
100                         gpio = <&gpio1 7 0>;
101                 };
102                 sata1_power: regulator@2 {
103                         compatible = "regulator-fixed";
104                         reg = <2>;
105                         regulator-name = "SATA1 Power";
106                         regulator-min-microvolt = <5000000>;
107                         regulator-max-microvolt = <5000000>;
108                         enable-active-high;
109                         regulator-always-on;
110                         regulator-boot-on;
111                         gpio = <&gpio1 8 0>;
112                 };
113         };
114 };