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