417370080d003ed2ac4a81d354a3610b719a4ef3
[openwrt/svn-archive/archive.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 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "spi", "uartlite", "mdio", "wled", "ephy", "rgmii1", "rgmii2";
12 ralink,gpiomux = "i2c", "jtag";
13 ralink,uartmux = "gpio";
14 ralink,wdtmux = <1>;
15 };
16
17 gpio0: gpio@600 {
18 status = "okay";
19 };
20
21 spi@b00 {
22 status = "okay";
23
24 m25p80@0 {
25 #address-cells = <1>;
26 #size-cells = <1>;
27 compatible = "en25q64";
28 reg = <0 0>;
29 linux,modalias = "m25p80", "en25q64";
30 spi-max-frequency = <10000000>;
31
32 partition@0 {
33 label = "u-boot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "u-boot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 label = "factory";
46 reg = <0x40000 0x10000>;
47 read-only;
48 };
49
50 partition@50000 {
51 label = "firmware";
52 reg = <0x50000 0x7b0000>;
53 };
54 };
55 };
56 };
57
58 ethernet@10100000 {
59 status = "okay";
60
61 port@4 {
62 compatible = "ralink,mt7620a-gsw-port", "ralink,eth-port";
63 reg = <4>;
64 phy-mode = "rgmii";
65 phy-handle = <&phy4>;
66 };
67
68 port@5 {
69 compatible = "ralink,mt7620a-gsw-port", "ralink,eth-port";
70 reg = <5>;
71 phy-mode = "rgmii";
72 phy-handle = <&phy5>;
73 };
74
75 mdio-bus {
76 status = "okay";
77
78 phy4: ethernet-phy@4 {
79 reg = <4>;
80 phy-mode = "rgmii";
81 };
82
83 phy5: ethernet-phy@5 {
84 reg = <5>;
85 phy-mode = "rgmii";
86 };
87 };
88 };
89
90 gsw@10110000 {
91 status = "okay";
92 ralink,port4 = "gmac";
93 };
94
95 sdhci@10130000 {
96 status = "okay";
97 };
98
99 pcie@10140000 {
100 status = "okay";
101 };
102
103 gpio-keys-polled {
104 compatible = "gpio-keys";
105 #address-cells = <1>;
106 #size-cells = <0>;
107 poll-interval = <20>;
108 s2 {
109 label = "S2";
110 gpios = <&gpio0 1 1>;
111 linux,code = <0x100>;
112 };
113 s3 {
114 label = "S3";
115 gpios = <&gpio0 2 1>;
116 linux,code = <0x101>;
117 };
118 };
119 };