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