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