ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.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 #address-cells = <1>;
15 #size-cells = <0>;
16 poll-interval = <20>;
17
18 reset {
19 label = "reset";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23
24 aoss {
25 label = "aoss";
26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
28 };
29 };
30
31 nand {
32 #address-cells = <1>;
33 #size-cells = <1>;
34 compatible = "mtk,mt7620-nand";
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 label = "firmware";
56 reg = <0x80000 0x7f80000>;
57 };
58 };
59 };
60
61 &pinctrl {
62 state_default: pinctrl0 {
63 gpio {
64 ralink,group = "i2c", "uartf", "spi";
65 ralink,function = "gpio";
66 };
67 };
68 };
69
70 &ethernet {
71 status = "okay";
72 pinctrl-names = "default";
73 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
74 mediatek,portmap = "llllw";
75
76 port@4 {
77 status = "okay";
78 phy-handle = <&phy4>;
79 phy-mode = "rgmii";
80 };
81
82 port@5 {
83 status = "okay";
84 phy-handle = <&phy5>;
85 phy-mode = "rgmii";
86 };
87
88 mdio-bus {
89 status = "okay";
90
91 phy4: ethernet-phy@4 {
92 reg = <4>;
93 phy-mode = "rgmii";
94 };
95
96 phy5: ethernet-phy@5 {
97 reg = <5>;
98 phy-mode = "rgmii";
99 };
100 };
101 };
102
103 &gsw {
104 mediatek,port4 = "gmac";
105 };
106
107 &pcie {
108 status = "okay";
109 };
110
111 &ehci {
112 status = "okay";
113 };
114
115 &ohci {
116 status = "okay";
117 };