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