ARM: kirkwood: Remove kirkwood_setup_wins and rely on the DT binding
[cascardo/linux.git] / arch / arm / boot / dts / kirkwood-netgear_readynas_duo_v2.dts
1 /dts-v1/;
2
3 #include "kirkwood.dtsi"
4 #include "kirkwood-6282.dtsi"
5
6 / {
7         model = "NETGEAR ReadyNAS Duo v2";
8         compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
9
10         memory { /* 256 MB */
11                 device_type = "memory";
12                 reg = <0x00000000 0x10000000>;
13         };
14
15         chosen {
16                 bootargs = "console=ttyS0,115200n8 earlyprintk";
17         };
18
19         mbus {
20                 pcie-controller {
21                         status = "okay";
22
23                         pcie@1,0 {
24                                 status = "okay";
25                         };
26                 };
27         };
28
29         ocp@f1000000 {
30                 pinctrl: pinctrl@10000 {
31                         pmx_button_power: pmx-button-power {
32                                 marvell,pins = "mpp47";
33                                 marvell,function = "gpio";
34                         };
35                         pmx_button_backup: pmx-button-backup {
36                                 marvell,pins = "mpp45";
37                                 marvell,function = "gpio";
38                         };
39                         pmx_button_reset: pmx-button-reset {
40                                 marvell,pins = "mpp13";
41                                 marvell,function = "gpio";
42                         };
43                         pmx_led_blue_power: pmx-led-blue-power {
44                                 marvell,pins = "mpp31";
45                                 marvell,function = "gpio";
46                         };
47                         pmx_led_blue_activity: pmx-led-blue-activity {
48                                 marvell,pins = "mpp38";
49                                 marvell,function = "gpio";
50                         };
51                         pmx_led_blue_disk1: pmx-led-blue-disk1 {
52                                 marvell,pins = "mpp23";
53                                 marvell,function = "gpio";
54                         };
55                         pmx_led_blue_disk2: pmx-led-blue-disk2 {
56                                 marvell,pins = "mpp22";
57                                 marvell,function = "gpio";
58                         };
59                         pmx_led_blue_backup: pmx-led-blue-backup {
60                                 marvell,pins = "mpp29";
61                                 marvell,function = "gpio";
62                         };
63                 };
64
65                 clocks {
66                        #address-cells = <1>;
67                        #size-cells = <0>;
68
69                        g762_clk: fixedclk {
70                                  compatible = "fixed-clock";
71                                  #clock-cells = <0>;
72                                  clock-frequency = <8192>;
73                        };
74                 };
75
76                 i2c@11000 {
77                         status = "okay";
78
79                         rs5c372a: rs5c372a@32 {
80                                 compatible = "ricoh,rs5c372a";
81                                 reg = <0x32>;
82                         };
83
84                         g762: g762@3e {
85                                 compatible = "gmt,g762";
86                                 reg = <0x3e>;
87                                 clocks = <&g762_clk>; /* input clock */
88                                 fan_gear_mode = <0>;
89                                 fan_startv = <1>;
90                                 pwm_polarity = <0>;
91                         };
92                 };
93
94                 serial@12000 {
95                         pinctrl-0 = <&pmx_uart0>;
96                         pinctrl-names = "default";
97                         status = "okay";
98                 };
99
100                 nand@3000000 {
101                         status = "okay";
102
103                         partition@0 {
104                                 label = "u-boot";
105                                 reg = <0x0000000 0x180000>;
106                                 read-only;
107                         };
108
109                         partition@180000 {
110                                 label = "u-boot-env";
111                                 reg = <0x180000 0x20000>;
112                         };
113
114                         partition@200000 {
115                                 label = "uImage";
116                                 reg = <0x0200000 0x600000>;
117                         };
118
119                         partition@800000 {
120                                 label = "minirootfs";
121                                 reg = <0x0800000 0x1000000>;
122                         };
123
124                         partition@1800000 {
125                                 label = "jffs2";
126                                 reg = <0x1800000 0x6800000>;
127                         };
128                 };
129
130                 sata@80000 {
131                         status = "okay";
132                         nr-ports = <2>;
133                 };
134         };
135
136         gpio-leds {
137                 compatible = "gpio-leds";
138                 pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
139                               &pmx_led_blue_disk1 &pmx_led_blue_disk2
140                               &pmx_led_blue_backup >;
141                 pinctrl-names = "default";
142
143                 power_led {
144                         label = "status:blue:power_led";
145                         gpios = <&gpio0 31 1>;   /* GPIO 31 Active Low */
146                         linux,default-trigger = "default-on";
147                 };
148                 activity_led {
149                         label = "status:blue:activity_led";
150                         gpios = <&gpio1 6 1>;    /* GPIO 38 Active Low */
151                 };
152                 disk1_led {
153                         label = "status:blue:disk1_led";
154                         gpios = <&gpio0 23 1>;   /* GPIO 23 Active Low */
155                 };
156                 disk2_led {
157                         label = "status:blue:disk2_led";
158                         gpios = <&gpio0 22 1>;   /* GPIO 22 Active Low */
159                 };
160                 backup_led {
161                         label = "status:blue:backup_led";
162                         gpios = <&gpio0 29 1>;   /* GPIO 29 Active Low*/
163                 };
164         };
165
166         gpio_keys {
167                 compatible = "gpio-keys";
168                 #address-cells = <1>;
169                 #size-cells = <0>;
170                 pinctrl-0 = <&pmx_button_power &pmx_button_backup
171                              &pmx_button_reset>;
172                 pinctrl-names = "default";
173
174                 button@1 {
175                         label = "Power Button";
176                         linux,code = <116>;     /* KEY_POWER */
177                         gpios = <&gpio1 15 1>;
178                 };
179                 button@2 {
180                         label = "Reset Button";
181                         linux,code = <0x198>;   /* KEY_RESTART */
182                         gpios = <&gpio0 13 1>;
183                 };
184                 button@3 {
185                         label = "Backup Button";
186                         linux,code = <133>;     /* KEY_COPY */
187                         gpios = <&gpio1 13 1>;
188                 };
189         };
190
191         regulators {
192                 compatible = "simple-bus";
193                 #address-cells = <1>;
194                 #size-cells = <0>;
195
196                 usb_power: regulator@1 {
197                         compatible = "regulator-fixed";
198                         reg = <1>;
199                         regulator-name = "USB 3.0 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 14 0>;
206                 };
207         };
208 };
209
210 &mdio {
211         status = "okay";
212
213         ethphy0: ethernet-phy@0 {
214                 device_type = "ethernet-phy";
215                 reg = <0>;
216         };
217 };
218
219 &eth0 {
220         status = "okay";
221         ethernet0-port@0 {
222                 phy-handle = <&ethphy0>;
223         };
224 };