blob: ef84d8699a767ca1f5fbc72c88d5e49a03576c4d [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";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020017 stdout-path = &uart0;
Simon Baatzf5520362012-04-30 23:55:17 +020018 };
19
20 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020021 pinctrl: pin-controller@10000 {
Andrew Lunnd1d0c042012-11-17 17:00:52 +010022 pmx_led_os_red: pmx-led-os-red {
23 marvell,pins = "mpp22";
24 marvell,function = "gpio";
25 };
26 pmx_power_off: pmx-power-off {
27 marvell,pins = "mpp24";
28 marvell,function = "gpio";
29 };
30 pmx_led_os_green: pmx-led-os-green {
31 marvell,pins = "mpp25";
32 marvell,function = "gpio";
33 };
34 pmx_led_usb_transfer: pmx-led-usb-transfer {
35 marvell,pins = "mpp27";
36 marvell,function = "gpio";
37 };
38 pmx_button_reset: pmx-button-reset {
39 marvell,pins = "mpp28";
40 marvell,function = "gpio";
41 };
42 pmx_button_usb_copy: pmx-button-usb-copy {
43 marvell,pins = "mpp29";
44 marvell,function = "gpio";
45 };
46 };
Luka Perkov148c2742013-10-03 05:06:45 +020047
Simon Baatzf5520362012-04-30 23:55:17 +020048 serial@12000 {
Simon Baatzf5520362012-04-30 23:55:17 +020049 status = "okay";
50 };
51
Andrew Lunn2cef1a22012-06-10 16:58:11 +020052 sata@80000 {
53 status = "okay";
54 nr-ports = <2>;
55 };
Simon Baatzf5520362012-04-30 23:55:17 +020056 };
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020057
58 gpio_keys {
59 compatible = "gpio-keys";
60 #address-cells = <1>;
61 #size-cells = <0>;
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020062 pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
63 pinctrl-names = "default";
64
Andrew Lunn395c7552016-04-03 04:03:43 +020065 copy {
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020066 label = "USB Copy";
Andrew Lunn23301192013-12-04 16:51:38 +010067 linux,code = <KEY_COPY>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010068 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020069 };
Andrew Lunn395c7552016-04-03 04:03:43 +020070 reset {
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020071 label = "Reset";
Andrew Lunn23301192013-12-04 16:51:38 +010072 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010073 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020074 };
75 };
Luka Perkov148c2742013-10-03 05:06:45 +020076
Andrew Lunn157727d2012-07-17 08:14:19 +020077 gpio-leds {
78 compatible = "gpio-leds";
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020079 pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
80 &pmx_led_usb_transfer>;
81 pinctrl-names = "default";
Andrew Lunn157727d2012-07-17 08:14:19 +020082
83 green-os {
84 label = "ib62x0:green:os";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010085 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
Jason Cooperdcdf14c2013-10-14 17:37:55 +000086 default-state = "keep";
Andrew Lunn157727d2012-07-17 08:14:19 +020087 };
88 red-os {
89 label = "ib62x0:red:os";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010090 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
Andrew Lunn157727d2012-07-17 08:14:19 +020091 };
92 usb-copy {
93 label = "ib62x0:red:usb_copy";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010094 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
Andrew Lunn157727d2012-07-17 08:14:19 +020095 };
96 };
Luka Perkov148c2742013-10-03 05:06:45 +020097
Andrew Lunn21040352012-11-17 09:51:06 +010098 gpio_poweroff {
99 compatible = "gpio-poweroff";
Thomas Petazzonidf483ef2013-05-24 11:44:44 +0200100 pinctrl-0 = <&pmx_power_off>;
101 pinctrl-names = "default";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100102 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
Andrew Lunn21040352012-11-17 09:51:06 +0100103 };
Simon Baatzf5520362012-04-30 23:55:17 +0200104};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200105
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600106&nand {
107 status = "okay";
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600108
109 partition@0 {
110 label = "u-boot";
Luka Perkov148c2742013-10-03 05:06:45 +0200111 reg = <0x0000000 0xe0000>;
112 };
113
114 partition@e0000 {
115 label = "u-boot environment";
116 reg = <0xe0000 0x100000>;
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600117 };
118
119 partition@100000 {
120 label = "uImage";
121 reg = <0x0100000 0x600000>;
122 };
123
124 partition@700000 {
125 label = "root";
126 reg = <0x0700000 0xf900000>;
127 };
128
129};
130
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200131&mdio {
132 status = "okay";
133
134 ethphy0: ethernet-phy@8 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200135 reg = <8>;
136 };
137};
138
139&eth0 {
140 status = "okay";
Luka Perkov148c2742013-10-03 05:06:45 +0200141
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200142 ethernet0-port@0 {
143 phy-handle = <&ethphy0>;
144 };
145};