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