ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[openwrt/staging/mkresin.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 palmbus@1E000000 {
15 spi@b00 {
16 status="disabled";
17 };
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,57600";
22 };
23
24 nand@1e003000 {
25 status = "okay";
26
27 partition@0 {
28 label = "u-boot";
29 reg = <0x0 0x30000>;
30 read-only;
31 };
32
33 partition@30000 {
34 label = "u-boot-env";
35 reg = <0x30000 0x1000>;
36 read-only;
37 };
38
39 partition@80000 {
40 label = "config";
41 reg = <0x80000 0x80000>;
42 read-only;
43 };
44
45 factory: partition@100000 {
46 label = "factory";
47 reg = <0x100000 0x40000>;
48 read-only;
49 };
50
51 firmware {
52 label = "firmware";
53 reg = <0x140000 0x6EC0000>;
54 };
55
56 partition@140000 {
57 label = "kernel";
58 reg = <0x140000 0x200000>;
59 };
60
61 partition@340000 {
62 label = "ubi";
63 reg = <0x340000 0x6CC0000>;
64 };
65 };
66
67 pcie@1e140000 {
68 status = "okay";
69
70 pcie0 {
71 mt76@0,0 {
72 reg = <0x0000 0 0 0 0>;
73 device_type = "pci";
74 mediatek,mtd-eeprom = <&factory 0x8000>;
75 mediatek,2ghz = <0>;
76 };
77 };
78
79 pcie1 {
80 mt76@1,0 {
81 reg = <0x0000 0 0 0 0>;
82 device_type = "pci";
83 mediatek,mtd-eeprom = <&factory 0x0000>;
84 mediatek,5ghz = <0>;
85 };
86 };
87 };
88
89 ethernet@1e100000 {
90 mtd-mac-address = <&factory 0xe006>;
91 };
92
93 gpio-leds {
94 compatible = "gpio-leds";
95
96 usb {
97 label = "wf-2881:green:usb";
98 gpios = <&gpio0 6 1>;
99 };
100
101 wps {
102 label = "wf-2881:green:wps";
103 gpios = <&gpio0 0 1>;
104 };
105 };
106
107 gpio-keys-polled {
108 compatible = "gpio-keys-polled";
109 #address-cells = <1>;
110 #size-cells = <0>;
111 poll-interval = <20>;
112
113 reset {
114 label = "reset";
115 gpios = <&gpio0 12 1>;
116 linux,code = <0x198>;
117 };
118 };
119
120 pinctrl {
121 state_default: pinctrl0 {
122 gpio {
123 ralink,group = "uart3", "jtag";
124 ralink,function = "gpio";
125 };
126 };
127 };
128 };