]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/armada-370-netgear-rn102.dts
xfrm: prevent ipcomp scratch buffer race condition
[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                 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                                 };
60                         };
61
62                         mdio {
63                                 phy0: ethernet-phy@0 {
64                                         reg = <0>;
65                                 };
66                         };
67
68                         ethernet@74000 {
69                                 status = "okay";
70                                 phy = <&phy0>;
71                                 phy-mode = "rgmii-id";
72                         };
73
74                         usb@50000 {
75                                 status = "okay";
76                         };
77
78                         i2c@11000 {
79                                 compatible = "marvell,mv64xxx-i2c";
80                                 clock-frequency = <100000>;
81                                 status = "okay";
82
83                                 g762: g762@3e {
84                                         compatible = "gmt,g762";
85                                         reg = <0x3e>;
86                                         clocks = <&g762_clk>; /* input clock */
87                                         fan_gear_mode = <0>;
88                                         fan_startv = <1>;
89                                         pwm_polarity = <0>;
90                                 };
91                         };
92
93                         pcie-controller {
94                                 status = "okay";
95
96                                 /* Connected to Marvell SATA controller */
97                                 pcie@1,0 {
98                                         /* Port 0, Lane 0 */
99                                         status = "okay";
100                                 };
101
102                                 /* Connected to FL1009 USB 3.0 controller */
103                                 pcie@2,0 {
104                                         /* Port 1, Lane 0 */
105                                         status = "okay";
106                                 };
107                         };
108                 };
109         };
110
111         clocks {
112                #address-cells = <1>;
113                #size-cells = <0>;
114
115                g762_clk: fixedclk {
116                          compatible = "fixed-clock";
117                          #clock-cells = <0>;
118                          clock-frequency = <8192>;
119                };
120         };
121
122         gpio_leds {
123                 compatible = "gpio-leds";
124                 pinctrl-0 = < &power_led_pin
125                               &sata1_led_pin
126                               &sata2_led_pin
127                               &backup_led_pin >;
128                 pinctrl-names = "default";
129
130                 blue_power_led {
131                         label = "rn102:blue:pwr";
132                         gpios = <&gpio1 25 1>;  /* GPIO 57 Active Low */
133                         linux,default-trigger = "heartbeat";
134                 };
135
136                 green_sata1_led {
137                         label = "rn102:green:sata1";
138                         gpios = <&gpio0 15 1>;  /* GPIO 15 Active Low */
139                         default-state = "on";
140                 };
141
142                 green_sata2_led {
143                         label = "rn102:green:sata2";
144                         gpios = <&gpio0 14 1>;   /* GPIO 14 Active Low */
145                         default-state = "on";
146                 };
147
148                 green_backup_led {
149                         label = "rn102:green:backup";
150                         gpios = <&gpio1 24 1>;   /* GPIO 56 Active Low */
151                         default-state = "on";
152                 };
153         };
154
155         gpio_keys {
156                 compatible = "gpio-keys";
157                 #address-cells = <1>;
158                 #size-cells = <0>;
159
160                 button@1 {
161                         label = "Power Button";
162                         linux,code = <116>;     /* KEY_POWER */
163                         gpios = <&gpio1 30 1>;
164                 };
165
166                 button@2 {
167                         label = "Reset Button";
168                         linux,code = <0x198>;   /* KEY_RESTART */
169                         gpios = <&gpio0 6 1>;
170                 };
171
172                 button@3 {
173                         label = "Backup Button";
174                         linux,code = <133>;     /* KEY_COPY */
175                         gpios = <&gpio1 26 1>;
176                 };
177         };
178
179 };