Commit | Line | Data |
---|---|---|
2344a29a AE |
1 | /* |
2 | * Device Tree file for NETGEAR ReadyNAS 102 | |
3 | * | |
4 | * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org> | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or | |
7 | * modify it under the terms of the GNU General Public License | |
8 | * as published by the Free Software Foundation; either version | |
9 | * 2 of the License, or (at your option) any later version. | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
13 | ||
3d0ed759 | 14 | #include "armada-370.dtsi" |
2344a29a AE |
15 | |
16 | / { | |
17 | model = "NETGEAR ReadyNAS 102"; | |
18 | compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp"; | |
19 | ||
20 | chosen { | |
21 | bootargs = "console=ttyS0,115200 earlyprintk"; | |
22 | }; | |
23 | ||
24 | memory { | |
25 | device_type = "memory"; | |
26 | reg = <0x00000000 0x20000000>; /* 512 MB */ | |
27 | }; | |
28 | ||
29 | soc { | |
30 | internal-regs { | |
31 | serial@12000 { | |
32 | clock-frequency = <200000000>; | |
33 | status = "okay"; | |
34 | }; | |
35 | ||
36 | sata@a0000 { | |
37 | nr-ports = <2>; | |
38 | status = "okay"; | |
39 | }; | |
40 | ||
41 | pinctrl { | |
42 | power_led_pin: power-led-pin { | |
43 | marvell,pins = "mpp57"; | |
44 | marvell,function = "gpio"; | |
45 | }; | |
46 | sata1_led_pin: sata1-led-pin { | |
47 | marvell,pins = "mpp15"; | |
48 | marvell,function = "gpio"; | |
49 | }; | |
50 | ||
51 | sata2_led_pin: sata2-led-pin { | |
52 | marvell,pins = "mpp14"; | |
53 | marvell,function = "gpio"; | |
54 | }; | |
55 | ||
56 | backup_led_pin: backup-led-pin { | |
57 | marvell,pins = "mpp56"; | |
58 | marvell,function = "gpio"; | |
59 | }; | |
2832cf25 AE |
60 | |
61 | poweroff: poweroff { | |
62 | marvell,pins = "mpp8"; | |
63 | marvell,function = "gpio"; | |
64 | }; | |
2344a29a AE |
65 | }; |
66 | ||
67 | mdio { | |
68 | phy0: ethernet-phy@0 { | |
69 | reg = <0>; | |
70 | }; | |
71 | }; | |
72 | ||
73 | ethernet@74000 { | |
74 | status = "okay"; | |
75 | phy = <&phy0>; | |
76 | phy-mode = "rgmii-id"; | |
77 | }; | |
78 | ||
79 | usb@50000 { | |
80 | status = "okay"; | |
81 | }; | |
82 | ||
83 | i2c@11000 { | |
84 | compatible = "marvell,mv64xxx-i2c"; | |
85 | clock-frequency = <100000>; | |
86 | status = "okay"; | |
87 | ||
88 | g762: g762@3e { | |
89 | compatible = "gmt,g762"; | |
90 | reg = <0x3e>; | |
91 | clocks = <&g762_clk>; /* input clock */ | |
92 | fan_gear_mode = <0>; | |
93 | fan_startv = <1>; | |
94 | pwm_polarity = <0>; | |
95 | }; | |
96 | }; | |
97 | ||
98 | pcie-controller { | |
99 | status = "okay"; | |
100 | ||
101 | /* Connected to Marvell SATA controller */ | |
102 | pcie@1,0 { | |
103 | /* Port 0, Lane 0 */ | |
104 | status = "okay"; | |
105 | }; | |
106 | ||
107 | /* Connected to FL1009 USB 3.0 controller */ | |
108 | pcie@2,0 { | |
109 | /* Port 1, Lane 0 */ | |
110 | status = "okay"; | |
111 | }; | |
112 | }; | |
113 | }; | |
114 | }; | |
115 | ||
116 | clocks { | |
117 | #address-cells = <1>; | |
118 | #size-cells = <0>; | |
119 | ||
120 | g762_clk: fixedclk { | |
121 | compatible = "fixed-clock"; | |
122 | #clock-cells = <0>; | |
123 | clock-frequency = <8192>; | |
124 | }; | |
125 | }; | |
126 | ||
127 | gpio_leds { | |
128 | compatible = "gpio-leds"; | |
129 | pinctrl-0 = < &power_led_pin | |
130 | &sata1_led_pin | |
131 | &sata2_led_pin | |
132 | &backup_led_pin >; | |
133 | pinctrl-names = "default"; | |
134 | ||
135 | blue_power_led { | |
136 | label = "rn102:blue:pwr"; | |
137 | gpios = <&gpio1 25 1>; /* GPIO 57 Active Low */ | |
138 | linux,default-trigger = "heartbeat"; | |
139 | }; | |
140 | ||
141 | green_sata1_led { | |
142 | label = "rn102:green:sata1"; | |
143 | gpios = <&gpio0 15 1>; /* GPIO 15 Active Low */ | |
144 | default-state = "on"; | |
145 | }; | |
146 | ||
147 | green_sata2_led { | |
148 | label = "rn102:green:sata2"; | |
149 | gpios = <&gpio0 14 1>; /* GPIO 14 Active Low */ | |
150 | default-state = "on"; | |
151 | }; | |
152 | ||
153 | green_backup_led { | |
154 | label = "rn102:green:backup"; | |
155 | gpios = <&gpio1 24 1>; /* GPIO 56 Active Low */ | |
156 | default-state = "on"; | |
157 | }; | |
158 | }; | |
159 | ||
160 | gpio_keys { | |
161 | compatible = "gpio-keys"; | |
162 | #address-cells = <1>; | |
163 | #size-cells = <0>; | |
164 | ||
165 | button@1 { | |
166 | label = "Power Button"; | |
167 | linux,code = <116>; /* KEY_POWER */ | |
aa06a5ad | 168 | gpios = <&gpio1 30 0>; |
2344a29a AE |
169 | }; |
170 | ||
171 | button@2 { | |
172 | label = "Reset Button"; | |
173 | linux,code = <0x198>; /* KEY_RESTART */ | |
174 | gpios = <&gpio0 6 1>; | |
175 | }; | |
176 | ||
177 | button@3 { | |
178 | label = "Backup Button"; | |
179 | linux,code = <133>; /* KEY_COPY */ | |
180 | gpios = <&gpio1 26 1>; | |
181 | }; | |
182 | }; | |
183 | ||
2832cf25 AE |
184 | gpio_poweroff { |
185 | compatible = "gpio-poweroff"; | |
186 | pinctrl-0 = <&poweroff>; | |
187 | pinctrl-names = "default"; | |
188 | gpios = <&gpio0 8 1>; | |
189 | }; | |
190 | ||
2344a29a | 191 | }; |