b6336d87d355aa4d097f162324263fa3c44c8219
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / DIR-860L-B1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
7 model = "D-Link DIR-860L B1";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x8000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 gpio-leds {
19 compatible = "gpio-leds";
20
21 power {
22 label = "dir-860l-b1:orange:power";
23 gpios = <&gpio0 13 1>;
24 };
25
26 power2 {
27 label = "dir-860l-b1:green:power";
28 gpios = <&gpio0 15 1>;
29 };
30
31 net {
32 label = "dir-860l-b1:orange:net";
33 gpios = <&gpio0 14 1>;
34 };
35
36 net2 {
37 label = "dir-860l-b1:green:net";
38 gpios = <&gpio0 16 1>;
39 };
40 };
41
42 gpio-keys-polled {
43 compatible = "gpio-keys-polled";
44 #address-cells = <1>;
45 #size-cells = <0>;
46 poll-interval = <20>;
47 };
48 };
49
50 &spi0 {
51 status = "okay";
52
53 m25p80@0 {
54 #address-cells = <1>;
55 #size-cells = <1>;
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 linux,modalias = "m25p80";
59 spi-max-frequency = <10000000>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "u-boot-env";
69 reg = <0x30000 0x4000>;
70 read-only;
71 };
72
73 radio: partition@34000 {
74 label = "radio";
75 reg = <0x34000 0x4000>;
76 read-only;
77 };
78
79 factory: partition@38000 {
80 label = "factory";
81 reg = <0x38000 0x8000>;
82 read-only;
83 };
84
85 partition@40000 {
86 label = "defaults";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 label = "firmware";
93 reg = <0x50000 0xfb0000>;
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 = <&radio 0x2000>;
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 = <&radio 0>;
115 mediatek,5ghz = <0>;
116 };
117 };
118 };
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 gpio {
123 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
124 ralink,function = "gpio";
125 };
126 };
127 };