ramips: mt7620 ArcherC20i USB support
[openwrt/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 ehci@101c0000 {
81 status = "okay";
82 };
83
84 ohci@101c1000 {
85 status = "okay";
86 };
87
88 gsw@10110000 {
89 ralink,port4 = "ephy";
90 };
91
92 wmac@10180000 {
93 ralink,mtd-eeprom = <&radio 0>;
94 };
95
96 pcie@10140000 {
97 status = "okay";
98
99 pcie-bridge {
100 mt76@0,0 {
101 reg = <0x0000 0 0 0 0>;
102 device_type = "pci";
103 mediatek,mtd-eeprom = <&radio 32768>;
104 mediatek,2ghz = <0>;
105 };
106 };
107 };
108
109 gpio-leds {
110 compatible = "gpio-leds";
111 };
112
113 gpio-keys-polled {
114 compatible = "gpio-keys-polled";
115 #address-cells = <1>;
116 #size-cells = <0>;
117 poll-interval = <20>;
118 };
119 };