blob: 962a910a6f5ca63703ffac5ee85eba1f6078060a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Simon Baatzf5520362012-04-30 23:55:17 +02002/dts-v1/;
3
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03004#include "kirkwood.dtsi"
5#include "kirkwood-6281.dtsi"
Simon Baatzf5520362012-04-30 23:55:17 +02006
7/ {
8 model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
Luka Perkov148c2742013-10-03 05:06:45 +02009 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 +020010
11 memory {
12 device_type = "memory";
13 reg = <0x00000000 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200n8 earlyprintk";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020018 stdout-path = &uart0;
Simon Baatzf5520362012-04-30 23:55:17 +020019 };
20
21 ocp@f1000000 {
Sebastian Hesselbartha94839692014-04-30 14:56:32 +020022 pinctrl: pin-controller@10000 {
Andrew Lunnd1d0c042012-11-17 17:00:52 +010023 pmx_led_os_red: pmx-led-os-red {
24 marvell,pins = "mpp22";
25 marvell,function = "gpio";
26 };
27 pmx_power_off: pmx-power-off {
28 marvell,pins = "mpp24";
29 marvell,function = "gpio";
30 };
31 pmx_led_os_green: pmx-led-os-green {
32 marvell,pins = "mpp25";
33 marvell,function = "gpio";
34 };
35 pmx_led_usb_transfer: pmx-led-usb-transfer {
36 marvell,pins = "mpp27";
37 marvell,function = "gpio";
38 };
39 pmx_button_reset: pmx-button-reset {
40 marvell,pins = "mpp28";
41 marvell,function = "gpio";
42 };
43 pmx_button_usb_copy: pmx-button-usb-copy {
44 marvell,pins = "mpp29";
45 marvell,function = "gpio";
46 };
47 };
Luka Perkov148c2742013-10-03 05:06:45 +020048
Simon Baatzf5520362012-04-30 23:55:17 +020049 serial@12000 {
Simon Baatzf5520362012-04-30 23:55:17 +020050 status = "okay";
51 };
52
Andrew Lunn2cef1a22012-06-10 16:58:11 +020053 sata@80000 {
54 status = "okay";
55 nr-ports = <2>;
56 };
Simon Baatzf5520362012-04-30 23:55:17 +020057 };
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020058
59 gpio_keys {
60 compatible = "gpio-keys";
61 #address-cells = <1>;
62 #size-cells = <0>;
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020063 pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
64 pinctrl-names = "default";
65
Andrew Lunn395c7552016-04-03 04:03:43 +020066 copy {
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020067 label = "USB Copy";
Andrew Lunn23301192013-12-04 16:51:38 +010068 linux,code = <KEY_COPY>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010069 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020070 };
Andrew Lunn395c7552016-04-03 04:03:43 +020071 reset {
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020072 label = "Reset";
Andrew Lunn23301192013-12-04 16:51:38 +010073 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010074 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
Andrew Lunnc06c7ca2012-07-16 12:48:20 +020075 };
76 };
Luka Perkov148c2742013-10-03 05:06:45 +020077
Andrew Lunn157727d2012-07-17 08:14:19 +020078 gpio-leds {
79 compatible = "gpio-leds";
Thomas Petazzonidf483ef2013-05-24 11:44:44 +020080 pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
81 &pmx_led_usb_transfer>;
82 pinctrl-names = "default";
Andrew Lunn157727d2012-07-17 08:14:19 +020083
84 green-os {
85 label = "ib62x0:green:os";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010086 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
Jason Cooperdcdf14c2013-10-14 17:37:55 +000087 default-state = "keep";
Andrew Lunn157727d2012-07-17 08:14:19 +020088 };
89 red-os {
90 label = "ib62x0:red:os";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010091 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
Andrew Lunn157727d2012-07-17 08:14:19 +020092 };
93 usb-copy {
94 label = "ib62x0:red:usb_copy";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010095 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
Andrew Lunn157727d2012-07-17 08:14:19 +020096 };
97 };
Luka Perkov148c2742013-10-03 05:06:45 +020098
Andrew Lunn21040352012-11-17 09:51:06 +010099 gpio_poweroff {
100 compatible = "gpio-poweroff";
Thomas Petazzonidf483ef2013-05-24 11:44:44 +0200101 pinctrl-0 = <&pmx_power_off>;
102 pinctrl-names = "default";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100103 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
Andrew Lunn21040352012-11-17 09:51:06 +0100104 };
Simon Baatzf5520362012-04-30 23:55:17 +0200105};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200106
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600107&nand {
108 status = "okay";
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600109
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";
Simon Baatza7789372016-08-12 19:12:50 +0200117 reg = <0xe0000 0x20000>;
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 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200136 reg = <8>;
137 };
138};
139
140&eth0 {
141 status = "okay";
Luka Perkov148c2742013-10-03 05:06:45 +0200142
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200143 ethernet0-port@0 {
144 phy-handle = <&ethphy0>;
145 };
146};