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