]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/UBNT-ERX.dts
Upgrade LDNS to 1.7.0.
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / 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         nand@1e003000 {
21                 status = "okay";
22
23                 partition@0 {
24                         label = "u-boot";
25                         reg = <0x0 0x80000>;
26                         read-only;
27                 };
28
29                 partition@80000 {
30                         label = "u-boot-env";
31                         reg = <0x80000 0x60000>;
32                         read-only;
33                 };
34
35                 factory: partition@e0000 {
36                         label = "factory";
37                         reg = <0xe0000 0x60000>;
38                 };
39
40                 partition@140000 {
41                         label = "kernel1";
42                         reg = <0x140000 0x300000>;
43                 };
44
45                 partition@440000 {
46                         label = "kernel2";
47                         reg = <0x440000 0x300000>;
48                 };
49
50                 partition@740000 {
51                         label = "ubi";
52                         reg = <0x740000 0xf7c0000>;
53                 };
54
55         };
56
57         gpio-keys-polled {
58                 compatible = "gpio-keys-polled";
59                 #address-cells = <1>;
60                 #size-cells = <0>;
61                 poll-interval = <20>;
62
63                 reset {
64                         label = "reset";
65                         gpios = <&gpio0 12 1>;
66                         linux,code = <KEY_RESTART>;
67                 };
68         };
69 };
70
71 &ethernet {
72         mtd-mac-address = <&factory 0x22>;
73 };
74
75 &pinctrl {
76         state_default: pinctrl0 {
77                 gpio {
78                         ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag";
79                         ralink,function = "gpio";
80                 };
81         };
82 };
83
84 &sdhci {
85         status = "disabled";
86 };
87
88 &pcie {
89         status = "disabled";
90 };
91
92 &spi0 {
93         /* This board has 2Mb spi flash soldered in and visible
94            from manufacturer's firmware.
95            But this SoC shares spi and nand pins,
96            and current driver does't handle this sharing well */
97         status = "disabled";
98         m25p80@0 {
99                 #address-cells = <1>;
100                 #size-cells = <1>;
101                 compatible = "jedec,spi-nor";
102                 reg = <1>;
103                 linux,modalias = "m25p80";
104                 spi-max-frequency = <10000000>;
105
106                 partition@0 {
107                         label = "spi";
108                         reg = <0x0 0x200000>;
109                         read-only;
110                 };
111         };
112 };