ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_ralink_mt7620a-v22sg-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-v22sg-evb", "ralink,mt7620a-soc";
10         model = "Ralink MT7620a V22SG High Power evaluation board";
11
12         keys {
13                 compatible = "gpio-keys";
14
15                 reset {
16                         label = "reset";
17                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
18                         linux,code = <KEY_RESTART>;
19                 };
20
21                 aoss {
22                         label = "aoss";
23                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
24                         linux,code = <KEY_WPS_BUTTON>;
25                 };
26         };
27
28         nand {
29                 compatible = "mtk,mt7620-nand";
30
31                 partitions {
32                         compatible = "fixed-partitions";
33                         #address-cells = <1>;
34                         #size-cells = <1>;
35
36                         partition@0 {
37                                 label = "u-boot";
38                                 reg = <0x0 0x40000>;
39                                 read-only;
40                         };
41
42                         partition@40000 {
43                                 label = "u-boot-env";
44                                 reg = <0x40000 0x20000>;
45                                 read-only;
46                         };
47
48                         factory: partition@60000 {
49                                 label = "factory";
50                                 reg = <0x60000 0x20000>;
51                                 read-only;
52                         };
53
54                         partition@80000 {
55                                 compatible = "denx,uimage";
56                                 label = "firmware";
57                                 reg = <0x80000 0x7f80000>;
58                         };
59                 };
60         };
61 };
62
63 &pinctrl {
64         state_default: pinctrl0 {
65                 gpio {
66                         ralink,group = "i2c", "uartf", "spi";
67                         ralink,function = "gpio";
68                 };
69         };
70 };
71
72 &ethernet {
73         status = "okay";
74         pinctrl-names = "default";
75         pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
76         mediatek,portmap = "llllw";
77
78         port@4 {
79                 status = "okay";
80                 phy-handle = <&phy4>;
81                 phy-mode = "rgmii";
82         };
83
84         port@5 {
85                 status = "okay";
86                 phy-handle = <&phy5>;
87                 phy-mode = "rgmii";
88         };
89
90         mdio-bus {
91                 status = "okay";
92
93                 phy4: ethernet-phy@4 {
94                         reg = <4>;
95                         phy-mode = "rgmii";
96                 };
97
98                 phy5: ethernet-phy@5 {
99                         reg = <5>;
100                         phy-mode = "rgmii";
101                 };
102         };
103 };
104
105 &gsw {
106         mediatek,port4 = "gmac";
107 };
108
109 &pcie {
110         status = "okay";
111 };
112
113 &ehci {
114         status = "okay";
115 };
116
117 &ohci {
118         status = "okay";
119 };