ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_ralink_mt7620a-evb.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ralink,mt7620a-evb", "ralink,mt7620a-soc";
10 model = "Ralink MT7620a + MT7610e evaluation board";
11
12 keys {
13 compatible = "gpio-keys";
14
15 s2 {
16 label = "S2";
17 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
18 linux,code = <BTN_0>;
19 };
20
21 s3 {
22 label = "S3";
23 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
24 linux,code = <BTN_1>;
25 };
26 };
27 };
28
29 &spi0 {
30 status = "okay";
31
32 m25p80@0 {
33 compatible = "jedec,spi-nor";
34 reg = <0>;
35 spi-max-frequency = <10000000>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0x30000>;
45 read-only;
46 };
47
48 partition@30000 {
49 label = "u-boot-env";
50 reg = <0x30000 0x10000>;
51 read-only;
52 };
53
54 factory: partition@40000 {
55 label = "factory";
56 reg = <0x40000 0x10000>;
57 read-only;
58 };
59
60 partition@50000 {
61 compatible = "denx,uimage";
62 label = "firmware";
63 reg = <0x50000 0x7b0000>;
64 };
65 };
66 };
67 };
68
69 &state_default {
70 gpio {
71 ralink,group = "i2c", "uartf";
72 ralink,function = "gpio";
73 };
74 };
75
76 &ethernet {
77 status = "okay";
78 pinctrl-names = "default";
79 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
80 mediatek,portmap = "llllw";
81
82 port@4 {
83 status = "okay";
84 phy-mode = "rgmii";
85 phy-handle = <&phy4>;
86 };
87
88 port@5 {
89 status = "okay";
90 phy-mode = "rgmii";
91 phy-handle = <&phy5>;
92 };
93
94 mdio-bus {
95 status = "okay";
96
97 phy4: ethernet-phy@4 {
98 reg = <4>;
99 phy-mode = "rgmii";
100 };
101
102 phy5: ethernet-phy@5 {
103 reg = <5>;
104 phy-mode = "rgmii";
105 };
106 };
107 };
108
109 &gsw {
110 mediatek,port4 = "gmac";
111 };
112
113 &sdhci {
114 status = "okay";
115 };
116
117 &pcie {
118 status = "okay";
119 };
120
121 &ehci {
122 status = "okay";
123 };
124
125 &ohci {
126 status = "okay";
127 };