]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | // SPDX-License-Identifier: GPL-2.0 |
f5520363 SB |
2 | /dts-v1/; |
3 | ||
0ab6129c EG |
4 | #include "kirkwood.dtsi" |
5 | #include "kirkwood-6281.dtsi" | |
f5520363 SB |
6 | |
7 | / { | |
8 | model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)"; | |
148c274e | 9 | compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
f5520363 SB |
10 | |
11 | memory { | |
12 | device_type = "memory"; | |
13 | reg = <0x00000000 0x10000000>; | |
14 | }; | |
15 | ||
16 | chosen { | |
17 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | |
ab833614 | 18 | stdout-path = &uart0; |
f5520363 SB |
19 | }; |
20 | ||
21 | ocp@f1000000 { | |
a9483969 | 22 | pinctrl: pin-controller@10000 { |
d1d0c04b AL |
23 | 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 | }; | |
148c274e | 48 | |
f5520363 | 49 | serial@12000 { |
f5520363 SB |
50 | status = "okay"; |
51 | }; | |
52 | ||
2cef1a28 AL |
53 | sata@80000 { |
54 | status = "okay"; | |
55 | nr-ports = <2>; | |
56 | }; | |
f5520363 | 57 | }; |
c06c7ca7 AL |
58 | |
59 | gpio_keys { | |
60 | compatible = "gpio-keys"; | |
61 | #address-cells = <1>; | |
62 | #size-cells = <0>; | |
df483efa TP |
63 | pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>; |
64 | pinctrl-names = "default"; | |
65 | ||
395c755f | 66 | copy { |
c06c7ca7 | 67 | label = "USB Copy"; |
23301190 | 68 | linux,code = <KEY_COPY>; |
3a31f2d7 | 69 | gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
c06c7ca7 | 70 | }; |
395c755f | 71 | reset { |
c06c7ca7 | 72 | label = "Reset"; |
23301190 | 73 | linux,code = <KEY_RESTART>; |
3a31f2d7 | 74 | gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
c06c7ca7 AL |
75 | }; |
76 | }; | |
148c274e | 77 | |
157727d6 AL |
78 | gpio-leds { |
79 | compatible = "gpio-leds"; | |
df483efa TP |
80 | pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green |
81 | &pmx_led_usb_transfer>; | |
82 | pinctrl-names = "default"; | |
157727d6 AL |
83 | |
84 | green-os { | |
85 | label = "ib62x0:green:os"; | |
3a31f2d7 | 86 | gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
dcdf14c7 | 87 | default-state = "keep"; |
157727d6 AL |
88 | }; |
89 | red-os { | |
90 | label = "ib62x0:red:os"; | |
3a31f2d7 | 91 | gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; |
157727d6 AL |
92 | }; |
93 | usb-copy { | |
94 | label = "ib62x0:red:usb_copy"; | |
3a31f2d7 | 95 | gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
157727d6 AL |
96 | }; |
97 | }; | |
148c274e | 98 | |
21040352 AL |
99 | gpio_poweroff { |
100 | compatible = "gpio-poweroff"; | |
df483efa TP |
101 | pinctrl-0 = <&pmx_power_off>; |
102 | pinctrl-names = "default"; | |
3a31f2d7 | 103 | gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; |
21040352 | 104 | }; |
f5520363 | 105 | }; |
876e2333 | 106 | |
7045ff5a JG |
107 | &nand { |
108 | status = "okay"; | |
7045ff5a JG |
109 | |
110 | partition@0 { | |
111 | label = "u-boot"; | |
148c274e LP |
112 | reg = <0x0000000 0xe0000>; |
113 | }; | |
114 | ||
115 | partition@e0000 { | |
116 | label = "u-boot environment"; | |
a7789378 | 117 | reg = <0xe0000 0x20000>; |
7045ff5a JG |
118 | }; |
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 | ||
876e2333 SH |
132 | &mdio { |
133 | status = "okay"; | |
134 | ||
135 | ethphy0: ethernet-phy@8 { | |
876e2333 SH |
136 | reg = <8>; |
137 | }; | |
138 | }; | |
139 | ||
140 | ð0 { | |
141 | status = "okay"; | |
148c274e | 142 | |
876e2333 SH |
143 | ethernet0-port@0 { |
144 | phy-handle = <ðphy0>; | |
145 | }; | |
146 | }; |