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