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