mt76: sync with version 878456caf60d from master
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-860L-B1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "D-Link DIR-860L B1";
9
10 memory@0 {
11 device_type = "memory";
12 reg = <0x0 0x8000000>;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,57600";
17 };
18
19 gpio-leds {
20 compatible = "gpio-leds";
21
22 power {
23 label = "dir-860l-b1:orange:power";
24 gpios = <&gpio0 13 1>;
25 };
26
27 power2 {
28 label = "dir-860l-b1:green:power";
29 gpios = <&gpio0 15 1>;
30 };
31
32 net {
33 label = "dir-860l-b1:orange:net";
34 gpios = <&gpio0 14 1>;
35 };
36
37 net2 {
38 label = "dir-860l-b1:green:net";
39 gpios = <&gpio0 16 1>;
40 };
41 };
42
43 gpio-keys-polled {
44 compatible = "gpio-keys-polled";
45 #address-cells = <1>;
46 #size-cells = <0>;
47 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 7 1>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&gpio0 18 1>;
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60 };
61 };
62
63 &spi0 {
64 status = "okay";
65
66 m25p80@0 {
67 #address-cells = <1>;
68 #size-cells = <1>;
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <10000000>;
72 m25p,chunked-io = <32>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x4000>;
83 read-only;
84 };
85
86 radio: partition@34000 {
87 label = "radio";
88 reg = <0x34000 0x4000>;
89 read-only;
90 };
91
92 factory: partition@38000 {
93 label = "factory";
94 reg = <0x38000 0x8000>;
95 read-only;
96 };
97
98 partition@40000 {
99 label = "defaults";
100 reg = <0x40000 0x10000>;
101 read-only;
102 };
103
104 partition@50000 {
105 label = "firmware";
106 reg = <0x50000 0xfb0000>;
107 };
108 };
109 };
110
111 &pcie {
112 status = "okay";
113
114 pcie0 {
115 mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 device_type = "pci";
118 mediatek,mtd-eeprom = <&radio 0x2000>;
119 ieee80211-freq-limit = <5000000 6000000>;
120 };
121 };
122
123 pcie1 {
124 mt76@1,0 {
125 reg = <0x0000 0 0 0 0>;
126 device_type = "pci";
127 mediatek,mtd-eeprom = <&radio 0>;
128 ieee80211-freq-limit = <2400000 2500000>;
129 };
130 };
131 };
132
133 &pinctrl {
134 state_default: pinctrl0 {
135 gpio {
136 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
137 ralink,function = "gpio";
138 };
139 };
140 };