ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RE6500.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "linksys,re6500", "mediatek,mt7621-soc";
10 model = "Linksys RE6500";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x4000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 wifi {
29 label = "re6500:orange:wifi";
30 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
31 };
32
33 led_power: power {
34 label = "re6500:white:power";
35 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
36 };
37 };
38
39 gpio-keys-polled {
40 compatible = "gpio-keys-polled";
41 poll-interval = <20>;
42
43 wps {
44 label = "wps";
45 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 m25p80@0 {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <10000000>;
66 m25p,chunked-io = <32>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "u-boot-env";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 factory: partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91 };
92
93 &pinctrl {
94 state_default: pinctrl0 {
95 gpio {
96 ralink,group = "i2c", "uart2", "uart3", "rgmii2";
97 ralink,function = "gpio";
98 };
99 };
100 };
101
102 &pcie {
103 status = "okay";
104 };
105
106 &pcie0 {
107 mt76@0,0 {
108 reg = <0x0000 0 0 0 0>;
109 mediatek,mtd-eeprom = <&factory 0x0000>;
110 ieee80211-freq-limit = <5000000 6000000>;
111 };
112 };
113
114 &pcie1 {
115 mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 mediatek,mtd-eeprom = <&factory 0x8000>;
118 ieee80211-freq-limit = <2400000 2500000>;
119 };
120 };
121
122 &ethernet {
123 mtd-mac-address = <&factory 0x2e>;
124 };
125
126 &xhci {
127 status = "disabled";
128 };