ramips: soc wmac eeprom cleanup
[openwrt.git] / target / linux / ramips / dts / F7C027.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "F7C027", "ralink,rt5350-soc";
7         model = "Belkin F7C027";
8
9         palmbus@10000000 {
10                 spi@b00 {
11                         status = "okay";
12                         m25p80@0 {
13                                 #address-cells = <1>;
14                                 #size-cells = <1>;
15                                 compatible = "mx25l12805d";
16                                 reg = <0 0>;
17                                 linux,modalias = "m25p80", "mx25l12805d";
18                                 spi-max-frequency = <10000000>;
19
20                                 partition@0 {
21                                         label = "u-boot";
22                                         reg = <0x0 0x30000>;
23                                         read-only;
24                                 };
25
26                                 partition@30000 {
27                                         label = "u-boot-env";
28                                         reg = <0x30000 0x10000>;
29                                         read-only;
30                                 };
31
32                                 factory: partition@40000 {
33                                         label = "factory";
34                                         reg = <0x40000 0x10000>;
35                                         read-only;
36                                 };
37
38                                 partition@50000 {
39                                         label = "firmware";
40                                         reg = <0x50000 0x770000>;
41                                 };
42
43                                 partition@7c0000 {
44                                         label = "firmware2";
45                                         reg = <0x7c0000 0x770000>;
46                                 };
47
48                                 partition@f30000 {
49                                         label = "belkin_settings";
50                                         reg = <0xf30000 0xa0000>;
51                                 };
52
53                                 partition@fd0000 {
54                                         label = "unknown";
55                                         reg = <0xfd0000 0x10000>;
56                                 };
57
58                                 partition@fe0000 {
59                                         label = "nvram";
60                                         reg = <0xfe0000 0x10000>;
61                                 };
62
63                                 partition@ff0000 {
64                                         label = "user_factory";
65                                         reg = <0xff0000 0x10000>;
66                                 };
67                         };
68                 };
69         };
70
71         wmac@10180000 {
72                 ralink,mtd-eeprom = <&factory 0>;
73         };
74
75         pinctrl {
76                 state_default: pinctrl0 {
77                         gpio {
78                                 ralink,group = "i2c", "jtag", "uartf";
79                                 ralink,function = "gpio";
80                         };
81                 };
82         };
83
84         gpio-leds {
85                 compatible = "gpio-leds";
86                 status {
87                         label = "belkin:blue:status";
88                         gpios = <&gpio0 7 1>;
89                 };
90                 power {
91                         label = "belkin:blue:power";
92                         gpios = <&gpio0 9 1>;
93                 };
94                 orange {
95                         label = "belkin:orange:status";
96                         gpios = <&gpio0 11 1>;
97                 };
98                 relay {
99                         label = "belkin:device:relay";
100                         gpios = <&gpio0 13 0>;
101                 };
102         };
103         gpio-keys-polled {
104                 compatible = "gpio-keys-polled";
105                 #address-cells = <1>;
106                 #size-cells = <0>;
107                 poll-interval = <20>;
108                 top {
109                         label = "top";
110                         gpios = <&gpio0 10 1>;
111                         linux,code = <0x198>;
112                 };
113                 power {
114                         label = "power";
115                         gpios = <&gpio0 12 1>;
116                         linux,code = <0x100>;
117                 };
118                 sensor {
119                         label = "sensor";
120                         gpios = <&gpio0 14 1>;
121                         linux,code = <0x101>;
122                 };
123         };
124 };