Commit | Line | Data |
---|---|---|
f236f5aa AE |
1 | /dts-v1/; |
2 | ||
3 | /include/ "kirkwood.dtsi" | |
4 | /include/ "kirkwood-6282.dtsi" | |
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 | ||
19 | ocp@f1000000 { | |
20 | pinctrl: pinctrl@10000 { | |
f236f5aa AE |
21 | pmx_button_power: pmx-button-power { |
22 | marvell,pins = "mpp47"; | |
23 | marvell,function = "gpio"; | |
24 | }; | |
25 | pmx_button_backup: pmx-button-backup { | |
26 | marvell,pins = "mpp45"; | |
27 | marvell,function = "gpio"; | |
28 | }; | |
29 | pmx_button_reset: pmx-button-reset { | |
30 | marvell,pins = "mpp13"; | |
31 | marvell,function = "gpio"; | |
32 | }; | |
33 | pmx_led_blue_power: pmx-led-blue-power { | |
34 | marvell,pins = "mpp31"; | |
35 | marvell,function = "gpio"; | |
36 | }; | |
37 | pmx_led_blue_activity: pmx-led-blue-activity { | |
38 | marvell,pins = "mpp38"; | |
39 | marvell,function = "gpio"; | |
40 | }; | |
41 | pmx_led_blue_disk1: pmx-led-blue-disk1 { | |
42 | marvell,pins = "mpp23"; | |
43 | marvell,function = "gpio"; | |
44 | }; | |
45 | pmx_led_blue_disk2: pmx-led-blue-disk2 { | |
46 | marvell,pins = "mpp22"; | |
47 | marvell,function = "gpio"; | |
48 | }; | |
49 | pmx_led_blue_backup: pmx-led-blue-backup { | |
50 | marvell,pins = "mpp29"; | |
51 | marvell,function = "gpio"; | |
52 | }; | |
53 | }; | |
54 | ||
55 | i2c@11000 { | |
56 | status = "okay"; | |
57 | ||
58 | rs5c372a: rs5c372a@32 { | |
59 | compatible = "ricoh,rs5c372a"; | |
60 | reg = <0x32>; | |
61 | }; | |
62 | }; | |
63 | ||
64 | serial@12000 { | |
3d98a788 TP |
65 | pinctrl-0 = <&pmx_uart0>; |
66 | pinctrl-names = "default"; | |
f236f5aa AE |
67 | status = "okay"; |
68 | }; | |
69 | ||
70 | nand@3000000 { | |
71 | status = "okay"; | |
72 | ||
73 | partition@0 { | |
74 | label = "u-boot"; | |
75 | reg = <0x0000000 0x180000>; | |
76 | read-only; | |
77 | }; | |
78 | ||
79 | partition@180000 { | |
80 | label = "u-boot-env"; | |
81 | reg = <0x180000 0x20000>; | |
82 | }; | |
83 | ||
84 | partition@200000 { | |
85 | label = "uImage"; | |
86 | reg = <0x0200000 0x600000>; | |
87 | }; | |
88 | ||
89 | partition@800000 { | |
90 | label = "minirootfs"; | |
91 | reg = <0x0800000 0x1000000>; | |
92 | }; | |
93 | ||
94 | partition@1800000 { | |
95 | label = "jffs2"; | |
96 | reg = <0x1800000 0x6800000>; | |
97 | }; | |
98 | }; | |
99 | ||
100 | sata@80000 { | |
101 | status = "okay"; | |
102 | nr-ports = <2>; | |
103 | }; | |
6bd98481 AE |
104 | |
105 | pcie-controller { | |
106 | status = "okay"; | |
107 | ||
108 | pcie@1,0 { | |
109 | status = "okay"; | |
110 | }; | |
111 | }; | |
f236f5aa AE |
112 | }; |
113 | ||
114 | gpio-leds { | |
115 | compatible = "gpio-leds"; | |
3d98a788 TP |
116 | pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity |
117 | &pmx_led_blue_disk1 &pmx_led_blue_disk2 | |
118 | &pmx_led_blue_backup >; | |
119 | pinctrl-names = "default"; | |
f236f5aa AE |
120 | |
121 | power_led { | |
122 | label = "status:blue:power_led"; | |
123 | gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */ | |
124 | linux,default-trigger = "default-on"; | |
125 | }; | |
126 | activity_led { | |
127 | label = "status:blue:activity_led"; | |
128 | gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */ | |
129 | }; | |
130 | disk1_led { | |
131 | label = "status:blue:disk1_led"; | |
132 | gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */ | |
133 | }; | |
134 | disk2_led { | |
135 | label = "status:blue:disk2_led"; | |
136 | gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */ | |
137 | }; | |
138 | backup_led { | |
139 | label = "status:blue:backup_led"; | |
140 | gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/ | |
141 | }; | |
142 | }; | |
143 | ||
144 | gpio_keys { | |
145 | compatible = "gpio-keys"; | |
146 | #address-cells = <1>; | |
147 | #size-cells = <0>; | |
3d98a788 TP |
148 | pinctrl-0 = <&pmx_button_power &pmx_button_backup |
149 | &pmx_button_reset>; | |
150 | pinctrl-names = "default"; | |
151 | ||
f236f5aa AE |
152 | button@1 { |
153 | label = "Power Button"; | |
154 | linux,code = <116>; /* KEY_POWER */ | |
155 | gpios = <&gpio1 15 1>; | |
156 | }; | |
157 | button@2 { | |
158 | label = "Reset Button"; | |
159 | linux,code = <0x198>; /* KEY_RESTART */ | |
160 | gpios = <&gpio0 13 1>; | |
161 | }; | |
162 | button@3 { | |
163 | label = "Backup Button"; | |
164 | linux,code = <133>; /* KEY_COPY */ | |
165 | gpios = <&gpio1 13 1>; | |
166 | }; | |
167 | }; | |
168 | ||
169 | regulators { | |
170 | compatible = "simple-bus"; | |
171 | #address-cells = <1>; | |
172 | #size-cells = <0>; | |
173 | ||
174 | usb_power: regulator@1 { | |
175 | compatible = "regulator-fixed"; | |
176 | reg = <1>; | |
177 | regulator-name = "USB 3.0 Power"; | |
178 | regulator-min-microvolt = <5000000>; | |
179 | regulator-max-microvolt = <5000000>; | |
180 | enable-active-high; | |
181 | regulator-always-on; | |
182 | regulator-boot-on; | |
183 | gpio = <&gpio1 14 0>; | |
184 | }; | |
185 | }; | |
186 | }; |