ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / UBNT-ERX.dts
1 #include <dt-bindings/input/input.h>
2
3 /dts-v1/;
4
5 #include "mt7621.dtsi"
6
7 / {
8 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
9 model = "UBNT-ERX";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19
20 palmbus@1E000000 {
21 spi@b00 {
22 /* This board has 2Mb spi flash soldered in and visible
23 from manufacturer's firmware.
24 But this SoC shares spi and nand pins,
25 and current driver does't handle this sharing well */
26 status = "disabled";
27 m25p80@0 {
28 #address-cells = <1>;
29 #size-cells = <1>;
30 compatible = "jedec,spi-nor";
31 reg = <1>;
32 linux,modalias = "m25p80";
33 spi-max-frequency = <10000000>;
34
35 partition@0 {
36 label = "spi";
37 reg = <0x0 0x200000>;
38 read-only;
39 };
40 };
41 };
42 };
43
44 nand@1e003000 {
45 status = "okay";
46
47 partition@0 {
48 label = "u-boot";
49 reg = <0x0 0x80000>;
50 read-only;
51 };
52
53 partition@80000 {
54 label = "u-boot-env";
55 reg = <0x80000 0x60000>;
56 read-only;
57 };
58
59 factory: partition@e0000 {
60 label = "factory";
61 reg = <0xe0000 0x60000>;
62 };
63
64 partition@140000 {
65 label = "kernel1";
66 reg = <0x140000 0x300000>;
67 };
68
69 partition@440000 {
70 label = "kernel2";
71 reg = <0x440000 0x300000>;
72 };
73
74 partition@740000 {
75 label = "ubi";
76 reg = <0x740000 0xf7c0000>;
77 };
78
79 };
80
81 ethernet@1e100000 {
82 mtd-mac-address = <&factory 0x22>;
83 };
84
85 pinctrl {
86 state_default: pinctrl0 {
87 gpio {
88 ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag";
89 ralink,function = "gpio";
90 };
91 };
92 };
93
94 sdhci@1E130000 {
95 status = "disabled";
96 };
97
98 pcie@1e140000 {
99 status = "disabled";
100 };
101
102 gpio-keys-polled {
103 compatible = "gpio-keys-polled";
104 #address-cells = <1>;
105 #size-cells = <0>;
106 poll-interval = <20>;
107
108 reset {
109 label = "reset";
110 gpios = <&gpio0 12 1>;
111 linux,code = <KEY_RESTART>;
112 };
113 };
114 };