blob: c5fb02f7ebc3e33107ac067d46a6394d6c21b27d [file] [log] [blame]
Simon Baatzf5520362012-04-30 23:55:17 +02001/dts-v1/;
2
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03003#include "kirkwood.dtsi"
4#include "kirkwood-6281.dtsi"
Simon Baatzf5520362012-04-30 23:55:17 +02005
6/ {
7 model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
Luka Perkov148c2742013-10-03 05:06:45 +02008 compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood";
Simon Baatzf5520362012-04-30 23:55:17 +02009
10 memory {
11 device_type = "memory";
12 reg = <0x00000000 0x10000000>;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,115200n8 earlyprintk";
17 };
18
19 ocp@f1000000 {
Andrew Lunnd1d0c042012-11-17 17:00:52 +010020 pinctrl: pinctrl@10000 {
Andrew Lunnd1d0c042012-11-17 17:00:52 +010021 pmx_led_os_red: pmx-led-os-red {
22 marvell,pins = "mpp22";
23 marvell,function = "gpio";
24 };
25 pmx_power_off: pmx-power-off {
26 marvell,pins = "mpp24";
27 marvell,function = "gpio";
28 };
29 pmx_led_os_green: pmx-led-os-green {
30 marvell,pins = "mpp25";
31 marvell,function = "gpio";
32 };
33 pmx_led_usb_transfer: pmx-led-usb-transfer {
34 marvell,pins = "mpp27";
35 marvell,function = "gpio";
36 };
37 pmx_button_reset: pmx-button-reset {
38 marvell,pins = "mpp28";
39 marvell,function = "gpio";
40 };
41 pmx_button_usb_copy: pmx-button-usb-copy {
42 marvell,pins = "mpp29";
43 marvell,function = "gpio";
44 };
45 };
Luka Perkov148c2742013-10-03 05:06:45 +020046
Simon Baatzf5520362012-04-30 23:55:17 +020047 serial@12000 {
Simon Baatzf5520362012-04-30 23:55:17 +020048 status = "okay";
49 };
50
Andrew Lunn2cef1a22012-06-10 16:58:11 +020051 sata@80000 {
52 status = "okay";
53 nr-ports = <2>;
54 };
Simon Baatzf5520362012-04-30 23:55:17 +020055 };
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020056
57 gpio_keys {
58 compatible = "gpio-keys";
59 #address-cells = <1>;
60 #size-cells = <0>;
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020061 pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
62 pinctrl-names = "default";
63
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020064 button@1 {
65 label = "USB Copy";
66 linux,code = <133>;
67 gpios = <&gpio0 29 1>;
68 };
69 button@2 {
70 label = "Reset";
71 linux,code = <0x198>;
72 gpios = <&gpio0 28 1>;
73 };
74 };
Luka Perkov148c2742013-10-03 05:06:45 +020075
Andrew Lunn157727d2012-07-17 08:14:19 +020076 gpio-leds {
77 compatible = "gpio-leds";
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020078 pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
79 &pmx_led_usb_transfer>;
80 pinctrl-names = "default";
Andrew Lunn157727d2012-07-17 08:14:19 +020081
82 green-os {
83 label = "ib62x0:green:os";
84 gpios = <&gpio0 25 0>;
85 linux,default-trigger = "default-on";
86 };
87 red-os {
88 label = "ib62x0:red:os";
89 gpios = <&gpio0 22 0>;
90 };
91 usb-copy {
92 label = "ib62x0:red:usb_copy";
93 gpios = <&gpio0 27 0>;
94 };
95 };
Luka Perkov148c2742013-10-03 05:06:45 +020096
Andrew Lunn21040352012-11-17 09:51:06 +010097 gpio_poweroff {
98 compatible = "gpio-poweroff";
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020099 pinctrl-0 = <&pmx_power_off>;
100 pinctrl-names = "default";
Andrew Lunn21040352012-11-17 09:51:06 +0100101 gpios = <&gpio0 24 0>;
102 };
Simon Baatzf5520362012-04-30 23:55:17 +0200103};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200104
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600105&nand {
106 status = "okay";
107 pinctrl-0 = <&pmx_nand>;
108 pinctrl-names = "default";
109
110 partition@0 {
111 label = "u-boot";
Luka Perkov148c2742013-10-03 05:06:45 +0200112 reg = <0x0000000 0xe0000>;
113 };
114
115 partition@e0000 {
116 label = "u-boot environment";
117 reg = <0xe0000 0x100000>;
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600118 };
119
120 partition@100000 {
121 label = "uImage";
122 reg = <0x0100000 0x600000>;
123 };
124
125 partition@700000 {
126 label = "root";
127 reg = <0x0700000 0xf900000>;
128 };
129
130};
131
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200132&mdio {
133 status = "okay";
134
135 ethphy0: ethernet-phy@8 {
136 device_type = "ethernet-phy";
137 reg = <8>;
138 };
139};
140
141&eth0 {
142 status = "okay";
Luka Perkov148c2742013-10-03 05:06:45 +0200143
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200144 ethernet0-port@0 {
145 phy-handle = <&ethphy0>;
146 };
147};