ramips: Support LEDs on D-Link DIR-860L B1
[openwrt/staging/wigyori.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 palmbus@1E000000 {
19 spi@b00 {
20 status = "okay";
21
22 m25p80@0 {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 compatible = "jedec,spi-nor";
26 reg = <0 0>;
27 linux,modalias = "m25p80";
28 spi-max-frequency = <10000000>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x4000>;
39 read-only;
40 };
41
42 radio: partition@34000 {
43 label = "radio";
44 reg = <0x34000 0x4000>;
45 read-only;
46 };
47
48 factory: partition@38000 {
49 label = "factory";
50 reg = <0x38000 0x8000>;
51 read-only;
52 };
53
54 partition@40000 {
55 label = "defaults";
56 reg = <0x40000 0x10000>;
57 read-only;
58 };
59
60 partition@50000 {
61 label = "firmware";
62 reg = <0x50000 0xfb0000>;
63 };
64 };
65 };
66 };
67
68 pcie@1e140000 {
69 status = "okay";
70
71 pcie0 {
72 mt76@0,0 {
73 reg = <0x0000 0 0 0 0>;
74 device_type = "pci";
75 mediatek,mtd-eeprom = <&radio 0x2000>;
76 mediatek,2ghz = <0>;
77 };
78 };
79
80 pcie1 {
81 mt76@1,0 {
82 reg = <0x0000 0 0 0 0>;
83 device_type = "pci";
84 mediatek,mtd-eeprom = <&radio 0>;
85 mediatek,5ghz = <0>;
86 };
87 };
88 };
89
90 pinctrl {
91 state_default: pinctrl0 {
92 gpio {
93 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
94 ralink,function = "gpio";
95 };
96 };
97 };
98
99 gpio-leds {
100 compatible = "gpio-leds";
101
102 power {
103 label = "dir-860l-b1:orange:power";
104 gpios = <&gpio0 13 1>;
105 };
106
107 power2 {
108 label = "dir-860l-b1:green:power";
109 gpios = <&gpio0 15 1>;
110 };
111
112 net {
113 label = "dir-860l-b1:orange:net";
114 gpios = <&gpio0 14 1>;
115 };
116
117 net2 {
118 label = "dir-860l-b1:green:net";
119 gpios = <&gpio0 16 1>;
120 };
121 };
122
123 gpio-keys-polled {
124 compatible = "gpio-keys-polled";
125 #address-cells = <1>;
126 #size-cells = <0>;
127 poll-interval = <20>;
128 };
129 };