ramips: fix pci/pcie related dtc warnings
[openwrt/staging/wigyori.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 #address-cells = <1>;
52 #size-cells = <0>;
53 poll-interval = <20>;
54
55 reset {
56 label = "reset";
57 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
59 };
60
61 wps {
62 label = "wps";
63 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_WPS_BUTTON>;
65 };
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71
72 m25p80@0 {
73 #address-cells = <1>;
74 #size-cells = <1>;
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <10000000>;
78 m25p,chunked-io = <32>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x4000>;
89 read-only;
90 };
91
92 radio: partition@34000 {
93 label = "radio";
94 reg = <0x34000 0x4000>;
95 read-only;
96 };
97
98 factory: partition@38000 {
99 label = "factory";
100 reg = <0x38000 0x8000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "defaults";
106 reg = <0x40000 0x10000>;
107 read-only;
108 };
109
110 partition@50000 {
111 label = "firmware";
112 reg = <0x50000 0xfb0000>;
113 };
114 };
115 };
116
117 &pcie {
118 status = "okay";
119 };
120
121 &pcie0 {
122 mt76@0,0 {
123 reg = <0x0000 0 0 0 0>;
124 mediatek,mtd-eeprom = <&radio 0x2000>;
125 ieee80211-freq-limit = <5000000 6000000>;
126 };
127 };
128
129 &pcie1 {
130 mt76@0,0 {
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&radio 0>;
133 ieee80211-freq-limit = <2400000 2500000>;
134 };
135 };
136
137 &pinctrl {
138 state_default: pinctrl0 {
139 gpio {
140 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
141 ralink,function = "gpio";
142 };
143 };
144 };