0014ac766f0539f8d68de508cfc089979cc2336c
[openwrt/openwrt.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 = "m25p80";
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 compatible = "mtk,mt7621-nand";
46 bank-width = <2>;
47 reg = <0x1e003000 0x800
48 0x1e003800 0x800>;
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x0 0x80000>;
55 read-only;
56 };
57
58 partition@80000 {
59 label = "u-boot-env";
60 reg = <0x80000 0x60000>;
61 read-only;
62 };
63
64 factory: partition@e0000 {
65 label = "factory";
66 reg = <0xe0000 0x60000>;
67 };
68
69 partition@140000 {
70 label = "kernel1";
71 reg = <0x140000 0x300000>;
72 };
73
74 partition@440000 {
75 label = "kernel2";
76 reg = <0x440000 0x300000>;
77 };
78
79 partition@740000 {
80 label = "ubi";
81 reg = <0x740000 0xf7c0000>;
82 };
83
84 };
85
86 ethernet@1e100000 {
87 mtd-mac-address = <&factory 0x22>;
88 };
89
90 pinctrl {
91 state_default: pinctrl0 {
92 gpio {
93 ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag";
94 ralink,function = "gpio";
95 };
96 };
97 };
98
99 sdhci@1E130000 {
100 status = "disabled";
101 };
102
103 pcie@1e140000 {
104 status = "disabled";
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 = <KEY_RESTART>;
117 };
118 };
119 };