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