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