Commit | Line | Data |
---|---|---|
f236f5aa AE |
1 | /dts-v1/; |
2 | ||
0ab6129c EG |
3 | #include "kirkwood.dtsi" |
4 | #include "kirkwood-6282.dtsi" | |
f236f5aa AE |
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 | ||
54397d85 | 19 | mbus { |
54397d85 EG |
20 | pcie-controller { |
21 | status = "okay"; | |
22 | ||
23 | pcie@1,0 { | |
24 | status = "okay"; | |
25 | }; | |
26 | }; | |
27 | }; | |
28 | ||
f236f5aa AE |
29 | ocp@f1000000 { |
30 | pinctrl: pinctrl@10000 { | |
f236f5aa AE |
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 | ||
4a9f4c7f AE |
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 | ||
f236f5aa AE |
76 | i2c@11000 { |
77 | status = "okay"; | |
78 | ||
79 | rs5c372a: rs5c372a@32 { | |
80 | compatible = "ricoh,rs5c372a"; | |
81 | reg = <0x32>; | |
82 | }; | |
4a9f4c7f AE |
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 | }; | |
f236f5aa AE |
92 | }; |
93 | ||
94 | serial@12000 { | |
3d98a788 TP |
95 | pinctrl-0 = <&pmx_uart0>; |
96 | pinctrl-names = "default"; | |
f236f5aa AE |
97 | status = "okay"; |
98 | }; | |
99 | ||
f236f5aa AE |
100 | sata@80000 { |
101 | status = "okay"; | |
102 | nr-ports = <2>; | |
103 | }; | |
104 | }; | |
105 | ||
106 | gpio-leds { | |
107 | compatible = "gpio-leds"; | |
3d98a788 TP |
108 | pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity |
109 | &pmx_led_blue_disk1 &pmx_led_blue_disk2 | |
110 | &pmx_led_blue_backup >; | |
111 | pinctrl-names = "default"; | |
f236f5aa AE |
112 | |
113 | power_led { | |
114 | label = "status:blue:power_led"; | |
115 | gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */ | |
116 | linux,default-trigger = "default-on"; | |
117 | }; | |
118 | activity_led { | |
119 | label = "status:blue:activity_led"; | |
120 | gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */ | |
121 | }; | |
122 | disk1_led { | |
123 | label = "status:blue:disk1_led"; | |
124 | gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */ | |
125 | }; | |
126 | disk2_led { | |
127 | label = "status:blue:disk2_led"; | |
128 | gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */ | |
129 | }; | |
130 | backup_led { | |
131 | label = "status:blue:backup_led"; | |
132 | gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/ | |
133 | }; | |
134 | }; | |
135 | ||
136 | gpio_keys { | |
137 | compatible = "gpio-keys"; | |
138 | #address-cells = <1>; | |
139 | #size-cells = <0>; | |
3d98a788 TP |
140 | pinctrl-0 = <&pmx_button_power &pmx_button_backup |
141 | &pmx_button_reset>; | |
142 | pinctrl-names = "default"; | |
143 | ||
f236f5aa AE |
144 | button@1 { |
145 | label = "Power Button"; | |
146 | linux,code = <116>; /* KEY_POWER */ | |
147 | gpios = <&gpio1 15 1>; | |
148 | }; | |
149 | button@2 { | |
150 | label = "Reset Button"; | |
151 | linux,code = <0x198>; /* KEY_RESTART */ | |
152 | gpios = <&gpio0 13 1>; | |
153 | }; | |
154 | button@3 { | |
155 | label = "Backup Button"; | |
156 | linux,code = <133>; /* KEY_COPY */ | |
157 | gpios = <&gpio1 13 1>; | |
158 | }; | |
159 | }; | |
160 | ||
161 | regulators { | |
162 | compatible = "simple-bus"; | |
163 | #address-cells = <1>; | |
164 | #size-cells = <0>; | |
165 | ||
166 | usb_power: regulator@1 { | |
167 | compatible = "regulator-fixed"; | |
168 | reg = <1>; | |
169 | regulator-name = "USB 3.0 Power"; | |
170 | regulator-min-microvolt = <5000000>; | |
171 | regulator-max-microvolt = <5000000>; | |
172 | enable-active-high; | |
173 | regulator-always-on; | |
174 | regulator-boot-on; | |
175 | gpio = <&gpio1 14 0>; | |
176 | }; | |
177 | }; | |
178 | }; | |
876e2333 | 179 | |
7045ff5a JG |
180 | &nand { |
181 | status = "okay"; | |
182 | ||
183 | partition@0 { | |
184 | label = "u-boot"; | |
185 | reg = <0x0000000 0x180000>; | |
186 | read-only; | |
187 | }; | |
188 | ||
189 | partition@180000 { | |
190 | label = "u-boot-env"; | |
191 | reg = <0x180000 0x20000>; | |
192 | }; | |
193 | ||
194 | partition@200000 { | |
195 | label = "uImage"; | |
196 | reg = <0x0200000 0x600000>; | |
197 | }; | |
198 | ||
199 | partition@800000 { | |
200 | label = "minirootfs"; | |
201 | reg = <0x0800000 0x1000000>; | |
202 | }; | |
203 | ||
204 | partition@1800000 { | |
205 | label = "jffs2"; | |
206 | reg = <0x1800000 0x6800000>; | |
207 | }; | |
208 | }; | |
209 | ||
876e2333 SH |
210 | &mdio { |
211 | status = "okay"; | |
212 | ||
213 | ethphy0: ethernet-phy@0 { | |
876e2333 SH |
214 | reg = <0>; |
215 | }; | |
216 | }; | |
217 | ||
218 | ð0 { | |
219 | status = "okay"; | |
220 | ethernet0-port@0 { | |
221 | phy-handle = <ðphy0>; | |
222 | }; | |
223 | }; |