ramips: DTS rework
[openwrt/openwrt.git] / target / linux / ramips / dts / WF-2881.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7 model = "NETIS WF-2881";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x8000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 nand@1e003000 {
19 status = "okay";
20
21 partition@0 {
22 label = "u-boot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x1000>;
30 read-only;
31 };
32
33 partition@80000 {
34 label = "config";
35 reg = <0x80000 0x80000>;
36 read-only;
37 };
38
39 factory: partition@100000 {
40 label = "factory";
41 reg = <0x100000 0x40000>;
42 read-only;
43 };
44
45 partition@140000 {
46 label = "firmware";
47 reg = <0x140000 0x7E40000>;
48 };
49 };
50
51 gpio-leds {
52 compatible = "gpio-leds";
53
54 usb {
55 label = "wf-2881:green:usb";
56 gpios = <&gpio0 6 1>;
57 };
58
59 wps {
60 label = "wf-2881:green:wps";
61 gpios = <&gpio0 0 1>;
62 };
63 };
64
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 #address-cells = <1>;
68 #size-cells = <0>;
69 poll-interval = <20>;
70
71 reset {
72 label = "reset";
73 gpios = <&gpio0 12 1>;
74 linux,code = <0x198>;
75 };
76 };
77 };
78
79 &spi0 {
80 status="disabled";
81 };
82
83 &pcie {
84 status = "okay";
85
86 pcie0 {
87 mt76@0,0 {
88 reg = <0x0000 0 0 0 0>;
89 device_type = "pci";
90 mediatek,mtd-eeprom = <&factory 0x8000>;
91 mediatek,2ghz = <0>;
92 };
93 };
94
95 pcie1 {
96 mt76@1,0 {
97 reg = <0x0000 0 0 0 0>;
98 device_type = "pci";
99 mediatek,mtd-eeprom = <&factory 0x0000>;
100 mediatek,5ghz = <0>;
101 };
102 };
103 };
104
105 &ethernet {
106 mtd-mac-address = <&factory 0xe006>;
107 };
108
109 &pinctrl {
110 state_default: pinctrl0 {
111 gpio {
112 ralink,group = "uart3", "jtag";
113 ralink,function = "gpio";
114 };
115 };
116 };