aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts')
-rw-r--r--arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts111
1 files changed, 71 insertions, 40 deletions
diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
index e6a102cf424c..4d2a8db9ab77 100644
--- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
+++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
@@ -1,3 +1,14 @@
1/*
2 * Device Tree file for NETGEAR ReadyNAS Duo v2
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
1/dts-v1/; 12/dts-v1/;
2 13
3#include "kirkwood.dtsi" 14#include "kirkwood.dtsi"
@@ -32,41 +43,50 @@
32 marvell,pins = "mpp47"; 43 marvell,pins = "mpp47";
33 marvell,function = "gpio"; 44 marvell,function = "gpio";
34 }; 45 };
46
35 pmx_button_backup: pmx-button-backup { 47 pmx_button_backup: pmx-button-backup {
36 marvell,pins = "mpp45"; 48 marvell,pins = "mpp45";
37 marvell,function = "gpio"; 49 marvell,function = "gpio";
38 }; 50 };
51
39 pmx_button_reset: pmx-button-reset { 52 pmx_button_reset: pmx-button-reset {
40 marvell,pins = "mpp13"; 53 marvell,pins = "mpp13";
41 marvell,function = "gpio"; 54 marvell,function = "gpio";
42 }; 55 };
56
43 pmx_led_blue_power: pmx-led-blue-power { 57 pmx_led_blue_power: pmx-led-blue-power {
44 marvell,pins = "mpp31"; 58 marvell,pins = "mpp31";
45 marvell,function = "gpio"; 59 marvell,function = "gpio";
46 }; 60 };
61
47 pmx_led_blue_activity: pmx-led-blue-activity { 62 pmx_led_blue_activity: pmx-led-blue-activity {
48 marvell,pins = "mpp38"; 63 marvell,pins = "mpp38";
49 marvell,function = "gpio"; 64 marvell,function = "gpio";
50 }; 65 };
66
51 pmx_led_blue_disk1: pmx-led-blue-disk1 { 67 pmx_led_blue_disk1: pmx-led-blue-disk1 {
52 marvell,pins = "mpp23"; 68 marvell,pins = "mpp23";
53 marvell,function = "gpio"; 69 marvell,function = "gpio";
54 }; 70 };
71
55 pmx_led_blue_disk2: pmx-led-blue-disk2 { 72 pmx_led_blue_disk2: pmx-led-blue-disk2 {
56 marvell,pins = "mpp22"; 73 marvell,pins = "mpp22";
57 marvell,function = "gpio"; 74 marvell,function = "gpio";
58 }; 75 };
76
59 pmx_led_blue_backup: pmx-led-blue-backup { 77 pmx_led_blue_backup: pmx-led-blue-backup {
60 marvell,pins = "mpp29"; 78 marvell,pins = "mpp29";
61 marvell,function = "gpio"; 79 marvell,function = "gpio";
62 }; 80 };
81
82 pmx_poweroff: pmx-poweroff {
83 marvell,pins = "mpp30";
84 marvell,function = "gpio";
85 };
63 }; 86 };
64 87
65 clocks { 88 clocks {
66 #address-cells = <1>; 89 g762_clk: g762-oscillator {
67 #size-cells = <0>;
68
69 g762_clk: fixedclk {
70 compatible = "fixed-clock"; 90 compatible = "fixed-clock";
71 #clock-cells = <0>; 91 #clock-cells = <0>;
72 clock-frequency = <8192>; 92 clock-frequency = <8192>;
@@ -112,69 +132,80 @@
112 132
113 power_led { 133 power_led {
114 label = "status:blue:power_led"; 134 label = "status:blue:power_led";
115 gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */ 135 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
116 linux,default-trigger = "default-on"; 136 default-state = "keep";
117 }; 137 };
138
118 activity_led { 139 activity_led {
119 label = "status:blue:activity_led"; 140 label = "status:blue:activity_led";
120 gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */ 141 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
121 }; 142 };
143
122 disk1_led { 144 disk1_led {
123 label = "status:blue:disk1_led"; 145 label = "status:blue:disk1_led";
124 gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */ 146 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
125 }; 147 };
148
126 disk2_led { 149 disk2_led {
127 label = "status:blue:disk2_led"; 150 label = "status:blue:disk2_led";
128 gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */ 151 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
129 }; 152 };
153
130 backup_led { 154 backup_led {
131 label = "status:blue:backup_led"; 155 label = "status:blue:backup_led";
132 gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/ 156 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
133 }; 157 };
134 }; 158 };
135 159
136 gpio_keys { 160 gpio-keys {
137 compatible = "gpio-keys"; 161 compatible = "gpio-keys";
138 #address-cells = <1>;
139 #size-cells = <0>;
140 pinctrl-0 = <&pmx_button_power &pmx_button_backup 162 pinctrl-0 = <&pmx_button_power &pmx_button_backup
141 &pmx_button_reset>; 163 &pmx_button_reset>;
142 pinctrl-names = "default"; 164 pinctrl-names = "default";
143 165
144 button@1 { 166 power-button {
145 label = "Power Button"; 167 label = "Power Button";
146 linux,code = <116>; /* KEY_POWER */ 168 linux,code = <KEY_POWER>;
147 gpios = <&gpio1 15 1>; 169 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
148 }; 170 };
149 button@2 { 171
172 reset-button {
150 label = "Reset Button"; 173 label = "Reset Button";
151 linux,code = <0x198>; /* KEY_RESTART */ 174 linux,code = <KEY_RESTART>;
152 gpios = <&gpio0 13 1>; 175 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
153 }; 176 };
154 button@3 { 177
178 backup-button {
155 label = "Backup Button"; 179 label = "Backup Button";
156 linux,code = <133>; /* KEY_COPY */ 180 linux,code = <KEY_COPY>;
157 gpios = <&gpio1 13 1>; 181 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
158 }; 182 };
159 }; 183 };
160 184
161 regulators { 185 gpio-poweroff {
162 compatible = "simple-bus"; 186 compatible = "gpio-poweroff";
163 #address-cells = <1>; 187 pinctrl-0 = <&pmx_poweroff>;
164 #size-cells = <0>; 188 pinctrl-names = "default";
165 189 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
166 usb_power: regulator@1 { 190 };
167 compatible = "regulator-fixed"; 191
168 reg = <1>; 192 regulators {
169 regulator-name = "USB 3.0 Power"; 193 compatible = "simple-bus";
170 regulator-min-microvolt = <5000000>; 194 #address-cells = <1>;
171 regulator-max-microvolt = <5000000>; 195 #size-cells = <0>;
172 enable-active-high; 196
173 regulator-always-on; 197 usb3_regulator: usb3-regulator {
174 regulator-boot-on; 198 compatible = "regulator-fixed";
175 gpio = <&gpio1 14 0>; 199 reg = <1>;
176 }; 200 regulator-name = "USB 3.0 Power";
177 }; 201 regulator-min-microvolt = <5000000>;
202 regulator-max-microvolt = <5000000>;
203 enable-active-high;
204 regulator-always-on;
205 regulator-boot-on;
206 gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
207 };
208 };
178}; 209};
179 210
180&nand { 211&nand {
@@ -210,7 +241,7 @@
210&mdio { 241&mdio {
211 status = "okay"; 242 status = "okay";
212 243
213 ethphy0: ethernet-phy@0 { 244 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
214 device_type = "ethernet-phy"; 245 device_type = "ethernet-phy";
215 reg = <0>; 246 reg = <0>;
216 }; 247 };