ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WHR-600D.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "buffalo,whr-600d", "ralink,mt7620a-soc";
10 model = "Buffalo WHR-600D";
11
12 aliases {
13 led-status = &led_power_green;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 power {
20 label = "whr-600d:red:power";
21 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
22 };
23
24 wifi {
25 label = "whr-600d:green:wifi";
26 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
27 };
28
29 led_power_green: power2 {
30 label = "whr-600d:green:power";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
32 };
33
34 wifi2 {
35 label = "whr-600d:orange:wifi";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
37 };
38
39 internet {
40 label = "whr-600d:green:internet";
41 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
42 };
43
44 router {
45 label = "whr-600d:green:router";
46 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
47 };
48
49 router2 {
50 label = "whr-600d:orange:router";
51 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
52 };
53 };
54
55 gpio-keys-polled {
56 compatible = "gpio-keys-polled";
57 poll-interval = <20>;
58
59 reset {
60 label = "reset";
61 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
63 };
64
65 aoss {
66 label = "aoss";
67 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
69 };
70
71 ap {
72 label = "ap";
73 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
74 linux,code = <BTN_0>;
75 linux,input-type = <EV_SW>;
76 };
77
78 bridge {
79 label = "bridge";
80 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
81 linux,code = <BTN_0>;
82 linux,input-type = <EV_SW>;
83 };
84 };
85 };
86
87 &gpio2 {
88 status = "okay";
89 };
90
91 &spi0 {
92 status = "okay";
93
94 m25p80@0 {
95 #address-cells = <1>;
96 #size-cells = <1>;
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <10000000>;
100
101 partition@0 {
102 label = "u-boot";
103 reg = <0x0 0x30000>;
104 read-only;
105 };
106
107 partition@30000 {
108 label = "u-boot-env";
109 reg = <0x30000 0x10000>;
110 read-only;
111 };
112
113 factory: partition@40000 {
114 label = "factory";
115 reg = <0x40000 0x10000>;
116 read-only;
117 };
118
119 partition@50000 {
120 label = "firmware";
121 reg = <0x50000 0x7b0000>;
122 };
123 };
124 };
125
126 &pinctrl {
127 state_default: pinctrl0 {
128 gpio {
129 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
130 ralink,function = "gpio";
131 };
132 };
133 };
134
135 &ethernet {
136 pinctrl-names = "default";
137 pinctrl-0 = <&ephy_pins>;
138 mtd-mac-address = <&factory 0x4>;
139 mediatek,portmap = "llllw";
140 };
141
142 &gsw {
143 mediatek,port4 = "ephy";
144 };
145
146 &wmac {
147 ralink,mtd-eeprom = <&factory 0>;
148 };
149
150 &pcie {
151 status = "okay";
152 };
153
154 &pcie0 {
155 wifi@0,0 {
156 compatible = "pci1814,5592";
157 reg = <0x0000 0 0 0 0>;
158 ralink,mtd-eeprom = <&factory 0x8000>;
159 };
160 };