aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/boot/dts/armada-370-netgear-rn104.dts68
1 files changed, 32 insertions, 36 deletions
diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
index 50b51509c330..e48e5fb6a065 100644
--- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts
+++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
@@ -11,8 +11,9 @@
11 11
12/dts-v1/; 12/dts-v1/;
13 13
14#include "armada-370.dtsi" 14#include <dt-bindings/input/input.h>
15#include <dt-bindings/gpio/gpio.h> 15#include <dt-bindings/gpio/gpio.h>
16#include "armada-370.dtsi"
16 17
17/ { 18/ {
18 model = "NETGEAR ReadyNAS 104"; 19 model = "NETGEAR ReadyNAS 104";
@@ -59,12 +60,12 @@
59 marvell,function = "gpio"; 60 marvell,function = "gpio";
60 }; 61 };
61 62
62 backup_key_pin: backup-key-pin { 63 backup_button_pin: backup-button-pin {
63 marvell,pins = "mpp52"; 64 marvell,pins = "mpp52";
64 marvell,function = "gpio"; 65 marvell,function = "gpio";
65 }; 66 };
66 67
67 power_key_pin: power-key-pin { 68 power_button_pin: power-button-pin {
68 marvell,pins = "mpp62"; 69 marvell,pins = "mpp62";
69 marvell,function = "gpio"; 70 marvell,function = "gpio";
70 }; 71 };
@@ -79,18 +80,18 @@
79 marvell,function = "gpio"; 80 marvell,function = "gpio";
80 }; 81 };
81 82
82 reset_key_pin: reset-key-pin { 83 reset_button_pin: reset-button-pin {
83 marvell,pins = "mpp65"; 84 marvell,pins = "mpp65";
84 marvell,function = "gpio"; 85 marvell,function = "gpio";
85 }; 86 };
86 }; 87 };
87 88
88 mdio { 89 mdio {
89 phy0: ethernet-phy@0 { 90 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
90 reg = <0>; 91 reg = <0>;
91 }; 92 };
92 93
93 phy1: ethernet-phy@1 { 94 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
94 reg = <1>; 95 reg = <1>;
95 }; 96 };
96 }; 97 };
@@ -136,90 +137,85 @@
136 }; 137 };
137 138
138 clocks { 139 clocks {
139 #address-cells = <1>; 140 g762_clk: g762-oscillator {
140 #size-cells = <0>;
141
142 g762_clk: fixedclk {
143 compatible = "fixed-clock"; 141 compatible = "fixed-clock";
144 #clock-cells = <0>; 142 #clock-cells = <0>;
145 clock-frequency = <8192>; 143 clock-frequency = <8192>;
146 }; 144 };
147 }; 145 };
148 146
149 gpio_leds { 147 gpio-leds {
150 compatible = "gpio-leds"; 148 compatible = "gpio-leds";
151 pinctrl-0 = <&backup_led_pin &power_led_pin>; 149 pinctrl-0 = <&backup_led_pin &power_led_pin>;
152 pinctrl-names = "default"; 150 pinctrl-names = "default";
153 151
154 blue_backup_led { 152 blue-backup-led {
155 label = "rn104:blue:backup"; 153 label = "rn104:blue:backup";
156 gpios = <&gpio1 31 0>; /* GPIO 63 Active High */ 154 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
157 default-state = "off"; 155 default-state = "off";
158 }; 156 };
159 157
160 blue_power_led { 158 blue-power-led {
161 label = "rn104:blue:pwr"; 159 label = "rn104:blue:pwr";
162 gpios = <&gpio2 0 1>; /* GPIO 64 Active Low */ 160 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
163 linux,default-trigger = "keep"; 161 linux,default-trigger = "keep";
164 }; 162 };
165 163
166 sata1_led { 164 blue-sata1-led {
167 label = "rn104:blue:sata1"; 165 label = "rn104:blue:sata1";
168 gpios = <&pca9554 0 GPIO_ACTIVE_LOW>; 166 gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
169 default-state = "off"; 167 default-state = "off";
170 }; 168 };
171 169
172 sata2_led { 170 blue-sata2-led {
173 label = "rn104:blue:sata2"; 171 label = "rn104:blue:sata2";
174 gpios = <&pca9554 1 GPIO_ACTIVE_LOW>; 172 gpios = <&pca9554 1 GPIO_ACTIVE_LOW>;
175 default-state = "off"; 173 default-state = "off";
176 }; 174 };
177 175
178 sata3_led { 176 blue-sata3-led {
179 label = "rn104:blue:sata3"; 177 label = "rn104:blue:sata3";
180 gpios = <&pca9554 2 GPIO_ACTIVE_LOW>; 178 gpios = <&pca9554 2 GPIO_ACTIVE_LOW>;
181 default-state = "off"; 179 default-state = "off";
182 }; 180 };
183 181
184 sata4_led { 182 blue-sata4-led {
185 label = "rn104:blue:sata4"; 183 label = "rn104:blue:sata4";
186 gpios = <&pca9554 3 GPIO_ACTIVE_LOW>; 184 gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
187 default-state = "off"; 185 default-state = "off";
188 }; 186 };
189 }; 187 };
190 188
191 gpio_keys { 189 gpio-keys {
192 compatible = "gpio-keys"; 190 compatible = "gpio-keys";
193 #address-cells = <1>; 191 pinctrl-0 = <&backup_button_pin
194 #size-cells = <0>; 192 &power_button_pin
195 pinctrl-0 = <&backup_key_pin 193 &reset_button_pin>;
196 &power_key_pin
197 &reset_key_pin>;
198 pinctrl-names = "default"; 194 pinctrl-names = "default";
199 195
200 button@1 { 196 backup-button {
201 label = "Backup Button"; 197 label = "Backup Button";
202 linux,code = <133>; /* KEY_COPY */ 198 linux,code = <KEY_COPY>;
203 gpios = <&gpio1 20 1>; 199 gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
204 }; 200 };
205 201
206 button@2 { 202 power-button {
207 label = "Power Button"; 203 label = "Power Button";
208 linux,code = <116>; /* KEY_POWER */ 204 linux,code = <KEY_POWER>;
209 gpios = <&gpio1 30 0>; 205 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
210 }; 206 };
211 207
212 button@3 { 208 reset-button {
213 label = "Reset Button"; 209 label = "Reset Button";
214 linux,code = <0x198>; /* KEY_RESTART */ 210 linux,code = <KEY_RESTART>;
215 gpios = <&gpio2 1 1>; 211 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
216 }; 212 };
217 }; 213 };
218 214
219 gpio_poweroff { 215 gpio-poweroff {
220 compatible = "gpio-poweroff"; 216 compatible = "gpio-poweroff";
221 pinctrl-0 = <&poweroff>; 217 pinctrl-0 = <&poweroff>;
222 pinctrl-names = "default"; 218 pinctrl-names = "default";
223 gpios = <&gpio1 28 1>; 219 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
224 }; 220 };
225}; 221};