ramips: cleanup dts files of mt7621 based boards
[openwrt/staging/lynxis/omap.git] / target / linux / ramips / dts / F5D8235_V1.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 #address-cells = <1>;
9 #size-cells = <1>;
10 compatible = "F5D8235_V1", "ralink,rt2880-soc";
11 model = "Belkin F5D8235 v1";
12
13 cfi@1f000000 {
14 compatible = "cfi-flash";
15 reg = <0x1f000000 0x800000>;
16 bank-width = <2>;
17 device-width = <2>;
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "uboot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "uboot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 label = "linux";
41 reg = <0x50000 0x3b0000>;
42 };
43 };
44
45 rtl8366s {
46 compatible = "realtek,rtl8366s";
47 gpio-sda = <&gpio0 1 0>;
48 gpio-sck = <&gpio0 2 0>;
49 };
50
51 gpio-keys-polled {
52 compatible = "gpio-keys-polled";
53 #address-cells = <1>;
54 #size-cells = <0>;
55 poll-interval = <100>;
56
57 wps {
58 label = "wps";
59 gpios = <&gpio0 0 1>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62
63 reset {
64 label = "reset";
65 gpios = <&gpio0 9 1>;
66 linux,code = <KEY_RESTART>;
67 };
68 };
69
70 gpio-leds {
71 compatible = "gpio-leds";
72
73 storage {
74 label = "f5d8235-v1:blue:storage";
75 gpios = <&gpio0 7 1>;
76 };
77
78 storage2 {
79 label = "f5d8235-v1:orange:storage";
80 gpios = <&gpio0 8 1>;
81 };
82 };
83 };
84
85 &gpio0 {
86 status = "okay";
87 };
88
89 &pinctrl {
90 state_default: pinctrl0 {
91 gpio {
92 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
93 ralink,function = "gpio";
94 };
95 };
96 };
97
98 &ethernet {
99 status = "okay";
100 mtd-mac-address = <&factory 0x4>;
101
102 port@0 {
103 mediatek,fixed-link = <1000 1 1 1>;
104 };
105 };
106
107 /* FIXME: no u-boot partition and 0x40000@uboot is out of boundaries */
108 /*&wmac {
109 status = "okay";
110 ralink,mtd-eeprom = <&u-boot 0x40000>;
111 };
112 */
113