ralink: update patches
[openwrt/openwrt.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 memory@0 {
10 reg = <0x0 0x2000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600";
15 };
16
17 palmbus@10000000 {
18 sysc@0 {
19 ralink,pinmux = "spi", "uartlite", "mdio", "wled", "ephy", "rgmii1", "rgmii2";
20 ralink,gpiomux = "i2c", "jtag";
21 ralink,uartmux = "gpio";
22 ralink,wdtmux = <1>;
23 };
24
25 gpio0: gpio@600 {
26 status = "okay";
27 };
28
29 spi@b00 {
30 status = "okay";
31
32 m25p80@0 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "en25q64";
36 reg = <0 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
66 ethernet@10100000 {
67 status = "okay";
68
69 port@4 {
70 compatible = "lantiq,mt7620a-gsw-port", "ralink,eth-port";
71 reg = <4>;
72 phy-mode = "rgmii";
73 phy-handle = <&phy4>;
74 };
75
76 port@5 {
77 compatible = "lantiq,mt7620a-gsw-port", "ralink,eth-port";
78 reg = <5>;
79 phy-mode = "rgmii";
80 phy-handle = <&phy5>;
81 };
82
83 mdio-bus {
84 status = "okay";
85
86 phy4: ethernet-phy@4 {
87 reg = <4>;
88 phy-mode = "rgmii";
89 };
90
91 phy5: ethernet-phy@5 {
92 reg = <5>;
93 phy-mode = "rgmii";
94 };
95 };
96 };
97
98 gsw@10110000 {
99 status = "okay";
100 ralink,port4 = "gmac";
101 };
102
103 sdhci@10130000 {
104 status = "okay";
105 };
106
107 pcie@10140000 {
108 status = "okay";
109 };
110
111 gpio-keys-polled {
112 compatible = "gpio-keys";
113 #address-cells = <1>;
114 #size-cells = <0>;
115 poll-interval = <20>;
116 s2 {
117 label = "S2";
118 gpios = <&gpio0 1 1>;
119 linux,code = <0x100>;
120 };
121 s3 {
122 label = "S3";
123 gpios = <&gpio0 2 1>;
124 linux,code = <0x101>;
125 };
126 };
127 };