ramips: soc wmac eeprom cleanup
[openwrt.git] / target / linux / ramips / dts / WHR-1166D.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "ralink,mt7620a-soc";
7         model = "Buffalo WHR-1166D";
8
9         palmbus@10000000 {
10                 gpio2: gpio@660 {
11                         status = "okay";
12                 };
13
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 #address-cells = <1>;
19                                 #size-cells = <1>;
20                                 compatible = "en25q64";
21                                 reg = <0 0>;
22                                 linux,modalias = "m25p80", "mx25l6405d";
23                                 spi-max-frequency = <10000000>;
24
25                                 partition@0 {
26                                         label = "u-boot";
27                                         reg = <0x0 0x30000>;
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         label = "u-boot-env";
33                                         reg = <0x30000 0x10000>;
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         label = "factory";
39                                         reg = <0x40000 0x10000>;
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         label = "firmware";
45                                         reg = <0x50000 0xeb0000>;
46                                 };
47
48                                 partition@e00000 {
49                                         label = "usercfg";
50                                         reg = <0xe00000 0x100000>;
51                                 };
52                         };
53                 };
54         };
55
56         pinctrl {
57                 state_default: pinctrl0 {
58                         gpio {
59                                 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
60                                 ralink,function = "gpio";
61                         };
62                 };
63         };
64
65         ethernet@10100000 {
66                 pinctrl-names = "default";
67                 pinctrl-0 = <&ephy_pins>;
68
69                 ralink,port-map = "llllw";
70         };
71
72         gsw@10110000 {
73                 ralink,port4 = "ephy";
74         };
75
76         wmac@10180000 {
77                 ralink,mtd-eeprom = <&factory 0>;
78         };
79
80         pcie@10140000 {
81                 status = "okay";
82         };
83         
84         gpio-leds {
85                 compatible = "gpio-leds";
86                 power {
87                         label = "buffalo:red:power";
88                         gpios = <&gpio0 7 1>;
89                 };
90                 status {
91                         label = "buffalo:green:status";
92                         gpios = <&gpio0 8 1>;
93                 };
94                 power2 {
95                         label = "buffalo:green:power";
96                         gpios = <&gpio0 9 1>;
97                 };
98                 status2 {
99                         label = "buffalo:orange:status";
100                         gpios = <&gpio0 10 1>;
101                 };
102                 internet {
103                         label = "buffalo:green:internet";
104                         gpios = <&gpio2 17 1>;
105                 };
106                 router {
107                         label = "buffalo:green:router";
108                         gpios = <&gpio2 18 1>;
109                 };
110                 router2 {
111                         label = "buffalo:orange:router";
112                         gpios = <&gpio2 19 1>;
113                 };
114         };
115
116         gpio-keys-polled {
117                 compatible = "gpio-keys-polled";
118                 #address-cells = <1>;
119                 #size-cells = <0>;
120                 poll-interval = <20>;
121                 s1 {
122                         label = "reset";
123                         gpios = <&gpio2 12 1>;
124                         linux,code = <0x100>;
125                 };
126                 s2 {
127                         label = "aoss";
128                         gpios = <&gpio2 13 1>;
129                         linux,code = <0x101>;
130                 };
131                 s3 {
132                         label = "ap";
133                         gpios = <&gpio2 14 1>;
134                         linux,code = <0x102>;
135                 };
136                 s4 {
137                         label = "bridge";
138                         gpios = <&gpio2 15 1>;
139                         linux,code = <0x103>;
140                 };
141         };
142 };