Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / F5D8235_V1.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         #address-cells = <1>;
10         #size-cells = <1>;
11         compatible = "F5D8235_V1", "ralink,rt2880-soc";
12         model = "Belkin F5D8235 v1";
13
14         pci@440000 {
15                 status = "ok";
16         };
17
18         cfi@1f000000 {
19                 compatible = "cfi-flash";
20                 reg = <0xbc400000 0x800000>;
21                 bank-width = <2>;
22                 device-width = <2>;
23                 #address-cells = <1>;
24                 #size-cells = <1>;
25
26                 partition@0 {
27                         label = "uboot";
28                         reg = <0x0 0x30000>;
29                         read-only;
30                 };
31
32                 partition@30000 {
33                         label = "uboot-env";
34                         reg = <0x30000 0x10000>;
35                         read-only;
36                 };
37
38                 factory: partition@40000 {
39                         label = "factory";
40                         reg = <0x40000 0x10000>;
41                         read-only;
42                 };
43
44                 partition@50000 {
45                         label = "firmware";
46                         reg = <0x50000 0x7b0000>;
47                 };
48         };
49
50         rtl8366s {
51                 compatible = "realtek,rtl8366s";
52                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
53                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
54         };
55
56         gpio-keys-polled {
57                 compatible = "gpio-keys-polled";
58                 #address-cells = <1>;
59                 #size-cells = <0>;
60                 poll-interval = <100>;
61
62                 wps {
63                         label = "wps";
64                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
65                         linux,code = <KEY_WPS_BUTTON>;
66                 };
67
68                 reset {
69                         label = "reset";
70                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
71                         linux,code = <KEY_RESTART>;
72                 };
73         };
74
75         gpio-leds {
76                 compatible = "gpio-leds";
77
78                 internet {
79                         label = "f5d8235-v1:blue:internet";
80                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
81                 };
82
83                 internet2 {
84                         label = "f5d8235-v1:amber:internet";
85                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
86                 };
87
88                 modem {
89                         label = "f5d8235-v1:blue:modem";
90                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
91                 };
92
93                 modem2 {
94                         label = "f5d8235-v1:amber:modem";
95                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
96                 };
97
98                 router {
99                         label = "f5d8235-v1:blue:router";
100                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
101                 };
102
103                 storage {
104                         label = "f5d8235-v1:blue:storage";
105                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
106                 };
107
108                 storage2 {
109                         label = "f5d8235-v1:amber:storage";
110                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
111                 };
112
113                 security {
114                         label = "f5d8235-v1:blue:security";
115                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
116                 };
117
118                 security2 {
119                         label = "f5d8235-v1:amber:security";
120                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
121                 };
122
123                 wired {
124                         label = "f5d8235-v1:blue:wired";
125                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
126                 };
127
128                 wired2 {
129                         label = "f5d8235-v1:amber:wired";
130                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
131                 };
132
133                 wireless {
134                         label = "f5d8235-v1:blue:wireless";
135                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
136                 };
137
138                 wireless2 {
139                         label = "f5d8235-v1:amber:wireless";
140                         gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
141                 };
142         };
143 };
144
145 &gpio0 {
146         status = "okay";
147 };
148
149 &pinctrl {
150         state_default: pinctrl0 {
151                 gpio {
152                         ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
153                         ralink,function = "gpio";
154                 };
155         };
156 };
157
158 &ethernet {
159         status = "okay";
160         mtd-mac-address = <&factory 0x4>;
161
162         port@0 {
163                 mediatek,fixed-link = <1000 1 1 1>;
164         };
165 };
166
167 &wmac {
168         status = "okay";
169         ralink,mtd-eeprom = <&factory 0x0>;
170 };