ramips: Use dts alias based status led
[openwrt/openwrt.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 #address-cells = <1>;
42 #size-cells = <0>;
43 poll-interval = <20>;
44
45 wps {
46 label = "wps";
47 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
49 };
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
54 linux,code = <KEY_RESTART>;
55 };
56 };
57 };
58
59 &spi0 {
60 status = "okay";
61
62 m25p80@0 {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <10000000>;
68 m25p,chunked-io = <32>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 label = "firmware";
90 reg = <0x50000 0x7b0000>;
91 };
92 };
93 };
94
95 &pinctrl {
96 state_default: pinctrl0 {
97 gpio {
98 ralink,group = "i2c", "uart2", "uart3", "rgmii2";
99 ralink,function = "gpio";
100 };
101 };
102 };
103
104 &pcie {
105 status = "okay";
106
107 pcie0 {
108 mt76@0,0 {
109 reg = <0x0000 0 0 0 0>;
110 device_type = "pci";
111 mediatek,mtd-eeprom = <&factory 0x0000>;
112 ieee80211-freq-limit = <5000000 6000000>;
113 };
114 };
115
116 pcie1 {
117 mt76@1,0 {
118 reg = <0x0000 0 0 0 0>;
119 device_type = "pci";
120 mediatek,mtd-eeprom = <&factory 0x8000>;
121 ieee80211-freq-limit = <2400000 2500000>;
122 };
123 };
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x2e>;
128 };
129
130 &xhci {
131 status = "disabled";
132 };