ralink: more mt7530 fixes
[openwrt/staging/chunkeey.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 = <0xf00000 0x100000>;
51 };
52 };
53 };
54 };
55
56 pinctrl {
57 state_default: pinctrl0 {
58 gpio {
59 ralink,group = "i2c", "uartf", "wled", "nd_sd";
60 ralink,function = "gpio";
61 };
62 };
63 };
64
65 ethernet@10100000 {
66 pinctrl-names = "default";
67 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
68
69 port@5 {
70 status = "okay";
71 phy-handle = <&phy5>;
72 phy-mode = "rgmii";
73 };
74
75 mdio-bus {
76 status = "okay";
77
78 phy5: ethernet-phy@5 {
79 reg = <5>;
80 phy-mode = "rgmii";
81 };
82 };
83 };
84
85 gsw@10110000 {
86 ralink,port4 = "ephy";
87 };
88
89 wmac@10180000 {
90 ralink,mtd-eeprom = <&factory 0>;
91 };
92
93 pcie@10140000 {
94 status = "okay";
95
96 pcie-bridge {
97 mt76@0,0 {
98 reg = <0x0000 0 0 0 0>;
99 device_type = "pci";
100 ralink,mtd-eeprom = <&factory 32768>;
101 };
102 };
103 };
104
105 gpio-leds {
106 compatible = "gpio-leds";
107 power {
108 label = "buffalo:red:power";
109 gpios = <&gpio0 7 1>;
110 };
111 status {
112 label = "buffalo:green:status";
113 gpios = <&gpio0 8 1>;
114 };
115 power2 {
116 label = "buffalo:green:power";
117 gpios = <&gpio0 9 1>;
118 };
119 status2 {
120 label = "buffalo:orange:status";
121 gpios = <&gpio0 10 1>;
122 };
123 internet {
124 label = "buffalo:green:internet";
125 gpios = <&gpio2 17 1>;
126 };
127 router {
128 label = "buffalo:green:router";
129 gpios = <&gpio2 18 1>;
130 };
131 router2 {
132 label = "buffalo:orange:router";
133 gpios = <&gpio2 19 1>;
134 };
135 };
136
137 gpio-keys-polled {
138 compatible = "gpio-keys-polled";
139 #address-cells = <1>;
140 #size-cells = <0>;
141 poll-interval = <20>;
142 s1 {
143 label = "reset";
144 gpios = <&gpio2 12 1>;
145 linux,code = <0x100>;
146 };
147 s2 {
148 label = "aoss";
149 gpios = <&gpio2 13 1>;
150 linux,code = <0x101>;
151 };
152 s3 {
153 label = "ap";
154 gpios = <&gpio2 14 1>;
155 linux,code = <0x102>;
156 };
157 s4 {
158 label = "bridge";
159 gpios = <&gpio2 15 1>;
160 linux,code = <0x103>;
161 };
162 };
163 };