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