]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/armada-370-netgear-rn102.dts
Merge remote-tracking branch 'mvebu/for-next'
[karo-tx-linux.git] / arch / arm / boot / dts / armada-370-netgear-rn102.dts
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
14 #include "armada-370.dtsi"
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                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
31                           MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
32
33                 pcie-controller {
34                         status = "okay";
35
36                         /* Connected to Marvell SATA controller */
37                         pcie@1,0 {
38                                 /* Port 0, Lane 0 */
39                                 status = "okay";
40                         };
41
42                         /* Connected to FL1009 USB 3.0 controller */
43                         pcie@2,0 {
44                                 /* Port 1, Lane 0 */
45                                 status = "okay";
46                         };
47                 };
48
49                 internal-regs {
50                         serial@12000 {
51                                 clock-frequency = <200000000>;
52                                 status = "okay";
53                         };
54
55                         sata@a0000 {
56                                 nr-ports = <2>;
57                                 status = "okay";
58                         };
59
60                         pinctrl {
61                                 power_led_pin: power-led-pin {
62                                         marvell,pins = "mpp57";
63                                         marvell,function = "gpio";
64                                 };
65                                 sata1_led_pin: sata1-led-pin {
66                                         marvell,pins = "mpp15";
67                                         marvell,function = "gpio";
68                                 };
69
70                                 sata2_led_pin: sata2-led-pin {
71                                         marvell,pins = "mpp14";
72                                         marvell,function = "gpio";
73                                 };
74
75                                 backup_led_pin: backup-led-pin {
76                                         marvell,pins = "mpp56";
77                                         marvell,function = "gpio";
78                                 };
79
80                                 poweroff: poweroff {
81                                         marvell,pins = "mpp8";
82                                         marvell,function = "gpio";
83                                 };
84                         };
85
86                         mdio {
87                                 phy0: ethernet-phy@0 {
88                                         reg = <0>;
89                                 };
90                         };
91
92                         ethernet@74000 {
93                                 status = "okay";
94                                 phy = <&phy0>;
95                                 phy-mode = "rgmii-id";
96                         };
97
98                         usb@50000 {
99                                 status = "okay";
100                         };
101
102                         i2c@11000 {
103                                 compatible = "marvell,mv64xxx-i2c";
104                                 clock-frequency = <100000>;
105                                 status = "okay";
106
107                                 g762: g762@3e {
108                                         compatible = "gmt,g762";
109                                         reg = <0x3e>;
110                                         clocks = <&g762_clk>; /* input clock */
111                                         fan_gear_mode = <0>;
112                                         fan_startv = <1>;
113                                         pwm_polarity = <0>;
114                                 };
115                         };
116                 };
117         };
118
119         clocks {
120                #address-cells = <1>;
121                #size-cells = <0>;
122
123                g762_clk: fixedclk {
124                          compatible = "fixed-clock";
125                          #clock-cells = <0>;
126                          clock-frequency = <8192>;
127                };
128         };
129
130         gpio_leds {
131                 compatible = "gpio-leds";
132                 pinctrl-0 = < &power_led_pin
133                               &sata1_led_pin
134                               &sata2_led_pin
135                               &backup_led_pin >;
136                 pinctrl-names = "default";
137
138                 blue_power_led {
139                         label = "rn102:blue:pwr";
140                         gpios = <&gpio1 25 1>;  /* GPIO 57 Active Low */
141                         default-state = "keep";
142                 };
143
144                 green_sata1_led {
145                         label = "rn102:green:sata1";
146                         gpios = <&gpio0 15 1>;  /* GPIO 15 Active Low */
147                         default-state = "on";
148                 };
149
150                 green_sata2_led {
151                         label = "rn102:green:sata2";
152                         gpios = <&gpio0 14 1>;   /* GPIO 14 Active Low */
153                         default-state = "on";
154                 };
155
156                 green_backup_led {
157                         label = "rn102:green:backup";
158                         gpios = <&gpio1 24 1>;   /* GPIO 56 Active Low */
159                         default-state = "on";
160                 };
161         };
162
163         gpio_keys {
164                 compatible = "gpio-keys";
165                 #address-cells = <1>;
166                 #size-cells = <0>;
167
168                 button@1 {
169                         label = "Power Button";
170                         linux,code = <116>;     /* KEY_POWER */
171                         gpios = <&gpio1 30 0>;
172                 };
173
174                 button@2 {
175                         label = "Reset Button";
176                         linux,code = <0x198>;   /* KEY_RESTART */
177                         gpios = <&gpio0 6 1>;
178                 };
179
180                 button@3 {
181                         label = "Backup Button";
182                         linux,code = <133>;     /* KEY_COPY */
183                         gpios = <&gpio1 26 1>;
184                 };
185         };
186
187         gpio_poweroff {
188                 compatible = "gpio-poweroff";
189                 pinctrl-0 = <&poweroff>;
190                 pinctrl-names = "default";
191                 gpios = <&gpio0 8 1>;
192         };
193
194 };