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