ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to fix...
[openwrt/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 = "jedec,spi-nor";
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 0xfb0000>;
46 };
47 };
48 };
49 };
50
51 pinctrl {
52 state_default: pinctrl0 {
53 gpio {
54 ralink,group = "i2c", "uartf", "wled", "nd_sd";
55 ralink,function = "gpio";
56 };
57 };
58 };
59
60 ethernet@10100000 {
61 pinctrl-names = "default";
62 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
63
64 port@5 {
65 status = "okay";
66 phy-handle = <&phy5>;
67 phy-mode = "rgmii";
68 };
69
70 mdio-bus {
71 status = "okay";
72
73 phy5: ethernet-phy@5 {
74 reg = <5>;
75 phy-mode = "rgmii";
76 };
77 };
78 };
79
80 gsw@10110000 {
81 mediatek,port4 = "ephy";
82 };
83
84 wmac@10180000 {
85 ralink,mtd-eeprom = <&factory 0>;
86 };
87
88 pcie@10140000 {
89 status = "okay";
90
91 pcie-bridge {
92 mt76@0,0 {
93 reg = <0x0000 0 0 0 0>;
94 device_type = "pci";
95 mediatek,mtd-eeprom = <&factory 32768>;
96 mediatek,2ghz = <0>;
97 };
98 };
99 };
100
101 gpio-leds {
102 compatible = "gpio-leds";
103
104 power {
105 label = "whr-1166d:red:power";
106 gpios = <&gpio0 7 1>;
107 };
108
109 wifi {
110 label = "whr-1166d:green:wifi";
111 gpios = <&gpio0 8 1>;
112 };
113
114 power2 {
115 label = "whr-1166d:green:power";
116 gpios = <&gpio0 9 1>;
117 };
118
119 wifi2 {
120 label = "whr-1166d:orange:wifi";
121 gpios = <&gpio0 10 1>;
122 };
123
124 internet {
125 label = "whr-1166d:green:internet";
126 gpios = <&gpio2 17 1>;
127 };
128
129 router {
130 label = "whr-1166d:orange:router";
131 gpios = <&gpio2 18 1>;
132 };
133
134 router2 {
135 label = "whr-1166d:green:router";
136 gpios = <&gpio2 19 1>;
137 };
138 };
139
140 gpio-keys-polled {
141 compatible = "gpio-keys-polled";
142 #address-cells = <1>;
143 #size-cells = <0>;
144 poll-interval = <20>;
145
146 reset {
147 label = "reset";
148 gpios = <&gpio2 12 1>;
149 linux,code = <0x198>;
150 };
151
152 aoss {
153 label = "aoss";
154 gpios = <&gpio2 13 1>;
155 linux,code = <0x211>;
156 };
157
158 ap {
159 label = "ap";
160 gpios = <&gpio2 14 1>;
161 linux,code = <0x100>;
162 linux,input-type = <5>; /* EV_SW */
163 };
164
165 bridge {
166 label = "bridge";
167 gpios = <&gpio2 15 1>;
168 linux,code = <0x100>;
169 linux,input-type = <5>; /* EV_SW */
170 };
171 };
172 };