ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / MT7620a_V22SG.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-eval-board", "ralink,mt7620a-soc";
10 model = "Ralink MT7620a V22SG High Power evaluation board";
11
12 gpio-keys-polled {
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 #address-cells = <1>;
31 #size-cells = <1>;
32 compatible = "mtk,mt7620-nand";
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x0 0x40000>;
37 read-only;
38 };
39
40 partition@40000 {
41 label = "u-boot-env";
42 reg = <0x40000 0x20000>;
43 read-only;
44 };
45
46 factory: partition@60000 {
47 label = "factory";
48 reg = <0x60000 0x20000>;
49 read-only;
50 };
51
52 partition@80000 {
53 label = "firmware";
54 reg = <0x80000 0x7f80000>;
55 };
56 };
57 };
58
59 &pinctrl {
60 state_default: pinctrl0 {
61 gpio {
62 ralink,group = "i2c", "uartf", "spi";
63 ralink,function = "gpio";
64 };
65 };
66 };
67
68 &ethernet {
69 status = "okay";
70 pinctrl-names = "default";
71 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
72 mediatek,portmap = "llllw";
73
74 port@4 {
75 status = "okay";
76 phy-handle = <&phy4>;
77 phy-mode = "rgmii";
78 };
79
80 port@5 {
81 status = "okay";
82 phy-handle = <&phy5>;
83 phy-mode = "rgmii";
84 };
85
86 mdio-bus {
87 status = "okay";
88
89 phy4: ethernet-phy@4 {
90 reg = <4>;
91 phy-mode = "rgmii";
92 };
93
94 phy5: ethernet-phy@5 {
95 reg = <5>;
96 phy-mode = "rgmii";
97 };
98 };
99 };
100
101 &gsw {
102 mediatek,port4 = "gmac";
103 };
104
105 &pcie {
106 status = "okay";
107 };
108
109 &ehci {
110 status = "okay";
111 };
112
113 &ohci {
114 status = "okay";
115 };