Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / ArcherC20i.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "ralink,mt7620a-soc";
7         model = "TP-Link Archer C20i";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         palmbus@10000000 {
14                 gpio2: gpio@660 {
15                         status = "okay";
16                 };
17
18                 spi@b00 {
19                         status = "okay";
20
21                         m25p80@0 {
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24                                 compatible = "en25q64";
25                                 reg = <0 0>;
26                                 linux,modalias = "m25p80", "mx25l6405d";
27                                 spi-max-frequency = <10000000>;
28
29                                 partition@0 {
30                                         label = "u-boot";
31                                         reg = <0x0 0x20000>;
32                                         read-only;
33                                 };
34
35                                 partition@20000 {
36                                         label = "firmware";
37                                         reg = <0x20000 0x7a0000>;
38                                 };
39
40                                 partition@7c0000 {
41                                         label = "config";
42                                         reg = <0x7c0000 0x10000>;
43                                 };
44
45                                 rom: partition@7d0000 {
46                                         label = "rom";
47                                         reg = <0x7d0000 0x10000>;
48                                 };
49
50                                 partition@7e0000 {
51                                         label = "romfile";
52                                         reg = <0x7e0000 0x10000>;
53                                 };
54
55                                 radio: partition@7f0000 {
56                                         label = "radio";
57                                         reg = <0x7f0000 0x10000>;
58                                 };
59                         };
60                 };
61         };
62
63         pinctrl {
64                 state_default: pinctrl0 {
65                         gpio {
66                                 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
67                                 ralink,function = "gpio";
68                         };
69                 };
70         };
71
72         ethernet@10100000 {
73                 pinctrl-names = "default";
74                 pinctrl-0 = <&ephy_pins>;
75
76                 mtd-mac-address = <&rom 0xf100>;
77                 ralink,port-map = "wllll";
78         };
79
80         gsw@10110000 {
81                 ralink,port4 = "ephy";
82         };
83
84         wmac@10180000 {
85                 ralink,mtd-eeprom = <&radio 0>;
86         };
87
88         pcie@10140000 {
89                 status = "okay";
90
91                 pcie-bridge {
92                         mt76@0,0 {
93                                 reg = <0x0000 0 0 0 0>;
94                                 device_type = "pci";
95                                 mediatek,mtd-eeprom = <&radio 32768>;
96                                 mediatek,2ghz = <0>;
97                         };
98                 };
99         };
100
101         gpio-leds {
102                 compatible = "gpio-leds";
103         };
104
105         gpio-keys-polled {
106                 compatible = "gpio-keys-polled";
107                 #address-cells = <1>;
108                 #size-cells = <0>;
109                 poll-interval = <20>;
110         };
111 };